Opened 7 years ago

Closed 2 years ago

#7704 closed defect (invalid)

Tor NT service: control request exceptions

Reported by: AdamColligan Owned by:
Priority: Low Milestone: Tor: unspecified
Component: Core Tor/Tor Version: Tor: 0.2.3.25
Severity: Normal Keywords: tor-relay, win32, NT-service, exception, mapaddress, torrc, windows
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Setup:
-Tor expert (0.2.3.25-win32-1)
-Win7 Ultimate x64
-Deviations from default config are multiple SOCKS Ports and one mapped .onion address


Error configuration A:
-No running tor processes

-Command (in elevated CMD): "tor --service install -options socksport #### socksport #### [...] mapaddress 10.40.40.40 somehiddenservice.onion
-Result: "Service installed successfully
Service failed to start : An exception occurred in the service when handling the control request."

Alternately -
-Command (in elevated CMD): "tor --service install -options socksport #### socksport #### [... NO mapaddress option appended]
-Result: Service installs and runs successfully and listens on all requested SOCKS ports.


Error configuration B:
-No running tor processes

-Pre-customized torrc file is located at the end of the paths specified. In this case, it does not make a difference whether the torrc contains only extra SOCKSPort lines or also contains the mapaddress line.

-Command (in elevated CMD): "tor --service install -options -f C:\users\personalusername\appdata\roaming\tor\torrc"
-Result: "Service installed successfully
Service failed to start : An exception occurred in the service when handling the control request."

or

-Command (in elevated CMD): "tor --service install -options -f C:\torrc"
-Result: "Service installed successfully
Service failed to start : An exception occurred in the service when handling the control request."

Alternately -
-Command (in elevated CMD): "tor --service install -options -f C:\users\default\appdata\roaming\tor\torrc"
-Result: Service installs and runs successfully, including listening on all requested SOCKS Ports and successfully mapping the .onion address.


Conclusions:
(1) The Tor NT service apparently cannot start due to a control exception if there is a mapaddress option appended to the installation command.
(2) The Tor NT service apparently cannot start due to a control exception if it is directed to a torrc file anywhere other than the "default" user's appdata folder, regardless of the contents of the torrc.

Child Tickets

Change History (8)

comment:1 Changed 7 years ago by nickm

Keywords: tor-relay win32 NT-service added; NT service removed
Milestone: Tor: 0.2.4.x-final

comment:2 Changed 6 years ago by nickm

Milestone: Tor: 0.2.4.x-finalTor: 0.2.5.x-final

comment:3 Changed 5 years ago by nickm

Milestone: Tor: 0.2.5.x-finalTor: 0.2.???

comment:4 Changed 5 years ago by mosesofmason

This prompt is very misleading. It should just clearly tell user that there is something missing in the torrc file.

comment:5 Changed 3 years ago by teor

Milestone: Tor: 0.2.???Tor: 0.3.???

Milestone renamed

comment:6 Changed 3 years ago by nickm

Keywords: tor-03-unspecified-201612 added
Milestone: Tor: 0.3.???Tor: unspecified

Finally admitting that 0.3.??? was a euphemism for Tor: unspecified all along.

comment:7 Changed 2 years ago by nickm

Keywords: tor-03-unspecified-201612 removed

Remove an old triaging keyword.

comment:8 Changed 2 years ago by nickm

Keywords: windows added
Resolution: invalid
Severity: Normal
Status: newclosed
Note: See TracTickets for help on using tickets.