Author Topic: 502 gateway error - CWPSRV  (Read 2456 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
502 gateway error - CWPSRV
« on: September 04, 2019, 02:11:54 PM »
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!

Offline
*
Re: 502 gateway error - CWPSRV
« Reply #1 on: September 06, 2019, 11:46:46 AM »
Hi,
try this command: sh /scripts/restart_cwpsrv

It solved the problem for me.

Offline
*
Re: 502 gateway error - CWPSRV
« Reply #2 on: September 06, 2019, 10:34:44 PM »
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


« Last Edit: September 06, 2019, 10:43:51 PM by timphillipsdesign »

Offline
**
Re: 502 gateway error - CWPSRV
« Reply #3 on: September 07, 2019, 07:11:13 AM »
Login to your SSH

Then try all this command

Code: [Select]
sh /scripts/update_cwp

Code: [Select]
service cwpsrv restart
service cwpsrv-phpfpm restart

Offline
*
Re: 502 gateway error - CWPSRV
« Reply #4 on: September 07, 2019, 07:19:38 PM »
Thanks Randy....

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

Offline
*
Re: 502 gateway error - CWPSRV
« Reply #5 on: September 08, 2019, 04:29:50 PM »
Randy,

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

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

Offline
*
Re: 502 gateway error - CWPSRV
« Reply #6 on: September 08, 2019, 05:47:32 PM »
Randy... Thank You... I was able to get into the panel in server site... All working again.. 😊