google-code-export / ovz-web-panel

Automatically exported from code.google.com/p/ovz-web-panel
Other
1 stars 1 forks source link

Unable to start service/access webgui after first system restart (and all after) #529

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
1. Tried to manually start the service by running script. Also tried putting 
the start script "/usr/bin/ruby /opt/ovz-web-panel/utils/hw-daemon/hw-daemon.rb 
start" in rc.local

2. Output of "netstat -nlp|grep ruby" after system restart is
tcp        0      0 127.0.0.1:7767              0.0.0.0:*                   
LISTEN      1744/ruby

3. When running script manually, receive below message.

Starting the daemon...
/usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Address already in use - 
bind(2) (Errno::EADDRINUSE)
        from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `new'
        from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `create_listeners'
        from /usr/lib/ruby/1.8/webrick/utils.rb:70:in `each'
        from /usr/lib/ruby/1.8/webrick/utils.rb:70:in `create_listeners'
        from /usr/lib/ruby/1.8/webrick/server.rb:75:in `listen'
        from /usr/lib/ruby/1.8/webrick/server.rb:63:in `initialize'
        from /usr/lib/ruby/1.8/webrick/httpserver.rb:24:in `initialize'
        from /opt/ovz-web-panel/utils/hw-daemon/hw-daemon.rb:160:in `new'
        from /opt/ovz-web-panel/utils/hw-daemon/hw-daemon.rb:160:in `do_start'
        from /opt/ovz-web-panel/utils/hw-daemon/hw-daemon.rb:119:in `initialize'
        from /opt/ovz-web-panel/utils/hw-daemon/hw-daemon.rb:272:in `new'
        from /opt/ovz-web-panel/utils/hw-daemon/hw-daemon.rb:272

4. Killed process from above, then ran script. Script ran fine, but still can't 
access service. Not sure where to go from here. Any help is appreciated.

Original issue reported on code.google.com by rob...@sip-ua.com on 25 Jan 2014 at 3:57

GoogleCodeExporter commented 9 years ago
Issue resolved. Ensure "localhost" remains in your /etc/hosts file, regardless 
of whatever else you have in there. Server will not run without "localhost" 
string. 

Original comment by rob...@sip-ua.com on 25 Jan 2014 at 4:20