• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Trouble Upgrading Plesk 12.0.18 to 12.15

Daedalus3

New Pleskian
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:

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:
Hi Igor,

thanks for your reply. I did try that and it didn't work. However, as stated, I'm not sure how the file would have to look under Ubuntu:

12.0.18-ubuntu14.04.build1200140610.21

12.0.18 ubuntu14.04 build1200140610.21

12.0.18 ubuntu14.04 1200140610.21


(actually, I tried all of these combinations and it didn't work :-( )

Could you give me a hint on this?

Thanks!
 
What is output of

# cat /usr/local/psa/core.version
# cat /usr/local/psa/version

?
 
Unfortunately I haven't now test server with Ubuntu14.04 but on other servers I see:

12.5.30 CentOS 6 1205151127.16
12.0.18 CentOS 6 1200151014.14
11.5.30 Debian 6.0 115140407.17

Looks like there should be something like

12.0.18 Ubuntu 14.04 1200140610.21

instead of your

12.0.18 ubuntu14.04.build1200140610.21

?
 
Igor -you're damn fast, and you rock.

It seems to have been the capitalized U in Ubuntu 14.04. That being changed, the autoinstaller worked and I didn't need the fixes in the preinst file.

Maybe it's a good idea to add this examples for other linux distributions to the kb article.

Thanks again!
 
Back
Top