Error in "bundle exec thin start"
$ 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:instart' 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:inrun' 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:incall' 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:ineach' 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:inrun_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:instart' 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:instart' 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:inrun_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
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
Same here on Debian unstable.
Same here on Fedora 13 with ruby 1.8.7 backported from Rawhide.
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:innew_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:inrequire' 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:inrequire' 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:innew_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:inrequire' 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:inrequire' 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:inrequire' 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:inrequire' 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:inrequire' 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:ininstance_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
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.
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.
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)?
Same problem here using Ubuntu lucid.
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.
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.
same problem here using ubuntu karmic.
have you tried: bundle config bundle install
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.
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?
i checked that, dont have anything else on 3000. Also tried a different port and still no go
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.
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.
@ fwalch
Are you talking about running $bundle exec rails s
@Meditato Actually just "rails s", but $bundle exec rails s should do the same.
I can confirm that using 'rails s' and 'bundle exec rails s' both clear up the error that thin throws.