Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#2380 closed defect (invalid)

Nginx left open proxy_temp files(deleted)

Reported by: nunokisc@… Owned by:
Priority: critical Milestone:
Component: nginx-module Version: 1.22.x
Keywords: Cc:
uname -a: Linux - 3.10.0-1160.71.1.el7.x86_64 #1 SMP Tue Jun 28 15:37:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.22.0

Description

Hello,

Filesystem went full with deleted files.

# lsof +L1
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NLINK NODE NAME
nginx 24903 nginx 91u REG 253,1 16318464 0 806370 /var/cache/nginx/proxy_temp/5/04/0000000045 (deleted)
nginx 24903 nginx 174u REG 253,1 11239424 0 8728 /var/cache/nginx/proxy_temp/4/05/0000000054 (deleted)
nginx 24903 nginx 190u REG 253,1 10027008 0 8794 /var/cache/nginx/proxy_temp/7/05/0000000057 (deleted)
nginx 24903 nginx 193u REG 253,1 8847360 0 806363 /var/cache/nginx/proxy_temp/0/06/0000000060 (deleted)
nginx 24903 nginx 195u REG 253,1 9961472 0 8831 /var/cache/nginx/proxy_temp/8/05/0000000058 (deleted)
nginx 24904 nginx 48u REG 253,1 8912896 0 8851 /var/cache/nginx/proxy_temp/9/05/0000000059 (deleted)
nginx 24904 nginx 49u REG 253,1 36536320 0 524774 /var/cache/nginx/proxy_temp/1/00/0000000001 (deleted)
nginx 24904 nginx 80u REG 253,1 360448 0 8885 /var/cache/nginx/proxy_temp/9/06/0000000069 (deleted)
nginx 24904 nginx 83u REG 253,1 30474240 0 532412 /var/cache/nginx/proxy_temp/6/01/0000000016 (deleted)
nginx 24905 nginx 23u REG 253,1 22872064 0 806356 /var/cache/nginx/proxy_temp/7/03/0000000037 (deleted)
nginx 24905 nginx 64u REG 253,1 1015808 0 8859 /var/cache/nginx/proxy_temp/8/06/0000000068 (deleted)
nginx 24905 nginx 74u REG 253,1 2883584 0 8714 /var/cache/nginx/proxy_temp/5/06/0000000065 (deleted)
nginx 24905 nginx 90u REG 253,1 10092544 0 8785 /var/cache/nginx/proxy_temp/6/05/0000000056 (deleted)
nginx 24905 nginx 96u REG 253,1 1802240 0 8726 /var/cache/nginx/proxy_temp/7/06/0000000067 (deleted)
nginx 24905 nginx 118u REG 253,1 32768000 0 532406 /var/cache/nginx/proxy_temp/8/00/0000000008 (deleted)
nginx 24905 nginx 187u REG 253,1 22183936 0 806362 /var/cache/nginx/proxy_temp/9/03/0000000039 (deleted)
nginx 24906 nginx 42u REG 253,1 29917184 0 532413 /var/cache/nginx/proxy_temp/3/01/0000000013 (deleted)
nginx 24906 nginx 74u REG 253,1 18776064 0 806364 /var/cache/nginx/proxy_temp/1/04/0000000041 (deleted)
nginx 24906 nginx 107u REG 253,1 15171584 0 8667 /var/cache/nginx/proxy_temp/6/04/0000000046 (deleted)
nginx 24906 nginx 170u REG 253,1 27230208 0 670559 /var/cache/nginx/proxy_temp/6/02/0000000026 (deleted)
nginx 24906 nginx 184u REG 253,1 26935296 0 670561 /var/cache/nginx/proxy_temp/7/02/0000000027 (deleted)
nginx 24907 nginx 30u REG 253,1 17727488 0 806365 /var/cache/nginx/proxy_temp/2/04/0000000042 (deleted)
nginx 24907 nginx 42u REG 253,1 7503872 0 806375 /var/cache/nginx/proxy_temp/1/06/0000000061 (deleted)
nginx 24907 nginx 43u REG 253,1 3473408 0 8701 /var/cache/nginx/proxy_temp/4/06/0000000064 (deleted)
nginx 24907 nginx 89u REG 253,1 23887872 0 670564 /var/cache/nginx/proxy_temp/6/03/0000000036 (deleted)
nginx 24908 nginx 34u REG 253,1 30408704 0 533491 /var/cache/nginx/proxy_temp/7/01/0000000017 (deleted)
nginx 24908 nginx 80u REG 253,1 25165824 0 670566 /var/cache/nginx/proxy_temp/2/03/0000000032 (deleted)
nginx 24908 nginx 100u REG 253,1 11534336 0 806374 /var/cache/nginx/proxy_temp/3/05/0000000053 (deleted)
nginx 24908 nginx 122u REG 253,1 26640384 0 670562 /var/cache/nginx/proxy_temp/8/02/0000000028 (deleted)
nginx 24908 nginx 133u REG 253,1 22872064 0 806360 /var/cache/nginx/proxy_temp/8/03/0000000038 (deleted)
nginx 24908 nginx 158u REG 253,1 4128768 0 806367 /var/cache/nginx/proxy_temp/3/06/0000000063 (deleted)

Change History (1)

comment:1 by Sergey Kandaurov, 2 years ago

Resolution: invalid
Status: newclosed

This is how temporary files managed in nginx.
You can find a detailed explanation here:
https://mailman.nginx.org/pipermail/nginx/2022-February/NT74FRTTSV6TNIOPCZCU7DJ5A7SJBGFV.html

Last edited 2 years ago by Maxim Dounin (previous) (diff)
Note: See TracTickets for help on using tickets.