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
Is it possible to recover from removing revpi-webserver?
Re: Is it possible to recover from removing revpi-webserver?
So I removed everything from "/sites-enabled" except the 000-default.conf file and the server was able to start and once I added back the "revpi-webserver.conf" symlink I saw the issue come back. I believe the issue is that I no longer have the content that was once contained in the "/usr/share/revpi-webserver/" file as I was not thinking when I blew it away. Is there a repo I could grab this from and replace it with for the connect 5 platform?
- RevPiModIO
- KUNBUS
- Posts: 347
- Joined: 20 Jan 2017, 08:44
- Contact:
Re: Is it possible to recover from removing revpi-webserver?
Hi JS_bd_11!
To make your web server (apache) ready to start again with the RevPi components, you can run the following command:
This should install all the packages (and the contents) back into your file system.
What you may have to do by hand are the commands for Apache, if something has been deactivated there.
Sven
To make your web server (apache) ready to start again with the RevPi components, you can run the following command:
Code: Select all
sudo apt-get reinstall cockpit-revpi-apache cockpit-revpi-redirect-apache pictory-apache revpi-webserver-apache
What you may have to do by hand are the commands for Apache, if something has been deactivated there.
Code: Select all
sudo a2enmod revpi-webserver
sudo a2ensite revpi-webserver
python3-RevPiModIO - https://revpimodio.org/ || Der RevPi ist das Beste, was passieren konnte!