Updating Open Peer Power


Check what’s new in the latest version and potentially impacts your system in the Open Peer Power release notes. It is good practice to review these release notes and pay close attention to the Breaking Changes that are listed there. If you haven’t done an update for a while, you should also check previous release notes as they can also contain relevant Breaking Changes. These Breaking Changes may require configuration updates for your components. If you missed this and Open Peer Power refuses to start, check the log file in the configuration directory, e.g., .openpeerpower/open-peer-power.log, for details about broken components.

The default way to update Open Peer Power to the latest release, when available, is:

pip3 install --upgrade openpeerpower

For a Docker container, simply pull the latest one:

sudo docker pull openpeerpower/open-peer-power:latest

For a Raspberry Pi Docker container, simply pull the latest one:

sudo docker pull openpeerpower/raspberrypi3-openpeerpower:latest

After updating, you must start/restart Open Peer Power for the changes to take effect. This means that you will have to restart opp itself or the autostarting daemon (if applicable). Startup can take a considerable amount of time (i.e., minutes) depending on your device. This is because all requirements are updated as well.

BRUH automation has created a tutorial video explaining how to upgrade Open Peer Power.

Run a specific version

In the event that a Open Peer Power version doesn’t play well with your hardware setup, you can downgrade to a previous release:

pip3 install openpeerpower==0.XX.X

Run the beta version

If you would like to test the next release before anyone else, you can install the beta version released every two weeks:

pip3 install --pre --upgrade openpeerpower

Run the development version

If you want to stay on the bleeding-edge Open Peer Power development branch, you can upgrade to dev.

The "dev" branch is likely to be unstable. Potential consequences include loss of data and instance corruption.
$ pip3 install --upgrade git+git://github.com/OpenPeerPower/Open-Peer-Power.git@dev

Update Open Peer Power installation

Best practice for updating a Open Peer Power installation:

  1. Backup your installation, using the snapshot functionality Open Peer Power offers.
  2. Check the release notes for breaking changes on Open Peer Power release notes. Be sure to check all release notes between the version you are running and the one you are upgrading to. Use the search function in your browser (CTRL + f) and search for Breaking Changes.
  3. Check your configuration using the Check Open Peer Power configuration add-on.
  4. If the check passes, you can safely update. If not, update your configuration accordingly.
  5. Update Open Peer Power.