photonvision icon indicating copy to clipboard operation
photonvision copied to clipboard

PhotonVision not Working on Romi Robot

Open zagdrath opened this issue 4 years ago • 5 comments
trafficstars

I followed both [https://docs.photonvision.org/en/latest/docs/getting-started/installation/romi.html] and [https://docs.photonvision.org/en/latest/docs/getting-started/installation/coprocessor-image.html#other-debian-based-co-processor-installation] while installing PhotonVision to my romi robot and when I do systemctl status photonvision.service an error come sup and says this.

I am unable to access the PhotonVision web interface by going to http://10.0.0.2:5800/ which is what the guide says to go to.

zagdrath avatar Jul 26 '21 22:07 zagdrath

I do believe the issue is that the systemd service is not running as root even though it should by default.

zagdrath avatar Jul 27 '21 00:07 zagdrath

Yeah that seems to line up. Photonvision needs to run as root on Linux usually yes.

mcm001 avatar Jul 27 '21 00:07 mcm001

The solution here is that the system needs to be in RW mode.

systemctl stop photonvision.service
rw
systemctl start photonvision.service

The install script should detect if the host system is a romi (or have in docs) and disable RW (or other workaround) for the romi since photonvision handles this.

Daltz333 avatar Jul 27 '21 00:07 Daltz333

More information: Romi system can be detected via existence of

pi@photonvision(rw):~$ ls /service/wpilibws-romi
log  run  supervise

Daltz333 avatar Jul 27 '21 00:07 Daltz333

Also update.... the latest development version (and eventual 1.9 release) should have a change which allows running without root. You won't be able to save settings, but it should at least execute.

gerth2 avatar Nov 24 '21 00:11 gerth2