Plesk is down. Service sw-cp-server failed to start

Created:

2016-11-16 13:18:03 UTC

Modified:

2017-04-24 11:04:51 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Plesk is down. Service sw-cp-server failed to start

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

Service sw-cp-server failed to start. The following error prevents you from starting it manually:

# /etc/init.d/sw-cp-server restart
Stopping sw-cp-serverd: [FAILED]
Starting sw-cp-serverd: nginx: [emerg] bind() to 0.0.0.0:12443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8880 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:8443 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:8880 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:12443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8880 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:8443 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:8880 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:12443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8880 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:8443 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:8880 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:12443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8880 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:8443 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:8880 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:12443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8880 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:8443 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:8880 failed (98: Address already in use)
nginx: [emerg] still could not bind()

Plese note that this error may appear even if nginx is disabled in the services list.

Also the following error can be found in the /var/log/sw-cp-server/error_log

    #less /var/log/sw-cp-server/error_log
2014/03/17 00:00:01 [error] 18185#0: *210427 upstream timed out (110: Connection timed out) while reading response header from upstream, client: ::1, server: , request: "POST /plesk-billing/task-manager.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock", host: "localhost:8443"

Cause

Hanged sw-cp-server process by some reason.

Resolution

In order to fix the issue perform the following actions:

  1. Find PID porcess:

    # ps ax | grep sw-cp
    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
    24443 pts/1 S+ 0:00 grep sw-cp
  2. Kill processes by PID :

    # kill -9 18183
    # kill -9 18185
  3. Restart server:

    # /etc/init.d/sw-cp-server restart
    Stopping sw-cp-serverd: [FAILED]
    Starting sw-cp-serverd: [ OK ]
Have more questions? Submit a request
Please sign in to leave a comment.