Update Bugsoft Portal
Install a new version with one command, sudo bugsoft update --latest: the package is downloaded and checked, a backup is made first, and on an error the previous version is back at once.
On a server set up with install.sh, you install a new version with one command. What is new, and what IT must
do, is on What's new.
Update to a new version
When the Licence page says Version … is available (see below), one command does it all:
sudo bugsoft update --latest
- It first runs the licence check (as Check now does), so the download link is a fresh one.
- It shows the change, for example
Bugsoft Portal 4.12.3 → 4.13.0, and asks whether to go on. Add--yesto skip that question (for example in your own script). - It downloads the package with its
.sha256and.sigfrom the licence server, over HTTPS only, into a folder that only root can read (/opt/bugsoft/releases/.download-…). - It checks the package (see Update Bugsoft Portal), and then does the normal update below. The download folder is removed afterwards, also when something fails.
Then check the server: sudo bugsoft status
Nothing happens by itself: you choose the moment. --latest is there from version 4.12.3 on; to get to 4.12.3,
use a downloaded file as below.
With a downloaded package
The other way, for example when the server cannot reach the licence server, or the online check is off (an offline licence):
- Download the new package with its
.sha256and.sigfiles to the server, into the same folder: from the Licence page (see below), or from bugsoft.eu. - Start the update:
sudo bugsoft update bugsoft-<new>.tar.gz
- Then check the server:
sudo bugsoft status
What is checked before anything changes
- The download link, the version and the SHA-256 come from the signed answer of the licence check. Bugsoft Portal only trusts an answer that the key of the licence server verifies, and only a link on the licence server itself.
- With
--latest: the SHA-256 of the package, and the one in its.sha256, must both be the one in that signed answer. - The SHA-256 in the
.sha256file, and the signature (.sig) with the release key of the version that runs now: exactly as with a downloaded file. - The package must hold the version that was named, and be newer than the version that runs.
If one of these checks fails, the update stops: no backup, no maintenance page, nothing changed.
When there is no download
sudo bugsoft update --latest stops with a message, and changes nothing, when:
- there is no newer version (this is not an error);
- the online licence check is off (an offline licence): use a downloaded file;
- the licence does not include downloads now (it has ended or is revoked, or the trial is over);
- the link has expired, or the licence check has not answered yet: press Check now on the Licence page,
or run
sudo bugsoft license:latest --check, and try again.
sudo bugsoft license:latest shows what the last licence check offers: the version, the SHA-256 and until when
the link works (--check checks first, --json for scripts). It installs nothing.
The notice in your portal
When a new version is out, administrators see Version … is available at the top of Admin › Settings › System › Licence, and one line on Admin › Start. The daily licence check brings this news (The licence). The card shows:
- the version, the release date, and Security update when it fixes a security problem;
- What's new, and the links to download
bugsoft-<new>.tar.gz, its.sha256and its.sig; - the SHA-256 of the package, the command
sudo bugsoft update --latest, and the command for a downloaded file.
The download links work only for a valid licence (until its end date) or during the trial, and for 7 days after the last check; Check now gives new ones. They are made for your installation: do not share them. To download by hand, use the three files with the same names, or on the server itself, for example:
curl -fL -o bugsoft-<new>.tar.gz '<download link>' curl -fL -o bugsoft-<new>.tar.gz.sha256 '<download link>.sha256' curl -fL -o bugsoft-<new>.tar.gz.sig '<download link>.sig' sha256sum -c bugsoft-<new>.tar.gz.sha256
Then run the command for a file, as above.
Docker
A Docker installation does not use bugsoft update or --latest: it updates with a new Docker
bundle (bugsoft-docker-<new>.tar.gz, from bugsoft.eu) or image and
docker/host/bugsoft-upgrade, as before (Bugsoft Portal with Docker). The notice on the Licence page still tells
you when a new version is out; its download link is the server package, not the Docker bundle.
What the update does
- It checks the SHA-256 and the signature of the package with the release key of the version that runs now.
- It refuses an older version, and a version that needs a newer PHP than the server has.
- It makes a backup first. If that fails, nothing changes.
- It puts the new version in
/opt/bugsoft/releases/<new>and switches on the maintenance page. - It switches over, updates the database, empties the cache, checks the modules and reloads PHP-FPM.
- It switches off the maintenance page, and checks
/healthzandproduction:check.
The update itself is done by the install.sh from the new package, which knows the steps of its own
version. The three newest versions stay on the server.
If something goes wrong
If a step fails, the update switches back to the previous version at once, and shows which backup it just made.
The database stays as it is. Database changes in Bugsoft Portal only add things, so the previous version usually works with it. Only restore the database if you need to:
sudo bugsoft restore 2026-11-22_141500
See Backups and restoring. Then contact ugurs156@gmail.com, and send the log
/var/log/bugsoft-install.log.
The maintenance page
During the update, everyone sees a simple maintenance page (with the ladybird icon). A monitor that requests
/healthz still sees the portal. The update usually takes less than a minute.
A test package
A package without a signature (a test version from the vendor) is only accepted with --allow-unsigned. Never use
this in production.
An installation without a release key
Was Bugsoft Portal installed with a version that had no release key yet? Then the update shows the fingerprint of the key in the new package. Compare it with the fingerprint on bugsoft.eu, and confirm. After that, the server uses that key.
Stuck? See Questions and problems or contact Bugsoft at ugurs156@gmail.com.