PDA

View Full Version : Rails application failed to start properly


slava
January 7th, 2008, 12:11 PM
Hello,
I am having difficulties setting up a rails app on a hosted machine. I get an error
Rails application failed to start properly when I go to front page of my site.
I followed instructions from a few troubleshooting threads, but no luck yet :(
I checked dispatch.* for proper ruby line, and permissions 755, I tried running dispatch.* from shell with this result

Status: 404 Not Found
Cache-Control: no-cache
Content-Length: 606

<html>
<head>
<title>Action Controller: Exception caught</title>
<style>
body { background-color: #fff; color: #333; }

body, p, ol, ul, td {
font-family: verdana, arial, helvetica, sans-serif;
font-size: 13px;
line-height: 18px;
}

pre {
background-color: #eee;
padding: 10px;
font-size: 11px;
}

a { color: #000; }
a:visited { color: #666; }
a:hover { color: #fff; background-color:#000; }
</style>
</head>
<body>

<h1>Routing Error</h1>
<p><pre>No route matches &quot;&quot; with {:method=&gt;:get}</pre></p>



</body>
</html>
I tried script/console and got a successfull connect to db, so I know that is not the problem. fastcgi.log says
[07/Jan/2008:10:04:03 :: 20987] starting
[07/Jan/2008:10:04:03 :: 20987] stopping gracefully

not sure what else to try.. any ideas please

rob
January 7th, 2008, 02:35 PM
Check out our Ruby on Rails troubleshooting checklist (http://wiki.ocssolutions.com/Troubleshooting_a_Ruby_on_Rails_Application). It contains a list of common problems and solutions for them.

Also, when troubleshooting, don't try to get fastcgi working right off, start with Webrick and move up from there.

slava
January 8th, 2008, 12:44 AM
Thank you for response. I followed instructions on the page you gave, but still no luck . I tried webrick but a call to mysite:3000 times out. so to sum up I can run dispatch scripts from command line with response 404 (see previous post), I can query db from script/console and I can start webrick but it is not accessible. I checked all file permissions and they are what is described in instructions. Also, the logs only show calls to dispatch from shell, not http.
strange.. any other ideas?

thank you
slava