Author Topic: Getting a lot of "502 Bad Gateway" errors  (Read 3722 times)

Svuppe, endless∞, Ranayna, coromonadalix, peter-h (+ 1 Hidden) and 80 Guests are viewing this topic.

Offline Kean

  • Supporter
  • ****
  • Posts: 3488
  • Country: au
    • Kean Electronics
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #125 on: Yesterday at 12:59:53 pm »
I got this captcha a couple of times now, but not nearly as often as the combined captchas yesterday.
Don't get me wrong. I understand the neccessity and i don't really mind that single captcha.
But it *is* changed behaviour.

Yes, I am regularly seeing the CrowdSec captcha.  Note that this is very much not the same as CrowdStrike!

I presume it is happening because with CloudFlare enabled the requests are reverse proxied, so the IP seen by the EEVblog servers is not the originating IP but one from CF.

As mentioned in another post, there are configuration settings that can be made to better handle this and restore the originating IP.
https://www.eevblog.com/forum/news/getting-a-lot-of-502-bad-gateway-errors/msg6357054/#msg6357054

Edit: Yes, in fact I can see the IP logged against this post is not my companies public IP address, but one associated with CF.
« Last Edit: Yesterday at 01:02:05 pm by Kean »
 
The following users thanked this post: EEVblog

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42138
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #126 on: Yesterday at 01:01:30 pm »
Don't get me wrong. I understand the neccessity and i don't really mind that single captcha.
But it *is* changed behaviour.

gnif may have changed something with the server side protection. CDN level Cloudflare authentication is turned off.
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42138
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #127 on: Yesterday at 01:06:58 pm »
The number of unique daily page requests to Cloudflare for the website is bonkers.
 
The following users thanked this post: Kean

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42138
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #128 on: Yesterday at 01:10:57 pm »
US mostly.
 

Offline Kean

  • Supporter
  • ****
  • Posts: 3488
  • Country: au
    • Kean Electronics
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #129 on: Yesterday at 01:11:47 pm »
87k unique visitors PER HOUR!

What percentage are being passed through?
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42138
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #130 on: Yesterday at 01:16:27 pm »
87k unique visitors PER HOUR!
What percentage are being passed through?

I only have those public Guests and Users numbers in the stats.
 

Offline KungFuJosh

  • Super Contributor
  • ***
  • Posts: 8176
  • Country: us
  • TEAS is real.
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #131 on: Yesterday at 02:25:22 pm »
I still have "Block AI training bots" enabled in Cloudflare (in addition to the multitude of filters gnif has set up server side), I'll disable that right now as a trial and see if the Guests increase again. 10am Monday Sydney time for reference.

There's no reason to turn that off. I'd keep all the invisible bot protections active.
"Experience is something you don't get until just after you need it." - Steven Wright
Best Continuity Tester Ever
 

Online peter-h

  • Super Contributor
  • ***
  • Posts: 5965
  • Country: gb
  • Doing electronics since the 1960s...
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #132 on: Yesterday at 08:00:34 pm »
Quote
WTF

I must be misunderstanding the sentiment behind "WTF" but I was only trying to help.

Precursor gives you the same DDOS protection as the Under Attack mode, but is transparent to users.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42138
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #133 on: Today at 12:03:51 am »
Quote
WTF
I must be misunderstanding the sentiment behind "WTF" but I was only trying to help.
Precursor gives you the same DDOS protection as the Under Attack mode, but is transparent to users.

I meant that it's not available to Australians. I've looked, my account doesn't have it.
 
The following users thanked this post: Kean

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42138
  • Country: au
    • EEVblog
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42138
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #135 on: Today at 12:10:29 am »
Precursor is only available on the Enterprise plan, which is quote based which means "if you have to ask, you can't afford it".

https://blog.cloudflare.com/introducing-precursor/
 

Offline KungFuJosh

  • Super Contributor
  • ***
  • Posts: 8176
  • Country: us
  • TEAS is real.
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #136 on: Today at 04:24:23 am »
Precursor is only available on the Enterprise plan, which is quote based which means "if you have to ask, you can't afford it".

https://blog.cloudflare.com/introducing-precursor/

It might be a regional deployment thing. I hadn't seen the option before, but I followed the link from the article, and the option was there in my free plan.
"Experience is something you don't get until just after you need it." - Steven Wright
Best Continuity Tester Ever
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42138
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #137 on: Today at 05:26:06 am »
Precursor is only available on the Enterprise plan, which is quote based which means "if you have to ask, you can't afford it".

https://blog.cloudflare.com/introducing-precursor/
It might be a regional deployment thing. I hadn't seen the option before, but I followed the link from the article, and the option was there in my free plan.

I also followed the link, not there  >:(
 

Offline lowimpedance

  • Super Contributor
  • ***
  • Posts: 1330
  • Country: au
  • Watts in an ohm?!
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #138 on: Today at 05:43:00 am »
Guest numbers creeping up , over 60k !
Just the usual after work spike or ...
« Last Edit: Today at 05:54:15 am by lowimpedance »
The odd multimeter or 2 or 3 or 4...or........can't remember !.
 

Online peter-h

  • Super Contributor
  • ***
  • Posts: 5965
  • Country: gb
  • Doing electronics since the 1960s...
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #139 on: Today at 06:40:01 am »
The CF site says

"Precursor will be free to use until our GA release later this year."

Must be how we got it for free.

The big Q is whether they will start charging to people who got it for free early on.

Our site is virtually hosted with the usual ton of bw so we would have to move to Anubis.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42138
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #140 on: Today at 06:45:18 am »
Guest numbers creeping up , over 60k !
Just the usual after work spike or ...

Dammit, yep, that didn't last long.
 

Offline gnif

  • Administrator
  • *****
  • Posts: 1919
  • Country: au
  • Views and opinions are my own
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #141 on: Today at 06:46:32 am »
Guest numbers creeping up , over 60k !
Just the usual after work spike or ...

Because we have changed to using CF entirely I have had to disable/remove the CrowdSec layer we had implemented, these to systems are not compatible.
Unfortunately the result is many bots that I was already properly filtering is now relying on CF to filter, as a result of which I'd expect to see numbers rise again.
 
The following users thanked this post: lowimpedance

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42138
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #142 on: Today at 06:48:26 am »
This is interesting, look who is the biggest.
Looks like I can block individual bots.

 

Offline gnif

  • Administrator
  • *****
  • Posts: 1919
  • Country: au
  • Views and opinions are my own
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #143 on: Today at 06:49:37 am »
The bots that advertise who they are, are not the problem, it's those that hide as real users that are.
 
The following users thanked this post: EEVblog

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42138
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #144 on: Today at 06:50:18 am »
I just blocked Apple and Bing as a test. Will see if the Guests drop over the next few hours.
 

Offline gnif

  • Administrator
  • *****
  • Posts: 1919
  • Country: au
  • Views and opinions are my own
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #145 on: Today at 06:50:52 am »
I just blocked Apple and Bing as a test. Will see if the Guests drop over the next few hours.

This is a bad idea, these bots already identified themselves properly and we have been explicitly allowing them. The major bots that identify themselves actually behave properly and respect crawl rates, and we can throttle them at the server side. The bots that pretend to be real users using proxy services are the issue, we can't identify them as bots or throttle them. CloudFlare wont give you a "switch" for these bots, we are just hoping their heuristics are better then ours at identifying them.

The guest count is not a good metric to test with, SMF retains this count for hours, and does not reflect actual server load.
« Last Edit: Today at 06:55:47 am by gnif »
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42138
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #146 on: Today at 06:55:20 am »
The bots that advertise who they are, are not the problem, it's those that hide as real users that are.

Is there a chance they are bypassing the DNS and going to the server IP directly?
 

Offline gnif

  • Administrator
  • *****
  • Posts: 1919
  • Country: au
  • Views and opinions are my own
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #147 on: Today at 06:56:20 am »
The bots that advertise who they are, are not the problem, it's those that hide as real users that are.

Is there a chance they are bypassing the DNS and going to the server IP directly?

Yes, but we have technical reasons why we need to keep it this way. Lets discuss this via email.
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42138
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #148 on: Today at 06:56:25 am »
I just blocked Apple and Bing as a test. Will see if the Guests drop over the next few hours.

This is a bad idea, these bots already identified themselves properly and we have been explicitly allowing them. The major bots that identify themselves actually behave properly and respect crawl rates, and we can throttle them at the server side. The bots that pretend to be real users using proxy services are the issue, we can't identify them as bots or throttle them. CloudFlare wont give you a "switch" for these bots, we are just hoping their heuristics are better then ours at identifying them.

The guest count is not a good metric to test with, SMF retains this count for hours, and does not reflect actual server load.

Ok, thanks, have re-enabled them.
 

Online peter-h

  • Super Contributor
  • ***
  • Posts: 5965
  • Country: gb
  • Doing electronics since the 1960s...
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #149 on: Today at 07:12:51 am »
Quote
Yes, but we have technical reasons why we need to keep it this way. Lets discuss this via email.

This is a normal issue; you set up a bypass in CF.

The real server should be firewalled to accept only CF traffic, plus obviously any other stuff you need internally.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf