Plesk Panel 10 to 11 Upgrade issue: sw-cp-server

Plesk Panel 10 to 11 Upgrade issue: sw-cp-server

Symptom

When upgrading from Plesk Panel 10 to 11 it failed with the following errors:

apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
27 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up sw-cp-server (1.0-8.201205141804.debian60) ...
Starting SWsoft control panels server... stale pidfile. failed
dpkg: error processing sw-cp-server (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of plesk-base:
plesk-base depends on sw-cp-server (>= 1.0-8); however:
Package sw-cp-server is not configured yet.
dpkg: error processing plesk-base (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of psa-pylibplesk:
psa-pylibplesk depends on plesk-base (>= 11.0.9); however:
Package plesk-base is not configured yet.
dpkg: error processing psa-pylibplesk (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpam-plesk:
libpam-plesk depends on psa-pylibplesk; however:
Package psa-pylibplesk is not configured yet.
dpkg: error processing libpam-plesk (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of psa-awstats-configurator:
psa-awstconfigured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
ats-configurator depends on plesk-base (>= 11.0.9); however:
Package plesk-base is not configured yet.
dpkg: error processing psa-awstats-configurator (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of psa-php5-configurator:
psa-php5-configurator depends on plesk-base (>= 11.0.9); however:
Package plesk-base is not configured yet.
dpkg: error processing psa-php5-configurator (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of psa-mail-driver-common:
psa-mail-driver-common depends on plesk-base (>= 11.0.9); however:
Package plesk-base is not configured yet.
dpkg: error processing psa-mail-driver-common (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of plesk-mail-pc-driver:
plesk-mail-pc-driver depends on plesk-base (>= 11.0.9); however:
Package plesk-base is not configured yet.
plesk-mail-pc-driver depends oconfigured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
n psa-mail-driver-common (>= 11.0.9); however:
Package psa-mail-driver-common is not configured yet.
dpkg: error processing plesk-mail-pc-driver (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of plesk-core:
plesk-core depends on plesk-base (>= 11.0.9); however:
Package plesk-base is not configured yet.
plesk-core depends on libpam-plesk; however:
Package libpam-plesk is not configured yet.
plesk-core depends on psa-awstats-configurator; however:
Package psa-awstats-configurator is not configured yet.
plesk-core depends on psa-pylibplesk; however:
Package psa-pylibplesk is not configured yet.
plesk-core depends on psa-php5-configurator (>= 1.6.2); however:
Package psa-php5-configurator is not configured yet.
plesk-core depends on psa-mail-driver; however:
Package psa-mail-driver is not installed.
Package plesk-mail-pc-driver which provides psa-mail-driver is not configured yet.
dpkg: error processing plesk-core configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
configured to not write apport reports
(--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of plesk-l10n:
plesk-l10n depends on plesk-core (>= 11.0.9); however:
Package plesk-core is not configured yet.
dpkg: error processing plesk-l10n (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pp-sitebuilder:
pp-sitebuilder depends on plesk-core (>= 10.3.0); however:
Package plesk-core is not configured yet.
(........ Shortened..............)
dpkg: dependency problems prevent configuration of psa-updates:
psa-updates depends on psa (>= 11.0.9); however:
Package psa is not configured yet.
dpkg: error processing psa-updates (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
sw-cp-server
plesk-base
psa-pylibplesk
libpam-plesk
psa-awstats-configurator
psa-php5-configurator
psa-mail-driver-common
plesk-mail-pc-driver
plesk-core
plesk-l10n
pp-sitebuilder
psa-vhost
psa
psa-libxml-proxy
psa-backup-manager
psa-drweb-configurator
psa-health-monitor
psa-horde
psa-imp
psa-ingo
psa-kronolith
psa-mailman-configurator
psa-mimp
psa-mnemo
psa-passwd
psa-turba
psa-updates
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

I managed to narrow it down to an issue with sw-cp-server

dpkg --configure sw-cp-server
Setting up sw-cp-server (1.0-8.201205141804.debian60) ...
Starting SWsoft control panels server...failed
dpkg: error processing sw-cp-server (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
sw-cp-server
FIX: sw-cp-server was still running becuase the installed was unable to stop it

Solution

I ran the following commands which resolved it:

/etc/init.d/psa stop
/etc/init.d/sw-cp-server stop
ps -ef|grep sw-cp-server
1002 17179 1 0 19:17 ? 00:00:00 /usr/sbin/sw-cp-serverd -f /etc/sw-cp-server/config
kill 1002