今天下午突然遇到一个问题: 报表直接进不去了,重启也没有生效。
最后发现是Nginx的log 目录满了。
有一个疑问就是: nginx log满了,报表前台为何会报js找不到?
难道是nginx代理了服务器上的静态文件。
如何配置呢?
2021/08/21 13:46:33 [crit] 12048#0: *4095135 pwritev() "/usr/local/nginx/proxy_temp/0/92/0000128920" failed (28: No space left on device) while reading upstream, client: 10.56.204.21, server: localhost, request: "POST /sendMessage.do HTTP/1.1", upstream: "http://10.50.10.204:8087/sendMessage.do", host: "chotrptqms.cecchot.com", referrer: "http://chotrptqms.cecchot.com/goto?page=defectMap&func_code=Fnc_defectMap" 2021/08/21 13:46:35 [alert] 12047#0: *4094178 write() to "/usr/local/nginx/logs/access.log" was incomplete: 68 of 311 while logging request, client: 10.56.205.143, server: localhost, request: "GET /dfs/acf/A1575C1APK1/A118D/A118D08J/A118D08JBX/IMAGE/A385JA118D08JBX02H50007.JPG HTTP/1.1", host: "10.50.10.212", referrer: "http://10.50.10.212/goto?page=defectMap&func_code=Fnc_defectMap" 2021/08/21 13:46:35 [alert] 12046#0: *4094421 write() to "/usr/local/nginx/logs/access.log" failed (28: No space left on device) while logging request, client: 10.56.205.143, server: localhost, request: "GET /dfs/acf/A1575C1APK1/A118D/A118D08J/A118D08JBX/IMAGE/A385JA118D08JBX03H10022.JPG HTTP/1.1", host: "10.50.10.212", referrer: "http://10.50.10.212/goto?page=defectMap&func_code=Fnc_defectMap" 2021/08/21 13:46:35 [alert] 12049#0: *4094656 write() to "/usr/local/nginx/logs/access.log" failed (28: No space left on device) while logging request, client: 10.56.205.143, server: localhost, request: "GET /dfs/acf/A1575C1APK1/A118D/A118D08J/A118D08JBX/IMAGE/A385JA118D08JBX03H10015.JPG HTTP/1.1", host: "10.50.10.212", referrer: "http://10.50.10.212/goto?page=defectMap&func_code=Fnc_defectMap" 2021/08/21 13:46:36 [alert] 12048#0: *4095142 write() to "/usr/local/nginx/logs/access.log" failed (28: No space left on device) while logging request, client: 10.56.205.113, server: localhost, request: "POST /mapView/glassList?rows=1500&page=1 HTTP/1.1", upstream: "http://10.50.10.204:8086/mapView/glassList?rows=1500&page=1", host: "chotrptqms.cecchot.com", referrer: "http://chotrptqms.cecchot.com/goto?page=defectMap&func_code=Fnc_defectMap"
发现还有其他error log
connect() failed (111: Connection refused) while connecting to upstream