• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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