Hi, I followed as closely as I could the documents on installing a rails app on a remote web host. I have installed ruby and rails on the remote host. However when I browse to my application I get a 500 error. When I run dispatch.cgi from the command line I see this. Does anyone know what I am doing wrong? u35492438:~/test/public > ./dispatch.cgi Content-Type: text/html Set-Cookie: _session_id=26864b98d3fd44f1317ea02dd5a68291; path=/ Status: 404 Page Not Found Cache-Control: no-cache <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>Recognition failed for ""</pre></p> _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Are you even sure that 1and1 supports RoR? I host with them and the last time I checked (recently) they didn''t have any Rails support, unless I missed something. Kyle Heon kheon-Wuw85uim5zDR7s880joybQ@public.gmane.org ________________________________ From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Frank Kim Sent: Sunday, July 17, 2005 9:52 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails] problem installing rails app on 1and1 host Hi, I followed as closely as I could the documents on installing a rails app on a remote web host. I have installed ruby and rails on the remote host. However when I browse to my application I get a 500 error. When I run dispatch.cgi from the command line I see this. Does anyone know what I am doing wrong? u35492438:~/test/public > ./dispatch.cgi Content-Type: text/html Set-Cookie: _session_id=26864b98d3fd44f1317ea02dd5a68291; path=/ Status: 404 Page Not Found Cache-Control: no-cache <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>Recognition failed for ""</pre></p>
On 7/17/05, Frank Kim <mtmusko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> <h1>Routing Error</h1> > <p><pre>Recognition failed for ""</pre></p>It looks like you have a routing error. If you don''t specify a controller/action (ie http://www.mydomain.com/mycontroller/myaction) Then Rails will use the "default" route. If you look in config/routes.rb, you will see a line that looks like: map.connect '''', :controller => "foo", :action => "bar" Make sure it is uncommented and points to a valid controller/action.
My routes.rb points to one of my own controllers. This route works fine on my local computer running w/ Apache but is not working w/ on my web host and I''m not sure why. There really is no information that I can use to debug this. On 7/18/05, Belorion <belorion-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On 7/17/05, Frank Kim <mtmusko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > <h1>Routing Error</h1> > > <p><pre>Recognition failed for ""</pre></p> > > It looks like you have a routing error. If you don''t specify a > controller/action > > (ie http://www.mydomain.com/mycontroller/myaction) > > Then Rails will use the "default" route. If you look in > config/routes.rb, you will see a line that looks like: > > map.connect '''', :controller => "foo", :action => "bar" > > Make sure it is uncommented and points to a valid controller/action. >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
1and1 doesn''t support RoR by default but I installed rails and ruby locally. I have some of it working but obviously it is failing when I try to load the RoR app. On 7/18/05, Kyle Heon <kheon-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote:> > Are you even sure that 1and1 supports RoR? I host with them and the last > time I checked (recently) they didn''t have any Rails support, unless I > missed something. > > Kyle Heon > kheon-Wuw85uim5zDR7s880joybQ@public.gmane.org > > > > ________________________________ > > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Frank Kim > Sent: Sunday, July 17, 2005 9:52 PM > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails] problem installing rails app on 1and1 host > > > Hi, > > I followed as closely as I could the documents on installing a rails app > on > a remote web host. I have installed ruby and rails on the remote host. > However when I browse to my application I get a 500 error. > > When I run dispatch.cgi from the command line I see this. Does anyone know > what I am doing wrong? > > u35492438:~/test/public > ./dispatch.cgi > Content-Type: text/html > Set-Cookie: _session_id=26864b98d3fd44f1317ea02dd5a68291; path=/ > Status: 404 Page Not Found > Cache-Control: no-cache > > <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>Recognition failed for ""</pre></p> > > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
To add more information to what I said. In my application my routes.rbpoints to one of my own controller but that application failed to load so I created a vanilla test RoR application. In that application public/index.html is untouched and in routes.rb the map.connect line is commented. This RoR application also fails to load. Any idea why this would be happening? On 7/18/05, Frank Kim <mtmusko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > My routes.rb points to one of my own controllers. This route works fine on > my local computer running w/ Apache but is not working w/ on my web host and > I''m not sure why. There really is no information that I can use to debug > this. > > On 7/18/05, Belorion <belorion-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > On 7/17/05, Frank Kim <mtmusko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > <h1>Routing Error</h1> > > > <p><pre>Recognition failed for ""</pre></p> > > > > It looks like you have a routing error. If you don''t specify a > > controller/action > > > > (ie http://www.mydomain.com/mycontroller/myaction) > > > > Then Rails will use the "default" route. If you look in > > config/routes.rb, you will see a line that looks like: > > > > map.connect '''', :controller => "foo", :action => "bar" > > > > Make sure it is uncommented and points to a valid controller/action. > > > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On 7/18/05, Frank Kim <mtmusko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> To add more information to what I said. In my application my routes.rb > points to one of my own controller but that application failed to load so I > created a vanilla test RoR application. In that application > public/index.html is untouched and in routes.rb the map.connect line is > commented. This RoR application also fails to load. > > Any idea why this would be happening?Does this look anything like your problem? http://forum.textdrive.com/viewtopic.php?id=4597
Frank, Just a follow up to this thread. Were you ever able to get Rails to work on 1and1? I have that service as well, and were told by them that I would have to upgrade to a dedicated server in order to have Ruby and Rails. -Larry> > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Last I heard he was looking into other hosting providers. - Ben On Jul 28, 2005, at 11:47 AM, Larry Kelly wrote:> Frank, > Just a follow up to this thread. Were you ever able to get Rails to > work on 1and1? I have that service as well, and were told by them > that I would have to upgrade to a dedicated server in order to have > Ruby and Rails. > > -Larry >> >> > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >___________________ Ben Jackson Diretor de Desenvolvimento +55 (21) 9997-0593 ben-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org http://www.incomumdesign.com