SpringAll icon indicating copy to clipboard operation
SpringAll copied to clipboard

Error in "bundle exec thin start"

Open jacohend opened this issue 16 years ago • 34 comments

$ sudo bundle exec thin start

Using rack adapter Thin web server (v1.2.7 codename No Hup) Maximum connections set to 1024 Listening on 0.0.0.0:3000, CTRL+C to stop /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in start_tcp_server': no acceptor (RuntimeError) from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:instart_server' from /usr/lib/ruby/gems/1.8/gems/em-websocket-0.1.4/lib/../lib/em-websocket/websocket.rb:14:in start' from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:241:incall' from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:241:in run' from /usr/lib/ruby/gems/1.8/gems/em-websocket-0.1.4/lib/../lib/em-websocket/websocket.rb:9:instart' from /home/lmeditato/Diaspora/diaspora/config/initializers/socket.rb:12 from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:996:in call' from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:996:inrun_deferred_callbacks' from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:996:in each' from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:996:inrun_deferred_callbacks' from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:inrun' from /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in start' from /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:instart' from /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/controllers/controller.rb:80:in start' from /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/runner.rb:177:insend' from /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/runner.rb:177:in run_command' from /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/runner.rb:143:inrun!' from /usr/lib/ruby/gems/1.8/gems/thin-1.2.7/bin/thin:6 from /usr/lib/ruby/gems/1.8/bin/thin:19:in `load' from /usr/lib/ruby/gems/1.8/bin/thin:19

jacohend avatar Sep 16 '10 03:09 jacohend

I get this as well, I'm running on Arch Linux x86_64. To see what I've done so far see this forum post: https://bbs.archlinux.org/viewtopic.php?id=105000

LeeFxx avatar Sep 16 '10 06:09 LeeFxx

Same here on Debian unstable.

Leobaillard avatar Sep 16 '10 11:09 Leobaillard

Same here on Fedora 13 with ruby 1.8.7 backported from Rawhide.

outergod avatar Sep 16 '10 12:09 outergod

Me too
Snow Leopard 10.6.4
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

followed howto by the book [edit] no difference if you use sudo or not: ErrorCode: sanctus:diaspora lucither$ bundle exec thin start

Using rack adapter /Library/Ruby/Gems/1.8/gems/ruby-debug-base-0.10.3/lib/ruby_debug.bundle: dlopen(/Library/Ruby/Gems/1.8/gems/ruby-debug-base-0.10.3/lib/ruby_debug.bundle, 9): no suitable image found. Did find: (LoadError) /Library/Ruby/Gems/1.8/gems/ruby-debug-base-0.10.3/lib/ruby_debug.bundle: no matching architecture in universal wrapper - /Library/Ruby/Gems/1.8/gems/ruby-debug-base-0.10.3/lib/ruby_debug.bundle from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in require' from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:inload_dependency' from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in new_constants_in' from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:inload_dependency' from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in require' from /Library/Ruby/Gems/1.8/gems/ruby-debug-base-0.10.3/lib/ruby-debug-base.rb:1 from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:inrequire' from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in require' from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:inload_dependency' from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in new_constants_in' from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:inload_dependency' from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in require' from /Library/Ruby/Gems/1.8/gems/ruby-debug-0.10.3/cli/ruby-debug.rb:5 from /Library/Ruby/Gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:64:inrequire' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:64:in require' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:62:ineach' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:62:in require' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:51:ineach' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:51:in require' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.0/lib/bundler.rb:112:inrequire' from /Users/lucither/diaspora/config/application.rb:14 from /Users/lucither/diaspora/config/environment.rb:8:in require' from /Users/lucither/diaspora/config/environment.rb:8 from /Users/lucither/diaspora/config.ru:9:inrequire' from /Users/lucither/diaspora/config.ru:9 from /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in instance_eval' from /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:ininitialize' from /Users/lucither/diaspora/config.ru:1:in `new' from /Users/lucither/diaspora/config.ru:1

LucitheR avatar Sep 16 '10 12:09 LucitheR

this might be different for others but i check process running. (under ubuntu)

ps -u root

Ruby1.8

Killed the process and tried the "bundle exec thin start" again and it worked just a heads up for those with this error this fix may apply to them.

spenner avatar Sep 16 '10 12:09 spenner

On my first try this was due to running the PREVIOUS command "bundle install" as root or via sudo. Re-git your sources and try again, it worked for me once I figured that out.

philnelson avatar Sep 16 '10 14:09 philnelson

I am experiencing the same problem on Ubuntu Lucid. There is no ruby process running and running bundle install again did not help either (though it did prompt me for my password and so might have been invoking sudo). philnelson: when you say Re-git your sources does that mean delete the diaspora directory and do a new git clone (which is what I tried)? or delete /usr/lib/ruby/gems/1.8/gems/* and try bundle install again (I haven't tried that as bundle doesn't seem to come with an uninstall option and I want to uninstall cleanly)?

drt24 avatar Sep 16 '10 15:09 drt24

Same problem here using Ubuntu lucid.

cacciaresi avatar Sep 16 '10 16:09 cacciaresi

drt24: If you want to have clean gem sets, try using rvm: http://rvm.beginrescueend.com/

Just create an .rvmrc file with something like "rvm 1.8.7@my-diaspora" in it and it will maintain a separate set of gems.

jarinudom avatar Sep 16 '10 16:09 jarinudom

Nope. Multiple purges, ran bundle install without root, etc. Tried with Ruby running, and Ruby not running. No joy. I'm giving up.

using Ubuntu.

jacohend avatar Sep 16 '10 17:09 jacohend

same problem here using ubuntu karmic.

j-gaikwad avatar Sep 16 '10 19:09 j-gaikwad

have you tried: bundle config bundle install

madmaze avatar Sep 16 '10 21:09 madmaze

It works here on Ubuntu Lucid; however, I use rvm. LucitheR: you could just try commenting out ruby-debug in Gemfile to get it working. You will lose some debug functionality, though.

fwalch avatar Sep 16 '10 21:09 fwalch

Okay... I could reproduce the error locally. It occurs if a server is already running at 0.0.0.0:3000. Could that be the reason? What does lsof -i :3000 say?

fwalch avatar Sep 16 '10 21:09 fwalch

i checked that, dont have anything else on 3000. Also tried a different port and still no go

j-gaikwad avatar Sep 16 '10 21:09 j-gaikwad

Would have been too easy, eh? Well... if you just use "rails s"? That will use WEBrick instead of thin, so some things might not be working but maybe at least the server will come up.

fwalch avatar Sep 16 '10 21:09 fwalch

yup that works, i'll see how it goes for now. did toss up a fresh install of ubuntu lucid in vbox and was able to install and run this without a hitch.

j-gaikwad avatar Sep 16 '10 21:09 j-gaikwad

@ fwalch

Are you talking about running $bundle exec rails s

jacohend avatar Sep 16 '10 21:09 jacohend

@Meditato Actually just "rails s", but $bundle exec rails s should do the same.

fwalch avatar Sep 16 '10 21:09 fwalch

I can confirm that using 'rails s' and 'bundle exec rails s' both clear up the error that thin throws.

LeeFxx avatar Sep 16 '10 22:09 LeeFxx