Help Search

Upgrade Passbolt from CE to Pro on Debian

Pre-requisites

For this tutorial, you will need:

  • A minimal Debian server.
  • Passbolt CE Debian package installed.

Upgrading passbolt

1. Take down your site

It is generally a good idea to stop running the site prior to the upgrade. This is to avoid having side effects such as active users corrupting the data in the middle of an upgrade.

$ sudo systemctl stop nginx

2. Backup passbolt

First things first, as this is a sensitive operation a backup of the instance must be performed to prevent any data loss. You can follow our backup process.

3. Upload your subscription key

You should copy your subscription key to /etc/passbolt/license and ensure the permissions are correct.

sudo chown root:www-data /etc/passbolt/license
sudo chmod 640 /etc/passbolt/license

4. Uninstall passbolt CE

Passbolt CE package should be removed prior to installing passbolt Pro.

sudo apt-get remove passbolt-ce-server

5. Update passbolt package repository

Add Passbolt package official GnuPG key from keys.mailvelope.com:

gpg --keyserver hkps://keys.mailvelope.com --receive-keys 0xDE8B853FC155581D 

Or alternatively from hkps://pgp.mit.edu or hkps://keys.gnupg.net.

Check that the GPG fingerprint matches 3D1A 0346 C8E1 802F 774A EF21 DE8B 853F C155 581D

gpg --list-key --with-fingerprint 0xDE8B853FC155581D

Must return:

pub   rsa2048 2020-05-18 [SC] [expires: 2022-05-18]
      3D1A 0346 C8E1 802F 774A  EF21 DE8B 853F C155 581D
uid           [ unknown] Passbolt SA package signing key <[email protected]>
sub   rsa2048 2020-05-18 [E] [expires: 2022-05-18]

Create GPG package keyring

gpg --export 0xDE8B853FC155581D | sudo tee \
  /usr/share/keyrings/passbolt-repository.gpg >/dev/null

Add passbolt repository:

cat << EOF | sudo tee /etc/apt/sources.list.d/passbolt.sources > /dev/null
Types: deb
URIs: https://download.passbolt.com/pro/debian
Suites: buster
Components: stable
Signed-By: /usr/share/keyrings/passbolt-repository.gpg
EOF

Update the apt indexes with the new passbolt apt repository:

sudo apt-get update

6. Install passbolt Pro

Now you can install the passbolt Pro package.

sudo apt-get install passbolt-pro-server

As you have already configured passbolt CE, and passbolt Pro relies on the same configuration, you should reply:

  • No for mysql configuration
  • No to nginx configuration

7. Migrate the data

Once the package installed, run the following command to migrate the data to passbolt Pro:

sudo -H -u www-data /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt migrate"

8. Clear the cache

Make sure you clear the application cache, to make sure any changes in the database structure are reflected in model cache files:

sudo -H -u www-data bash -c "/usr/share/php/passbolt/bin/cake cache clear_all"

9. Take your site back up

Finally take passbolt back up:

sudo systemctl start nginx

Last updated

This article was last updated on November 2nd, 2021.

Your installation is not based on a debian package?

Migrate passbolt to debian package

Are you experiencing issues with Passbolt Pro Edition?

Contact Pro support

or ask the community

🍪   Do you accept cookies for statistical purposes? (Read more) Accept No thanks!