Error running Freehub

5 views
Skip to first unread message

J.P. Lien

unread,
Jun 7, 2010, 9:57:37 PM6/7/10
to Freehub Users
All,

I'm a new user/developer. I hope to work with Tony O. to bring
Freehub to the Durham Bike Co-op. I've hit a snag trying to get the
app set up. I installed it from git and it passes `rake test`. When
I run `script/server` and try to browse to it, I get most of the app
(all the text is there, and the link to the movie), but it seems to
have not loaded the CSS, because the format is all wrong. In the
server console I get a bunch of the errors below. I can't make heads
or tails of them. One possible problem is that I installed rails
2.0.2 from svn in the vendor tree because I already have rails 2.3.2
installed locally for other projects.

Also the link to the wiki on freehub.bikekitchen.org still points to
the old trac site.

127.0.0.1 - - [07/Jun/2010:21:42:19 EDT] "GET /javascripts/
prototype.js?1275879210 HTTP/1.1" 500 343
Referer -> /javascripts/prototype.js?1275879210
[2010-06-07 21:42:19] ERROR NoMethodError: private method `gsub!'
called for #<Class:0x7f9e14865ee8>
/usr/lib/ruby/1.8/webrick/htmlutils.rb:16:in `escape'
/usr/lib/ruby/1.8/webrick/httpresponse.rb:232:in `set_error'
/home/jplien/devel/freehub/vendor/rails/railties/lib/
webrick_server.rb:103:in `handle_file'
/home/jplien/devel/freehub/vendor/rails/railties/lib/
webrick_server.rb:75:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/home/jplien/devel/freehub/vendor/rails/railties/lib/
webrick_server.rb:62:in `dispatch'
/home/jplien/devel/freehub/vendor/rails/railties/lib/commands/servers/
webrick.rb:66
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/jplien/devel/freehub/vendor/rails/activesupport/lib/
active_support/dependencies.rb:496:in `require'
/home/jplien/devel/freehub/vendor/rails/activesupport/lib/
active_support/dependencies.rb:342:in `new_constants_in'
/home/jplien/devel/freehub/vendor/rails/activesupport/lib/
active_support/dependencies.rb:496:in `require'
/home/jplien/devel/freehub/vendor/rails/railties/lib/commands/
server.rb:39
script/server:3:in `require'
script/server:3

Alon Salant

unread,
Jun 7, 2010, 11:32:48 PM6/7/10
to freehu...@googlegroups.com
Hey JP,

Welcome!

You shouldn't need to vendor Rails to use 2.0.2 along side 2.3.2. Just
run 'gem install rails -v 2.0.2'. The environment.rb config file in
your Rails apps specifies the version of Rails to use so that you can
have multiple versions installed.

From the stack you sent it does look like something with Rails tying
into webrick. Another thing you could try is to install mongrel 'gem
install mongrel' which Rails will use instead of Webrick if it is
available to start a server.

Alon

> --
> You received this message because you are subscribed to the Google Groups "Freehub Users" group.
> To post to this group, send email to freehu...@googlegroups.com.
> To unsubscribe from this group, send email to freehub-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/freehub-users?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages