504 Timeout in my VPS in less than 1 month

That means nothing is running on that port on your server however something is trying to send a lot of requests via 127.0.0.1:8080 potentially resulting in your server giving out 504 errors.

Code:
2020/08/27 17:54:56 [error] 12428#12428: *21556 upstream timed out (110: Connection timed out) while connecting to upstream, client: 162.158.106.120, server: Removedforprivacyinbhw, request: "GET /links/rzn2zqb8iu/ HTTP/1.1", upstream: "http://127.0.0.1:8080/links/rzn2zqb8iu/", host: "Removedforprivacyinbhw"
2020/08/27 18:37:36 [error] 12428#12428: *21709 upstream timed out (110: Connection timed out) while connecting to upstream, client: 108.162.245.30, server: Removedforprivacyinbhw, request: "GET /cast/ike-amadi/feed/ HTTP/1.1", upstream: "http://127.0.0.1:8080/cast/ike-amadi/feed/", host: "Removedforprivacyinbhw"
2020/08/27 18:43:27 [error] 12428#12428: *21715 upstream timed out (110: Connection timed out) while connecting to upstream, client: 141.101.69.87, server: Removedforprivacyinbhw, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "Removedforprivacyinbhw", referrer: "https://Removedforprivacyinbhw/"

Can you PM logs as they appear on the server without removing anything?

But i tried this command netstat -pan | grep :8080 ''
I got '' tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 1012/httpd ''
i will pm you about the logs.
 
But i tried this command netstat -pan | grep :8080 ''
I got '' tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 1012/httpd ''
i will pm you about the logs.

What if you check port 80 or 443 - Have you got nginx running as well?
 
What if you check port 80 or 443 - Have you got nginx running as well?
Yes i do have Nginx running
Port 80:

tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 1012/httpd
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 456/nginx: master p
tcp6 0 0 :::80 :::* LISTEN 456/nginx: master p

Port: 443:

tcp 0 0 185.212.128.**:443 0.0.0.0:* LISTEN 456/nginx: master p
tcp 0 0 185.212.128.**:443 162.158.****.***:43564 ESTABLISHED 459/nginx: worker p
(I will sent it to you via message)
 
It is a script or plugin issue.

"GET /links/rzn2zqb8iu/ HTTP/1.1", upstream: "http://127.0.0.1:8080/links/rzn2zqb8iu/" how does your script fetches the embedded links ?
Was the website working fine before ? Or this issue started happening from the start ?
It is either your script or some plugin, i would consult your script provider for an answer to this issue.
 
It is a script or plugin issue.

"GET /links/rzn2zqb8iu/ HTTP/1.1", upstream: "http://127.0.0.1:8080/links/rzn2zqb8iu/" how does your script fetches the embedded links ?
Was the website working fine before ? Or this issue started happening from the start ?
It is either your script or some plugin, i would consult your script provider for an answer to this issue.

It is from the beginning working perfectly
but the problem started appearing like 5 days ago and every day have the 504 time out

@m1k3r Addressed the problem of 504
Now i started having 502 bad gateway but now 3 times per day !!!
 
when you get 502 or 504 try restarting your httpd + nginx and see if your site came up again?
The thing is the message 502 bad gateway it only appears twice per day in a different Time for just 25 seconds to a minute and it disappears again and the website came up again without doing anything it really depressed me...
 
The thing is the message 502 bad gateway it only appears twice per day in a different Time for just 25 seconds to a minute and it disappears again and the website came up again without doing anything it really depressed me...
you should check if any script like backup or any cron job runs in that particular time, if so which one is that? did you check your site error logs too?
 
i don't know what panel u using but i recommend
cyberpanel and start using ols+ LSCache since ur using wordpress
or if u prefer nginx, use aapanel + nginx +fastcgi
apache is kinda slow for wordpress website.
 
Back
Top