-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
502 - Bad gateway on Vesta CP admin #1625
Comments
I've just bumped into this thread on forum https://forum.vestacp.com/viewtopic.php?t=17153 The problem is also mentioned on these:
That is exactly my case. |
Hello, Is there any update on this? my server also having exact same issue. |
I Can confirm this happens with me too..but only on Apache-less servers that have Nginx + PHP-FPM. If I restart vesta service, it goes good but then the next day its crashed again. I guess may some cron job is doing this ? I tried all default Cron Jobs for user admin... all went fine but after I ran /var/log/vesta/nginx-error.log gives I am running it on port 8908 and not 8083 |
Same issue, any updates ? |
I removed nginx to fix the issue, but I am thinking of moving to Virtualmin
…________________________________
From: korsar4eg <[email protected]>
Sent: Sunday, June 24, 2018 8:48 AM
To: serghey-rodin/vesta
Cc: Saurabh Sharma; Comment
Subject: Re: [serghey-rodin/vesta] 502 - Bad gateway on Vesta CP admin (#1625)
Same issue, any updates ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#1625 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAv8YaOBGMGPtncbFynO2UwkkDAdbA3Dks5t_wUBgaJpZM4UzyCQ>.
|
Same problem |
What is a sys load of your servers? |
sys load is low. I have got 1 website running on whole virtual server. UPD: when appears 502 BAD Gateway, Vesta service status shows that vesta still active and running fine. |
Same problem ! |
My Vesta works as usual. Hetzner cloud, Ubuntu 16.04, nginx + php7.0-fpm |
I can confirm that the problem is caused by this CRON script:
Everything works until the cronjob is called. Also, as mentioned before, all my servers have really low sys load. |
I have the same issue here. Ubuntu 16 AWS (t2.small) @treatys @mehargags |
Changing pm from dynamic to ondemand and reboot help me |
@Skamasle sorry, but what "PM" means? |
@Anton98567, Process manager |
Confirmed. I have the same issue on CentOS 7 |
Freshly updated VestaCP have the same bug.
|
I have same problem. Debian 9 vesta 0.9.8 |
I have the same problem |
Same problem Guys, how to fix it?
|
Thanks for reporting about this issue. The fix will be available soon. |
Same as on Ubuntu 16.04 |
Some error on centOs 7
|
It seems like this issue is caused by default pm.max_requests value.
I'm going to test it next few hours and push as update if everything is fine. |
Great. Everything seems to work fine again. Thx @serghey-rodin |
@serghey-rodin |
@serghey-rodin good job! |
@mahdiyari ok lets hope that works out for you! :) Did you restart only the "vestacp" related services? Or did you literally restart every service on your machine? Would be good to know for future people unable to do a hard reboot. Good luck |
502 again! |
and deleted unix socket before restart? |
Of course! |
@mahdiyari Have you tried to have a look on what services have been upgraded and restart them too? |
ok, let's then use safe variant that should work for sure and then |
@mahdiyari first try dpecas variant and if doesn't work for you then try to find upgrade log in your system logs. |
i believe it will work because that way issue will be avoided (whatever it is) |
No, again 502 error! |
@mahdiyari you should try to reboot your server |
does it works even one second? |
I can't reboot my server @anton-reutov |
@mahdiyari your logs might be in /var/log/dist-upgrade (Not sure because never used Ubuntu) |
I restarted all services (except ssh), let's see what will happen! |
@mahdiyari you are running out of options :/ I can think of checking all your logs, making sure to resolve everything else... and restarting other services on your machine. I am only thinking of last resort options... restart your network interface? But this might also cause issues with your blockchain node. Also be careful when restarting network interface while using SSH... I tried so many things to get my server running again, but in the end a reboot was probably what solved the issue. Edit: Ah I see you have done something, good luck! |
Now, I don't have any option and still, there is 502 error Update: No matter what you have in your server! You should reboot to solve. A bad development:) |
everything seems to work fine after update, upgrade and reboot. |
@mahdiyari did you solve it? I am still fighting with it. |
@niccolomineo you update and reboot ? If you not reboot server may you cant solve it |
Thank you, I restarted NGINX, I hope that sorts it! edit: Nope, problem's still there. I did:
|
Try reboot your server. |
I did and it is working now. Let's see for how long it lasts (hopefully forever). |
apt-get update, apt-get upgrade, reboot will help you. |
This definitely worked for me. Cheers! |
This worked:
|
Nginx just seems to have a problem in CentOS builds |
This worked for me too! |
I can't restart service
|
Operating System (OS/VERSION):
Debian 9.4 (x86_64)
VestaCP Version:
0.9.8 (amd64), release 21
Installed Software (what you got with the installer):
Complete production server installation including Bind, Nginx, Apache, MySQL, PgSQL and dovecot+exim.
Steps to Reproduce:
Since yesterday (2018/06/22), Vesta CP panel crashes repeatedly. It reports error 502 - Bad Gateway in nginx. In /var/log/vesta/* there are no errors about this crash reported, only in /var/log/vesta/nginx-error.log, there is mentioned:
2018/06/22 14:35:29 [error] 19059#0: *49 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 109.238.216.159, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "taira.srv.getmedia.cz:8083"
While I restart vesta service with
systemctl restart vesta
, I am able to access the panel for a while, however, this is not stable and wont last long.I don't have any idea while is this happening to me. This bug occurs on all my Vesta CP installations, so whole my cluster (3 nodes) is particullary down.
Do you have any idea what's gone wrong out there?
The text was updated successfully, but these errors were encountered: