• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue web socket error - missing /var/run/plesk-web-socket/ws.sock

MaurizioP

New Pleskian
I have hundreds of this error on /var/log/sw-cp-server/error_log;

2020/02/07 12:37:18 [crit] 2957#0: *80 connect() to unix:/var/run/plesk-web-socket/ws.sock failed (2: No such file or directory) while connecting to upstream, client: xxx.xxx.xxx.xxx, server: , request: "GET /ws HTTP/1.1", upstream: "http://unix:/var/run/plesk-web-socket/ws.sock:/", host: "myserver.com:8443"

where myserver.com:8443 is my main domain that I use to access the plesk panel and xxx.xxx.xxx.xxx is my client IP.

The folder /var/run/plesk-web-socket is empty.

The server is with CentOS 6.10 and Plesk Obsidian 18.0.24.

Thanks
Maurizio
 
Last edited:
Try to recreate it with correct owner :

touch /var/run/plesk-web-socket/ws.sock
chown -R psaadm: psaadm /var/run/plesk-web-socket/
 
Try to recreate it with correct owner :

touch /var/run/plesk-web-socket/ws.sock
chown -R psaadm: psaadm /var/run/plesk-web-socket/

Thank you for the answer, I've created the ws.sock file, but then I got this error:
[crit] 3021#0: *4977 connect() to unix:/var/run/plesk-web-socket/ws.sock failed (13: Permission denied) while connecting to ustream, client: xxx.xxx.xxx.xxx , server: , request: "GET /ws HTTP/1.1", upstream: "http://unix:/var/run/plesk-web-socket/ws.sock:/", host: "myserver.com:8443"

Then, after a server reboot the ws.sock file has been deleted, and I got again the same error:
[crit] 3027#0: *211 connect() to unix:/var/run/plesk-web-socket/ws.sock failed (2: No such file or directory) while connecting to upstream, client: xxx.xxx.xxx.xxx, server: , request: "GET /ws HTTP/1.1", upstream: "http://unix:/var/run/plesk-web-socket/ws.sock:/", host: "myserver.com:8443"

Thank you.
 
You have correctly put psaadm owner/group to /var/run/plesk-web-socket directory?

Yes:

[root@ns plesk-web-socket]# ls -l
total 0
-rw-r--r-- 1 psaadm psaadm 0 Feb 20 11:01 ws.sock

and the error is:
connect() to unix:/var/run/plesk-web-socket/ws.sock failed (13: Permission denied) while connecting to ustream, client: xxx.xxx.xxx.xxx , server: , request: "GET /ws HTTP/1.1", upstream: "http://unix:/var/run/plesk-web-socket/ws.sock:/", host: "myserver.com:8443"

If I chmod to 777 the ws.sock file, the error become:

[error] 3027#0: *17261 connect() to unix:/var/run/plesk-web-socket/ws.sock failed (111: Connection refused) while connecting to upstream, client: xxx.xxx.xxx.xxx, server: , request: "GET /ws HTTP/1.1", upstream: "http://unix:/var/run/plesk-web-socket/ws.sock:/", host: "myserver.com:8443"

If I reboot the server, the file is deleted again, and I got the first error:
connect() to unix:/var/run/plesk-web-socket/ws.sock failed (2: No such file or directory) while connecting to upstream, client: xxx.xxx.xxx.xxx, server: , request: "GET /ws HTTP/1.1", upstream: "http://unix:/var/run/plesk-web-socket/ws.sock:/", host: "myserver.com:8443"

Thanks
 
The last doubt, you have also no iptables rules apply on your system?
I manage iptables with Plesk Panel (xxx.xxx.xxx.xxx. yyy.yyy.yyy.yyy, zzz.zzz.zzz.zzz are my office and home IPs):

FTPS ServerAllow incoming from all on port 55536-55567/tcp
Customer & Business Manager payment gatewaysAllow incoming from all
Single Sign-OnAllow incoming from all
Plesk InstallerAllow incoming from all
Plesk administrative interfaceAllow incoming from all
WWW serverAllow incoming from all
FTP serverAllow incoming from all
SSH (secure shell) serverAllow incoming from xxx.xxx.xxx.xxx. yyy.yyy.yyy.yyy, zzz.zzz.zzz.zzz
SMTP (submission port) serverAllow incoming from all
SMTP (mail sending) serverAllow incoming from all
POP3 (mail retrieval) serverAllow incoming from all
IMAP (mail retrieval) serverAllow incoming from all
Mail password change serviceAllow incoming from all
MySQL serverAllow incoming from all
PostgreSQL serverDeny incoming from all
Samba (file sharing in Windows networks)Allow incoming from all
Domain name serverAllow incoming from all
IPv6 Neighbor DiscoveryAllow incoming from all
Ping serviceAllow incoming from all
System policy for incoming trafficDeny all other incoming traffic
System policy for outgoing trafficAllow all other outgoing traffic
System policy for forwarding of trafficDeny forwarding of all other traffic
 
I forgot to specify that the errors starts when I log into the Plesk Panel, once I'm disconnected the errors in the log file stops.
 
I forgot to specify that the errors starts when I log into the Plesk Panel, once I'm disconnected the errors in the log file stops.
At this point, perhaps the better option is to check the error with plesk team with an ticket, I am sorry but have no more ideas about problem... :-/
 
plesk-web-socket dead, but subsystem locked

What does that tell me?


CENTOS 6.10

Plesk Obsidian
Version 18.0.28 Update #3,
 
Back
Top