#29345 closed defect (fixed)

Can't install TOR as a service on Windows 10

Reported by: JohnnyFrog Owned by: JohnnyFrog
Priority: Immediate Milestone:
Component: Community/Tor Support Version: Tor:
Severity: Blocker Keywords: service unformattable error torrc windows 10 win
Cc: JohnnyFrog Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


When trying to execute

tor.exe --service install --options -f C:\absolute\path\to\torrc

an <unformattable error> is given:

Running on a Post-Win2K OS, so we'll assume that the LocalService account exists.
Done with CreateService.
Service installed successfully
Service failed to start : <unformattable error>

This bug happens when there is something written in the torrc file, but on other attempts it was happening when using

HiddenServiceAuthorizeClient basic PCNAME

and so deleting this line it has been starting again.

If I leave the torrc file empty the error doesn't show up and the service is installed and working.

I tried to differently formatting torrc file, so using LF and CRLF, but the result is the same.

Child Tickets

Change History (5)

comment:1 Changed 18 months ago by JohnnyFrog

Owner: set to JohnnyFrog
Status: newaccepted

When installing service without specifing torrc file:

    The Tor service will run under the account "NT AUTHORITY\LocalService".  This means
    that Tor will look for its configuration file under that
    account's Application Data directory, which is probably not
    the same as yours.

So the problem can be linked to NT AUTHORITY permissions on the torrc file or on the entire Tor folder. The actual permission groups for the folder and the file are: SYSTEM, Administrators, Users and Authenticated Users. All of these groups have complete access on the torrc file and the directory (I set it this way to try if it works), but however the problem still remains.

comment:2 Changed 18 months ago by JohnnyFrog

Cc: JohnnyFrog added
Severity: NormalBlocker

comment:3 Changed 18 months ago by rl1987

Component: - Select a componentCommunity/Tor Support

comment:4 Changed 18 months ago by JohnnyFrog

I managed to solve this "bug".
Actually it's not really a bug, but it is just a question of permissions.

To solve this problem you have to assign to the Tor folder the Full Control to Users group in Windows 10.

In fact, if you extract tor files in a Tor folder located in C:\ you probably won't have this problem of permissions (it depends on how are the permissions set on your computer), but if you extract these files in a tor folder located in C:\Windows you'll probably get this problem and you will need to apply the permissions to Users group.

comment:5 Changed 18 months ago by JohnnyFrog

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.