1. Ian Bicking
  2. silverhudson
  3. Issues
Issue #1 resolved

Connection refused error

Nate Aune
created an issue

After I have deployed silverhudson to a remote server with: "silver update . hudsontest", and try to visit the site, the follow error occurs:

Traceback (most recent call last): File "/usr/local/share/silverlining/mgr-scripts/master-runner.py", line 48, in application return found_app(environ, start_response) File "/var/www/hudson.2010-08-23_001/proxy.py", line 13, in application return proxy_exact_request(environ, start_response) File "/var/www/hudson.2010-08-23_001/lib/python/wsgiproxy/exactproxy.py", line 88, in proxy_exact_request path, body, headers) File "/usr/lib/python2.6/httplib.py", line 898, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.6/httplib.py", line 935, in _send_request self.endheaders() File "/usr/lib/python2.6/httplib.py", line 892, in endheaders self._send_output() File "/usr/lib/python2.6/httplib.py", line 764, in _send_output self.send(msg) File "/usr/lib/python2.6/httplib.py", line 723, in send self.connect() File "/usr/lib/python2.6/httplib.py", line 704, in connect self.timeout) File "/usr/lib/python2.6/socket.py", line 514, in create_connection raise error, msg error: [Errno 111] Connection refused Finish errors for request GET /favicon.ico (2010-08-23 04:11:06)

Comments (3)

  1. Nate Aune reporter

    I did some further investigation and discovered that the ./configure-hudson.sh script is not properly changing the port from the default 8080 to 8088.

    In particular this line:

    sed -i 's/^HTTP_PORT=.*/HTTP_PORT=8088/' /etc/default/hudson
    

    This has no effect because the HTTP_PORT argument is not getting passed in.

    Replacing the last line in /etc/default/hudson with this line and restarting Hudson solved the problem:

    HUDSON_ARGS="--webroot=/var/run/hudson/war --httpPort=8088"
    
  2. Nate Aune reporter

    If you change the configure-hudson.sh script to this, then it properly sets up the ports:

    #!/bin/sh
    
    if ! grep -q 'httpPort=8088' /etc/default/hudson ; then
        sed -i 's/--webroot=\/var\/run\/hudson\/war/--webroot=\/var\/run\/hudson\/war --httpPort=8088/' /etc/default/hudson 
        /etc/init.d/hudson restart
    fi
    
  3. Log in to comment