I followed the instructions at https://ooni.torproject.org/install/lepidopter and found a few errors.
It tells you how to gpg-verify the image, but not how to download the .asc signature itself.
The xz command has a .zip filename, not .xz: xz --decompress --verbose --no-sparse lepidopter-alpha-armel.img.zip
It says the login credentials are lepidopter/lepidopter, but doesn't say what to do with them. I guess there should be a hint at the bottom that the next thing to do is go to http://lepidopter.local/
The README.md file at https://github.com/TheTorProject/lepidopter also has a little bug, an extra "of=" in the bmaptool command: bmaptool copy --nobmap lepidopter-alpha-armel.img.xz of=/dev/diskX
After booting, my Raspberry Pi doesn't have a web interface (only port 22 is open).
On Wed, Oct 26, 2016 at 06:26:13PM -0700, David Fifield wrote:
After booting, my Raspberry Pi doesn't have a web interface (only port 22 is open).
On IRC, Arturo said this was caused by me using the wrong image. I used https://get.ooni.torproject.org/lepidopter/lepidopter-alpha-armel.img.xz instead of https://get.ooni.torproject.org/lepidopter/lepidopter-v0.3.5-beta-armel.img....
I tried running /opt/ooni/update-ooniprobe.sh as suggested. It produced a lot of warnings:
# /opt/ooni/update-ooniprobe.sh Could not find .egg-info directory in install record for ooniprobe from https://pypi.python.org/packages/72/87/ec83e6464e3e85d149b8cf4286f0568c5f6f9... in /usr/local/lib/python2.7/dist-packages/ooniprobe-1.4.2-py2.7.egg Could not find .egg-info directory in install record for PyYAML>=3.10 from https://pypi.python.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac63... in /usr/local/lib/python2.7/dist-packages/PyYAML-3.11-py2.7-linux-armv7l.egg (from ooniprobe) Could not find .egg-info directory in install record for Twisted>=13.2.0 from https://pypi.python.org/packages/6b/23/8dbe86fc83215015e221fbd861a545c6ec5c9... in /usr/local/lib/python2.7/dist-packages/Twisted-16.2.0-py2.7-linux-armv7l.egg (from ooniprobe) Could not find .egg-info directory in install record for scapy>=2.2.0 from https://pypi.python.org/packages/ac/14/c792a14b9f8bc4bb9c74c0594c167a2da36e3... in /usr/local/lib/python2.7/dist-packages/scapy-2.3.2-py2.7.egg (from ooniprobe) Could not find .egg-info directory in install record for zope.interface from https://pypi.python.org/packages/38/1b/d55c39f2cf442bd9fb2c59760ed058c84b57d... in /usr/local/lib/python2.7/dist-packages/zope.interface-4.1.3-py2.7-linux-armv7l.egg (from ooniprobe) Could not find .egg-info directory in install record for cryptography>=1.3.4 (from pyOpenSSL>=0.15.1->ooniprobe) Could not find .egg-info directory in install record for cffi>=1.4.1 from https://pypi.python.org/packages/0a/f3/686af8873b70028fccf67b15c78fd4e4667a3... in /usr/local/lib/python2.7/dist-packages/cffi-1.6.0-py2.7-linux-armv7l.egg (from cryptography>=1.3.4->pyOpenSSL>=0.15.1->ooniprobe) Could not find .egg-info directory in install record for pycparser from https://pypi.python.org/packages/eb/83/00c55ff5cb773a78e9e47476ac1a0cd2f0fb7... in /usr/lib/python2.7/dist-packages (from cffi>=1.4.1->cryptography>=1.3.4->pyOpenSSL>=0.15.1->ooniprobe) WARNING: Usage of this script is deprecated.
After updating, there was still no webapp listening on port 80. After updating (and also after rebooting) there was still no webapp.
I'm going to try starting over with the correct image, unless you want me to try something different.
Hi David,
David Fifield:
On Wed, Oct 26, 2016 at 06:26:13PM -0700, David Fifield wrote:
After booting, my Raspberry Pi doesn't have a web interface (only port 22 is open).
On IRC, Arturo said this was caused by me using the wrong image. I used https://get.ooni.torproject.org/lepidopter/lepidopter-alpha-armel.img.xz instead of https://get.ooni.torproject.org/lepidopter/lepidopter-v0.3.5-beta-armel.img....
Indeed as Arturo mentioned already on IRC this image is quite old and I guess we should move to an archive instead.
You can always find the latest image in: https://get.ooni.torproject.org/lepidopter/current/
I tried running /opt/ooni/update-ooniprobe.sh as suggested. It produced a lot of warnings:
The script `/opt/ooni/update-ooniprobe.sh` run the following commands:
apt-get -y -qq purge python-cryptography
# Update ooniprobe pip -q install ooniprobe --upgrade # Update ooniresources ooniresources --update-inputs
# /opt/ooni/update-ooniprobe.sh Could not find .egg-info directory in install record for ooniprobe from https://pypi.python.org/packages/72/87/ec83e6464e3e85d149b8cf4286f0568c5f6f9... in /usr/local/lib/python2.7/dist-packages/ooniprobe-1.4.2-py2.7.egg Could not find .egg-info directory in install record for PyYAML>=3.10 from https://pypi.python.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac63... in /usr/local/lib/python2.7/dist-packages/PyYAML-3.11-py2.7-linux-armv7l.egg (from ooniprobe) Could not find .egg-info directory in install record for Twisted>=13.2.0 from https://pypi.python.org/packages/6b/23/8dbe86fc83215015e221fbd861a545c6ec5c9... in /usr/local/lib/python2.7/dist-packages/Twisted-16.2.0-py2.7-linux-armv7l.egg (from ooniprobe) Could not find .egg-info directory in install record for scapy>=2.2.0 from https://pypi.python.org/packages/ac/14/c792a14b9f8bc4bb9c74c0594c167a2da36e3... in /usr/local/lib/python2.7/dist-packages/scapy-2.3.2-py2.7.egg (from ooniprobe) Could not find .egg-info directory in install record for zope.interface from https://pypi.python.org/packages/38/1b/d55c39f2cf442bd9fb2c59760ed058c84b57d... in /usr/local/lib/python2.7/dist-packages/zope.interface-4.1.3-py2.7-linux-armv7l.egg (from ooniprobe) Could not find .egg-info directory in install record for cryptography>=1.3.4 (from pyOpenSSL>=0.15.1->ooniprobe) Could not find .egg-info directory in install record for cffi>=1.4.1 from https://pypi.python.org/packages/0a/f3/686af8873b70028fccf67b15c78fd4e4667a3... in /usr/local/lib/python2.7/dist-packages/cffi-1.6.0-py2.7-linux-armv7l.egg (from cryptography>=1.3.4->pyOpenSSL>=0.15.1->ooniprobe) Could not find .egg-info directory in install record for pycparser from https://pypi.python.org/packages/eb/83/00c55ff5cb773a78e9e47476ac1a0cd2f0fb7... in /usr/lib/python2.7/dist-packages (from cffi>=1.4.1->cryptography>=1.3.4->pyOpenSSL>=0.15.1->ooniprobe)
This warning is kind of "normal" for pip installation.
WARNING: Usage of this script is deprecated.
ooniresources has been now deprecated in ooniprobe v2.0.0 it now uses an internal scheduler. This is also not fatal.
After updating, there was still no webapp listening on port 80. After updating (and also after rebooting) there was still no webapp.
I'm going to try starting over with the correct image, unless you want me to try something different.
Upon upgradeing ooniprobe (pip -q install ooniprobe --upgrade) should have installed the lepidopter-update service that will do the required updates and bring up ooniprobe service and ensure that the ooniproge-agent is running.
Do you see the systemd (units) services of lepidopter-update and ooniprobe with status running?
You can check with: systemctl lepidopter-update status systemctl ooniprobe status
If you see that these services are not running you can query the systemd journal with: journalctl -l _SYSTEMD_UNIT=lepidopter-update.service
Thank you for running lepidopter!
~Vasilis
On Fri, Oct 28, 2016 at 04:04:00AM +0000, Vasilis wrote:
Upon upgradeing ooniprobe (pip -q install ooniprobe --upgrade) should have installed the lepidopter-update service that will do the required updates and bring up ooniprobe service and ensure that the ooniproge-agent is running.
Hmm, you're right. I checked it just now and it's running python2 /opt/ooni/lepidopter-update/updater.py --log-file /var/log/ooni/lepidopter-update.log update --watch
The webapp seems to be running now too.
Do you see the systemd (units) services of lepidopter-update and ooniprobe with status running?
You can check with: systemctl lepidopter-update status systemctl ooniprobe status
$ systemctl status lepidopter-update ● lepidopter-update.service - lepidopter-update service Loaded: loaded (/etc/systemd/system/lepidopter-update.service; enabled) Active: active (running) since Thu 2016-10-27 19:17:13 UTC; 11h ago Main PID: 315 (python2) CGroup: /system.slice/lepidopter-update.service └─315 python2 /opt/ooni/lepidopter-update/updater.py --log-file /var/log/ooni/lepidopter-update.log update --watch $ systemctl status ooniprobe ● ooniprobe.service - ooniprobe.service, network interference detection tool Loaded: loaded (/etc/systemd/system/ooniprobe.service; enabled) Active: active (running) since Thu 2016-10-27 19:46:43 UTC; 10h ago Process: 661 ExecStop=/usr/local/bin/ooniprobe-agent stop (code=exited, status=0/SUCCESS) Process: 695 ExecStart=/usr/local/bin/ooniprobe-agent start (code=exited, status=0/SUCCESS) Main PID: 714 (ooniprobe-agent) CGroup: /system.slice/ooniprobe.service ├─714 /usr/bin/python /usr/local/bin/ooniprobe-agent start └─722 /usr/sbin/tor -f /non-existant --ignore-missing-torrc ControlPort 11276 DataDirectory /opt/ooni/tor_data_dir User root SocksPort 53161 CookieAuthentic...
David Fifield:
On Fri, Oct 28, 2016 at 04:04:00AM +0000, Vasilis wrote:
Upon upgradeing ooniprobe (pip -q install ooniprobe --upgrade) should have installed the lepidopter-update service that will do the required updates and bring up ooniprobe service and ensure that the ooniproge-agent is running.
Hmm, you're right. I checked it just now and it's running python2 /opt/ooni/lepidopter-update/updater.py --log-file /var/log/ooni/lepidopter-update.log update --watch
The webapp seems to be running now too.
Do you see the systemd (units) services of lepidopter-update and ooniprobe with status running?
You can check with: systemctl lepidopter-update status systemctl ooniprobe status
$ systemctl status lepidopter-update ● lepidopter-update.service - lepidopter-update service Loaded: loaded (/etc/systemd/system/lepidopter-update.service; enabled) Active: active (running) since Thu 2016-10-27 19:17:13 UTC; 11h ago
[...]
$ systemctl status ooniprobe ● ooniprobe.service - ooniprobe.service, network interference detection tool Loaded: loaded (/etc/systemd/system/ooniprobe.service; enabled) Active: active (running) since Thu 2016-10-27 19:46:43 UTC; 10h ago
[...]
Indeed the services are up and running.
Thank you for contributing to OONI!
~Vasilis
Hi,
David Fifield:
I followed the instructions at https://ooni.torproject.org/install/lepidopter and found a few errors.
It tells you how to gpg-verify the image, but not how to download the .asc signature itself.
The xz command has a .zip filename, not .xz: xz --decompress --verbose --no-sparse lepidopter-alpha-armel.img.zip
It says the login credentials are lepidopter/lepidopter, but doesn't say what to do with them. I guess there should be a hint at the bottom that the next thing to do is go to http://lepidopter.local/
The README.md file at https://github.com/TheTorProject/lepidopter also has a little bug, an extra "of=" in the bmaptool command: bmaptool copy --nobmap lepidopter-alpha-armel.img.xz of=/dev/diskX
Thank you for reporting this, I will update the documentation accordingly!
~Vasilis