Unable to start subversion svnservice as a service on WIndows 7, access problem

Paul Taylor picture Paul Taylor · Sep 20, 2011 · Viewed 8.2k times · Source

Trying to run SVN as a service on a Windows 7 machine, Im the only user.

First tried to create service from DOS and it gave me this error

[SC] OpenSCManager FAILED 5:

Access is denied.

So I then start cmd window with Run as Administrator, and that worked.

c:\Apps\SourceControl\CollabNet Subversion Server>sc create svnserve binpath= "\"C:\Apps\SourceControl\CollabNet Subversion Server\" --service --root c:\code\SVN\Project" displaynam
e= "SVN" depend= tcpip start= auto
[SC] CreateService SUCCESS

But it hasnt actually started the service, and when I try to start it from the Control Panel/Services it complains

Error 5:Access Denied

Answer

Vladimír Slávik picture Vladimír Slávik · Jul 4, 2012

You have not specified any executable in binpath. Compare your string with eg. http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-serversetup-svnserve.html, where the path contains svnserve.exe. Of course the service won't run at all then, it tries to execute a folder so to say...