Project

General

Profile

Getting 503 error

Added by kamalgulati over 4 years ago

I am using lighttpd 1.4.35 on CentOS 6.8.

config is:

server.max-fds=24576
server.max-connections=8192
server.max-write-idle = 180

fastcgi.server += (
"/remote_call" => (
"remote_call" => (
"socket" => "/var/run/lighttpd/remote_call-fastcgi.socket",
"allow-x-send-file" => "enable",
"check-local" => "disable",
"bin-path" => "/fcgi-bin/remote_call.fcgi",
"max-procs" => 24
)
)
)

Sometimes, in access log I am getting 503 error from lighttpd.
In error.log, following error comes 24 times, that is from each process:
(mod_fastcgi.c.2995) backend is overloaded; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 3121
(mod_fastcgi.c.2758) fcgi-server re-enabled: 0 /var/run/lighttpd/adserver-fastcgi.socket

Very few times I got following error also:
(server.c.1444) [note] sockets disabled, connection limit reached

Do I need to tweak any other parameter in the config? Also I dont have consistent steps to reproduce this error. What could be going wrong here? What are the conditions in which these errors may come. That info will help me to reproduce these errors and I can verify the fix by tweaking conf file.


Replies (2)

RE: Getting 503 error - Added by gstrauss over 4 years ago

The software you are running is extremely out-of-date. The latest version of lighttpd is 1.4.54, and is over 1300 commits ahead of lighttpd 1.4.35, which was released over 5 years ago. Your version if lighttpd almost certainly contains unpatched vulnerabilities.

If you're going to spend any time troubleshooting something likely fixed or improved YEARS ago in lighttpd, you would almost certainly do better to spend that time testing and migrating to a newer version of lighttpd.

RE: Getting 503 error - Added by kamalgulati over 4 years ago

Upgrading to latest version is also an option. But, how to verify if latest version will fix this issue, as I dont have steps to reproduce this issue. In the error what do "reconnects" and "load" value mean? Do they indicate anything, what could be going wrong which is leading to this error?

    (1-2/2)