Skip to main content

Error: The WebSocket handshake failed.

Comments

16 comments

  • Spirogg
    System installed: CENTOS WHM/cPanel Cloudflare Home / Server Configuration / Terminal Error: The WebSocket handshake failed. this error occurred, what am I missing when I tried searching for solution it has cagefs in which I don't have it yet. Can somebody help?

    In the event that you receive an error message stating Error: The WebSocket handshake failed when trying to use the Terminal feature in cPanel or WHM, in our experience this can happen if you are accessing cPanel / WHM via a proxy sub-domain, such as or https;//hostaname.yourdomain.com or or if for some reason you don't have a SSL Certificate for your hostname you might get this error so try and use your IP address
    0
  • cPRex Jurassic Moderator
    Thanks, @Spirogg !!!
    0
  • Ernesto Dionisio
    I did https://$ipaddress/whm and it works... but I dont want it to work that way I want it to work like https://hostname.yourdomain.tld/whm this is in the setup, but when I go to terminal that is my issue dont know why? I also want my IP to be masked like
    0
  • Spirogg
    I want it to work like
    0
  • Spirogg
    I want it to work like https://hostname.yourdomain.tld/whm this is in the setup, but when I go to terminal that is my issue dont know why?

    do you have SSL Certificate for your hostname ? when you go to
    0
  • Spirogg
    Do you add your A record here for hostname in WHM ? Add an A Entry for Your Hostname
    • Home /DNS Functions /Add an A Entry for Your Hostname
    Hostname Server Main IP
    hostname.yourdomain.com xx.xx.xxx.xx
    Please confirm the IP address to use for the "A Entry" for hostname.yourdomain.com
    0
  • Spirogg
    I did https://$ipaddress/whm and it works... but I dont want it to work that way I want it to work like https://hostname.yourdomain.tld/whm this is in the setup, but when I go to terminal that is my issue dont know why? I also want my IP to be masked like
    do you Cloudflare for your server and hostname ? I believe if you have domain.com added in Cloudflare? you'd need to create the A record for hostname.yourdomain.com in Cloudflare's interface.
    0
  • Ernesto Dionisio
    do you have your hostname setup in WHM. ' did you add your hostname here
    • Home /Networking Setup /Change Hostname
    and then you added your IP as A record for this hostname?

    0
  • Ernesto Dionisio
    Do you add your A record here for hostname in WHM ? Add an A Entry for Your Hostname
    • Home /DNS Functions /Add an A Entry for Your Hostname
    Hostname Server Main IP
    hostname.yourdomain.com xx.xx.xxx.xx
    Please confirm the IP address to use for the "A Entry" for hostname.yourdomain.com

    0
  • Ernesto Dionisio
    yes I use cloudflare, for the domain and I add a cname named "server". I can browse it like
    0
  • Spirogg
    yes I use cloudflare, for the domain and I add a cname named "server". I can browse it like
    0
  • Ernesto Dionisio
    yes it is used to be a default in cloudflare *.domain.tld, domain.tld type: Universal Status: Active Expires on: 2023-04-05
    0
  • Spirogg
    yes it is used to be a default in cloudflare *.domain.tld, domain.tld type: Universal Status: Active Expires on: 2023-04-05

    I"m Not sure then maybe @cPRex has an idea if cloudflare would cause this issue ??
    0
  • cPRex Jurassic Moderator
    @Ernesto Dionisio - I'm not entirely sure what the issue is at this point. Were you able to get the hostname pointed to the server so you can access WHM with it?
    0
  • amma
    System installed: CENTOS WHM/cPanel Cloudflare Home / Server Configuration / Terminal Error: The WebSocket handshake failed
    0
  • cPRex Jurassic Moderator
    @amma - it sounds like this is the Terminal in WHM as the root user. The CageFS solution you found would apply to individual cPanel users. Can you see if this is the issue on your machine?
    0

Please sign in to leave a comment.