Revert a Z-Way upgrade with help of the terminal
Posted: 07 Nov 2018 17:35
Revert a faulty Z-Way upgrade - e.g. v2.3.8 upgrade done on Wheezy
If you unfortunately tried to upgrade to the latest and your hub seems to be broken now then please follow these steps to roll the update back:
Note:
This won't heal a controller factory reset. Therfore a controller backup is necessary to revert it.
But luckily if the the controller isn't touched by such issue, everything will be there after downgrade.
In any other case of problems please contact the Support:
support(at)z-wave.eu (DE/EN)
razberry(at)z-wave.me (RU/EN/FR)
Or try to search our forums to find a suitable solution:
http://forum.z-wave.me/ (EN/RU/DE/FR/IT/CN)
========================================================================
Anleitung in deutsch: Mit Hilfe des Terminals ein fehlerhaftes Upgrade rückgängig machen
If you unfortunately tried to upgrade to the latest and your hub seems to be broken now then please follow these steps to roll the update back:
- open a SSH client like Putty to connect to your hub by SSH
Users of a Popp Hub 1 may find the ssh password in a file called password.txt stored on the boot section of the SD card. To read it out make your Popp Hub powerless, remove the SD card and put it into a card reader (maybe you need an adapter for micro SD card too) to read it out on your computer. Open the directory of the SD card and write down the password from password.txt. Eject the SD card and put it back into your Popp Hub 1 - be carefully sometimes the card can slip between the tiny slots and you need to open the case.
Enter the IP of your Hub and click on Open - enter your SSH credentials to login
Popp Hub 1 user enter
login: pi
password: [the one taken from password.txt] - go to the /opt directory
Code: Select all
$ cd /opt
- stop the z-way-server
Code: Select all
$ sudo /etc/init.d/z-way-server stop
- list all z-way-server folders within /opt directory
The folder z-way-server is the current server and it's predecessor is the one with the most recent date.
Code: Select all
$ ls -al ./
In our case z-way-server_2018-07-03-09-55-01 - backup the current folder like this
Code: Select all
$ sudo mv z-way-server/ old_z-way-server/
- and check again with
Use Curser-Up or Curser-Down to navigate between the last entered terminal commands
Code: Select all
$ ls -al ./
- Now rename the backed up z-way-server like in the example
your server is now rolled back to your last installation
Code: Select all
$ sudo mv z-way-server_2018-07-03-09-55-01/ z-way-server/
- start the z-way-server
Code: Select all
$ sudo /etc/init.d/z-way-server start
- Now check if everything is working fine again. If you did some more upgrades between, try these steps with another backup again.
- After finishing you can exit the SSH session with
Code: Select all
$ exit
Note:
This won't heal a controller factory reset. Therfore a controller backup is necessary to revert it.
But luckily if the the controller isn't touched by such issue, everything will be there after downgrade.
In any other case of problems please contact the Support:
support(at)z-wave.eu (DE/EN)
razberry(at)z-wave.me (RU/EN/FR)
Or try to search our forums to find a suitable solution:
http://forum.z-wave.me/ (EN/RU/DE/FR/IT/CN)
========================================================================
Anleitung in deutsch: Mit Hilfe des Terminals ein fehlerhaftes Upgrade rückgängig machen