I''ve just tried to deploy my rails application with switchtower. It appears to have been transferred correctly, but I can''t get it to work. When I try to open a page, it takes forever, before "Application error - Rails application failed to start properly" shows up (even in development mode). No log files show up, so I cannot find out what''s wrong. Any suggestions?
On Nov 19, 2005, at 11:56 AM, Jeroen Heijmans wrote:> I''ve just tried to deploy my rails application with switchtower. It > appears to have been transferred correctly, but I can''t get it to > work. When I try to open a page, it takes forever, before > "Application error - Rails application failed to start properly" > shows up (even in development mode). No log files show up, so I > cannot find out what''s wrong.A few things that commonly bite me in production: * Are the permissions on the log directory (and log files, if applicable) such that they can be written to by the appropriate user? * If using apache, is your .htaccess file configured correctly for production? * Does anything show up in the apache access/error logs? - Jamis
Jeroen Heijmans
2005-Nov-19 19:43 UTC
Re: Switchtower problem: Application error and no logs
On 19-nov-2005, at 20:30, Jamis Buck wrote:> A few things that commonly bite me in production: > > * Are the permissions on the log directory (and log files, if > applicable) such that they can be written to by the appropriate user?Yes, they are. Also, if I read it correctly, Switchtower should set these permissions.> * If using apache, is your .htaccess file configured correctly for > production?I''m using the same .htaccess file that works for my non-Switchtower- deployed application, which works fine. It is really just the default .htaccess file, but with FastCGI.> * Does anything show up in the apache access/error logs?Yes, the requests show up in the log, but no errors are listed.
On Nov 19, 2005, at 12:43 PM, Jeroen Heijmans wrote:> On 19-nov-2005, at 20:30, Jamis Buck wrote: >> A few things that commonly bite me in production: >> >> * Are the permissions on the log directory (and log files, if >> applicable) such that they can be written to by the appropriate user? > > Yes, they are. Also, if I read it correctly, Switchtower should set > these permissions.It should, yes. But if you''ve tried to run something by hand (like a migration) before your app ever ran, the log files will be created with you as the owner, and may not be writable by the web user. Anyway, you''ve said the permissions are good, so this isn''t the problem. Are there any files in the log directory?> >> * If using apache, is your .htaccess file configured correctly for >> production? > > I''m using the same .htaccess file that works for my non-Switchtower- > deployed application, which works fine. It is really just the > default .htaccess file, but with FastCGI. > >> * Does anything show up in the apache access/error logs? > > Yes, the requests show up in the log, but no errors are listed.Ok. Now for the obvious questions then, just to get them out of the way: * You''ve verified that the fastcgi processes are indeed running? * You''ve tried restarting apache? * You''ve tried killing the fastcgi listeners? * Do you have any other rails/fastcgi applications on that machine? Sorry I can''t give more on-target advice. Hard to know what the issue is without actually sitting down at the machine. - Jamis
Jeroen Heijmans
2005-Nov-19 20:04 UTC
Re: Switchtower problem: Application error and no logs
On 19-nov-2005, at 20:57, Jamis Buck wrote:> It should, yes. But if you''ve tried to run something by hand (like > a migration) before your app ever ran, the log files will be > created with you as the owner, and may not be writable by the web > user. Anyway, you''ve said the permissions are good, so this isn''t > the problem. > > Are there any files in the log directory?No, there aren''t any.> * You''ve verified that the fastcgi processes are indeed running? > * You''ve tried restarting apache? > * You''ve tried killing the fastcgi listeners? > * Do you have any other rails/fastcgi applications on that machine? > > Sorry I can''t give more on-target advice. Hard to know what the > issue is without actually sitting down at the machine.No problem, I appreciate the help. I cannot restart apache, as I am not allowed to on my webhost''s machine. I was able to kill the fastcgi/ruby processes, and I killed them, but that didn''t help. I''m running my current (non-Switchtower-deployed) application on the same server, and there are possibly other users doing the same (although I can''t tell).
Ever try running dispatch.fcgi directly? On 11/19/05, Jeroen Heijmans <rails-navLQF7bQP5WbXBheyDZMNBPR1lH4CV8@public.gmane.org> wrote:> I''ve just tried to deploy my rails application with switchtower. It > appears to have been transferred correctly, but I can''t get it to > work. When I try to open a page, it takes forever, before > "Application error - Rails application failed to start properly" > shows up (even in development mode). No log files show up, so I > cannot find out what''s wrong. > > Any suggestions? > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Jeroen Heijmans
2005-Nov-20 10:41 UTC
Re: Switchtower problem: Application error and no logs
No, but I did now, and I got some useful information in the log. Thanks! On 19-nov-2005, at 21:06, Kyle Maxwell wrote:> Ever try running dispatch.fcgi directly? > > On 11/19/05, Jeroen Heijmans <rails-navLQF7bQP5WbXBheyDZMNBPR1lH4CV8@public.gmane.org> wrote: >> I''ve just tried to deploy my rails application with switchtower. It >> appears to have been transferred correctly, but I can''t get it to >> work. When I try to open a page, it takes forever, before >> "Application error - Rails application failed to start properly" >> shows up (even in development mode). No log files show up, so I >> cannot find out what''s wrong. >> >> Any suggestions? >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >