CruiseControl无法在Guest OS中打开连接

时间:2011-08-03 23:32:34

标签: ubuntu-10.04 virtualbox cruisecontrol

我想在VirtualBox 4.0.12上运行的Ubuntu 10.04上运行CruiseControl 2.8.4。当我使用默认选项启动CruiseControl时,它无法打开与仪表板的端口8080的连接。端口转发没有什么区别,但我不是试图从外部访问它。

2011-08-03 19:09:45,466 [Timer-0  ] DEBUG HttpMethodDirector - Attempt number 1 to process request
2011-08-03 19:09:45,466 [Timer-0  ] DEBUG HttpConnection   - enter HttpConnection.open()
2011-08-03 19:09:45,467 [Timer-0  ] DEBUG HttpConnection   - Open connection to localhost:8080
2011-08-03 19:09:45,500 [Timer-0  ] DEBUG HttpConnection   - enter HttpConnection.closeSockedAndStreams()
2011-08-03 19:09:45,501 [Timer-0  ] DEBUG HttpMethodDirector - Closing the connection.
2011-08-03 19:09:45,501 [Timer-0  ] DEBUG HttpConnection   - enter HttpConnection.close()
2011-08-03 19:09:45,501 [Timer-0  ] DEBUG HttpConnection   - enter HttpConnection.closeSockedAndStreams()
2011-08-03 19:09:45,502 [Timer-0  ] INFO  HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused
2011-08-03 19:09:45,514 [Timer-0  ] DEBUG HttpMethodDirector - Connection refused
java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
        at java.net.Socket.connect(Socket.java:546)
        at java.net.Socket.connect(Socket.java:495)
        at java.net.Socket.<init>(Socket.java:392)
        at java.net.Socket.<init>(Socket.java:266)
        at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)
        at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121)
        at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
        at net.sourceforge.cruisecontrol.report.BuildLoopStatusReportTask.run(BuildLoopStatusReportTask.java:90)
        at net.sourceforge.cruisecontrol.report.BuildLoopStatusReportTask.run(BuildLoopStatusReportTask.java:75)
        at java.util.TimerThread.mainLoop(Timer.java:534)
        at java.util.TimerThread.run(Timer.java:484)
2011-08-03 19:09:45,525 [Timer-0  ] INFO  HttpMethodDirector - Retrying request

我在我创建的新用户帐户上运行cruisecontrol,并且我设置了与我在Ubuntu上设置的主帐户相同的权限。 只是为了看看它是否是防火墙问题,我尝试使用默认设置Jetty 7,它能够在端口8080上连接。

感谢任何帮助。感谢.....

尼拉吉

1 个答案:

答案 0 :(得分:0)

发现问题...因为我没有在Tomcat下设置报告工具,我做了,在本地实例中构建和部署了报告jar,错误消失了。我认为巡航控制系统也会启动码头服务器进行报告。

尼拉吉