There was recently an apt bug on the QuickBox Pro v3 updater and fix version binary. This bug would frequently result in apt dpkg locks which were occurring from a half-baked php8.1-fpm package update. As this would stage a lock in place, the result would be one of breakage on the updater as additional package checks could not be performed. To avoid this from happening in the future there is now a hold placed on the php packages. This ensures that updates from both CLI and the dashboard go through without being challenged by the triggers performed on php8.1.
PHP can be updated at any time, manually, by running in CLI sudo qb fix php
.
I have been posting staggered updates to sort it out, however, some users may not had updated to the latest releases just yet.
It is recommended to perform regular server maintenance on your server to avoid any issues.
This is not a complicated task and is very simple with:
apt -y update && apt -y upgrade && apt -y autoremove && apt -y autoclean
Should you run apt -y update && apt -y upgrade
and notice a process lock on apt, run kill -9 PROCESS_ID_SHOWN
and attempt to continue with the below.
It is pretty much a one straight shot solution, that I personally run every other day – out of habit mainly, but good practice all the same. Should you encounter this now resolved bug on the updater (as of today, this posting), you can run the below to get updated and everything sorted out.
To begin run the following block of code as root:
mkdir -p /tmp/quickbox wget https://quickbox.io/files/2022/08/QuickBox_Pro.zip -P /tmp/quickbox/ unzip -qq /tmp/quickbox/QuickBox_Pro.zip -d /tmp/quickbox/quickbox \cp -rf /tmp/quickbox/quickbox/* /opt/quickbox/ rm -rf /tmp/quickbox /opt/mflibs git clone https://github.com/mschf-dev/mflibs /opt/mflibs mkdir -p /opt/mflibs/src/custom \cp -f "/opt/quickbox/config/system/mflibs/quickbox" /opt/mflibs/src/custom/quickbox.sh [[ -L "/usr/local/bin/qb" ]] && unlink /usr/local/bin/qb ln -sf /opt/quickbox/bin/qb /usr/local/bin/qb dos2unix $(find /opt/quickbox/ -type f) chmod +x $(find /opt/quickbox/ -type f)
This will grab and update the essential libraries required.
Should you see an error such as the following:
error[2]: local api check failed
You can run a quick deactivation and reactivation of your key – this will not have any negative impact on applications installed.
- First, deactivate the current key with
qb manage api -o deactivate
- Next, reactivate your key with
qb manage api -k YOUR_API_KEY
Once you have ran the above, finally try running another qb fix version
after another sourcing of the bash environment with sudo -i
This should then have you sorted out! As I am continuing on with this under a microscope to ensure it doesn’t repeat, I would like to thank everyone for their patience, as well as their reports within the tickets here on the website. With that said, I should be back on Discord on Monday as I am currently busy dealing with some personal matters. So again, if you need support, please open a ticket and I will get to it as soon as possible. 💖