ElectricBrainUK / UnraidAPI

A WIP open source Node JS API for controlling UNraid
GNU General Public License v3.0
125 stars 13 forks source link

Logs filled with authlimit #23

Open WaaromZoMoeilijk opened 4 years ago

WaaromZoMoeilijk commented 4 years ago

Describe the bug Logs filled with authlimit

To Reproduce Steps to reproduce the behavior: Unknown

Unraid server (please complete the following information):

Unraidapi docker container (please complete the following information):

192.168.4.15 = unraidapi 192.168.3.2 = unraid

Feb 27 09:18:52 unraid nginx: 2020/02/27 09:18:52 [error] 26957#26957: *2672413 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 192.168.4.15, server: , request: "GET /plugins/dynamix.vm.manager/include/VMMachines.php HTTP/1.1", subrequest: "/auth_request.php", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "192.168.3.2"
Feb 27 09:18:52 unraid nginx: 2020/02/27 09:18:52 [error] 26957#26957: *2672413 auth request unexpected status: 502 while sending to client, client: 192.168.4.15, server: , request: "GET /plugins/dynamix.vm.manager/include/VMMachines.php HTTP/1.1", host: "192.168.3.2"
Feb 27 09:18:52 unraid nginx: 2020/02/27 09:18:52 [error] 26957#26957: *2672414 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 192.168.4.15, server: , request: "GET /plugins/dynamix.docker.manager/include/DockerContainers.php HTTP/1.1", subrequest: "/auth_request.php", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "192.168.3.2"
Feb 27 09:18:52 unraid nginx: 2020/02/27 09:18:52 [error] 26957#26957: *2672414 auth request unexpected status: 502 while sending to client, client: 192.168.4.15, server: , request: "GET /plugins/dynamix.docker.manager/include/DockerContainers.php HTTP/1.1", host: "192.168.3.2"
Feb 27 09:18:52 unraid nginx: 2020/02/27 09:18:52 [error] 26957#26957: *2671238 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 192.168.4.15, server: , request: "POST /login HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "192.168.3.2"
Feb 27 09:18:53 unraid nginx: 2020/02/27 09:18:53 [error] 26957#26957: *2671238 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 192.168.4.15, server: , request: "GET /Dashboard HTTP/1.1", subrequest: "/auth_request.php", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "192.168.3.2"
Feb 27 09:18:53 unraid nginx: 2020/02/27 09:18:53 [error] 26957#26957: *2671238 auth request unexpected status: 502 while sending to client, client: 192.168.4.15, server: , request: "GET /Dashboard HTTP/1.1", host: "192.168.3.2"
Feb 27 09:18:53 unraid nginx: 2020/02/27 09:18:53 [error] 26957#26957: *2672422 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 192.168.4.15, server: , request: "GET /plugins/dynamix.vm.manager/include/VMMachines.php HTTP/1.1", subrequest: "/auth_request.php", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "192.168.3.2"
Feb 27 09:18:53 unraid nginx: 2020/02/27 09:18:53 [error] 26957#26957: *2672422 auth request unexpected status: 502 while sending to client, client: 192.168.4.15, server: , request: "GET /plugins/dynamix.vm.manager/include/VMMachines.php HTTP/1.1", host: "192.168.3.2"
Feb 27 09:18:53 unraid nginx: 2020/02/27 09:18:53 [error] 26957#26957: *2672423 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 192.168.4.15, server: , request: "GET /plugins/dynamix.docker.manager/include/DockerContainers.php HTTP/1.1", subrequest: "/auth_request.php", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "192.168.3.2"
Feb 27 09:18:53 unraid nginx: 2020/02/27 09:18:53 [error] 26957#26957: *2672423 auth request unexpected status: 502 while sending to client, client: 192.168.4.15, server: , request: "GET /plugins/dynamix.docker.manager/include/DockerContainers.php HTTP/1.1", host: "192.168.3.2"
Feb 27 09:18:53 unraid nginx: 2020/02/27 09:18:53 [error] 26957#26957: *2672424 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 192.168.4.15, server: , request: "GET /Main HTTP/1.1", subrequest: "/auth_request.php", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "192.168.3.2"
Feb 27 09:18:53 unraid nginx: 2020/02/27 09:18:53 [error] 26957#26957: *2672424 auth request unexpected status: 502 while sending to client, client: 192.168.4.15, server: , request: "GET /Main HTTP/1.1", host: "192.168.3.2"
Feb 27 09:18:53 unraid nginx: 2020/02/27 09:18:53 [error] 26957#26957: *2672431 limiting requests, excess: 20.637 by zone "authlimit", client: 192.168.4.15, server: , request: "GET /login HTTP/1.1", host: "192.168.3.2"

Please advise.

pservais commented 3 years ago

Same here, results in having the Unraid webGUI totally unresponsive

willnnotdan commented 3 years ago

Sounds like either your MQTTCacheTime/ MQTTRefreshTime are too frequent or the unraid api is failing to authenticate against your server.

CyaOnDaNet commented 3 years ago

I have the same issue. My MQTTRefreshRate is set to 5 seconds (Just upped it to 7 seconds) and my MQTTCacheTime is set to 1 minute. I can usually run this docker for about a week or two before it starts having the error. Once it starts having the error, it continuously spams my unraid logs and can fill it up in about 48 hours. If I don't catch it in that time, it will crash unraid's nginx and the unraid gui becomes unresponsive or unreachable. Restarting the docker container and restarting nginx solves the issue for about a week or two and then its back again. I believe if I catch it before nginx becomes unresponsive, I just have to restart the docker to stop the errors. I'm not too sure on that though because I usually don't catch it. Restarting unraid's nginx and restarting the docker container definitely fixes it for at least a week for me.

By the way @pservais , if you want to restart unraid's gui without restarting the entire system, you can run the following commands in a terminal after connecting via ssh: /etc/rc.d/rc.nginx restart /etc/rc.d/rc.php-fpm restart

wuast94 commented 2 years ago

i have the same problem at the moment, it runs over a month without problem. now i have this issue after about 2 days.