Opened 5 years ago

Closed 5 years ago

#12747 closed defect (fixed)

data_dir error on Ooni shutdown on M-Lab

Reported by: earthrise Owned by: hellais
Priority: Medium Milestone:
Component: Archived/Ooni Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

[mlab_ooni@mlab1 init]$ cat ../oonib.log
2014-07-30 19:20:40+0000 HTTPReturnJSONHeadersHelper (TLS) starting on 443
2014-07-30 19:20:40+0000 Starting factory <oonib.testhelpers.http_helpers.HTTPReturnJSONHeadersHelper instance at 0x94990ac>
2014-07-30 19:20:40+0000 TCPEchoHelper starting on 81
2014-07-30 19:20:40+0000 Starting factory <oonib.testhelpers.tcp_helpers.TCPEchoHelper instance at 0x949922c>
2014-07-30 19:20:40+0000 HTTPReturnJSONHeadersHelper starting on 80
2014-07-30 19:20:40+0000 Starting factory <oonib.testhelpers.http_helpers.HTTPReturnJSONHeadersHelper instance at 0x94995ec>
2014-07-30 19:20:40+0000 set uid/gid 543/503
2014-07-30 19:20:40+0000 Spawning tor process with DataDirectory /home/mlab_ooni/data/tor
2014-07-30 19:20:41+0000 85%: Finishing handshake with first hop
2014-07-30 19:20:42+0000 90%: Establishing a Tor circuit
2014-07-30 19:20:43+0000 100%: Done
2014-07-30 19:22:12+0000 Received SIGTERM, shutting down.
2014-07-30 19:22:12+0000 (TCP Port 80 Closed)
2014-07-30 19:22:12+0000 Stopping factory <oonib.testhelpers.http_helpers.HTTPReturnJSONHeadersHelper instance at 0x94995ec>
2014-07-30 19:22:12+0000 (TCP Port 81 Closed)
2014-07-30 19:22:12+0000 Stopping factory <oonib.testhelpers.tcp_helpers.TCPEchoHelper instance at 0x949922c>
2014-07-30 19:22:12+0000 (TLS Port 443 Closed)
2014-07-30 19:22:12+0000 Stopping factory <oonib.testhelpers.http_helpers.HTTPReturnJSONHeadersHelper instance at 0x94990ac>
2014-07-30 19:22:12+0000 Main loop terminated.
2014-07-30 19:22:12+0000 Unhandled error in Deferred:
2014-07-30 19:22:12+0000 Unhandled Error

Traceback (most recent call last):

File "/home/mlab_ooni/lib/python2.6/site-packages/txtorcon/torcontrolprotocol.py", line 108, in got_update

cb(data)

File "/home/mlab_ooni/lib/python2.6/site-packages/txtorcon/torconfig.py", line 219, in status_client

self.connected_cb.callback(self)

File "/home/mlab_ooni/lib/python2.6/site-packages/twisted/internet/defer.py", line 380, in callback

self._startRunCallbacks(result)

File "/home/mlab_ooni/lib/python2.6/site-packages/twisted/internet/defer.py", line 488, in _startRunCallbacks

self._runCallbacks()

--- <exception caught here> ---

File "/home/mlab_ooni/lib/python2.6/site-packages/twisted/internet/defer.py", line 575, in _runCallbacks

current.result = callback(current.result, *args, kw)

File "build/bdist.linux-i686/egg/oonib/runner.py", line 72, in setupHSEndpoint


exceptions.TypeError: init() got an unexpected keyword argument 'data_dir'


2014-07-30 19:22:12+0000 Stopping OONIB

Child Tickets

Change History (2)

comment:1 Changed 5 years ago by earthrise

We found that this was due to a too-new version of txtorcon on mlab1. We uninstalled txtorcon and installed the exact version that's on mlab2 and it worked. The issue was also preventing any collectors / bouncer from starting.

comment:2 Changed 5 years ago by hellais

Resolution: fixed
Status: newclosed

This has now been fixed in the latest versions of oonibackend.

Note: See TracTickets for help on using tickets.