views:

42

answers:

0

I'm maintaining an old rails application that was working just fine until recently. I believe it uses fcgi and lighttpd on Debian for deployment.

Normally when release a new version, I restart lighttpd and everything is fine. Today for the first time I got the following error message when trying to restart

I don't know what any of this means, especially since I don't use PHP, I'm using this with a rails application.

Also, the last two times this happened. I stopped lighttpd and waiting 5 minutes when I restarted, it seems to work fine. But currently I don't want to risk do that again since this is a production machine!

Any ideas what is going on? Also is fcgi an outdated method of deploying applications, should I be using Phusian Passenger instead? Any good articles on converting from one to the other?

2010-09-28 05:05:44: (mod_fastcgi.c.1042) the fastcgi-backend /var/dei/rails/current/public/dispatch.fcgi failed to start:
2010-09-28 05:05:44: (mod_fastcgi.c.1046) child exited with status 1 /var/dei/rails/current/public/dispatch.fcgi
2010-09-28 05:05:44: (mod_fastcgi.c.1049) if you try do run PHP as FastCGI backend make sure you use the FastCGI enabled version.
You can find out if it is the right one by executing 'php -v' and it should display '(cgi-fcgi)' in the output, NOT (cgi) NOR (cli)
For more information check http://www.lighttpd.net/documentation/fastcgi.html#preparing-php-as-a-fastcgi-program
2010-09-28 05:05:44: (mod_fastcgi.c.1351) [ERROR]: spawning fcgi failed.
2010-09-28 05:05:44: (server.c.849) Configuration of plugins failed. Going down.

Also, these problems seem to have started after I installed the paperclip gem and updated rubygems on the system. Not sure if that has anything to do with these problems.

 > gem1.8 install paperclip
Successfully installed activesupport-3.0.0
Successfully installed paperclip-2.3.3
Successfully installed i18n-0.4.1
Successfully installed activemodel-3.0.0
Successfully installed arel-1.0.1
Successfully installed tzinfo-0.3.23
6 gems installed
Installing ri documentation for activesupport-3.0.0...
Installing ri documentation for paperclip-2.3.3...
Installing ri documentation for i18n-0.4.1...
Installing ri documentation for activemodel-3.0.0...
Installing ri documentation for arel-1.0.1...
Installing ri documentation for tzinfo-0.3.23...
Installing RDoc documentation for activesupport-3.0.0...
Installing RDoc documentation for paperclip-2.3.3...
Installing RDoc documentation for i18n-0.4.1...
Installing RDoc documentation for activemodel-3.0.0...
Installing RDoc documentation for arel-1.0.1...
Installing RDoc documentation for tzinfo-0.3.23...