CC.Net 1.5 CCTray Connect Via Web Dashboard Error

173 views
Skip to first unread message

Richard Young

unread,
Feb 2, 2010, 3:16:31 PM2/2/10
to ccnet...@googlegroups.com
I can't seem to connect to my buildserver using the web dashboard.  Keep getting UnknownServerException.

Tried connecting with

http://localhost/ccnet15/
and
http://buildbox/ccnet15/

Both throw the same error

Full event log message below
 
Application information:
    Application domain: /LM/W3SVC/1/ROOT/ccnet15-1-129096150233081535
    Trust level: Full
    Application Virtual Path: /ccnet15
    Application Path: C:\Program Files\CruiseControl.NET_1.5\application\WebDashboard\
    Machine name: BUILDBOX
 
Process information:
    Process ID: 6976
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception information:
    Exception type: UnknownServerException
    Exception message: Unknown server (buildbox) - please check the URL is correct
 
Request information:
    Request URL: http://buildbox/ccnet15/server/buildbox/RawXmlMessage.aspx
    Request path: /ccnet15/server/buildbox/RawXmlMessage.aspx
    User host address: ::1
    User: 
    Is authenticated: False
    Authentication Type: 
    Thread account name: NT AUTHORITY\NETWORK SERVICE
 
Thread information:
    Thread ID: 5
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at ThoughtWorks.CruiseControl.WebDashboard.ServerConnection.ServerAggregatingCruiseManagerWrapper.GetServerUrl(IServerSpecifier serverSpecifier)
   at ThoughtWorks.CruiseControl.WebDashboard.ServerConnection.ServerAggregatingCruiseManagerWrapper.GetCruiseManager(IServerSpecifier serverSpecifier, String sessionToken)
   at ThoughtWorks.CruiseControl.WebDashboard.ServerConnection.ServerAggregatingCruiseManagerWrapper.ProcessMessage(IServerSpecifier serverSpecifer, String action, String message)
   at ThoughtWorks.CruiseControl.WebDashboard.Plugins.ServerReport.MessageHandlerPlugin.Execute(ICruiseRequest cruiseRequest)
   at ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.CruiseActionProxyAction.Execute(IRequest request)
   at ThoughtWorks.CruiseControl.WebDashboard.MVC.RequestController.Do()
   at ThoughtWorks.CruiseControl.WebDashboard.MVC.ASPNET.HttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details:


--
Richard Young

Ruben Willems

unread,
Feb 2, 2010, 3:20:35 PM2/2/10
to ccnet...@googlegroups.com
Hi


did you set up security?


with kind regards
Ruben Willems

Richard Young

unread,
Feb 2, 2010, 3:36:23 PM2/2/10
to ccnet...@googlegroups.com
No I was having trouble with security, so I thought I'd skip it for now as the main feature I'm excited about in 1.5 is Dynamic Parameters.

In other words I'm using
 <nullSecurity />

Once I get everything else working I'll be happy to provide feedback on the issues I'm having with security.
--
Richard Young

Ruben Willems

unread,
Feb 2, 2010, 3:37:59 PM2/2/10
to ccnet...@googlegroups.com
Hi

can you stop and start the ccnet service
and do an iisreset?
--> just to clear all caches.

i think this is a left over of the security issue you have.



with kind regards
Ruben Willems

Richard Young

unread,
Feb 2, 2010, 3:51:14 PM2/2/10
to ccnet...@googlegroups.com
I've had security disabled for a few days now, and already tried restarting ccnet service + iisreset.  But I did it again to be sure... still getting the same error.

The only reason I'm even trying to use the Web Dashboard to connect with CC Tray is because Force Build using .Net Remoting doesn't seem to display the parameters input dialog.

I may crack open the code at some point and search for the exception so I can see the workflow to give me a hint at what the problem is.
--
Richard Young

Richard Young

unread,
Feb 3, 2010, 10:54:21 AM2/3/10
to ccnet...@googlegroups.com
I figured it out after looking at the code.

This is what I had in my dashboard.config

<server name="local" url="tcp://localhost:21235/CruiseManager.rem" allowForceBuild="true" allowStartStopBuild="true" backwardsCompatible="false"/>

First thing I tried was changing to

<server name="localhost" url="tcp://localhost:21235/CruiseManager.rem" allowForceBuild="true" allowStartStopBuild="true" backwardsCompatible="false"/>

Which worked fine when I connected locally, but failed for everybody else in the team

So I changed to

<server name="buildbox" url="tcp://localhost:21235/CruiseManager.rem" allowForceBuild="true" allowStartStopBuild="true" backwardsCompatible="false"/>

That will work fine for now as long as everybody ensure they connect to buildbox, not buildbox.mycompanydomain.com or any other alias.  Perhaps the configuration should allow omitting the name for simple single server setups, or allow specifying aliases.
--
Richard Young
Reply all
Reply to author
Forward
0 new messages