Difference between revisions of "Update Passbolt Version"

From Notes_Wiki
(Created page with "Home > Ubuntu > Ubuntu 22.04 > Ubuntu 22.04 Passbolt setup > Update Passbolt Version = Update Passbolt Version = It is recommended to always perform a backup of your Passbolt installation before proceeding. == 1. Take Down Your Site == Stop your web server to prevent user activity during the upgrade: <syntaxhighlight lang="bash"> sudo systemctl stop nginx </syntaxhighlight> == 2. Update Passbolt CE == Update your package lists: <syn...")
 
 
(9 intermediate revisions by the same user not shown)
Line 6: Line 6:
It is recommended to always perform a backup of your Passbolt installation before proceeding.
It is recommended to always perform a backup of your Passbolt installation before proceeding.


== 1. Take Down Your Site ==
=== 1. Take Down Your Site ===


Stop your web server to prevent user activity during the upgrade:
Stop your web server to prevent user activity during the upgrade:


<syntaxhighlight lang="bash">
<pre>
sudo systemctl stop nginx
sudo systemctl stop nginx
</syntaxhighlight>
</pre>


== 2. Update Passbolt CE ==
=== 2. Update Passbolt CE ===


Update your package lists:
Update your package lists:
 
<pre>
<syntaxhighlight lang="bash">
sudo apt update
sudo apt update
</syntaxhighlight>
</pre>


Upgrade only the Passbolt CE package:
Upgrade only the Passbolt CE package:


<syntaxhighlight lang="bash">
<pre>
sudo apt --only-upgrade install passbolt-ce-server
sudo apt --only-upgrade install passbolt-ce-server
</syntaxhighlight>
</pre>


You may also run a full system upgrade if desired:
You may also run a full system upgrade if desired:


<syntaxhighlight lang="bash">
<pre>
sudo apt upgrade
sudo apt upgrade
</syntaxhighlight>
</pre>


== 3. Clear the Application Cache ==
=== 3. Clear the Application Cache ===


After the upgrade, clear Passbolt’s cache to ensure all changes are reflected:
After the upgrade, clear Passbolt’s cache to ensure all changes are reflected:


<syntaxhighlight lang="bash">
<pre> sudo -H -u www-data bash -c "/usr/share/php/passbolt/bin/cake cache clear_all" </pre>
sudo -H -u www-data bash -c "/usr/share/php/passbolt/bin/cake cache clear_all"
 
</syntaxhighlight>


''Note: Use `nginx` instead of `www-data` if your web server runs as `nginx`.''
''Note: Use `nginx` instead of `www-data` if your web server runs as `nginx`.''


== 4. Bring Your Site Back Online ==
=== 4. Bring Your Site Back Online ===


Restart your webserver:
Restart your webserver:


<syntaxhighlight lang="bash">
<pre>
sudo systemctl start nginx
sudo systemctl start nginx
</syntaxhighlight>
</pre>


== 5. Verify Integrity & Health ==
=== 5. Verify Integrity & Health ===


After the update, Passbolt automatically performs a dry run of the cleanup to detect any data integrity issues.
After the update, Passbolt automatically performs a dry run of the cleanup to detect any data integrity issues.
Line 58: Line 56:
Run the health check:
Run the health check:


<syntaxhighlight lang="bash">
<pre>
sudo -H -u www-data bash -c "/usr/share/php/passbolt/bin/cake passbolt healthcheck"
sudo -H -u www-data bash -c "/usr/share/php/passbolt/bin/cake passbolt healthcheck"
</syntaxhighlight>
</pre>


If integrity issues are detected, resolve them by running the cleanup without the dry run flag:
If integrity issues are detected, resolve them by running the cleanup without the dry run flag:


<syntaxhighlight lang="bash">
<pre>
sudo -H -u www-data bash -c "/usr/share/php/passbolt/bin/cake passbolt cleanup"
sudo -H -u www-data bash -c "/usr/share/php/passbolt/bin/cake passbolt cleanup"
</syntaxhighlight>
</pre>


Then run the health check again to confirm everything is working as expected.
Then run the health check again to confirm everything is working as expected.
'''ref''': https://www.passbolt.com/docs/hosting/update/ubuntu/
[[Main Page|Home]] > [[Ubuntu]] > [[Ubuntu 22.04]] > [[Ubuntu 22.04 Passbolt setup]] > [[Update Passbolt Version]]

Latest revision as of 10:19, 12 June 2025

Home > Ubuntu > Ubuntu 22.04 > Ubuntu 22.04 Passbolt setup > Update Passbolt Version


Update Passbolt Version

It is recommended to always perform a backup of your Passbolt installation before proceeding.

1. Take Down Your Site

Stop your web server to prevent user activity during the upgrade:

sudo systemctl stop nginx

2. Update Passbolt CE

Update your package lists:

sudo apt update

Upgrade only the Passbolt CE package:

sudo apt --only-upgrade install passbolt-ce-server

You may also run a full system upgrade if desired:

sudo apt upgrade

3. Clear the Application Cache

After the upgrade, clear Passbolt’s cache to ensure all changes are reflected:

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


Note: Use `nginx` instead of `www-data` if your web server runs as `nginx`.

4. Bring Your Site Back Online

Restart your webserver:

sudo systemctl start nginx

5. Verify Integrity & Health

After the update, Passbolt automatically performs a dry run of the cleanup to detect any data integrity issues.

Run the health check:

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

If integrity issues are detected, resolve them by running the cleanup without the dry run flag:

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

Then run the health check again to confirm everything is working as expected.


ref: https://www.passbolt.com/docs/hosting/update/ubuntu/


Home > Ubuntu > Ubuntu 22.04 > Ubuntu 22.04 Passbolt setup > Update Passbolt Version