Skip to content

TorDNSEL is busted since switch to exitmap's 3802a3651cb3a9d4165c0f14d257f47c23576dd5

Both exit-scanner and exitmap get regularly updated via puppet (their main is fetched). However, the latest exitmap changes on 09/12 broke our setup for TorDNSEL as the exitmap run does not finish anymore:

Directory /tmp is not owned by the user or hasn't mask 700 or it's a symlink.
Traceback (most recent call last):
  File "/srv/tordnsel.torproject.org/exitscanner/exitscan.py", line 151, in <module>
    run()
  File "/srv/tordnsel.torproject.org/exitscanner/exitscan.py", line 76, in run
    exit_map_out = open(EXITS_PATH + "exitmap.out", "r")
FileNotFoundError: [Errno 2] No such file or directory: '/srv/tordnsel.torproject.org/exitmap.out'
hon3/dist-packages/stem/process.py", line 153, in launch_tor
    init_line = tor_process.stdout.readline().decode('utf-8', 'replace').strip()
  File "/usr/lib/python3/dist-packages/stem/process.py", line 136, in timeout_handler
    raise OSError('reached a %i second timeout without success' % timeout)
OSError: reached a 300 second timeout without success

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/tordnsel.torproject.org/exitscanner/exitmap/./bin/exitmap", line 39, in main
    exitmap_main()
  File "/srv/tordnsel.torproject.org/exitscanner/exitmap/src/exitmap.py", line 247, in main
    socks_port, control_port = bootstrap_tor(args)
  File "/srv/tordnsel.torproject.org/exitscanner/exitmap/src/exitmap.py", line 93, in bootstrap_tor
    sys.exit(1)
SystemExit: 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/tordnsel.torproject.org/exitscanner/exitmap/./bin/exitmap", line 51, in <module>
    main()
  File "/srv/tordnsel.torproject.org/exitscanner/exitmap/./bin/exitmap", line 47, in main
    shutil.rmtree(args.tor_dir)
  File "/usr/lib/python3.9/shutil.py", line 709, in rmtree
    onerror(os.lstat, path, sys.exc_info())
  File "/usr/lib/python3.9/shutil.py", line 707, in rmtree
    orig_st = os.lstat(path)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/exitmap_tor_datadir-tordnsel'

This is caused by tpo/network-health/exitmap#47 (closed).

/cc @juga