Welcome Guest | Login

dispatch.fcgi exit(communication error)

I am trying to get Radiant up and running for a subdomain.

Yes I have followed all the tutorials and yes all the permissions and the shebang lines are correct.

I have 2 other FCGI rails app running fine and I previously had Radiant running just fine (about 2 months ago...).

I saw that Radiant 0.6 is out and wanted to try it. I got the same error so figured it was Radiant not playing well. Then I went back to the tutorial (that worked before) and I was getting the same error.

The following is what the error_log says:

[Fri Apr 27 12:30:30 2007] [notice] mod_fcgid: process /home/erbmicha/public_html/vocc/dispatch.fcgi(2361) exit(communication error), terminated by calling exit(), return code: 118
[Fri Apr 27 12:30:24 2007] [notice] mod_fcgid: server /home/erbmicha/public_html/vocc/dispatch.fcgi(2361) started

anyone have any ideas?

Thanks!!!

2007-04-27 12:53 PM

What is the link or subdomain where this troubled app is running ?

Could you paste in your production log?

Thanks

2007-04-27 03:23 PM

http://www.villagesofcountrycreek.com

production log just has:

# Logfile created on Fri Apr 27 12:26:07 -0500 2007 by logger.rb/1.5.2.9

2007-04-27 04:41 PM

Hello,

Could you please check your apache logs too. Also make sure that "dispatch.fcgi" is having the correct permission. It should be 755.

~Kumar

2007-04-28 01:11 AM

HostingRails Support
the dispatch.fcgi permissions are correct. I'm starting to think this is a Radiant 0.6 thing because I have other rails apps running on fastcgi.
i have frozen all the radiant gems and had everything running locally just fine but i get the same dispatch.fcgi exit(communication error) in the apache error_log.
i've even followed the Radiant tutorial here and get the same error.
i am at a total loss. any help on what to troubleshoot next would be greatly appreciated.

2007-05-04 11:04 PM

Could you post a ticket with our support department ?
We'll have a look at your settings.

Thank you,
~Varun

2007-05-05 12:49 AM

I'm getting this same error on my app, since I installed ferret
by the way, radiant uses ferret too.. that might be related, no?

2007-05-06 12:16 PM

Hi Herval,

These type of errors usually occurs when there is permission issues or if there is some misconfiguration in your application files. Could you please refer our tutorial links given below for correcting Common Ruby on Rails Deployment Mistakes that usually occurs.  
http://www.hostingrails.com/forums/wiki_thread/15http://www.hostingrails.com/forums/wiki_thread/9

If you're still having trouble please email support team and our techs will take a look.

2007-05-06 01:30 PM

HostingRails Support
Hello,

I too am suffering from the same problem.

I'm creating an empty rails app on the server. This runs fine with fcgi and gives me the expected routing error, which is recorded in the rails development log. However, when I freeze edge rails (stable, revision 6680) to the application I get the following in the main error log:
[Sun May 06 15:09:25 2007] [notice] mod_fcgid: process /home/xxxx/public_html/dispatch.fcgi(8138) exit(communication error), terminated by calling exit(), return code: 1
   from /home/xxxx/test/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'
   from /home/xxxx/test/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
   from /home/xxxx/test/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'
[Sun May 06 15:09:22 2007] [info] mod_fcgid: server /home/xxx/public_html/dispatch.fcgi(8138) started
Fcgi is giving up on me within seconds. The ror logs remain silent.

If I unfreeze from edge, fcgi kicks up again, and all is well.

The account I'm working with is frenchpropertyseller.com.

I desperately need to run with edge, because my application is using the .erb postfix on template files, and gem rails throws up an error, complaining about not being able to find 'application.rhtml' etc.

Any ideas?

Thanks

2007-05-06 03:32 PM

Hello Camilo,

Could you please email support [at] hostingrails [dot] com regarding this. We'll have a look at it.

2007-05-06 04:07 PM

HostingRails Support
Camilo, yeah - you're just seeing the common error that FastCGI throws when Rails doesn't start up.  EDGE may have messed around with the .htaccess, dispatchers, or environment.rb such that they aren't playing nice.  I'd imagine this will get fixed soon (in fact, here's your chance to be a Rails contributer....if you see an error in the traceroute dispatch.fcgi takes to firing up Rails...submit a patch).  Or..of course...it could just be something like a typo somewhere.

2007-05-06 04:14 PM

Folks... - I struggled with a dispatch.fcgi problem for a while.  It turned out that although the file appeared to have the exact correct content, there was some problem with line delimiters in it.  A fresh dispatch.fcgi generated on the host contains 861 bytes at the time of writing.  Mine had 885 bytes.  Exactly 24 bytes more, which is the number of lines in the file.  Once I replaced my file with the 861 byte version all was good.

2007-05-06 07:39 PM

mine has 861 bytes and it's not working... :(

2007-05-07 05:43 PM

Could you post a ticket with our support department ?
We'll have a look at your settings.

Thank you,
Kumar

2007-05-07 11:50 PM

HostingRails Support
I've just finished deploying up my rails application using subversion and capistrano, but all I'm geting is a big HTTP 500 Internal Server error. I've gone through your list of likely problems and fixed anything that was wrong.

My production log is empty and the error log in cpanel gives me

[Sun May 13 10:11:18 2007] [notice] mod_fcgid: process /home/****/public_html/dispatch.fcgi(17666) exit(communication error), terminated by calling exit(), return code: 116
[Sun May 13 10:11:15 2007] [notice] mod_fcgid: server /home/****/public_html/dispatch.fcgi(17666) started
[Sun May 13 10:11:14 2007] [notice] mod_fcgid: process /home/****/public_html/dispatch.fcgi(17664) exit(communication error), terminated by calling exit(), return code: 116
[Sun May 13 10:11:14 2007] [notice] mod_fcgid: process /home/****/public_html/dispatch.fcgi(17665) exit(communication error), terminated by calling exit(), return code: 116
[Sun May 13 10:11:14 2007] [notice] mod_fcgid: too much /home/****/public_html/dispatch.fcgi process(current:2, max:2), skip the spawn request
[Sun May 13 10:11:13 2007] [notice] mod_fcgid: too much /home/****/public_html/dispatch.fcgi process(current:2, max:2), skip the spawn request
[Sun May 13 10:11:11 2007] [notice] mod_fcgid: server /home/****/public_html/dispatch.fcgi(17665) started
[Sun May 13 10:11:10 2007] [notice] mod_fcgid: server /home/****/public_html/dispatch.fcgi(17664) started
[Sun May 13 10:11:00 2007] [notice] mod_fcgid: process /home/****/public_html/dispatch.fcgi(17627) exit(communication error), terminated by calling exit(), return code: 116
[Sun May 13 10:10:57 2007] [notice] mod_fcgid: server /home/****/public_html/dispatch.fcgi(17627) started


Please can someone suggest where I should be looking next for a solution?

Thanks

Martin

2007-05-13 12:03 PM

Hello Martin,

Could you please post a ticket regarding this to the support department. We need to have more details about your account and need to check your account in detail. So it will be better if you could post one to the support department.

2007-05-13 12:10 PM

was this resolved? im getting the same problem :(

i tried running dispatch.fcgi manually and i got

./../config/../vendor/rails/railties/lib/initializer.rb:49:in `send': undefined                                   method `install_gem_spec_stubs' for #<Rails::Initializer:0xb7ea4428> (NoMethodEr                                  ror)
       from ./../config/../vendor/rails/railties/lib/initializer.rb:49:in `run'
       from ./../config/boot.rb:46:in `load_initializer'
       from ./../config/boot.rb:38:in `run'
       from ./../config/boot.rb:11:in `boot!'
       from ./../config/boot.rb:109
       from ./../config/environment.rb:4:in `require'
       from ./../config/environment.rb:4
       from dispatch.fcgi:21:in `require'
       from dispatch.fcgi:21

2008-06-12 04:40 AM

Try unfreezing Rails from your app - make sure there are no rails folders in /vendor - restart your server (or kill dispatch.fcgi) - does the error go away?

2008-06-12 06:56 PM

I'm running into this error now in my apache log.  
[Fri Jun 27 08:45:05 2008] [notice] mod_fcgid: process /home/fiorini/public_html/clerb/dispatch.fcgi(5783) exit(communication error), terminated by calling exit(), return code: 1
[Fri Jun 27 08:45:05 2008] [notice] mod_fcgid: process /home/fiorini/public_html/clerb/dispatch.fcgi(5751) exit(communication error), terminated by calling exit(), return code: 1
[Fri Jun 27 08:45:02 2008] [notice] mod_fcgid: server /home/fiorini/public_html/clerb/dispatch.fcgi(5783) started
[Fri Jun 27 08:45:00 2008] [notice] mod_fcgid: process /home/fiorini/public_html/dispatch.fcgi(26647) exit(normal exit), terminated by calling exit(), return code: 0
[Fri Jun 27 08:45:00 2008] [notice] mod_fcgid: process /home/fiorini/public_html/faithfulgeek/dispatch.fcgi(24442) exit(normal exit), terminated by calling exit(), return code: 0
[Fri Jun 27 08:45:00 2008] [notice] mod_fcgid: server /home/fiorini/public_html/clerb/dispatch.fcgi(5751) started
[Fri Jun 27 08:38:30 2008] [notice] mod_fcgid: process /home/fiorini/public_html/clerb/dispatch.fcgi(4985) exit(communication error), terminated by calling exit(), return code: 1
[Fri Jun 27 08:38:30 2008] [notice] mod_fcgid: process /home/fiorini/public_html/clerb/dispatch.fcgi(4983) exit(communication error), terminated by calling exit(), return code: 1
[Fri Jun 27 08:38:24 2008] [notice] mod_fcgid: server /home/fiorini/public_html/clerb/dispatch.fcgi(4985) started
[Fri Jun 27 08:38:22 2008] [notice] mod_fcgid: server /home/fiorini/public_html/clerb/dispatch.fcgi(4983) started
[Fri Jun 27 08:37:43 2008] [notice] mod_fcgid: process /home/fiorini/public_html/clerb/dispatch.fcgi(4890) exit(communication error), terminated by calling exit(), return code: 1
[Fri Jun 27 08:37:43 2008] [notice] mod_fcgid: process /home/fiorini/public_html/clerb/dispatch.fcgi(4888) exit(communication error), terminated by calling exit(), return code: 1
[Fri Jun 27 08:37:40 2008] [notice] mod_fcgid: server /home/fiorini/public_html/clerb/dispatch.fcgi(4890) started
[Fri Jun 27 08:37:39 2008] [notice] mod_fcgid: server /home/fiorini/public_html/clerb/dispatch.fcgi(4888) started

But if I run "ruby public/dispatch.fcgi" it prints out the content of my homepage.  I was running on edge, but I rm'd that to go to an install of the 2.1 gem to a local ~/.gems directory.

Any thoughts?

Thanks!
Joe

2008-06-27 08:48 AM

Joe Fiorini
faithfulgeek.org
I've unpacked the rails 2.1 version to your vendor folder and also installed ruby-openid version 2.0.4 and unpacked to your vendor folder. You can follow our tutorial at   http://www.hostingrails.com/forums/wiki_thread/2 to install and freeze your own rubygems.

Your site is working fine now.

2008-06-27 10:21 AM

Thank you very much Santhi.  I thought I'd covered all the gems, guess not!

2008-06-27 12:32 PM

Joe Fiorini
faithfulgeek.org
Hi Guys,

What causes this issue ?

I've got the same problem when I try to run Spree ( http://www.spreehq.org/ ). I can see it only in error log in cPanel X:

[Sun Oct 12 15:14:17 2008] [notice] mod_fcgid: process /home/*****/public_html/dispatch.fcgi(4079) exit(communication error), terminated by calling exit(), return code: 1

However I can run the application by running script/server.

Ruby dispatch.fcgi shows happy website - no errors.

cheers,
Jakub

2008-10-12 04:17 PM

Hi Malva,

While starting the fcgi process using the command ./dispatch.fcgi, from the location ~/spree/public. I got the following traces

=========

These gems that this application depends on are missing:
- has_many_polymorphs
- activemerchant
- tlsmail

=========

I have now installed the required gems and your rails app is loading fine. Please verify it from your end.

2008-10-12 08:51 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.