Setting recovery windows service fails if service-name not equal to RavenDB #493

Merged
merged 1 commit into from Jan 7, 2013

Conversation

Projects
None yet
3 participants

Here is the error:

c:\Program Files\RavenDB>Raven.Server.exe -install --service-name=SuperRaven

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the c:\Program Files\RavenDB\Raven.Server.e
xe assembly's progress.
The file is located at c:\Program Files\RavenDB\Raven.Server.InstallLog.
Installing assembly 'c:\Program Files\RavenDB\Raven.Server.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = c:\Program Files\RavenDB\Raven.Server.exe
   logfile = c:\Program Files\RavenDB\Raven.Server.InstallLog
Installing service SuperRaven...
Service SuperRaven has been successfully installed.
Creating EventLog source SuperRaven in log Application...

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the c:\Program Files\RavenDB\Raven.Server.e
xe assembly's progress.
The file is located at c:\Program Files\RavenDB\Raven.Server.InstallLog.
Committing assembly 'c:\Program Files\RavenDB\Raven.Server.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = c:\Program Files\RavenDB\Raven.Server.exe
   logfile = c:\Program Files\RavenDB\Raven.Server.InstallLog

The Commit phase completed successfully.

The transacted install has completed.
A critical error occurred while starting the server. Please see the exception de
tails bellow for more details:
System.InvalidOperationException: Failed to set the service recovery policy. Com
mand:
sc failure RavenDB reset= 500 actions= restart/60000
Exit code: 1060
   at Raven.Server.Program.SetRecoveryOptions(String serviceName)
   at Raven.Server.Program.InstallAndStart()
   at Raven.Server.Program.InteractiveRun(String[] args)
   at Raven.Server.Program.Main(String[] args)
Press any key to continue...
@ghost

ghost commented Nov 21, 2012

Need CLA, see: http://ravendb.net/contributing

On Wed, Nov 21, 2012 at 4:54 AM, John Simons notifications@github.comwrote:

Here is the error:

c:\Program Files\RavenDB>Raven.Server.exe -install --service-name=SuperRaven

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the c:\Program Files\RavenDB\Raven.Server.e
xe assembly's progress.
The file is located at c:\Program Files\RavenDB\Raven.Server.InstallLog.
Installing assembly 'c:\Program Files\RavenDB\Raven.Server.exe'.
Affected parameters are:
logtoconsole =
assemblypath = c:\Program Files\RavenDB\Raven.Server.exe
logfile = c:\Program Files\RavenDB\Raven.Server.InstallLog
Installing service SuperRaven...
Service SuperRaven has been successfully installed.
Creating EventLog source SuperRaven in log Application...

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the c:\Program Files\RavenDB\Raven.Server.e
xe assembly's progress.
The file is located at c:\Program Files\RavenDB\Raven.Server.InstallLog.
Committing assembly 'c:\Program Files\RavenDB\Raven.Server.exe'.
Affected parameters are:
logtoconsole =
assemblypath = c:\Program Files\RavenDB\Raven.Server.exe
logfile = c:\Program Files\RavenDB\Raven.Server.InstallLog

The Commit phase completed successfully.

The transacted install has completed.
A critical error occurred while starting the server. Please see the exception de
tails bellow for more details:
System.InvalidOperationException: Failed to set the service recovery policy. Com
mand:
sc failure RavenDB reset= 500 actions= restart/60000
Exit code: 1060
at Raven.Server.Program.SetRecoveryOptions(String serviceName)
at Raven.Server.Program.InstallAndStart()
at Raven.Server.Program.InteractiveRun(String[] args)
at Raven.Server.Program.Main(String[] args)
Press any key to continue...


You can merge this Pull Request by running:

git pull https://github.com/johnsimons/ravendb patch-1

Or view, comment on, or merge it at:

#493
Commit Summary

  • Setting recovery windows service fails if service-name not equal to
    R…

File Changes

  • M Raven.Server/Program.cs (2)

Patch Links

@fitzchak fitzchak merged commit 7917ac9 into ravendb:master Jan 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment