TheTorProject / lepidopter

lepidopter: raspberry pi image for conducting OONI network measurements
https://ooni.torproject.org/
GNU General Public License v3.0
47 stars 20 forks source link

ooniprobe is not running and web interface fails to load decks and recent results #106

Closed muellermartin closed 5 years ago

muellermartin commented 5 years ago

I've just installed Lepidopter 1.0.0 on a Raspberry Pi B+ and when I open the web interface, I get this error twice as popup:

Failed to load decks SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

The ooniprobe Dashboard shows that ooniprobe is not running and that it failed to load decks and recent results.

Using the refresh button on the top right results in the same error messages.

A quick look at the browser's network debugger shows that the requests to /status, /deck, /measurement and /nettest are failing with HTTP error code 500.

The response for /status shows following traceback as result:

Click to expand ``` web.Server Traceback (most recent call last): exceptions.AttributeError: 'int' object has no attribute 'splitlines' /usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py:151 in maybeDeferred 150 try: 151 result = f(*args, **kw) 152 except: /usr/local/lib/python2.7/dist-packages/klein/_app.py:134 in execute_endpoint 133 endpoint_f = self._endpoints[endpoint] 134 return endpoint_f(self._instance, *args, **kwargs) 135 /usr/local/lib/python2.7/dist-packages/klein/_app.py:250 in _f 249 def _f(instance, request, *a, **kw): 250 return _call(instance, f, request, *a, **kw) 251 /usr/local/lib/python2.7/dist-packages/klein/_app.py:55 in _call 54 args = (__klein_instance__,) + args 55 result = __klein_f__(*args, **kwargs) 56 if iscoroutine(result): /usr/local/lib/python2.7/dist-packages/ooniprobe-2.3.0-py2.7.egg/ooni/ui/web/server.py:69 in wrapper 68 raise WebUIError(404, "Invalid XSRF token") 69 return f(instance, request, *a, **kw) 70 /usr/local/lib/python2.7/dist-packages/ooniprobe-2.3.0-py2.7.egg/ooni/ui/web/server.py:278 in api_status 277 def api_status(self, request): 278 return self.render_json(self.status, request) 279 /usr/local/lib/python2.7/dist-packages/ooniprobe-2.3.0-py2.7.egg/ooni/ui/web/server.py:260 in render_json 259 request.setHeader('Content-Type', 'application/json') 260 request.setHeader('Content-Length', len(json_string)) 261 return json_string /usr/local/lib/python2.7/dist-packages/twisted/web/http.py:1271 in setHeader 1270 """ 1271 self.responseHeaders.setRawHeaders(name, [value]) 1272 /usr/local/lib/python2.7/dist-packages/twisted/web/http_headers.py:220 in setRawHeaders 219 encodedValues = [_sanitizeLinearWhitespace(v) 220 for v in self._encodeValues(values)] 221 /usr/local/lib/python2.7/dist-packages/twisted/web/http_headers.py:40 in _sanitizeLinearWhitespace 39 """ 40 return b' '.join(headerComponent.splitlines()) 41 exceptions.AttributeError: 'int' object has no attribute 'splitlines' ```

And the other requests (/deck, /measurement and /nettest) show this traceback as result:

Click to expand ``` web.Server Traceback (most recent call last): exceptions.AttributeError: 'int' object has no attribute 'splitlines' /usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py:151 in maybeDeferred 150 try: 151 result = f(*args, **kw) 152 except: /usr/local/lib/python2.7/dist-packages/klein/_app.py:141 in execute_error_handler 140 """ 141 return handler(self._instance, request, failure) 142 /usr/local/lib/python2.7/dist-packages/klein/_app.py:368 in _f 367 def _f(instance, request, failure): 368 return _call(instance, f, request, failure) 369 /usr/local/lib/python2.7/dist-packages/klein/_app.py:55 in _call 54 args = (__klein_instance__,) + args 55 result = __klein_f__(*args, **kwargs) 56 if iscoroutine(result): /usr/local/lib/python2.7/dist-packages/ooniprobe-2.3.0-py2.7.egg/ooni/ui/web/server.py:69 in wrapper 68 raise WebUIError(404, "Invalid XSRF token") 69 return f(instance, request, *a, **kw) 70 /usr/local/lib/python2.7/dist-packages/ooniprobe-2.3.0-py2.7.egg/ooni/ui/web/server.py:255 in web_ui_error 254 "error_message": error.message 255 }, request) 256 /usr/local/lib/python2.7/dist-packages/ooniprobe-2.3.0-py2.7.egg/ooni/ui/web/server.py:260 in render_json 259 request.setHeader('Content-Type', 'application/json') 260 request.setHeader('Content-Length', len(json_string)) 261 return json_string /usr/local/lib/python2.7/dist-packages/twisted/web/http.py:1271 in setHeader 1270 """ 1271 self.responseHeaders.setRawHeaders(name, [value]) 1272 /usr/local/lib/python2.7/dist-packages/twisted/web/http_headers.py:220 in setRawHeaders 219 encodedValues = [_sanitizeLinearWhitespace(v) 220 for v in self._encodeValues(values)] 221 /usr/local/lib/python2.7/dist-packages/twisted/web/http_headers.py:40 in _sanitizeLinearWhitespace 39 """ 40 return b' '.join(headerComponent.splitlines()) 41 exceptions.AttributeError: 'int' object has no attribute 'splitlines' ```
anadahz commented 5 years ago

Thank you for your reporting this issue.

Did you check if ooniprobe agent is running (systemctl status ooniprobe)?

Please note that lepidopter is based on the python version of ooniprobe that is now considered legacy, but not deprecated as there no replacement yet. Feel free to check out the next generation OONI Probe CLI and compile it for the Raspberry Pi.

muellermartin commented 5 years ago

ooniprobe seems to be running. At least systemctl status ooniprobe shows Active: active (running) state and ps aux | grep [o]oniprobe returns a process: /usr/bin/python /usr/local/bin/ooniprobe-agent start.

anadahz commented 5 years ago

Can you please try using a different browser with/or a clean profile and no plugins?

muellermartin commented 5 years ago

Good point, I admit that I did not rule this out. But now I've tried to load the website additionally in Firefox Nightly, Safari and Google Chrome – sadly with the same result.

anadahz commented 5 years ago

Can you run a test manually from cli? Example: root@lepidopter:~# ooniprobe -v manipulation/http_invalid_request_line

Perhaps you can also try to restart ooniprobe service.

muellermartin commented 5 years ago

I've ran the test as user lepidopter with following output (seems to be successfull):

Click to expand ``` /usr/local/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py:163: CryptographyDeprecationWarning: OpenSSL version 1.0.1 is no longer supported by the OpenSSL project, please upgrade. A future version of cryptography will drop support for it. utils.CryptographyDeprecationWarning It looks like this is the first time you are running ooniprobe Please take a minute to read through the informed consent documentation and understand what are the risks associated with running ooniprobe. Press enter to continue... Type "yes" if you are fully aware of the risks associated with using ooniprobe and you wish to proceed > yes Now help us configure some things! Should we upload measurements to a collector? (Y/n) Should we include your IP in measurements? (y/N) y Should we include your ASN (your network) in measurements? (Y/n) Should we include your Country in measurements? (Y/n) How would you like reports to be uploaded? (onion, https, cloudfront) https ooniprobe is now initialized. You can begin using it! No test deck detected Checking if backend is present Tor is not running. Skipping IP lookup via Tor. Looking up your IP address via ubuntu Found your IP via a GeoIP service Running task update-inputs Detected first run Updating the global inputs and resources Moving /home/lepidopter/.ooni/resources/H6td6XbNaYCAmnNtmanifest.json to /home/lepidopter/.ooni/resources/manifest.json Moving /home/lepidopter/.ooni/resources/citizenlab-test-lists/1WHFpCr-8ArgvW5e00-LEGEND-category_codes.csv to /home/lepidopter/.ooni/resources/citizenlab-test-lists/00-LEGEND-category_codes.csv Moving /home/lepidopter/.ooni/resources/tor-bridges/mwtOoosyybo_rh6ytor-bridges-ip-port.csv to /home/lepidopter/.ooni/resources/tor-bridges/tor-bridges-ip-port.csv Moving /home/lepidopter/.ooni/resources/maxmind-geoip/ir7psVp-uS0b3arGGeoIPASNum.dat to /home/lepidopter/.ooni/resources/maxmind-geoip/GeoIPASNum.dat Moving /home/lepidopter/.ooni/resources/citizenlab-test-lists/EfTQ6y7sMu-isuauglobal.csv to /home/lepidopter/.ooni/resources/citizenlab-test-lists/global.csv Moving /home/lepidopter/.ooni/resources/citizenlab-test-lists/zclR2823ylcS78escis.csv to /home/lepidopter/.ooni/resources/citizenlab-test-lists/cis.csv Moving /home/lepidopter/.ooni/resources/citizenlab-test-lists/Ds0h9_zfB6-H53Yy00-LEGEND-new_category_codes.csv to /home/lepidopter/.ooni/resources/citizenlab-test-lists/00-LEGEND-new_category_codes.csv Moving /home/lepidopter/.ooni/resources/citizenlab-test-lists/ieyKc_pOShucDIEC00-LEGEND-country_codes.csv to /home/lepidopter/.ooni/resources/citizenlab-test-lists/00-LEGEND-country_codes.csv Moving /home/lepidopter/.ooni/resources/maxmind-geoip/vHk08OQxNx19sVHpGeoIP.dat to /home/lepidopter/.ooni/resources/maxmind-geoip/GeoIP.dat Updating the inputs Updating the inputs for country DE Moving /home/lepidopter/.ooni/resources/citizenlab-test-lists/Uszpt0HLJTMaFMXDde.csv to /home/lepidopter/.ooni/resources/citizenlab-test-lists/de.csv Looking up collector and test helpers with https://bouncer.ooni.io Querying backend https://bouncer.ooni.io/bouncer/net-tests with {'net-tests': [{'test-helpers': ['tcp-echo'], 'version': '0.2', 'name': 'http_invalid_request_line', 'input-hashes': []}]} Querying backend https://c.collector.ooni.io:443/invalidpath with None Got this backend error message {u'error': 404} Setting collector and test helpers for http_invalid_request_line Using collector Starting dcc11fe6428efb1e (user-run) Creating report with OONIB Reporter. Please be patient. This may take up to 1-2 minutes... Querying backend https://c.collector.ooni.io:443/report with {'data_format_version': '0.2.0', 'software_name': 'ooniprobe', 'test_version': '0.2', 'software_version': '2.3.0', 'test_name': 'http_invalid_request_line', 'test_start_time': '2019-07-15 13:35:57', 'format': 'json', 'input_hashes': [], 'probe_asn': 'AS680', 'probe_cc': 'DE'} Created report with id 20190715T133558Z_AS680_ZI4YiCiwqRDqtndiFalaRosy8PkQvF6mliHhXUzxlYmOrlvdmi Starting this task Running < inputs=[None]> test_random_invalid_method Connecting to 37.218.247.110:80 Running < inputs=[None]> test_random_invalid_version_number Connecting to 37.218.247.110:80 Running < inputs=[None]> test_random_invalid_field_count Connecting to 37.218.247.110:80 Running < inputs=[None]> test_random_big_request_method Connecting to 37.218.247.110:80 Connected to 37.218.247.110:80 Connected to 37.218.247.110:80 Connected to 37.218.247.110:80 Connected to 37.218.247.110:80 Closing connection Checking if == ZU2C / HTTP/1.1\n\r random_invalid_method: Detected manipulation! Successfully completed measurement: Checking all tasks for completion 0 == 4 Successfully performed measurement None Closing connection Checking if GET / HTTP/L5l\n\r == GET / HTTP/L5l\n\r random_invalid_version_number: No manipulation detected. Successfully completed measurement: Successfully performed measurement None Closing connection Checking if ePPCU sKFTv pYj93 rvjH7\n\r == ePPCU sKFTv pYj93 rvjH7\n\r random_invalid_field_count: No manipulation detected. Successfully completed measurement: Successfully performed measurement None Closing connection Checking if 5blfUJreXxgNoReKIdGrNRhkslVftqPmLlGxXUrpQmj7fSdfJVH6GW5BXnC4l3FnfX9W0bzbGZPRj7fq7HBSg6RPUCJg2gSPhvD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kJqk0mIu1vAS0JZdP9ctIs8ibevlJRnT61mKBnhZTr8CTPzEFYshU1FduccrSC8qKb5cTYrepMgwCpf2PEuQMWe2kskRF3ss9C1tT6Gp04tVBhYxmGPzy7RZ6cPN6SwXlYYwfjzIwa01puxhj7uIs1HkX5eTHLMFUvYEfnlOMila3djkCfOLH55esTdSiesZJJnxmUd8fBnVa5D4838ScO1vCDfl9E0NwCbnizATSyYSVmh8JaARzZ4nwrlGYkMJjIpL8sEkT4pJiy14evRu3DDUwI4icSaKbitucA2Ilb40IAGrmRrdUxbt7effKLUVIPAFh6oPMIZ6eoSQgs0uVH1SQ6LfADZ5KafmZlo0lw4QQDPcItcQat3tJNGIjQDpLrrxLQ0v5FE6qildaeq2jiDLeBbJWhJChlLDNDuJU0Bf2ujcuhxNuTSLNOPksEP9uPLMEi9cn6dBEded7OOpjOy93DrWQCXtYUIKv2RZ5iTcLoNE2CSSIW3QwxGGxzOQvRViUgGxLSHmQ6kuiMOZan2CsFFOD42zkXokT2JFAJXbnocZ8TElw27uxHxR9J1gwTbYjMm5JDxV200ZsuRyOGvxWwomd4S4NwyHX9EEvhO1Q9LlfgUueFaq8ioGM8338nrCW8woQrAf7SjNK4fEruVs7rsQVirLuZB4h1rGkevh5uKkCnJLoWhW34I3qs19yiLcj9L4Wi80h9PQZpmvY67IopN329IBQnTqziHsLjFqT6FcHjcGYBRRUtvwXTC9HDGAoKAZ1laZyQLSozAZjWdRaiXbfQmM4QELXhY9llQ68xaU5bB1qFlrU02Doxab5jG2thdroL6gZnfH1K3v6V2Hf5QVZnC194m5F37 / HTTP/1.1\n\r random_big_request_method: No manipulation detected. Successfully completed measurement: Starting this task Successfully performed report None Starting this task Updating report with id 20190715T133558Z_AS680_ZI4YiCiwqRDqtndiFalaRosy8PkQvF6mliHhXUzxlYmOrlvdmi Querying backend https://c.collector.ooni.io:443/report/20190715T133558Z_AS680_ZI4YiCiwqRDqtndiFalaRosy8PkQvF6mliHhXUzxlYmOrlvdmi with {'content':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jG2thdroL6gZnfH1K3v6V2Hf5QVZnC194m5F37 / HTTP/1.1\\n\\r']}, 'software_version': '2.3.0', 'measurement_start_time': '2019-07-15 13:35:58', 'test_start_time': '2019-07-15 13:35:57', 'probe_asn': 'AS680', 'test_name': 'http_invalid_request_line', 'software_name': 'ooniprobe', 'annotations': {'platform': 'lepidopter'}, 'data_format_version': '0.2.0', 'test_runtime': 5.268187999725342, 'options': [], 'test_version': '0.2', 'input_hashes': [], 'input': None, 'probe_ip': '141.13.99.137', 'report_id': u'20190715T133558Z_AS680_ZI4YiCiwqRDqtndiFalaRosy8PkQvF6mliHhXUzxlYmOrlvdmi', 'probe_city': None, 'id': 'f05563e5-9158-438c-83b4-955209e7e2ca', 'test_helpers': {'backend': '37.218.247.110'}, 'probe_cc': 'DE'}, 'format': 'json'} Successfully performed measurement None Status ------ 1/4 completed 25.0% (ETA: 0s) Checking all tasks for completion 1 == 4 Status ------ 2/4 completed 50.0% (ETA: 1s) Checking all tasks for completion 2 == 4 Status ------ 3/4 completed 75.0% (ETA: 0s) Checking all tasks for completion 3 == 4 Status ------ 4/4 completed 99.0% (ETA: 1s) Checking all tasks for completion 4 == 4 Report ID: 20190715T133558Z_AS680_ZI4YiCiwqRDqtndiFalaRosy8PkQvF6mliHhXUzxlYmOrlvdmi Closing report with id 20190715T133558Z_AS680_ZI4YiCiwqRDqtndiFalaRosy8PkQvF6mliHhXUzxlYmOrlvdmi Querying backend https://c.collector.ooni.io:443/report/20190715T133558Z_AS680_ZI4YiCiwqRDqtndiFalaRosy8PkQvF6mliHhXUzxlYmOrlvdmi/close with None Successfully performed report None Deleting log file Finished dcc11fe6428efb1e (user-run) ```

Edit: After manually running your suggested test, the web interface still shows the same errors. Restarting ooniprobe via sudo systemctl restart ooniprobe takes quite a while, but also has no effect on the shown errors (still the same).

anadahz commented 5 years ago

It seems that ooniprobe runs OK (though with a different, note that some tests require extra privileges). It may be related to this issue: https://github.com/scrapy/scrapyd/issues/311

Could you please check which version of Twisted are you running (pip list |grep Twisted)?

muellermartin commented 5 years ago
lepidopter@lepidopter:~$ pip list |grep Twisted
/usr/local/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py:163: CryptographyDeprecationWarning: OpenSSL version 1.0.1 is no longer supported by the OpenSSL project, please upgrade. A future version of cryptography will drop support for it.
  utils.CryptographyDeprecationWarning
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
Twisted (19.2.1)
anadahz commented 5 years ago

Can you try to downgrade the Twisted pip package to an earlier version and restart ooniprobe service? sudo pip install == 'Twisted==18.7.0' && sudo systemctl restart ooniprobe

muellermartin commented 5 years ago

I had to remove the double equal before Twisted to make the command work (sudo pip install 'Twisted==18.7.0' && sudo systemctl restart ooniprobe).

After downgrading from Twisted 19.2.1 to 18.7.0, the dashboard showed the welcome screen with the setup and now everything is reported to work as expected. I guess this issue is resolved – thanks a lot for your help!

anadahz commented 5 years ago

I'm going to close this issue, thank you for reporting back.