Opened 4 years ago

Closed 3 years ago

#2004 closed defect (invalid)

nginx temp files deleting problem

Reported by: oleg9301@… Owned by:
Priority: minor Milestone:
Component: nginx-core Version: 1.18.x
Keywords: Cc:
uname -a: Linux balancer1 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.18.0
built by gcc 8.3.0 (Debian 8.3.0-6)
built with OpenSSL 1.1.1d 10 Sep 2019
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-g -O2 -fdebug-prefix-map=/tmp/nginx-1.18.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie' --add-dynamic-module=/tmp/nginx-1.18.0/debian/testcookie-nginx-module --with-compat --add-dynamic-module=/tmp/nginx-1.18.0/debian/ModSecurity-nginx --add-dynamic-module=/tmp/nginx-1.18.0/debian/nginx-dav-ext-module --add-module=/tmp/nginx-1.18.0/debian/nginx_http_upstream_check_module

Description

~# df -h

/dev/sda1 15G 11G 4,3G 71% /

~# lsof | grep deleted
nginx 27864 www-data 33u REG 8,1 70656000 398944 /var/cache/nginx/proxy_temp/8/55/0000002558 (deleted)
nginx 27864 www-data 35u REG 8,1 70582272 399796 /var/cache/nginx/proxy_temp/6/01/0000002016 (deleted)
nginx 27864 www-data 37u REG 8,1 70582272 399797 /var/cache/nginx/proxy_temp/7/03/0000002037 (deleted)
nginx 27864 www-data 51u REG 8,1 70590464 399798 /var/cache/nginx/proxy_temp/7/01/0000002017 (deleted)
nginx 27864 www-data 64u REG 8,1 70582272 393481 /var/cache/nginx/proxy_temp/6/35/0000002356 (deleted)
nginx 27864 www-data 65u REG 8,1 70655881 399791 /var/cache/nginx/proxy_temp/0/55/0000002550 (deleted)
nginx 27864 www-data 68u REG 8,1 70590464 399803 /var/cache/nginx/proxy_temp/6/20/0000002206 (deleted)
nginx 27864 www-data 73u REG 8,1 70590464 399811 /var/cache/nginx/proxy_temp/9/11/0000002119 (deleted)
nginx 27864 www-data 85u REG 8,1 70590464 524649 /var/cache/nginx/proxy_temp/7/55/0000002557 (deleted)
nginx 27864 www-data 90u REG 8,1 70590464 399810 /var/cache/nginx/proxy_temp/9/21/0000002219 (deleted)
nginx 27864 www-data 109u REG 8,1 70582272 394088 /var/cache/nginx/proxy_temp/2/50/0000002502 (deleted)
nginx 27864 www-data 112u REG 8,1 70655881 399801 /var/cache/nginx/proxy_temp/3/55/0000002553 (deleted)
nginx 27864 www-data 116u REG 8,1 70590464 398967 /var/cache/nginx/proxy_temp/4/03/0000002034 (deleted)
nginx 27864 www-data 126u REG 8,1 70582272 524815 /var/cache/nginx/proxy_temp/1/41/0000002411 (deleted)
nginx 27864 www-data 128u REG 8,1 70590464 399805 /var/cache/nginx/proxy_temp/9/19/0000002199 (deleted)
nginx 27864 www-data 131u REG 8,1 70606848 398940 /var/cache/nginx/proxy_temp/6/24/0000002246 (deleted)
nginx 27864 www-data 134u REG 8,1 70590464 524719 /var/cache/nginx/proxy_temp/3/99/0000001993 (deleted)
nginx 27864 www-data 144u REG 8,1 70582272 524671 /var/cache/nginx/proxy_temp/2/22/0000002222 (deleted)
nginx 27864 www-data 149u REG 8,1 70590464 399799 /var/cache/nginx/proxy_temp/4/06/0000002064 (deleted)
nginx 27864 www-data 159u REG 8,1 70582272 524688 /var/cache/nginx/proxy_temp/1/36/0000002361 (deleted)
nginx 27864 www-data 169u REG 8,1 70590464 524647 /var/cache/nginx/proxy_temp/6/17/0000002176 (deleted)
nginx 27864 www-data 184u REG 8,1 70582272 524818 /var/cache/nginx/proxy_temp/2/41/0000002412 (deleted)
nginx 27864 www-data 188u REG 8,1 70590464 524823 /var/cache/nginx/proxy_temp/5/43/0000002435 (deleted)
nginx 27864 www-data 194u REG 8,1 70655881 524791 /var/cache/nginx/proxy_temp/6/41/0000002416 (deleted)
nginx 27864 www-data 195u REG 8,1 70655881 399787 /var/cache/nginx/proxy_temp/9/43/0000002439 (deleted)
nginx 27864 www-data 196u REG 8,1 70582272 524672 /var/cache/nginx/proxy_temp/8/54/0000002548 (deleted)
nginx 27864 www-data 203u REG 8,1 70582272 524675 /var/cache/nginx/proxy_temp/0/33/0000002330 (deleted)
nginx 27864 www-data 207u REG 8,1 70574080 524789 /var/cache/nginx/proxy_temp/0/35/0000002350 (deleted)
nginx 27864 www-data 220u REG 8,1 70582272 524821 /var/cache/nginx/proxy_temp/5/46/0000002465 (deleted)
nginx 27864 www-data 221u REG 8,1 70606848 398731 /var/cache/nginx/proxy_temp/0/15/0000002150 (deleted)
nginx 27864 www-data 228u REG 8,1 70590464 524674 /var/cache/nginx/proxy_temp/6/25/0000002256 (deleted)
nginx 27864 www-data 238u REG 8,1 70541312 399793 /var/cache/nginx/proxy_temp/9/54/0000002549 (deleted)
~# service nginx restart
~# df -h
Filesystem Size Used Avail Use% Mounted on

/dev/sda1 15G 8,5G 6,3G 58% /

~# lsof | grep deleted
nginx 13926 www-data 27u REG 8,1 70606848 394088 /var/cache/nginx/proxy_temp/1/00/0000000001 (deleted)

Change History (2)

comment:1 by Maxim Dounin, 4 years ago

Please elaborate what makes you think that the observed deleted files is a problem. Temporary files which are currently used by nginx are expected to appear as "(deleted)" in lsof.

comment:2 by Maxim Dounin, 3 years ago

Resolution: invalid
Status: newclosed

Feedback timeout.

Note: See TracTickets for help on using tickets.