Is there a way to reinstall the pioreactor app after a borked installation?

I didn’t read the docs properly and tried to leapfrog too many versions when installing from .zip. I received some errors when trying to install and now the version installed on leader is missing and if I try to install anything from a .zip file I receive an error that I presume is related to this


pioreactor@pioreactor01:~ $ pio version -v
Pioreactor app: 24.12.10
Pioreactor HAT: 1.2
Pioreactor firmware: 0.3
Model name:
HAT serial number: 2a6c6146-289c-4260-8dfd-f6579d0f112b
Operating system: Linux-6.6.31+rpt-rpi-v8-aarch64-with-glibc2.36
Raspberry Pi: Raspberry Pi 4 Model B Rev 1.1
Image version: 1f4d3b37a567ee988d191d4ce8fcfaf3cc06c7d5
Pioreactor UI:

I don’t really want to reflash the whole OS. Can I just git pull the repo somewhere and reboot? I also made some changes to the pioreactorui folder in /var/www so I guess it could be related to that?

Thanks!

We can probably fix your system. Can you SSH into your leader and try the following?

pio update ui -v 24.12.10

Does your UI show data again? If so, you can continue with the zip updates.

Thanks. Sorry I should have mentioned we’re using the zip update approach because we can ssh in but haven’t been able to get the internet working. Managed to use pio update app/ui --source method to get everything updated. Thanks for your help!

Not sure if this is a weird thing specific to me but when I run the update script my pip doesn’t like

sudo pip install --no-index --find-links={tmp_rls_dir}/wheels/ {tmp_rls_dir}/pioreactor-{version_installed}-py3-none-any.whl[leader,worker]

Because it gives an error that using pip outside of a virtual environment is bad (see here)

I fixed it by adding to my /etc/pip.conf file:

[global]
break-system-packages = true

Seems like this was a thing here should it have been updated at some point and I didn’t do the updates properly? Everything else seems to be working