plesk_getkeyinfo.sh SEGMENTATION FAULT on CentOS 5.2
A segmentation fault is occurring during upgrade from 8.6 to 9.0 when the plesk_getkeyinfo.sh is executed.
I've even tried with autoinstaller on the command line:
# /usr/local/psa/bin/autoinstaller --select-release-id PLESK_9_0_0 --upgrade-installed-components
Downloading the file products.inf3: 100% done.
Downloading the file plesk.inf3: 10%..24%..35%..40%..51%..61%..70%..80%..91%..100% done.
Downloading the file sitebuilder.inf3: 20%..60%..100% done.
Downloading the file sso.inf3: 13%..27%..54%..67%..81%..100% done.
Checking for installed packages...
Downloading the file PSA_9.0.0/plesk-9.0.0-cos5-i386.inf3: 10%..20%..30%..40%..50%..60%..70%..80%..90%..100% done.
Detecting installed product components.
Exchanging information with licensing server.base
Downloading the file PSA_9.0.0/plesk_getkeyinfo.sh: 100% done.
/root/parallels/PSA_9.0.0/plesk_getkeyinfo.sh: line 9: 19473 Segmentation fault $file -uadmin psa < /dev/null > /dev/null 2>&1
Failed to check whether a new license key is available.
The installation will not continue.
ERROR: Failed to check whether a new license key is available.
The installation will not continue.
Not all packages were installed.
Please, contact product technical support.
Further examination of the plesk_getkeyinfo.sh:
# pwd
/root/parallels/PSA_9.0.0
# sh plesk_getkeyinfo.sh
plesk_getkeyinfo.sh: line 9: 29889 Segmentation fault $file -uadmin psa < /dev/null > /dev/null 2>&1
cannot connect to mysql database
I commented out the lines that check for the mysql client and set the mysql_client variable directly:
#mysql_client=
#for file in /usr/local/psa/mysql/bin/mysql /usr/local/bin/mysql /usr/bin/mysql; do
# if $file -uadmin psa </dev/null >/dev/null 2>&1; then
# mysql_client="$file"
# break
# fi
#done
mysql_client="/usr/bin/mysql"
Now when I run it:
# sh plesk_getkeyinfo.sh
Key Info v1.0
PleskLogin
PleskPassword
https://ka.swsoft.com:5224/
PLSK***CENSORED***
***LONG KEY CENSORED HERE***
It works! But, running autoinstaller redownloads the plesk_getkeyinfo.sh file again and fails to segmentation fault.
Something about the "if $file -uadmin psa </dev/null >/dev/null 2>&1; then" line is breaking it.
Parallels fix this!!!
-Kevin