Re: [D*] Error when running Diaspora

261 views
Skip to first unread message

Jonne Haß

unread,
Jul 5, 2012, 5:23:01 AM7/5/12
to diaspo...@googlegroups.com
On 07/04/2012 08:38 PM, Alexandre GOUGER wrote:
> ': no acceptor (RuntimeError)

This means there's already a process occupying port 3000, most likely a
still running Diaspora. Check out your favourite process monitor (ps,
top, htop etc.) or netstat to find it and kill it. Or if it's something
you want to keep change Diaspora's port under config/script_server.yml.

Alexandre GOUGER

unread,
Jul 5, 2012, 2:40:39 PM7/5/12
to diaspo...@googlegroups.com
But it look like there nothing on port 3000

This is the output of netstat:
administrateur@aviactu-server:~/diaspora$ netstat
Connexions Internet actives (sans serveurs)
Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat       
tcp        0      0 192.168.0.105:ssh       192.168.0.103:54881     ESTABLISHED
udp        0      0 localhost:53804         localhost:53804         ESTABLISHED
Sockets du domaine UNIX actives(sans serveurs)
Proto RefCnt Flags       Type       State         I-Node   Chemin
unix  8      [ ]         DGRAM                    3605     /dev/log
unix  2      [ ]         DGRAM                    1715     @/org/kernel/udev/udevd
unix  3      [ ]         STREAM     CONNECTE      22580    
unix  3      [ ]         STREAM     CONNECTE      22579    
unix  2      [ ]         DGRAM                    22578    
unix  3      [ ]         STREAM     CONNECTE      10239    
unix  3      [ ]         STREAM     CONNECTE      10238    
unix  3      [ ]         STREAM     CONNECTE      10235    
unix  3      [ ]         STREAM     CONNECTE      10234    
unix  2      [ ]         STREAM     CONNECTE      10233    /var/run/samba/winbindd_privileged/pipe
unix  2      [ ]         DGRAM                    5378     
unix  2      [ ]         DGRAM                    4517     
unix  2      [ ]         DGRAM                    4267     
unix  3      [ ]         STREAM     CONNECTE      4129     
unix  3      [ ]         STREAM     CONNECTE      4128     
unix  3      [ ]         STREAM     CONNECTE      4088     
unix  3      [ ]         STREAM     CONNECTE      4087     
unix  2      [ ]         DGRAM                    3786     
unix  2      [ ]         DGRAM                    3705     
unix  3      [ ]         DGRAM                    1720     
unix  3      [ ]         DGRAM                    1719     

 















Jonne Haß

unread,
Jul 5, 2012, 4:41:30 PM7/5/12
to diaspo...@googlegroups.com
Hm, weird. The only other possibillity I know is that it tries to listen on an unavailable IP address but that shouldn't happen unless you touched something since the default is 0.0.0.0 which is a catchall address for this purpose.
--
You received this message because you are subscribed to the Google Groups "diaspora-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/diaspora-dev/-/XCWy5nHSTu8J.
To post to this group, send email to diaspo...@googlegroups.com.
To unsubscribe from this group, send email to diaspora-dev...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/diaspora-dev?hl=en.


Alexandre GOUGER

unread,
Jul 5, 2012, 7:20:54 PM7/5/12
to diaspo...@googlegroups.com
I didn't touch something related with IP address
To unsubscribe from this group, send email to diaspora-dev+unsubscribe@googlegroups.com.

jeremy

unread,
Jul 7, 2012, 1:04:16 PM7/7/12
to diaspo...@googlegroups.com


On Thursday, July 5, 2012 6:20:54 PM UTC-5, Alexandre GOUGER wrote:
I didn't touch something related with IP address

Le jeudi 5 juillet 2012 16:41:30 UTC-4, Jonne Haß a écrit :
Hm, weird. The only other possibillity I know is that it tries to listen on an unavailable IP address but that shouldn't happen unless you touched something since the default is 0.0.0.0 which is a catchall address for this purpose.

On 07/05/2012 08:40 PM, Alexandre GOUGER wrote:
But it look like there nothing on port 3000

This is the output of netstat:
administrateur@aviactu-server:~/diaspora$ netstat

You need to use the command "netstat -l" if you want to see listening ports. 
      $ netstat -lp | grep 3000  

Will tell you which process has the port open.
You can also try running the server on another port such as: 
      $ RAILS_ENV=production DB=mysql ./script/server -port=3001

Alexandre GOUGER

unread,
Jul 8, 2012, 7:08:04 PM7/8/12
to diaspo...@googlegroups.com
This is the ouput of netstat -lp | grep 3000:

tcp6       0      0 [::]:3000               [::]:*                  LISTEN      1144/apache2

Look like apache is running in port 3000, so i tried to run Diaspora on port 3001 and it look like it's running:

RAILS_ENV=production DB=mysql ./script/server -port=3001
>> Using rack adapter
WARNING:
  You run in development but Oink isn't available in your gems.
  That most likely means you copied the bundle command from the installation guide
  and didn't removed development from the --without parameter while having
  the intention to run under development mode. To fix this either switch to
  production mode or do a rm .bundle/config and run bundle install --without heroku
>> Thin web server (v1.3.1 codename Triple Espresso)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:0, CTRL+C to stop
 But i can't access it in my browser with the address set in the application.yml



Le mercredi 4 juillet 2012 14:38:54 UTC-4, Alexandre GOUGER a écrit :
When I try to run Diaspora, with RAILS_ENV=production DB=mysql ./script/server, I got this output
administrateur@aviactu-server:~/diaspora$ RAILS_ENV=production DB=mysql ./script/server
    >> Using rack adapter
    >> Thin web server (v1.3.1 codename Triple Espresso)
    >> Maximum connections set to 1024
    >> Listening on 0.0.0.0:3000, CTRL+C to stop
    /home/administrateur/.rvm/gems/ruby-1.9.3-p125@diaspora/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_tcp_server': no acceptor (RuntimeError)
            from /home/administrateur/.rvm/gems/ruby-1.9.3-p125@diaspora/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_server'
            from /home/administrateur/.rvm/gems/ruby-1.9.3-p125@diaspora/gems/thin-1.3.1/lib/thin/backends/tcp_server.rb:16:in `connect'
            from /home/administrateur/.rvm/gems/ruby-1.9.3-p125@diaspora/gems/thin-1.3.1/lib/thin/backends/base.rb:53:in `block in start'
            from /home/administrateur/.rvm/gems/ruby-1.9.3-p125@diaspora/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `call'
            from /home/administrateur/.rvm/gems/ruby-1.9.3-p125@diaspora/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
            from /home/administrateur/.rvm/gems/ruby-1.9.3-p125@diaspora/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
            from /home/administrateur/.rvm/gems/ruby-1.9.3-p125@diaspora/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
            from /home/administrateur/.rvm/gems/ruby-1.9.3-p125@diaspora/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
            from /home/administrateur/.rvm/gems/ruby-1.9.3-p125@diaspora/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:in `start'
            from /home/administrateur/.rvm/gems/ruby-1.9.3-p125@diaspora/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
            from /home/administrateur/.rvm/gems/ruby-1.9.3-p125@diaspora/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
            from /home/administrateur/.rvm/gems/ruby-1.9.3-p125@diaspora/gems/thin-1.3.1/bin/thin:6:in `<top (required)>'
            from /home/administrateur/.rvm/gems/ruby-1.9.3-p125@diaspora/bin/thin:19:in `load'
            from /home/administrateur/.rvm/gems/ruby-1.9.3-p125@diaspora/bin/thin:19:in `<main>'

 When I try to run it with sudo
[sudo] password for administrateur: 
/var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/spec_set.rb:90:in `materialize': Could not find rake-0.9.2.2 in any of the sources (Bundler::GemNotFound)
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/spec_set.rb:83:in `map!'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/spec_set.rb:83:in `materialize'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:127:in `specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:172:in `specs_for'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:161:in `requested_specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/environment.rb:23:in `requested_specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/runtime.rb:11:in `setup'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler.rb:107:in `setup'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/setup.rb:17
/var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/spec_set.rb:90:in `materialize': Could not find rake-0.9.2.2 in any of the sources (Bundler::GemNotFound)
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/spec_set.rb:83:in `map!'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/spec_set.rb:83:in `materialize'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:127:in `specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:172:in `specs_for'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:161:in `requested_specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/environment.rb:23:in `requested_specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/runtime.rb:11:in `setup'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler.rb:107:in `setup'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/setup.rb:17
/var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/source.rb:574:in `load_spec_files': https://github.com/plataformatec/markerb.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError)
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/source.rb:372:in `local_specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/source.rb:557:in `specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:188:in `resolve'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:186:in `each'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:186:in `resolve'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:127:in `specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:172:in `specs_for'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:161:in `requested_specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/environment.rb:23:in `requested_specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/runtime.rb:11:in `setup'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler.rb:107:in `setup'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/setup.rb:17
/var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/source.rb:574:in `load_spec_files': https://github.com/plataformatec/markerb.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError)
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/source.rb:372:in `local_specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/source.rb:557:in `specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:188:in `resolve'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:186:in `each'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:186:in `resolve'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:127:in `specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:172:in `specs_for'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:161:in `requested_specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/environment.rb:23:in `requested_specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/runtime.rb:11:in `setup'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler.rb:107:in `setup'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/setup.rb:17
./script/server: line 52: 1: Missing port
/var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/source.rb:574:in `load_spec_files': https://github.com/plataformatec/markerb.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError)
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/source.rb:372:in `local_specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/source.rb:557:in `specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:188:in `resolve'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:186:in `each'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:186:in `resolve'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:127:in `specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:172:in `specs_for'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/definition.rb:161:in `requested_specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/environment.rb:23:in `requested_specs'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/runtime.rb:11:in `setup'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler.rb:107:in `setup'
from /var/lib/gems/1.8/gems/bundler-1.1.4/lib/bundler/setup.rb:17
bundler: command not found: rake
Install missing gem executables with `bundle install`
bundler: command not found: thin
Install missing gem executables with `bundle install`
administrateur@aviactu-server:~/diaspora$

Look like nothing block the port 3000 and RVM is loaded 

My server is running Debian 6

Alexandre GOUGER

unread,
Jul 27, 2012, 1:14:27 PM7/27/12
to diaspo...@googlegroups.com
Now that i now that apache is running on port 3000 and it prevent diaspora from running on it, what i do to prevent apache from running on port 3000 ?

Tom Scott

unread,
Jul 27, 2012, 1:15:39 PM7/27/12
to diaspo...@googlegroups.com
Apache runs by default on port 80. You must have changed something in the config for it to point to port 3000. The Rails application server runs on port 3000, and is proxied locally to Apache which serves its responses on port 80.

- T

--
You received this message because you are subscribed to the Google Groups "diaspora-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/diaspora-dev/-/_8BOdCCKeO0J.

To post to this group, send email to diaspo...@googlegroups.com.
To unsubscribe from this group, send email to diaspora-dev...@googlegroups.com.

Alexandre GOUGER

unread,
Jul 28, 2012, 11:08:11 PM7/28/12
to diaspo...@googlegroups.com
The port 3000 was set in the ports.conf, i remove it and now diaspora run on port 3000


Reply all
Reply to author
Forward
0 new messages