Author Topic: 502 Bad Gateway  (Read 1108 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
502 Bad Gateway
« on: August 03, 2018, 04:57:13 PM »
Hi,

need help, cant login to cwp panel, not loccaly or from IP, restarted server, no ideas.

locall ip:2030 redirects to 2087
locall ip 2031 Your connection is not secure after certificate approval get 502 Bad Gateway

Running centos 6.10, cwp pro... help???

Offline
***
Re: 502 Bad Gateway
« Reply #1 on: August 03, 2018, 05:16:43 PM »
Dose not help

[root@host ~]# cd /scripts
[root@host scripts]# ./restart_cwpsrv
Stopping cwpsrv:                                           [  OK  ]
Starting cwpsrv:                                           [  OK  ]
cwp-phpfpm: unrecognized service

Offline
*
Re: 502 Bad Gateway
« Reply #2 on: August 03, 2018, 05:26:29 PM »
I am using CENTOS 7. I think someting went wrong today while auto updating.
I have same problem.. No solution yet...

Offline
*
Re: 502 Bad Gateway
« Reply #3 on: August 04, 2018, 12:21:19 AM »
I am using CENTOS 7. I think someting went wrong today while auto updating.
I have same problem.. No solution yet...

Yes i have same problem. centos 7 auto update ruined everything

Offline
***
Re: 502 Bad Gateway
« Reply #4 on: August 05, 2018, 08:13:41 AM »
Some help from support???

Offline
*
Re: 502 Bad Gateway
« Reply #5 on: August 05, 2018, 11:05:40 PM »
Try running the following script in this same order

Code: [Select]
sh /scripts/cwpsrv_rebuild_user_conf
sh /scripts/restart_cwpsrv
Please let me know how it went

Offline
***
Re: 502 Bad Gateway
« Reply #6 on: August 06, 2018, 07:13:33 AM »
I have tried that, did not work:

[root@host ~]# sh /scripts/cwpsrv_rebuild_user_conf
Reloading cwpsrv:
cwp-phpfpm: unrecognized service
[root@host ~]# sh /scripts/restart_cwpsr
sh: /scripts/restart_cwpsr: No such file or directory

Offline
****
Re: 502 Bad Gateway
« Reply #7 on: August 06, 2018, 08:25:11 AM »
Try this

Code: [Select]
sudo yum reinstall cwpphp -y
service cwp-phpfpm restart
service cwpsrv restart

Offline
***
Re: 502 Bad Gateway
« Reply #8 on: August 06, 2018, 09:17:42 AM »
Nope

[root@host ~]# sudo yum reinstall cwpphp -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Reinstall Process
No Match for argument: cwpphp
Loading mirror speeds from cached hostfile
 * base: centos.koyanet.lv
 * extras: centos.koyanet.lv
 * updates: centos.koyanet.lv
Package(s) cwpphp available, but not installed.
Error: Nothing to do
[root@host ~]# service cwp-phpfpm restart
cwp-phpfpm: unrecognized service
[root@host ~]# service cwpsrv restart
Stopping cwpsrv:                                           [  OK  ]
Starting cwpsrv:                                           [  OK  ]
[root@host ~]#

Offline
****
Re: 502 Bad Gateway
« Reply #9 on: August 06, 2018, 09:28:59 AM »
cwpphp is not installed.

You need to run

Code: [Select]
sudo yum install cwpphp -y
sh /scripts/cwpsrv_rebuild_user_conf

This should fix your issue.
« Last Edit: August 06, 2018, 09:30:41 AM by bullten »

Offline
***
Re: 502 Bad Gateway
« Reply #10 on: August 06, 2018, 10:03:59 AM »
Thank you, now everything seems ok. loged in CWP. Works.

What happened?

Offline
***
Re: 502 Bad Gateway
« Reply #11 on: August 06, 2018, 12:44:39 PM »
Stooped working, cant connect.... any one?

Offline
****
Re: 502 Bad Gateway
« Reply #12 on: August 06, 2018, 02:19:30 PM »
what are output of

Code: [Select]
service cwpsrv status
service cwp-phpfpm status

Offline
***
Re: 502 Bad Gateway
« Reply #13 on: August 06, 2018, 08:00:56 PM »
[root@host ~]# service cwpsrv status
bash: service: command not found
[root@host ~]# service cwp-phpfpm status
bash: service: command not found
[root@host ~]#

Offline
****
Re: 502 Bad Gateway
« Reply #14 on: August 06, 2018, 11:52:44 PM »
This command

Code: [Select]
/sbin/service cwpsrv status
/sbin/service cwp-phpfpm status