Hi guys,
I've some trouble upgrading from Plesk 12.0.18 to 12.5 (or just updating 12.0.8 to anything above it). This problem has its issue due to an ubuntu upgrade, the plesk updater hasn't been working for quite some months now, microupdates had to be installed manually.
The updater fails, giving the following error:
"
Error: An error occurred during performing of installation PREP actions (see log for details). Installation was rolled back.
Warning! Not all packages were installed.
Please check if your system services are operable.
Please resolve this issue and try installing the packages again."
Checking the logs, the problem resides in plesk not being able to find the correct version number of the panel installed.
"Unable to determine version or build number of psa installed.Itis impossibleto upgrade psa to version 12.0.18 . Try to install a new version without saving data remove '/opt/psa' directorymanually.Please backup all data before removing it if necessary."
Reinstalling of course isn't an option.
Now debugging the preinst script of plesk-core package, I found the function "get_prev_version()" prompts debian the correct version, however later in the script it requests "$prev_build" which is never set, as the code prior in the script is skipped.
I fixed it, using a precheck routine:
However, after building a deb package an trying to install it, the installer fails, giving the error:
/opt/psa/core.version: 12.0.18-ubuntu14.04.build1200140610.21: not found
The core.version file was missing, I tried rebuilding it. I obviously missed something. Is the string
"12.0.18-ubuntu14.04.build1200140610.21" the correct one or should the file look different?
Any help is highly appreciated, thanks!
I've some trouble upgrading from Plesk 12.0.18 to 12.5 (or just updating 12.0.8 to anything above it). This problem has its issue due to an ubuntu upgrade, the plesk updater hasn't been working for quite some months now, microupdates had to be installed manually.
The updater fails, giving the following error:
"
Error: An error occurred during performing of installation PREP actions (see log for details). Installation was rolled back.
Warning! Not all packages were installed.
Please check if your system services are operable.
Please resolve this issue and try installing the packages again."
Checking the logs, the problem resides in plesk not being able to find the correct version number of the panel installed.
"Unable to determine version or build number of psa installed.Itis impossibleto upgrade psa to version 12.0.18 . Try to install a new version without saving data remove '/opt/psa' directorymanually.Please backup all data before removing it if necessary."
Reinstalling of course isn't an option.
Now debugging the preinst script of plesk-core package, I found the function "get_prev_version()" prompts debian the correct version, however later in the script it requests "$prev_build" which is never set, as the code prior in the script is skipped.
I fixed it, using a precheck routine:
Code:
if["X${prev_build}"="X"];then
prev_build=`cat $1/core.version | awk '{ print $4 }'`
fi
prev_short_version=`form_undotted_version ${prev_version}`
if["X${prev_version}"="X"-o "X${prev_build}"="X"-o -z "$prev_short_version"];then
However, after building a deb package an trying to install it, the installer fails, giving the error:
/opt/psa/core.version: 12.0.18-ubuntu14.04.build1200140610.21: not found
The core.version file was missing, I tried rebuilding it. I obviously missed something. Is the string
"12.0.18-ubuntu14.04.build1200140610.21" the correct one or should the file look different?
Any help is highly appreciated, thanks!
Last edited: