ContinuaCI Application Service Fails To Start

When I attempt to start the server service I get the following in my Application Log:

Service cannot be started. System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
   at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly, Boolean wantToCreate)
   at System.Diagnostics.EventLog.SourceExists(String source, String machineName, Boolean wantToCreate)
   at System.Diagnostics.EventLog.SourceExists(String source)
   at Continua.Common.Logging.WindowsEventLogLogger.SetUp()
   at Continua.Common.Extensions.IEnumerableExtensions.Each[T](IEnumerable`1 items, Action`1 action)
   at Continua.ApplicationSetup.SetUpLoggers()
   at Continua.ApplicationSetup.Create()
   at Continua.Service.ApplicationService.OnStart(String[] args)
   at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
The Zone of the assembly that failed was:
MyComputer

This is immediately post install.  Server is a clean VM running Server 2008 R2, 64bit.


Hrm…if I make the service account a local administrator then the service starts and this error isn’t thrown.

Not sure I’m particularly happy with that solution.

Thanks for reporting this Michael,

The error is caused by Continua being unable to create the ‘Continua’ event log source in the Windows event log due insufficient privileges. As far as I know, this is the only operation we perform in Continua that would require admin rights, I’ll have a look tomorrow to see if we can create the event log source during installation instead.

Just as a check, after successfully running Continua as an administrator user, switch back to a normal user and see if it works.

Regards,
Paul.

Dropping the service account back to non-administrative user after running once seems to be happy. We will see how things go.

After installing the 142 build I was receiving this:

The server’s data share path cannot be found, or is not local to the server. An administrator can fix this by editing the value of Continua.Builds.DataSharePath in Continua.Server.Service.exe.config

Technically, none of the information here was accurate. This was apparently caused by my demotion of the service account. I’m not really sure what’s going on as the service account has ‘Change’ on the share and ‘Modify’ on the folders.