-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ethoscopes not showing in UI #171
Comments
By the look of it, it seems the router is blocking traffic on the network and the devices cannot see each other. Have a look at the instructions here. |
Thanks for the quick reply! On the ethoscope: [alarm@ETHOSCOPE000 ~]$ ifconfig wlan0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.7 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::e65f:1ff:fe5b:9bc4 prefixlen 64 scopeid 0x20<link>
ether e4:5f:01:5b:9b:c4 txqueuelen 1000 (Ethernet)
RX packets 262 bytes 32575 (31.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 96 bytes 11852 (11.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 On the node
Pinging works just fine: [alarm@node ~]$ ping 192.168.0.7 -c 5
PING 192.168.0.7 (192.168.0.7) 56(84) bytes of data.
64 bytes from 192.168.0.7: icmp_seq=1 ttl=64 time=0.382 ms
64 bytes from 192.168.0.7: icmp_seq=2 ttl=64 time=0.383 ms
64 bytes from 192.168.0.7: icmp_seq=3 ttl=64 time=0.347 ms
64 bytes from 192.168.0.7: icmp_seq=4 ttl=64 time=0.338 ms
64 bytes from 192.168.0.7: icmp_seq=5 ttl=64 time=0.366 ms
--- 192.168.0.7 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4121ms
rtt min/avg/max/mdev = 0.338/0.363/0.383/0.018 ms And the ethoscope doesn't seem to be available: [alarm@node ~]$ curl http://192.168.0.7:9000/id
curl: (7) Failed to connect to 192.168.0.7 port 9000: Connection refused I'll give it a go again tomorrow. :-) |
Then either the router is blocking internal traffic on port 9000 or the ethoscope service is not running on the ethoscope. |
Is there any way to check if the ethoscope service is running on the ethoscope? Then I'll start out with that test, then check firewalls - and otherwise I think I'll just get a new router (this one's quite old). |
yes of course
should return something like the following:
From here. |
Ah, (this is from the RPi4 image) it seems it might be an [alarm@ETHOSCOPE000 ~]$ systemctl status ethoscope_device
* ethoscope_device.service - Ethoscope device server
Loaded: loaded (/usr/lib/systemd/system/ethoscope_device.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2021-11-21 23:47:13 UTC; 486ms ago
Main PID: 605 (python3)
Tasks: 1 (limit: 394)
CPU: 470ms
CGroup: /system.slice/ethoscope_device.service
`-605 /usr/bin/python3 /opt/ethoscope-device/src/scripts/device_server.py -D
Nov 21 23:47:14 ETHOSCOPE000 python3[605]: from ethoscope.stimulators.stimulators import DefaultStimulator
Nov 21 23:47:14 ETHOSCOPE000 python3[605]: File "/opt/ethoscope-device/src/ethoscope/stimulators/__init__.py", line 2, in <module>
Nov 21 23:47:14 ETHOSCOPE000 python3[605]: from . import stimulators
Nov 21 23:47:14 ETHOSCOPE000 python3[605]: File "/opt/ethoscope-device/src/ethoscope/stimulators/stimulators.py", line 3, in <module>
Nov 21 23:47:14 ETHOSCOPE000 python3[605]: from ethoscope.utils.description import DescribedObject
Nov 21 23:47:14 ETHOSCOPE000 python3[605]: File "/opt/ethoscope-device/src/ethoscope/utils/__init__.py", line 4, in <module>
Nov 21 23:47:14 ETHOSCOPE000 python3[605]: from . import io
Nov 21 23:47:14 ETHOSCOPE000 python3[605]: File "/opt/ethoscope-device/src/ethoscope/utils/io.py", line 7, in <module>
Nov 21 23:47:14 ETHOSCOPE000 python3[605]: import cv2
Nov 21 23:47:14 ETHOSCOPE000 python3[605]: ModuleNotFoundError: No module named 'cv2' When creating the image I couldn't get I've run out of SD cards (had to use the one with the Pi3 image), but just ordered a new one so I can confirm whether this is also the case on the RPi 3. |
On the RPi 3 things are working! I'll close this issue and refer to the RPi specific challenges in #170. |
This seems to be a very similar issue to #111 (and maybe #161 and #138) , but in case it's different I'll make a new issue. Feel free to merge.
I've been getting the same issue both for the provided RPi 3 ethoscope image and a newly created image for RPi 4.
I am able to boot the ethoscope just fine (no rainbow screen), it is connecting to the network (visible to the router as
Unknown
), and I can ping between the node and the ethoscope, but the ethoscope does not show up in the UI.I've also tried to add it with the IP address, but to no avail.
It seems that the issue might have to do with the avahi-daemon.
avahi-browse --all
shows no sign of the ethoscope. If I runsystemctl status avahi-daemon
I can see that it is disabled, but even after enabling it, the ethoscope still doesn't show up.And after activating it with
avahi-daemon -D
(or editing and undoing the edit), and getting a good readout, it still doesn't show up.Meanwhile, the ethoscope just continues to print audits.
I tried searching in the other issues, but I haven't found an obvious solution. Any ideas what I'm missing?
It might be worth mentioning that I haven't updated the system or accessed whatever is in Resources as I don't have internet connection here.
The text was updated successfully, but these errors were encountered: