• 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

Question I cannot enter the plesk panel ERR_CONNECTION_REFUSED

alfeizar

New Pleskian
Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
Plesk Obsidian 18.0.60.1
Hello
I have the problem that I cannot enter the plesk panel.
The error it gives is
ERR_CONNECTION_REFUSED
I didn't make any modifications, except that I edited the file
/etc/hosts
to enter the IP of the domain, because I had a cURL error 7 error type problem on the website.
I managed to solve it, but I don't know what's happening. They tell me in the hosting that there is something that prevents me from accessing the applications correctly.
I have ports 8443 and 8447 open in the firewall policies.
Can you help me? Because if not, I have to reinstall plesk and I will lose all the information.
Thanks and greetings
 
Can you access Plesk via your IP? (for example 123.123.123.123:8443) Are any of the domains on the server still accessible?
 
Hello Kaspar, thank you very much for answering.
I can't access from my ip and port 8443.
Therefore it does not work https://194.164.162.64:8443
However, the website works perfectly.
[Redacted]
There are some functions in the bach end that fail with
502 Bad Gateway
Through ssh, I do curl -vv 194.164.162.64:8443 with the same error
curl: (7) Failed to connect to 194.164.162.64 port 8443 after 0 ms: Connection refused
 
I forgot
I did a repair with the utility
plesk repair all
and everything was ok
I re-entered the IP in etc/hosts
and I can't enter the panel
I have also tried to recover a backup from ssh, since I made a complete copy of the system,
through
plesk bin pleskrestore, but I don't know how to access the backup file
 
Can you try the restart the Plesk service via SSH with the command service sw-engine restart && service sw-cp-server restart.
 
Last edited:
Sorry I made a mistake in me previous post. Please try again with
Code:
service sw-engine restart && service sw-cp-server restart

If that does not work I suggest contacting Plesk support for help on this issue.

To sign-in to support please go to https://support.plesk.com

If you experience login issues, please see this KB article:
https://support.plesk.com/hc/en-us/...rt-plesk-com-and-password-reset-does-not-work

If you bought your license from a reseller, your reseller should provide support for you. If the reseller does not provide support, here is an alternative:
https://support.plesk.com/hc/en-us/articles/12388090147095-How-to-get-support-directly-from-Plesk
 
No, it gives me an error:
Job for sw-cp-server.service failed because the control process exited with error code.
See "systemctl status sw-cp-server.service" and "journalctl -xeu sw-cp-server.service" for details.
 
Run service sw-cp-server restart again, after that run systemctl status sw-cp-server.service and journalctl -xeu sw-cp-server.service.

What'd the output of the last two commands?
 
The last two commands:
systemctl status sw-cp-server.service

● sw-cp-server.service - Startup script for Plesk control panel server
Loaded: loaded (/lib/systemd/system/sw-cp-server.service; enabled; vendor >
Drop-In: /usr/lib/systemd/system/sw-cp-server.service.d
└─respawn.conf
Active: activating (auto-restart) (Result: exit-code) since Mon 2024-05-06>
Process: 419740 ExecStartPre=/usr/sbin/sw-cp-serverd -q -t (code=exited, st>
CPU: 4ms

May 06 07:56:52 alfeizar.net systemd[1]: sw-cp-server.service: Control process >
May 06 07:56:52 alfeizar.net systemd[1]: sw-cp-server.service: Failed with resu>
May 06 07:56:52 alfeizar.net systemd[1]: Failed to start Startup script for Ple>
...skipping...
● sw-cp-server.service - Startup script for Plesk control panel server
Loaded: loaded (/lib/systemd/system/sw-cp-server.service; enabled; vendor >
Drop-In: /usr/lib/systemd/system/sw-cp-server.service.d
└─respawn.conf
Active: activating (auto-restart) (Result: exit-code) since Mon 2024-05-06>
Process: 419740 ExecStartPre=/usr/sbin/sw-cp-serverd -q -t (code=exited, st>
CPU: 4ms

May 06 07:56:52 alfeizar.net systemd[1]: sw-cp-server.service: Control process >
May 06 07:56:52 alfeizar.net systemd[1]: sw-cp-server.service: Failed with resu>
May 06 07:56:52 alfeizar.net systemd[1]: Failed to start Startup script for Ple>
~
...skipping...
● sw-cp-server.service - Startup script for Plesk control panel server
Loaded: loaded (/lib/systemd/system/sw-cp-server.service; enabled; vendor >
Drop-In: /usr/lib/systemd/system/sw-cp-server.service.d
└─respawn.conf
Active: activating (auto-restart) (Result: exit-code) since Mon 2024-05-06>
Process: 419740 ExecStartPre=/usr/sbin/sw-cp-serverd -q -t (code=exited, st>
CPU: 4ms

May 06 07:56:52 alfeizar.net systemd[1]: sw-cp-server.service: Control process >
May 06 07:56:52 alfeizar.net systemd[1]: sw-cp-server.service: Failed with resu>
May 06 07:56:52 alfeizar.net systemd[1]: Failed to start Startup script for Ple>
~
~
~

~
● sw-cp-server.service - Startup script for Plesk control panel server
Loaded: loaded (/lib/systemd/system/sw-cp-server.service; enabled; vendor >
Drop-In: /usr/lib/systemd/system/sw-cp-server.service.d
└─respawn.conf
Active: activating (auto-restart) (Result: exit-code) since Mon 2024-05-06>
Process: 419740 ExecStartPre=/usr/sbin/sw-cp-serverd -q -t (code=exited, st>
CPU: 4ms

May 06 07:56:52 alfeizar.net systemd[1]: sw-cp-server.service: Control process >
May 06 07:56:52 alfeizar.net systemd[1]: sw-cp-server.service: Failed with resu>
May 06 07:56:52 alfeizar.net systemd[1]: Failed to start Startup script for Ple>
~
~
~






journalctl -xeu sw-cp-server.service
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStartPre= process belonging to unit sw-cp-server.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
May 06 07:57:29 alfeizar.net systemd[1]: sw-cp-server.service: Failed with resu>
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit sw-cp-server.service has entered the 'failed' state with result 'ex>
May 06 07:57:29 alfeizar.net systemd[1]: Failed to start Startup script for Ple>
░░ Subject: A start job for unit sw-cp-server.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit sw-cp-server.service has finished with a failure.
░░
░░ The job identifier is 1763371 and the job result is failed.
May 06 07:57:34 alfeizar.net systemd[1]: sw-cp-server.service: Scheduled restar>
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ Automatic restarting of the unit sw-cp-server.service has been scheduled, as>
░░ the configured Restart= setting for the unit.
May 06 07:57:34 alfeizar.net systemd[1]: Stopped Startup script for Plesk contr>
░░ Subject: A stop job for unit sw-cp-server.service has finished
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A stop job for unit sw-cp-server.service has finished.
░░
░░ The job identifier is 1763455 and the job result is done.
May 06 07:57:34 alfeizar.net systemd[1]: Starting Startup script for Plesk cont>
░░ Subject: A start job for unit sw-cp-server.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit sw-cp-server.service has begun execution.
░░
░░ The job identifier is 1763455.
May 06 07:57:34 alfeizar.net sw-cp-serverd[419892]: nginx: [emerg] unexpected e>
May 06 07:57:34 alfeizar.net sw-cp-serverd[419892]: nginx: configuration file />
May 06 07:57:34 alfeizar.net systemd[1]: sw-cp-server.service: Control process >
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStartPre= process belonging to unit sw-cp-server.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
May 06 07:57:34 alfeizar.net systemd[1]: sw-cp-server.service: Failed with resu>
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit sw-cp-server.service has entered the 'failed' state with result 'ex>
May 06 07:57:34 alfeizar.net systemd[1]: Failed to start Startup script for Ple>
░░ Subject: A start job for unit sw-cp-server.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit sw-cp-server.service has finished with a failure.
░░
░░ The job identifier is 1763455 and the job result is failed.
 
The output has been cut off and misses a lot of information. Where ever lines ends with a > there is more information on that line. But you havent copied that into your previous post.
 
Sorry, I'm starting again. Thanks for your time.


root@alfeizar:~# systemctl status sw-cp-server.service
● sw-cp-server.service - Startup script for Plesk control panel server
Loaded: loaded (/lib/systemd/system/sw-cp-server.service; enabled; vendor preset: enabled)
Drop-In: /usr/lib/systemd/system/sw-cp-server.service.d
└─respawn.conf
Active: activating (auto-restart) (Result: exit-code) since Mon 2024-05-06 08:47:17 UTC; 814ms ago
Process: 431295 ExecStartPre=/usr/sbin/sw-cp-serverd -q -t (code=exited, status=1/FAILURE)
CPU: 7ms
root@alfeizar:~#




root@alfeizar:~# journalctl -xeu sw-cp-server.service
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStartPre= process belonging to unit sw-cp-server.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
May 06 08:48:04 alfeizar.net systemd[1]: sw-cp-server.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit sw-cp-server.service has entered the 'failed' state with result 'exit-code'.
May 06 08:48:04 alfeizar.net systemd[1]: Failed to start Startup script for Plesk control panel server.
░░ Subject: A start job for unit sw-cp-server.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit sw-cp-server.service has finished with a failure.
░░
░░ The job identifier is 1812863 and the job result is failed.
May 06 08:48:09 alfeizar.net systemd[1]: sw-cp-server.service: Scheduled restart job, restart counter is at 49.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ Automatic restarting of the unit sw-cp-server.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
May 06 08:48:09 alfeizar.net systemd[1]: Stopped Startup script for Plesk control panel server.
░░ Subject: A stop job for unit sw-cp-server.service has finished
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A stop job for unit sw-cp-server.service has finished.
░░
░░ The job identifier is 1812947 and the job result is done.
May 06 08:48:09 alfeizar.net systemd[1]: Starting Startup script for Plesk control panel server...
░░ Subject: A start job for unit sw-cp-server.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit sw-cp-server.service has begun execution.
░░
░░ The job identifier is 1812947.
May 06 08:48:09 alfeizar.net sw-cp-serverd[431502]: nginx: [emerg] unexpected end of file, expecting ";" or "}" in /etc/sw-cp-server/config:44
May 06 08:48:09 alfeizar.net sw-cp-serverd[431502]: nginx: configuration file /etc/sw-cp-server/config test failed
May 06 08:48:09 alfeizar.net systemd[1]: sw-cp-server.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStartPre= process belonging to unit sw-cp-server.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
May 06 08:48:09 alfeizar.net systemd[1]: sw-cp-server.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit sw-cp-server.service has entered the 'failed' state with result 'exit-code'.
May 06 08:48:09 alfeizar.net systemd[1]: Failed to start Startup script for Plesk control panel server.
░░ Subject: A start job for unit sw-cp-server.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit sw-cp-server.service has finished with a failure.
░░
░░ The job identifier is 1812947 and the job result is failed.
lines 5809-5875/5875 (END)
 
May 06 08:48:09 alfeizar.net sw-cp-serverd[431502]: nginx: [emerg] unexpected end of file, expecting ";" or "}" in /etc/sw-cp-server/config:44
This is the cause of your problems. What's the output of cat /etc/sw-cp-server/conf.d/plesk.conf?
 
To be honest I do not know.
I have gone to that directory, and I show the files in editing order.
Maybe they should be deleted?

root@alfeizar:/etc/sw-cp-server/conf.d# ls -lt
total 64
-rw-r--r-- 1 root root 30 May 5 01:16 ip_mapping.inc
-rw-r--r-- 1 root root 833 Mar 19 12:12 ssh_terminal_plesk.inc
-rw-r--r-- 1 root root 475 Mar 19 12:09 ssl.conf
-rw-r--r-- 1 root root 74 Mar 19 12:05 ipv6_ports.inc
-rw-r--r-- 1 root root 167 Feb 29 10:10 compression_plesk.inc
-rw-r--r-- 1 root root 316 Feb 29 10:10 control_panel_plesk.inc
-rw-r--r-- 1 root root 227 Feb 29 10:10 installer_plesk.inc
-rw-r--r-- 1 root root 22 Feb 29 10:10 maintenance
-rw-r--r-- 1 root root 512 Feb 29 10:10 plesk.conf
-rw-r--r-- 1 root root 2800 Feb 29 10:10 plesk.inc
-rw-r--r-- 1 root root 4046 Feb 29 10:10 plesk_site_preview.conf
-rw-r--r-- 1 root root 65 Feb 29 10:10 ui_library_plesk.inc
-rw-r--r-- 1 root root 708 Feb 29 10:10 wpb.inc
-rw-r--r-- 1 root root 223 Feb 13 12:48 repair_plesk.inc
-rw-r--r-- 1 root root 354 Jan 30 20:19 ws_plesk.inc
-rw-r--r-- 1 root root 392 Jan 29 17:17 phpmyadmin-plesk.inc
root@alfeizar:/etc/sw-cp-server/conf.d#
 
I have edited the file, and it says the following

root@alfeizar:/etc/sw-cp-server/conf.d# vi /etc/sw-cp-server/conf.d/plesk.conf
Code:
server_names_hash_bucket_size  64;

map $http_x_requested_with $error_doc_format {
        default html;
        XMLHttpRequest json;
}

map $http_x_forwarded_proto $original_proto {
        default $http_x_forwarded_proto;
        ""      $scheme;
}

server {
                listen 8443 ssl http2;
                listen 8880;
                listen 127.0.0.1:8880 default_server;
                include conf.d/*ipv6_ports.inc;


                ssl_certificate /opt/psa/admin/conf/httpsd.pem;
                ssl_certificate_key /opt/psa/admin/conf/httpsd.pem;

                include conf.d/*plesk.inc;
                include conf.d/*wpb.inc;
}
~
~
~
"/etc/sw-cp-server/conf.d/plesk.conf" 25L, 512B
 
Please contact Plesk support for investigation of the issue on your server.

To sign-in to support please go to https://support.plesk.com

If you experience login issues, please see this KB article:
https://support.plesk.com/hc/en-us/...rt-plesk-com-and-password-reset-does-not-work

If you bought your license from a reseller, your reseller should provide support for you. If the reseller does not provide support, here is an alternative:
https://support.plesk.com/hc/en-us/articles/12388090147095-How-to-get-support-directly-from-Plesk
 
Back
Top