Pat Maddox
2006-Jan-30 13:04 UTC
[Rails] What is supposed to happen when you run dispatch.fcgi?
I''ve seen a number of posts where someone says, "What happens if you just run dispatch.fcgi directly?" Every time I do it, I get a "500: internal server error" message. I was just curious if that''s what''s expected running it directly. I assume so, because my apps all work fine, but that''s always bugged me. Pat
Raghuraman Suraj
2006-Jan-30 13:51 UTC
[Rails] What is supposed to happen when you run dispatch.fcgi?
Dispather is used to call the rails handler which in turn will look into the routes.rb & decide the controllers, action with what parameter, so when u call the dispatch.fcgi directly, their are no parameters so it will give a routing error & hence in deployment mode you will get page not found, if ur not getting that error chk the server log. On Mon, 2006-01-30 at 06:04 -0700, Pat Maddox wrote:> I''ve seen a number of posts where someone says, "What happens if you > just run dispatch.fcgi directly?" Every time I do it, I get a "500: > internal server error" message. I was just curious if that''s what''s > expected running it directly. I assume so, because my apps all work > fine, but that''s always bugged me. > > Pat > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >
Pat Maddox
2006-Jan-30 14:13 UTC
[Rails] What is supposed to happen when you run dispatch.fcgi?
baggio:~/work/teore-1_0 pergesu$ ./public/dispatch.fcgi Status: 500 Internal Server Error [30/Jan/2006:07:10:54 :: 6800] starting [30/Jan/2006:07:10:55 :: 6800] terminated gracefully Nothing in any other logs. On 1/30/06, Raghuraman Suraj <raghuramans@subexsystems.com> wrote:> Dispather is used to call the rails handler which in turn will look into > the routes.rb & decide the controllers, action with what parameter, so > when u call the dispatch.fcgi directly, their are no parameters so it > will give a routing error & hence in deployment mode you will get page > not found, if ur not getting that error chk the server log. > > > > > > > On Mon, 2006-01-30 at 06:04 -0700, Pat Maddox wrote: > > I''ve seen a number of posts where someone says, "What happens if you > > just run dispatch.fcgi directly?" Every time I do it, I get a "500: > > internal server error" message. I was just curious if that''s what''s > > expected running it directly. I assume so, because my apps all work > > fine, but that''s always bugged me. > > > > Pat > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Since you''re not speaking to the dispatcher in the FCGI protocol, I think the 500 is normal.> From: Pat Maddox <pergesu@gmail.com> > Reply-To: <rails@lists.rubyonrails.org> > Date: Mon, 30 Jan 2006 07:13:39 -0700 > To: <rails@lists.rubyonrails.org> > Subject: Re: [Rails] What is supposed to happen when you run dispatch.fcgi? > > baggio:~/work/teore-1_0 pergesu$ ./public/dispatch.fcgi > Status: 500 Internal Server Error > [30/Jan/2006:07:10:54 :: 6800] starting > [30/Jan/2006:07:10:55 :: 6800] terminated gracefully > > Nothing in any other logs. > > On 1/30/06, Raghuraman Suraj <raghuramans@subexsystems.com> wrote: >> Dispather is used to call the rails handler which in turn will look into >> the routes.rb & decide the controllers, action with what parameter, so >> when u call the dispatch.fcgi directly, their are no parameters so it >> will give a routing error & hence in deployment mode you will get page >> not found, if ur not getting that error chk the server log. >> >> >> >> >> >> >> On Mon, 2006-01-30 at 06:04 -0700, Pat Maddox wrote: >>> I''ve seen a number of posts where someone says, "What happens if you >>> just run dispatch.fcgi directly?" Every time I do it, I get a "500: >>> internal server error" message. I was just curious if that''s what''s >>> expected running it directly. I assume so, because my apps all work >>> fine, but that''s always bugged me. >>> >>> Pat >>> _______________________________________________ >>> Rails mailing list >>> Rails@lists.rubyonrails.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >>> >> >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Ezra Zygmuntowicz
2006-Jan-30 17:57 UTC
[Rails] What is supposed to happen when you run dispatch.fcgi?
On Jan 30, 2006, at 5:04 AM, Pat Maddox wrote:> I''ve seen a number of posts where someone says, "What happens if you > just run dispatch.fcgi directly?" Every time I do it, I get a "500: > internal server error" message. I was just curious if that''s what''s > expected running it directly. I assume so, because my apps all work > fine, but that''s always bugged me. > > Pat > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >Pat- 500 Internal Server error is the correct thing to see when you run dispatch.fcgi from the cli. It is expecting to be spoken to in the fcgi protocol and when its not it will return a 500. Once and for all running dispatch.fcgi from the cli will return a 500 error even when your server is set up perfectly. Cheers- -Ezra Zygmuntowicz Yakima Herald-Republic WebMaster http://yakimaherald.com 509-577-7732 ezra@yakima-herald.com