Opened 2 years ago

Last modified 20 months ago

#21081 new defect

tor --service install -options does not work

Reported by: PekaFat Owned by: cypherpunks
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version: Tor: 0.2.8.11
Severity: Normal Keywords: windows ntservice win32 tor-relay
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Hello, i use Expert Bundle 0.2.8.11 (git-31e7b47fbebe8caf) and when I try to add Tor service on Windows 10 x64 1607 14393.576 with this command:
c:\Tor>tor --service install -options -f C:\Tor\tor.conf

I got this:
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 : Error Service under the command processing.

In services app same error, but also i see this:
"c:\Tor\tor.exe" --nt-service "-f" "C:\Tor\tor.conf"

Maybe issue in quotes, but even if I manually edit this service in regedit to:

"c:\Tor\tor.exe" --nt-service -f C:\Tor\tor.conf

or

"c:\Tor\tor.exe" --nt-service -f tor.conf

I got another error:

Service did not respond to the request in a timely manner.

All other services running fine.

Child Tickets

Attachments (2)

1.png (18.0 KB) - added by PekaFat 2 years ago.
2.PNG (47.7 KB) - added by PekaFat 2 years ago.

Download all attachments as: .zip

Change History (8)

Changed 2 years ago by PekaFat

Attachment: 1.png added

Changed 2 years ago by PekaFat

Attachment: 2.PNG added

comment:1 Changed 2 years ago by PekaFat

Component: - Select a componentApplications/Quality Assurance and Testing
Owner: set to cypherpunks

comment:2 Changed 2 years ago by PekaFat

When i install tor service with --service install all is fine, but where he stored files like "cached-certs" etc? When i start just tor.exe this files is saved here - C:\Users\User\AppData\Roaming\tor but when i start tor with service without any parameters and options i just can't find this files nowhere.

comment:3 Changed 2 years ago by cypherpunks

Component: Applications/Quality Assurance and TestingCore Tor/Tor

comment:4 Changed 2 years ago by nickm

Keywords: windows ntservice added
Milestone: Tor: unspecified

comment:5 Changed 2 years ago by PekaFat

Until it's fixed i found another way to run tor with my settings at system start:

  1. Download https://ritchielawrence.github.io/cmdow/
  1. Put cmdow in tor folder
  1. Create .bat file with "cmdow.exe /RUN /HID tor.exe -f tor"
  1. Put bat file in autostart folder or task scheduler

Done.

OR

Create .vbs file with line:

CreateObject("Wscript.Shell").Run "tor.exe -f tor",0,True

And put it in autostart folder.

Last edited 2 years ago by PekaFat (previous) (diff)

comment:6 Changed 20 months ago by nickm

Keywords: win32 tor-relay added
Note: See TracTickets for help on using tickets.