Opened 9 years ago
Closed 9 years ago
#930 closed defect (worksforme)
Nginx падает через несколько минут с ошибкой при включении proxy_cache на Win 2012
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | nginx-core | Version: | 1.9.x |
Keywords: | Cc: | ||
uname -a: | |||
nginx -V: |
c:\Nginx>nginx -V >v
nginx version: nginx/1.9.12 built by cl 16.00.30319.01 for 80x86 built with OpenSSL 1.0.2f 28 Jan 2016 TLS SNI support enabled configure arguments: --with-cc=cl --builddir=objs.msvc8 --with-debug --prefix= - -conf-path=conf/nginx.conf --pid-path=logs/nginx.pid --http-log-path=logs/access .log --error-log-path=logs/error.log --sbin-path=nginx.exe --http-client-body-te mp-path=temp/client_body_temp --http-proxy-temp-path=temp/proxy_temp --http-fast cgi-temp-path=temp/fastcgi_temp --http-scgi-temp-path=temp/scgi_temp --http-uwsg i-temp-path=temp/uwsgi_temp --with-cc-opt=-DFD_SETSIZE=1024 --with-pcre=objs.msv c8/lib/pcre-8.38 --with-zlib=objs.msvc8/lib/zlib-1.2.8 --with-select_module --wi th-http_realip_module --with-http_addition_module --with-http_sub_module --with- http_dav_module --with-http_stub_status_module --with-http_flv_module --with-htt p_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-htt p_auth_request_module --with-http_random_index_module --with-http_secure_link_mo dule --with-http_slice_module --with-mail --with-stream --with-openssl=objs.msvc 8/lib/openssl-1.0.2f --with-openssl-opt=no-asm --with-http_ssl_module --with-mai l_ssl_module --with-stream_ssl_module --with-ipv6 |
Description (last modified by )
Запущен как сервис через nssm, работает на Win 2012 R2 Standart Server от Administrator, на папку кеша для этого пользователя права все выставлены.
Работает исправно, но при включении серверного кеширования через несколько минут падает с ошибкой создавая гигабайтный лог записей. До падения кеширует так же исправно.
Сервис (и сам nginx) работают от пользователя Administrator
Запускал с точно такими же настройками на Win8, кеш работает исправно, видимо проблема только на Win server 2012
2016/03/13 11:40:06 [crit] 19188#8028: *8165 MoveFile() "c:/NginxCache/a/3d/d3ad517c354399430e50d044eeddf3da" to "c:/NginxCache/a/3d/d3ad517c354399430e50d044eeddf3da.03600427215.DELETE" failed (5: Access is denied) while reading upstream, client: 91.226.164.65, server: 89.108.109.77, request: "GET /js/fineuploader?v=LIEtvvPaK-Gu27LlTsMtvR3LDSrRbkLctWLEMWKVx-E1 HTTP/1.1", upstream: "http://127.0.0.1:8001/js/fineuploader?v=LIEtvvPaK-Gu27LlTsMtvR3LDSrRbkLctWLEMWKVx-E1", host: "kolomna.***.ru", referrer: "http://kolomna.***.ru/tovar/****"
worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; access_log off; sendfile on; client_max_body_size 100m; send_timeout 300s; #keepalive_timeout 0; keepalive_timeout 30; open_file_cache max=200000 inactive=20s; open_file_cache_valid 30s; open_file_cache_min_uses 2; open_file_cache_errors on; gzip on; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js; proxy_cache_path c:/NginxCache levels=1:2 keys_zone=my_cache:10m max_size=10g inactive=10m use_temp_path=off; upstream backend { ip_hash; server 127.0.0.1:8001; server 127.0.0.1:8002 down; } server { listen 89.108.109.77:80; server_name 89.108.109.77; location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; add_header X-Proxy-Cache $upstream_cache_status; proxy_cache my_cache; proxy_cache_min_uses 3; proxy_cache_lock on; proxy_pass http://backend; } } }
Change History (2)
comment:1 by , 9 years ago
Component: | documentation → nginx-core |
---|---|
Description: | modified (diff) |
Priority: | critical → minor |
comment:2 by , 9 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Feedback timeout. Likely a problem with permissions or an external software interfering with nginx.
Note:
See TracTickets
for help on using tickets.
Начните с простого: