RavenDB4 Windows Service Will Not Start

289 views
Skip to first unread message

Cutie Honey

unread,
Mar 16, 2018, 10:05:35 PM3/16/18
to RavenDB - 2nd generation document database
First of all, if you name the service with spaces, the service will crash immediately when you try to start it.  The reason for this is the start command in the service does not place quotes around the service name.  If you add quotes in the registry, then you get the same error as when the service name has no spaces.  As follows:

U:\RavenDB4\Node B\Server>rvn.exe windows-service start --service-name RavenDbNodeB
Service "RavenDbNodeB (Next generation NoSQL Database)" is starting.

Unhandled Exception: System.ServiceProcess.TimeoutException: Time out has expired and the operation has not been completed.
   at System.ServiceProcess.ServiceController.WaitForStatus(ServiceControllerStatus desiredStatus, TimeSpan timeout)
   at rvn.WindowsService.WindowsServiceController.StartInternal(ServiceController serviceController) in C:\Builds\RavenDB-Stable-4.0\tools\rvn\WindowsService.cs:line 202
   at rvn.WindowsService.WindowsServiceController.Start() in C:\Builds\RavenDB-Stable-4.0\tools\rvn\WindowsService.cs:line 214
   at rvn.CommandLineApp.<>c__DisplayClass6_3.<ConfigureWindowsServiceCommand>b__8() in C:\Builds\RavenDB-Stable-4.0\tools\rvn\CommandLineApp.cs:line 182
   at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
   at rvn.CommandLineApp.Run(String[] args) in C:\Builds\RavenDB-Stable-4.0\tools\rvn\CommandLineApp.cs:line 46
   at rvn.Program.Main(String[] args) in C:\Builds\RavenDB-Stable-4.0\tools\rvn\Program.cs:line 10

If you try to run the service from the Services window, you get an error code of 0xffffffff, 0xffffffff.

Oren Eini (Ayende Rahien)

unread,
Mar 18, 2018, 3:18:15 AM3/18/18
to ravendb

Hm... this is really strange. I _think_ that this might be related to a firewall / AV issue blocking the socket, but not sure.
Can you try running the server manually? What happens then?

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Oren Eini (Ayende Rahien)

unread,
Mar 18, 2018, 3:18:23 AM3/18/18
to ravendb
Manually means, not as a service.
Message has been deleted
Message has been deleted

Oren Eini (Ayende Rahien)

unread,
Mar 19, 2018, 7:58:59 AM3/19/18
to ravendb
Try to check whatever the service user has permissions to run this, and to the relevant folders (binaries and data)

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


On Sun, Mar 18, 2018 at 7:46 PM, Cutie Honey <str...@gmail.com> wrote:
I can start Raven normally using the .\run.ps1 command and that works fine.

I can also start Raven using the command line stored in the registry for the service.  Raven starts up and runs in interactive mode just as if I had used .\run.ps1

It only fails when attempting to start it from the Services window or using the rvn.exe command line.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Cutie Honey

unread,
Mar 20, 2018, 9:21:44 PM3/20/18
to RavenDB - 2nd generation document database
The rvn.exe command created the service as Local Service.  I set up a new user with full permissions to the directories and files.  This did allow two of the three nodes to start, the third one still failed with 0xffffffff, 0xffffffff.

With just the two nodes of the cluster running, I tried to connect to the studio, there was no response, just a time out in the browser.  Both locally and remotely.

Does the user have to have full administrator permissions?

Oren Eini (Ayende Rahien)

unread,
Mar 21, 2018, 2:49:50 AM3/21/18
to ravendb
The user needs to have permissions on the binaries for ravendb, the data directory and that is pretty much it.
Anything in the logs?
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages