502 gateway error - CWPSRV

Started by deco, September 04, 2019, 02:11:54 PM

Previous topic - Next topic

deco

Hi,

Everything is running well, e.g. PMA, websites, services, etc.
Except the webpanel, which is unavailable: 502 gateway error

The CWPSRV error.log gives the following:

[error] 8334#0: *3 connect() to unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock failed (111: Connection refused) while connecting to upstream, client: 213.127.228.146, server: localhost, request: "GET /login/index.php HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock:", host: "<hostname>:2031"

replaced <hostname> (is the hostname of the server)

I'm out of options and could not find any answer in the forum regarding this issue. Please help!

Slavison

Hi,
try this command: sh /scripts/restart_cwpsrv

It solved the problem for me.

timphillipsdesign

#2
I have the exact same issue starting this morning, everything working fine but cannot get to web panel sign in. Rebooted from server provider, no help... Working fine yesterday... No clue what to do from here

502 error on centos web panel supported page.

Them this when I tried on :2083

Your 72.171.xxx.xxx IP address has been blocked
You reached the maximum of failed attempts, please try again in
10 Minutes

Since I am unable to get to the panel not sure how this came up... Plus I have never used :2083 before

My CWP pro was down I wonder if turning it back on did this



randyproxz

Login to your SSH

Then try all this command


sh /scripts/update_cwp



service cwpsrv restart
service cwpsrv-phpfpm restart

timphillipsdesign

Thanks Randy....

I have never signed in thru SSH, not even sure if it is turned on or set up.....

soysauce2006

Randy,

Thanks for the script to restart cwpsrv but I am getting an error when I try to update.

cwpsrv: [warn] he "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /usr/local/cwpsrv/conf.d/api.conf:8

timphillipsdesign

Randy... Thank You... I was able to get into the panel in server site... All working again.. 😊