The sw-cp-server service fails to start and the following is reported when checking the status of the service:
nginx: [alert] could not open error log file: open() "/var/log/sw-cp-server/error_log" failed (2: No such file or directory)
sw-cp-serverd: 2021/04/22 00:12:20 [emerg] 14792#0: open() "/var/log/sw-cp-server/error_log" failed (2: No such file or directory)
sw-cp-serverd: nginx: configuration file /etc/sw-cp-server/config test failed
sw-cp-server.service: control process exited, code=exited status=1
Failed to start Startup script for Plesk control panel server.
Unit sw-cp-server.service entered failed state.
Run the following command in SSH or WHM >> Terminal as root to check the status of sw-cp-server:
systemctl status sw-cp-server
The sw-cp-server service is failing to start because the error log file does not exist.
If the error log or log directory do not exist, recreate them by running the following commands in SSH or WHM >> Terminal as Root:
Once complete, run the following command to start the sw-cp-server service:
systemctl start sw-cp-server