Symptoms
-
Plesk shows 502/504 errors on different pages randomly.
-
Server OS is Ubuntu 18.04, Plesk version is Obsidian (18.0.xx)
-
Extension was installed recently or just Plesk update was performed recently
-
The following error messages appear in
/var/log/sw-cp-server/error_log
file:[emerg] 13435#0: bind() to 0.0.0.0:8443 failed (98: Address already in use)
[emerg] 13435#0: bind() to 0.0.0.0:8880 failed (98: Address already in use)
[emerg] 13435#0: bind() to [::]:8443 failed (98: Address already in use)
[emerg] 13435#0: bind() to [::]:8880 failed (98: Address already in use)
Cause
Product issue:
-
#PPPM-9966 “Enabling Plesk Firewall no longer crashes the sw-cp-server service.”
Fixed in:- Plesk Obsidian 25 May 2020 (Linux)
Resolution
Workaround
If update is not possible for some reason you may try the following
workaround
As a workaround:
-
Connect to the server via SSH
-
Find PID of
sw-cp-server
processes:# ps ax | grep sw-cp | grep -v grep
18183 ? Ss 0:00 sw-cp-server: master process /usr/sbin/sw-cp-serverd -c /etc/sw-cp-server/config
18185 ? S 16:18 sw-cp-server: worker process -
Kill processes by their PID:
# kill -9 18183
# kill -9 18185 -
Restart the
sw-cp-server
service:# service sw-cp-server restart
Starting sw-cp-serverd: [ OK ]