tor2web/Tor2web

Initialising multiple onions and sub-domains causes tor2web to fail

arunasank opened this issue · 2 comments

These instructions don't work for me:

img

My /etc/tor2web.conf: https://paste.fedoraproject.org/paste/pY5BJqQ06hAoIYyn6QU2gA/raw ( I have anonymised the basehost)

My /home/tor2web/lists/hosts_map.txt:

subDomainOne.basename onion1.onion

The error it fails with:

$ /etc/init.d/tor2web restart
[....] Restarting tor2web (via systemctl): tor2web.serviceJob for tor2web.service failed because the control process exited with error code. See "systemctl status tor2web.service" and "journalctl -xe" for details.
 failed!
$ systemctl status tor2web
● tor2web.service - LSB: Start the Tor2web proxy.
   Loaded: loaded (/etc/init.d/tor2web; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2019-06-28 21:41:51 UTC; 23s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 6501 ExecStop=/etc/init.d/tor2web stop (code=exited, status=0/SUCCESS)
  Process: 6536 ExecStart=/etc/init.d/tor2web start (code=exited, status=1/FAILURE)
    Tasks: 7
   Memory: 200.1M
      CPU: 2.311s
   CGroup: /system.slice/tor2web.service
           ├─6440 python /usr/lib/python2.7/dist-packages/tor2web/t2w.py --pidfile /var/run/tor2web/t2w.pid --uid tor2web --gid tor2web --command=start
           ├─6445 /usr/bin/python /usr/lib/python2.7/dist-packages/tor2web/t2w.py --pidfile /var/run/tor2web/t2w.pid --uid tor2web --gid tor2web --command=start
           ├─6448 /usr/bin/python /usr/lib/python2.7/dist-packages/tor2web/t2w.py --pidfile /var/run/tor2web/t2w.pid --uid tor2web --gid tor2web --command=start
           ├─6449 /usr/bin/python /usr/lib/python2.7/dist-packages/tor2web/t2w.py --pidfile /var/run/tor2web/t2w.pid --uid tor2web --gid tor2web --command=start
           └─6565 /usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc --hush

Jun 28 21:41:51 <ip> systemd[1]: tor2web.service: Control process exited, code=exited status=1
Jun 28 21:41:51 <ip> systemd[1]: Failed to start LSB: Start the Tor2web proxy..
Jun 28 21:41:51 <ip> systemd[1]: tor2web.service: Unit entered failed state.
Jun 28 21:41:51 <ip> systemd[1]: tor2web.service: Failed with result 'exit-code'.
Jun 28 21:41:51 <ip> Tor[6565]: Opening Socks listener on /run/tor/socks
Jun 28 21:41:51 <ip> Tor[6565]: Opened Socks listener on /run/tor/socks
Jun 28 21:41:51 <ip> Tor[6565]: Opening Control listener on /run/tor/control
Jun 28 21:41:51 <ip> Tor[6565]: Opened Control listener on /run/tor/control
Jun 28 21:41:51 <ip> Tor[6565]: Bootstrapped 90%: Establishing a Tor circuit
Jun 28 21:41:52 <ip> Tor[6565]: Bootstrapped 100%: Done

cc @vecna @evilaliv3

This error message is not very helpful, so I am not able to progress further. Does someone have thoughts here?

got this working. The hosts_map file needs to exist in addition to the onion address for the base hostname.