502 bad gateway nginx

vstevenphan

Registered Member
Joined
Mar 31, 2019
Messages
97
Reaction score
6
My website has this error. I checked service nginx status, it's still running. I checked the error logs, there was nothing recorded. HELP!
XXTAP.COM
 
Image not found: cx2Pcgc

The connection via SSH, top -c command is normal
 
That is not normal man. Your load is 7.84. Load is recommended to stay below 1. You mysql is eating you CPU.

I have 15 Linux servers, all them load is bellow 1.

Anyway, I think logs has nothing to do with that in your case. Your didn't configured your site to record logs or you are looking at the wrong place.
 
That is not normal man. Your load is 7.84. Load is recommended to stay below 1. You mysql is eating you CPU.

I have 15 Linux servers, all them load is bellow 1.

Anyway, I think logs has nothing to do with that in your case. Your didn't configured your site to record logs or you are looking at the wrong place.
): How can I handle that? Umanaged VPS support is unhelpful.
 
For umanaged VPS you have to know linux servers very well. I think is better to you migrate to managed VPS dude.
 
Just by what you are saying is complicated to figure out what your problem is. If how to handle that was a simple answer, for sure I would give you for free.

Are your site build in python, php? Do you use nginx or apache?

Unfortunately to solve that I need to do a ssh connection to your server, but that is my job, I'd have to charge you a little fee :(
 
Last edited:
Just by what you are saying is complicated to figure out what your problem is. If how to handle that was a simple answer, for sure I would give you for free.

Are your site build in python, php? Do you use nginx or apache?

Unfortunately to solve that I need to do a ssh connection to your server, but that is my job, I'd have to charge you a little fee :(
How much then ): omg
 
That is not normal man. Your load is 7.84. Load is recommended to stay below 1. You mysql is eating you CPU.

I have 15 Linux servers, all them load is bellow 1.

Anyway, I think logs has nothing to do with that in your case. Your didn't configured your site to record logs or you are looking at the wrong place.

The normal is 1 per processor. If the machine has 16 processors a load of 8 is like 0.5 in reality.
 
The normal is 1 per processor. If the machine has 16 processors a load of 8 is like 0.5 in reality.
You're right Barto, but I doubt he is in an 16 processors machine.

mysqld is using too much cpu, try optimizing it via my.cnf. just google there are many tips on how to speed up/optimize mysql.
otherwise could be a badly coded script too.

Really think it won't have too much to optimize, he is using a cheap OVH VPS. Seems stuff badly coded
https://www.blackhatworld.com/seo/help-my-vps-full-disk-storage-and-cannot-do-anything.1117615/#post-12037001
 
mysqld is using too much cpu, try optimizing it via my.cnf. just google there are many tips on how to speed up/optimize mysql.
otherwise could be a badly coded script too.
:weep:
 
Or remove the possible malware :)

Vstevenphan, Have you installed any cracked wordpress theme on your server? Or anything like that?
No, all of plugins installed from Deleted member 752298
 
How did you configure nginx?
Was your site working before?
 
I'd start checking nginx status, what os are you using, nginx version. Does VPS has option to reinstall the os? Have you a backup of the site info and db? Are you using any cms? did you updated or installed something? manual changes?
 
I'd start checking nginx status, what os are you using, nginx version. Does VPS has option to reinstall the os? Have you a backup of the site info and db? Are you using any cms? did you updated or installed something? manual changes?
Centos, nginx version 1.16.0
My VPS has option to reinstall VPS, I did not backup anything. The problem is that I do not update or install anything ):
 
Back
Top