• 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

After Update & Hotfix Plesk 9.2.3 won't start (SWKeyExFatalError)

S

stephhh

Guest
Hi everybody!

Last night i've updated my Plesk 9.2.2 with Plesk 9.2.3. Everything seemed to work fine (except the Hotfix), but somehow Plesk won't start.

When i try to open the admin loginpage https://xxx.xxx.xx:8443 i only get the following:

ERROR: SWKeyExFatalError
error: Cannot open file

0: common_func.php3:4480
of_get_key_by_product(string 'plesk-unix')
1: common_func.php3:4480
getPleskKey()
2: common_func.php3:4559
getKeyProp(string 'demo')
3: auth.php3:48

That's all! No login, nothing else! I've tried to reinstall my license key with "/opt/psa/admin/bin/keymng --install --source-file /home/xxx/xxx" but still the same!

When i try to start "/etc/init.de/psa start" i get the following:

aton:~# /etc/init.d/psa start
Starting xinetd service... done
Starting bind9 service... done
Starting mysql service... done
Starting postgresql service... not installed
Starting psa-spamassassin service... done
Plesk: Starting Mail Server... done
Starting mail handlers tmpfs storage
Starting Plesk... failed

So my major question is: Why does'nt Plesk start???

Here's the result of the autoupdater, in case it my help:

Try to find rcfile...
Autoinstaller rcfile not found.
Opsys detected as: os_vendor=Debian os_name=Linux version=4.0 arch=x86_64 environment=~empty Final opsys

...

Setting up psa-mail-driver-common (9.2.3-debian4.0.build92091210.11) ...
mv: cannot stat `/var/qmail/control/spf*': No such file or directory Trying to executing mail_restore to synchronize mail server settings and Plesk Database... postalias: warning: /etc/aliases, line 3: need name:value pair
postalias: warning: /etc/aliases, line 3: need name:value pair done Stopping Postfix Mail Transport Agent: postfix.
Starting Postfix Mail Transport Agent: postfix.

...

Stop running named daemon
Trying to stop service bind9... Stopping domain name service...: bindnamed: no process killed
named: no process killed
...
named: no process killed
failed!
done
Trying to untar named run-root directory structure... done Trying to set up default permissions... done
ln: creating symbolic link `/var/named/run-root/etc/bind/rndc.conf' to `/var/named/run-root/etc/rndc.conf': File exists Trying to start service bind9... Starting domain name service...: bind.
done
Trying to install chrooted environment... mknod: `/var/www/vhosts/chroot/dev/null': File exists
groups: application/x-shellscript
probably it will not work in chrooted acconts

WARNING!
During the register groups in chrooted environment found some problems(see log file: /tmp/psa_9.2.3_debian4.0.build92091009.18_upgrade.100111.04.03.log)

Continue...

done

===> Cumulative upgrade has been started Trying to shedule license displaying for admin login... done ===> Upgrade completed.
Trying to set psa database version to 0923... Trying to stop service bind9... Stopping domain name service...: bindnamed: no process killed
named: no process killed
...
named: no process killed
Trying to start service bind9... done
Trying to clean up compiled python modules... Trying to update Components table... done Trying to executing mail_restore to synchronize mail server settings and Plesk Database... postalias: warning: /etc/aliases, line 3: need name:value pair
postalias: warning: /etc/aliases, line 3: need name:value pair Package 'psa-spamassassin' is not found in Components table Package 'psa-spamassassin' is not found in Components table done Stopping Postfix Mail Transport Agent: postfix.
Starting Postfix Mail Transport Agent: postfix.

Trying to start Plesk...
Stopping Plesk... done
Stopping mail handlers tmpfs storage
Starting xinetd service... done
Starting bind9 service... done
Starting mysql service... done
Starting postgresql service... not installed Starting psa-spamassassin service... done
Plesk: Starting Mail Server... already started Starting mail handlers tmpfs storage Starting Plesk... done Trying to start service apache2... done


Congratulations!
All stages of the upgrade were successful.
Plesk is now running on your system.

...

Trying to register service psa... using /usr/sbin/update-rc.d System startup links for /etc/init.d/psa already exist.
done

(Reading database ... 70273 files and directories currently installed.) Preparing to replace psa-watchdog 2.0.3-debian4.0.build92090714.19 (using .../psa-watchdog_2.0.3-debian4.0.build92091009.18_amd64.deb) ...
Trying to start service mysql... done
Trying to establish test connection... connected done ===> Checking database version ===> Deleting older event handlers Unpacking replacement psa-watchdog ...
Preparing to replace psa-awstats-configurator 1.0.0-debian4.0.build92090714.19 (using .../psa-awstats-configurator_1.0.0-debian4.0.build92091009.18_all.deb) ...
Unpacking replacement psa-awstats-configurator ...
Preparing to replace psa-firewall 1.0.1-debian4.0.build92090714.19 (using .../psa-firewall_1.0.1-debian4.0.build92091009.18_amd64.deb) ...
Unpacking replacement psa-firewall ...
Selecting previously deselected package psa-hotfix3-9.2.3.
Unpacking psa-hotfix3-9.2.3 (from .../psa-hotfix3-9.2.3_9.2.3-debian4.0.build92091210.11_amd64.deb) ...
Preparing to replace psa-migration-agents 9.2.2-debian4.0.build92090714.19 (using .../psa-migration-agents_9.2.3-debian4.0.build92091009.18_amd64.deb) ...
Unpacking replacement psa-migration-agents ...
Preparing to replace psa-updates 9.2.2-debian4.0.build92090714.19 (using .../psa-updates_9.2.3-debian4.0.build92091210.11_all.deb) ...
Unpacking replacement psa-updates ...
Setting up psa-api-rpc (9.2.3-debian4.0.build92091009.18) ...
Trying to start service mysql... done
Trying to establish test connection... connected done Trying to establish test connection... connected Trying to upgrade persistent database storage... done

...

Setting up psa-hotfix3-9.2.3 (9.2.3-debian4.0.build92091210.11) ...
Trying to replace files and set up right permissions... cp: missing destination file operand after `/opt/psa/tmp/hotfix-92091210.11/'
Try `cp --help' for more information.
done
Unable to create vhost configuration for horde webmail

WARNING!
During the register found some problems(see log file: /tmp/psa-hotfix92091210.11.log)

Continue...

mv: target `/etc/psa-webmail/horde/' is not a directory: No such file or directory Unable to get options for atmail webmail

WARNING!
During the register found some problems(see log file: /tmp/psa-hotfix92091210.11.log)

Continue...


Setting up psa-migration-agents (9.2.3-debian4.0.build92091009.18) ...
Setting up psa-updates (9.2.3-debian4.0.build92091210.11) ...
Install command execution success
Installing patches...
Downloading the file PSA_9.2.3_MU/microupdates/common/get_password.php: 19%..44%..69%..100% done.
The packages were installed successfully.

The file /tmp/psa-hotfix92091210.11.log says:

Trying to replace files and set up right permissions... `/opt/psa/tmp/hotfix-92091210.11//opt/psa/admin/sbin/webmailmng' -> `/opt/psa/admin/sbin/webmailmng'
`/opt/psa/tmp/hotfix-92091210.11//opt/psa/admin/htdocs/get_password.php' -> `/opt/psa/admin/htdocs/get_password.php'
`/opt/psa/tmp/hotfix-92091210.11//opt/psa/admin/htdocs/login_up.php3' -> `/opt/psa/admin/htdocs/login_up.php3'
`/opt/psa/tmp/hotfix-92091210.11//opt/psa/admin/htdocs/server/ch_pass.php3' -> `/opt/psa/admin/htdocs/server/ch_pass.php3'
done

WARNING!
During the register found some problems
Continue...

STOP hotfix-9.2.3-debian4.0.build92091210.11 upgrading (deb action: configure) AT Mon Jan 11 04:58:10 CET 2010
STOP hotfix-9.2.3-debian4.0.build92091210.11 upgrading (deb action: configure) AT Mon Jan 11 04:58:10 CET 2010
Trying to replace files and set up right permissions... `/opt/psa/tmp/hotfix-92091210.11//opt/psa/admin/sbin/webmailmng' -> `/opt/psa/admin/sbin/webmailmng'
`/opt/psa/tmp/hotfix-92091210.11//opt/psa/admin/htdocs/get_password.php' -> `/opt/psa/admin/htdocs/get_password.php'
`/opt/psa/tmp/hotfix-92091210.11//opt/psa/admin/htdocs/login_up.php3' -> `/opt/psa/admin/htdocs/login_up.php3'
`/opt/psa/tmp/hotfix-92091210.11//opt/psa/admin/htdocs/server/ch_pass.php3' -> `/opt/psa/admin/htdocs/server/ch_pass.php3'
done

WARNING!
During the register found some problems
Continue...

STOP hotfix-9.2.3-debian4.0.build92091210.11 installing (deb action: configure) AT Mon Jan 11 05:10:46 CET 2010
STOP hotfix-9.2.3-debian4.0.build92091210.11 installing (deb action: configure) AT Mon Jan 11 05:10:46 CET 2010

So, i'm sorry, after a night of googleing ind reading aprox 100 boards i now gave up. So, i would be very happy, if anyone could help me!

By the way, i've also startet /opt/psa/admin/bin/autoinstaller via commandline and it completly performed it's work without any error notice, but Plesk still does not start...

Greetz from steph
 
Seems that there are incorrect permissions on some Plesk directories and files. Try to check at least that you have following correct permissions:

# ls -l /etc/sw/keys/
total 32
drwxrws--- 2 psaadm swkey-data 4096 Jan 6 14:55 backup
-rw-r--r-- 1 psaadm swkey-data 22 Oct 16 21:25 info
drwxrws--- 2 root swkey-data 4096 Oct 22 05:15 instances
drwxrws--- 2 psaadm swkey-data 4096 Jan 6 14:55 keys
drwxrws--- 2 psaadm swkey-data 4096 Oct 22 05:15 lock
-rw-rw---- 1 root swkey-data 6101 Jan 12 01:43 registry.xml
drwxrws--- 2 psaadm swkey-data 4096 Oct 22 05:18 restart

and correct it if it is wrong. Contact support team if it not help, because receiving list of incorrect Plesk permissions is very hard and complex task.
 
Thanx!

That's it! Two files were owned by root:root not root:swkey-data. After correction everything worked fine...

Then i performed an Update to 9.3.0 and from Debian etch to Debian lenny and after hours of troubleshooting now everything works fine... :)
 
Back
Top