Revert a Z-Way upgrade with help of the terminal

Tips, Tricks and Scripts to enhance your home automation and workaround known device bugs, limitations and incompatibilities
Post Reply
User avatar
ronie
Posts: 58
Joined: 29 Jun 2015 09:50

Revert a Z-Way upgrade with help of the terminal

Post by ronie »

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:
  1. 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
    GUI of putty
    GUI of putty
    putty_login.png (15.73 KiB) Viewed 6536 times
  2. enter your SSH credentials to login
    Popp Hub 1 user enter
    login: pi
    password: [the one taken from password.txt]
    ssh login on hub
    ssh login on hub
    hub_login.png (4.88 KiB) Viewed 6536 times
  3. go to the /opt directory

    Code: Select all

    $ cd /opt
  4. stop the z-way-server

    Code: Select all

    $ sudo /etc/init.d/z-way-server stop
  5. list all z-way-server folders within /opt directory

    Code: Select all

    $ ls -al ./
    ssh login on hub
    ssh login on hub
    hub_login.png (4.88 KiB) Viewed 6536 times
    The folder z-way-server is the current server and it's predecessor is the one with the most recent date.
    In our case z-way-server_2018-07-03-09-55-01
  6. backup the current folder like this

    Code: Select all

    $ sudo mv z-way-server/ old_z-way-server/
  7. and check again with

    Code: Select all

    $ ls -al ./
    Use Curser-Up or Curser-Down to navigate between the last entered terminal commands
  8. Now rename the backed up z-way-server like in the example

    Code: Select all

    $ sudo mv z-way-server_2018-07-03-09-55-01/ z-way-server/
    your server is now rolled back to your last installation
  9. start the z-way-server

    Code: Select all

    $ sudo /etc/init.d/z-way-server start
  10. Now check if everything is working fine again. If you did some more upgrades between, try these steps with another backup again.
  11. After finishing you can exit the SSH session with

    Code: Select all

    $ exit
These steps can restore your old installations independent on which platform and OS you are (except WD NAS and Popp Hub 2).

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
Attachments
list of all installed and backed up z-way-server
list of all installed and backed up z-way-server
z-way-server_list.PNG (39.34 KiB) Viewed 6536 times
Post Reply