Is it possible to recover from removing revpi-webserver?
Posted: 12 May 2025, 18:30
Hey all! I could use your help. I have been trying to recover from trying to reinstall the webserver on my Pi Connect 5 unit in which I started by blowing it away (bad call in hindsight) and now I cannot seem to get the install back on the unit. Any thoughts or recommendations are welcome! I have tried the following so far.
- sudo apt-get install --reinstall revpi-webstatus pictory
- restarting the apache2 web service
I also tried to re-generate the auth keys (which I noticed were not present despite reading they should automatically regenerate).
At this point in time I am in a state in which the cockpit loaded locally on the device wont even launch properly and I am seeing the following error messages and symptoms
- Cockpit will not launch locally on device anymore
- not even seeing apache logs appear right now
- I do still see the revpi-webserver.conf file in the sites-available and sites-enabled directories but it doesnt even look like these are loading
-What I am seeing in the output of the "status apache2.service" command is shown below:
--- > apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line 21 of /etc/apache2/sites-enabled/revpi-webserver
--- > Where line 21 in revpi-webserver is "Include /usr/share/revpi-webserver/apache2/conf" and this file and the corresponding revpi-webserver directory does not seem to exist
- sudo apt-get install --reinstall revpi-webstatus pictory
- restarting the apache2 web service
I also tried to re-generate the auth keys (which I noticed were not present despite reading they should automatically regenerate).
At this point in time I am in a state in which the cockpit loaded locally on the device wont even launch properly and I am seeing the following error messages and symptoms
- Cockpit will not launch locally on device anymore
- not even seeing apache logs appear right now
- I do still see the revpi-webserver.conf file in the sites-available and sites-enabled directories but it doesnt even look like these are loading
-What I am seeing in the output of the "status apache2.service" command is shown below:
--- > apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line 21 of /etc/apache2/sites-enabled/revpi-webserver
--- > Where line 21 in revpi-webserver is "Include /usr/share/revpi-webserver/apache2/conf" and this file and the corresponding revpi-webserver directory does not seem to exist