I've been configuring and testing CCNet for a little while now using Virtual PC to host it. Everything went well and it was decided to transfer the configuration to a server location - which went as well as could be expected. A few tweaks and kicks and i had it running as before.
The problem is that we now need to run CCNet as a service which is proving problematic.
I have configured a domain level user with the same access rights as myself (after all, the console application has been running as me for about 3 months now) and configured the service to run under that user.
I started the service and it hung! [I'll not bore you with the details of forcing the service to stop and closing the sockets that were held open]. When I was eventually able to run the console again I did a 'Run As' and entered the 'cruisecontrol' user details, click OK and saw that there was a problem accessing SVN via https. I've sorted that by running IE as 'cruisecontrol', navigating to the repository and accepting/installing the certificate. Next when I ran the console application as 'cruisecontrol' it hangs after the following lines:
2009-01-15 16:55:50,994 [Pepsi Webservices:DEBUG] Running Subversion with arguments : log --xml --limit 1 https://ash-dev-005.[path to trunk]
2009-01-15 16:55:51,478 [Pepsi Webservices:DEBUG] Authentication realm: https://ash-dev-005.[path to repository] Subversion Repositories
After it times out I can close the console, run it as normal (i.e. as me) and it runs fine. I have tried logging into the server as the 'cruisecontrol' user and tried running the console but with the same result.
Now, heres the thing: This morning I logged into the server as the 'cruisecontrol' user and opened a command window. I navigated to the trunk of my project and typed 'svn update' and was prompted for a password.
This is not surprising but the line above that prompt was the 'Authentication realm:...' line above! Looking at the log file, sure enough right after the process is killed by CCNet there is a prompt for a password. Is CCNet/SVN waiting for a password entry and then timing out? If so, why it is not using the one in the config file?
I entered the password and the update proceeded without any problems (so the cruisecontrol user does have permissions to access the repository from the server). I entered the command again and was not prompted a second time so i tried opening a new command window and rerunning the command - still not prompted for a password so i logged out and back in (as cruisecontrol) and tried again but was still not prompted.
The good news is that when I run the console application as the cruisecontrol user (whether logged in as cruisecontrol or just using Run As) everything appears to be OK.
So what's my question? Well, why is CCNet not using the password in the config file? How has entering the password in the command prompt resolved the problem (and will it persist)?
Any suggestions/insight appreciated.