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 上进行连接。
感谢任何帮助。谢谢......
尼拉杰
I want to run CruiseControl 2.8.4 on Ubuntu 10.04 running in VirtualBox 4.0.12. When I start CruiseControl with default options, it is unable to open a connection to port 8080 for the dashboard. Port forwarding didn't make a difference, but I am not trying to access it from outside anyway.
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
I am running cruisecontrol on a new user account I created, and I have set the same privileges as the main account I setup on Ubuntu.
Just to see if it was a firewall issue, I tried Jetty 7 with default settings and it was able to connect on port 8080.
Any help is appreciated. Thanks.....
Niraj
发现问题...这是因为我没有在 Tomcat 下设置报告工具,我这样做了,在本地实例中构建并部署了报告 jar,并且错误消失了。我认为 Cruisecontrol 也会启动码头服务器进行报告。
尼拉吉
Found the problem... its because I had not setup the reporting tool under Tomcat, which I did, built and deployed reporting jar in local instance and the errors are gone. I thought that cruisecontrol would kick off the jetty server for reporting too.
Niraj