[tor-bugs] #17145 [Tor]: <tor.exe --service install -options -f ...\torrc> returns Error 1064 in Win32 XP

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Sep 24 13:16:00 UTC 2015


#17145: <tor.exe --service install -options -f ...\torrc> returns Error 1064 in
Win32 XP
---------------------+------------------------------------
 Reporter:  TORques  |          Owner:
     Type:  defect   |         Status:  new
 Priority:  normal   |      Milestone:  Tor: unspecified
Component:  Tor      |        Version:  Tor: 0.2.7.2-alpha
 Keywords:           |  Actual Points:
Parent ID:           |         Points:
---------------------+------------------------------------
 {{{
 tor --service install -options -f C:\tor\torrc
 }}}
 from https://www.torproject.org/docs/faq#NTService failed to start the
 service (Error 1064: An exception occured in the service when handling the
 control request).

 But other options works:

 {{{
 tor.exe --service install -options ControlPort 9051
 }}}
 start the Tor Win32 Service and creates the folder C:\Documents and
 Settings\LocalService\Application Data\tor - tor.exe works like a client
 only (no disk torrc file, no relay keys). This is useless because i can't
 use my torrc and run the relay.

 The only way to create a running tor service for a relay is to use the "sc
 create..." in cmd command line as irc#tor<coderman_> suggested. So this is
 how it works:

 {{{
 sc create "Tor Win32 Service" binPath= "\"C:\tornou\Tor\tor.exe\" --nt-
 service -f \"C:/tornou/Data/Tor/torrc\""
 }}}
 returns ImagePath="C:\tornou\Tor\tor.exe" --nt-service -f
 "C:/tornou/Data/Tor/torrc" and the service is running.

 From this point of view, if nobody will fix the related bug, the
 https://www.torproject.org/docs/faq#NTService may be updated with this "sc
 create... working option".

 Regards,
 torQUES

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17145>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list