# Error 500, socket does not match the pid

**URL:** <https://www.ruby-forum.com/t/error-500-socket-does-not-match-the-pid/106596>\
**Category:** Rails\
**Created:** [June 12, 2007, 10:04am UTC](https://www.ruby-forum.com/t/error-500-socket-does-not-match-the-pid/106596 "2007-06-12T10:04:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pduch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a6a055/32.png) [@pduch](https://www.ruby-forum.com/u/pduch)\
**Post date:** [June 12, 2007, 10:04am UTC](https://www.ruby-forum.com/t/error-500-socket-does-not-match-the-pid/106596/1 "2007-06-12T10:04:00Z")

</div>

This is the error that is repeating itself in my log:

2007-06-12 02:32:38: (mod\_fastcgi.c.1739) connect failed: Connection  
refused on unix:/home/devspace/space/rails/current/tmp/space-0.socket  
2007-06-12 02:32:38: (mod\_fastcgi.c.2851) backend died, we disable it  
for a 5 seconds and send the request to another backend instead:  
reconnects: 0 load: 1  
2007-06-12 02:32:44: (mod\_fastcgi.c.2669) fcgi-server re-enabled:  
unix:/home/devspace/space/rails/current/tmp/space-0.socket

Everything seem to be working before until the machine had to be  
restarted. I am now getting the following error message and have been  
trying to troubleshoot the problem.

Nothing has change, as far as I know anyways. In theory it should just  
be a matter of restarting lighttpd and fastcgi, but you know how it  
is, nothing is that simple.

What I a seeing is that the pid file for space-0.socket is not  
pointing to any running process. Now is this issue related, ie socket  
can’t connect because the pid is wrong?
