PhotonVision / photonvision

PhotonVision is the free, fast, and easy-to-use computer vision solution for the FIRST Robotics Competition.
https://photonvision.org
GNU General Public License v3.0
264 stars 180 forks source link

Cannot connect to dash on Romi (although photonvision running) #1256

Closed builder173 closed 6 months ago

builder173 commented 6 months ago

I followed the "Romi Installation" guide here, seemingly with no issues. I'm able to connect to the wpilib dash on 10.0.0.2 but get connection refused error when trying final step from guide to open dashboard: After it reboots, you should be able to locate the PhotonVision UI at: http://10.0.0.2:5800/.

If I ssh into the pi I can even see that the photonvision.jar program is running. However netstat doesn't show the program binding any ports. I think I saw in codebase that logs stored in /config but not sure which directory. I'm not sure if this has always been the case, but this WPILib page says the Romi image boots up Read-only and I noticed that PhotonVision needs write access? Could that be a new incompatibility?

pi@wpilibpi(rw):~$ more runCamera 
#!/bin/sh
### TYPE: builtin
echo "Waiting 5 seconds..."
sleep 10000
#exec /usr/local/frc/bin/multiCameraServer
pi@wpilibpi(rw):~$ ps -ef|grep photon
root         313       1  0 12:23 ?        00:00:07 /usr/bin/java -Xmx512m -jar /opt/photonvision/photonvision.jar
pi          1332     721  0 12:45 pts/0    00:00:00 grep --color=auto photon
pi@wpilibpi(rw):~$ netstat | grep 5800

Platform:

mcm001 commented 6 months ago

Photon needs a writable FS to extract native libraries yeah. Try journalctl -u photonvision.service?

builder173 commented 6 months ago

@mcm001 - thanks, that does show the log. It's limited to whatever appeared after FS is made writable.

It works to make the FS writable in the WPILib dash and then restart the service. After this I was able to open the dashboard.

>sudo systemctl stop photonvision
>sudo systemctl start photonvision