meatbites
September 6th, 2006, 10:49 AM
I am using Ubuntu 6.06 LTS.
Basically, I had Rails working just swimmingly a few weeks ago. Then the infamous security scare came, along with a patch, and I can no longer use Rails.
Suffice it to say, I can't seem to fix this problem. I have repeatedly removed and newly installed the ruby and rails suite, yet I'm getting nowhere.
I am only just coming out from learning Ruby though, so by 'use Rails' I mean I clicked on the 'About your application's environment' link on a newly generated scaffolding(?) -- i.e.: rails generate/new/site/here. Regardless of how I have set up Rails -- even on a clean install of Dapper -- this link returns an error when I access it via localhost:3000.
Dare I say it -- is this link now not supposed to function? I have not done anything different on my system, other than install the updates as they come down.
When run in super user mode (su ruby path/to/script/server):
Routing Error
Recognition failed for "/rails/info/properties"
Ordinary user:
Application error
Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html
All permissions look fine, as far as I can tell. I did have it running fine with Apache, however I am using WEBrick to try and bring it back up.
Speaking of which, in the console it just throws a 404 error in SU mode:
su ruby /var/www/dev/test/script/server
=> Booting WEBrick...
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2006-09-07 00:45:46] INFO WEBrick 1.3.1
[2006-09-07 00:45:46] INFO ruby 1.8.4 (2005-12-24) [i486-linux]
[2006-09-07 00:45:46] INFO WEBrick::HTTPServer#start: pid=8094 port=3000
127.0.0.1 - - [07/Sep/2006:00:45:49 EST] "GET / HTTP/1.1" 304 0
- -> /
127.0.0.1 - - [07/Sep/2006:00:45:49 EST] "GET /javascripts/prototype.js HTTP/1.1" 304 0
http://localhost:3000/ -> /javascripts/prototype.js
127.0.0.1 - - [07/Sep/2006:00:45:49 EST] "GET /javascripts/effects.js HTTP/1.1" 304 0
http://localhost:3000/ -> /javascripts/effects.js
127.0.0.1 - - [07/Sep/2006:00:45:50 EST] "GET /images/rails.png HTTP/1.1" 304 0
http://localhost:3000/ -> /images/rails.png
## Click ##
127.0.0.1 - - [07/Sep/2006:00:45:51 EST] "GET /rails/info/properties HTTP/1.1" 404 610
- -> /rails/info/properties
Or a 500 error when just a standard user:
ruby /var/www/dev/test/script/server
=> Booting WEBrick...
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2006-09-07 00:44:18] INFO WEBrick 1.3.1
[2006-09-07 00:44:18] INFO ruby 1.8.4 (2005-12-24) [i486-linux]
[2006-09-07 00:44:18] INFO WEBrick::HTTPServer#start: pid=8090 port=3000
127.0.0.1 - - [07/Sep/2006:00:44:21 EST] "GET / HTTP/1.1" 304 0
- -> /
127.0.0.1 - - [07/Sep/2006:00:44:21 EST] "GET /javascripts/prototype.js HTTP/1.1" 304 0
http://localhost:3000/ -> /javascripts/prototype.js
127.0.0.1 - - [07/Sep/2006:00:44:21 EST] "GET /javascripts/effects.js HTTP/1.1" 304 0
http://localhost:3000/ -> /javascripts/effects.js
127.0.0.1 - - [07/Sep/2006:00:44:21 EST] "GET /images/rails.png HTTP/1.1" 304 0
http://localhost:3000/ -> /images/rails.png
## Click ##
127.0.0.1 - - [07/Sep/2006:00:44:23 EST] "GET /rails/info/properties HTTP/1.1" 500 309
- -> /rails/info/properties
Thoughts on this sudden error? Any help will be greatly appreciated. Even if I can be pointed to an easy to follow guide on gettings Rails running on Dapper.
Basically, I had Rails working just swimmingly a few weeks ago. Then the infamous security scare came, along with a patch, and I can no longer use Rails.
Suffice it to say, I can't seem to fix this problem. I have repeatedly removed and newly installed the ruby and rails suite, yet I'm getting nowhere.
I am only just coming out from learning Ruby though, so by 'use Rails' I mean I clicked on the 'About your application's environment' link on a newly generated scaffolding(?) -- i.e.: rails generate/new/site/here. Regardless of how I have set up Rails -- even on a clean install of Dapper -- this link returns an error when I access it via localhost:3000.
Dare I say it -- is this link now not supposed to function? I have not done anything different on my system, other than install the updates as they come down.
When run in super user mode (su ruby path/to/script/server):
Routing Error
Recognition failed for "/rails/info/properties"
Ordinary user:
Application error
Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html
All permissions look fine, as far as I can tell. I did have it running fine with Apache, however I am using WEBrick to try and bring it back up.
Speaking of which, in the console it just throws a 404 error in SU mode:
su ruby /var/www/dev/test/script/server
=> Booting WEBrick...
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2006-09-07 00:45:46] INFO WEBrick 1.3.1
[2006-09-07 00:45:46] INFO ruby 1.8.4 (2005-12-24) [i486-linux]
[2006-09-07 00:45:46] INFO WEBrick::HTTPServer#start: pid=8094 port=3000
127.0.0.1 - - [07/Sep/2006:00:45:49 EST] "GET / HTTP/1.1" 304 0
- -> /
127.0.0.1 - - [07/Sep/2006:00:45:49 EST] "GET /javascripts/prototype.js HTTP/1.1" 304 0
http://localhost:3000/ -> /javascripts/prototype.js
127.0.0.1 - - [07/Sep/2006:00:45:49 EST] "GET /javascripts/effects.js HTTP/1.1" 304 0
http://localhost:3000/ -> /javascripts/effects.js
127.0.0.1 - - [07/Sep/2006:00:45:50 EST] "GET /images/rails.png HTTP/1.1" 304 0
http://localhost:3000/ -> /images/rails.png
## Click ##
127.0.0.1 - - [07/Sep/2006:00:45:51 EST] "GET /rails/info/properties HTTP/1.1" 404 610
- -> /rails/info/properties
Or a 500 error when just a standard user:
ruby /var/www/dev/test/script/server
=> Booting WEBrick...
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2006-09-07 00:44:18] INFO WEBrick 1.3.1
[2006-09-07 00:44:18] INFO ruby 1.8.4 (2005-12-24) [i486-linux]
[2006-09-07 00:44:18] INFO WEBrick::HTTPServer#start: pid=8090 port=3000
127.0.0.1 - - [07/Sep/2006:00:44:21 EST] "GET / HTTP/1.1" 304 0
- -> /
127.0.0.1 - - [07/Sep/2006:00:44:21 EST] "GET /javascripts/prototype.js HTTP/1.1" 304 0
http://localhost:3000/ -> /javascripts/prototype.js
127.0.0.1 - - [07/Sep/2006:00:44:21 EST] "GET /javascripts/effects.js HTTP/1.1" 304 0
http://localhost:3000/ -> /javascripts/effects.js
127.0.0.1 - - [07/Sep/2006:00:44:21 EST] "GET /images/rails.png HTTP/1.1" 304 0
http://localhost:3000/ -> /images/rails.png
## Click ##
127.0.0.1 - - [07/Sep/2006:00:44:23 EST] "GET /rails/info/properties HTTP/1.1" 500 309
- -> /rails/info/properties
Thoughts on this sudden error? Any help will be greatly appreciated. Even if I can be pointed to an easy to follow guide on gettings Rails running on Dapper.