Recent

Author Topic: 504 Gateway Timeout  (Read 4301 times)

Fibonacci

  • Hero Member
  • *****
  • Posts: 937
  • Behold, I bring salvation - FPC Unleashed
504 Gateway Timeout
« on: April 09, 2026, 02:21:55 pm »
The forum has been throwing 504 Gateway Timeout errors pretty frequently lately - during page loads, posting, simple browsing. It makes the forum quite difficult to use.

Is the team aware of this? Are there any plans to address it?
FPC Unleashed - inline vars, tuples, statement expressions, array equality, compound assignments, indexed/lazy labels, no-RTTI & more. ⭐ Star it on GitHub!

cdbc

  • Hero Member
  • *****
  • Posts: 2772
    • http://www.cdbc.dk
Re: 504 Gateway Timeout
« Reply #1 on: April 09, 2026, 04:13:18 pm »
Hi
+1
It has been going for about a week or so... :(
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

creaothceann

  • Sr. Member
  • ****
  • Posts: 356
Re: 504 Gateway Timeout
« Reply #2 on: April 09, 2026, 04:47:19 pm »

Graeme

  • Hero Member
  • *****
  • Posts: 1526
    • Graeme on the web
Re: 504 Gateway Timeout
« Reply #3 on: April 09, 2026, 06:15:05 pm »
+1

It's been driving me nuts!!

ps: I've just reported it in the mailing list.
« Last Edit: April 09, 2026, 06:17:48 pm by Graeme »
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

440bx

  • Hero Member
  • *****
  • Posts: 6472
Re: 504 Gateway Timeout
« Reply #4 on: April 09, 2026, 08:04:31 pm »
I've been in the same boat too.

The strange thing is that it's very unpredictable.  The forum works perfectly fine (good response time) then it suddenly goes into a period of gateway timeouts that may last from a couple of minutes to, sometimes, over 15 minutes.

Yes, it really gets in the way of browsing the forum.
« Last Edit: April 09, 2026, 08:11:28 pm by 440bx »
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

LemonParty

  • Sr. Member
  • ****
  • Posts: 463
Re: 504 Gateway Timeout
« Reply #5 on: April 09, 2026, 08:31:55 pm »
Why is that happening? DDOS?
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11

dseligo

  • Hero Member
  • *****
  • Posts: 1683
Re: 504 Gateway Timeout
« Reply #6 on: April 09, 2026, 09:21:30 pm »
Why is that happening? DDOS?

AI training probably.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2695
Re: 504 Gateway Timeout
« Reply #7 on: April 09, 2026, 10:28:28 pm »
I'm fully aware of the timeouts and constantly monitoring it.
Lately we ran into a different kind of "attack", connections to the server are kept alive, without much traffic. To work around this I've shortened the alive time. But this affects the browsing experience, resulting in timeouts happen more often.
I'm still tweaking this
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

440bx

  • Hero Member
  • *****
  • Posts: 6472
Re: 504 Gateway Timeout
« Reply #8 on: April 20, 2026, 07:46:34 pm »
I just wanted to mention that, in the past the timeouts came and went in a matter of some minutes but now, there are periods of 8 to 14 hours (yes, hours!) that any attempt to view the forums gets a timeout.

I just went through a period of about 10 hours getting nothing but timeouts then, the forum was ok for about 5 minutes then another timeout period of about 6 hours.

I've seen many sites using Cloudflare to protect themselves from malicious bots, if the timeouts are in some way connected to this problem, could we use Cloudflare too to solve the problem ?

FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

JanRoza

  • Hero Member
  • *****
  • Posts: 747
    • http://www.silentwings.nl
Re: 504 Gateway Timeout
« Reply #9 on: April 20, 2026, 07:50:53 pm »
I am glad that the forum at long last is back again after a weekend of gateway timeouts.
Any ideas yet about the cause of these timeouts?
OS: Windows 11 / Linux Mint 22.3
       Lazarus 4.6 RC FPC 3.2.2
       CodeTyphon 8.90 FPC 3.3.1

Thaddy

  • Hero Member
  • *****
  • Posts: 19129
  • Glad to be alive.
Re: 504 Gateway Timeout
« Reply #10 on: April 20, 2026, 08:06:56 pm »
@JanRoza

Did you miss that?

Lately we ran into a different kind of "attack", connections to the server are kept alive, without much traffic. To work around this I've shortened the alive time. But this affects the browsing experience, resulting in timeouts happen more often.

Anyway, we are back browsing..

An example of that is that CoPilot keeps the connection open for anyone that is actually using Copilot and have given permission to read along with what they are doing. That generates not much traffic, and helps just a single user. It only drops the connection if you move away and there are no tabs open that access the forum.
« Last Edit: April 20, 2026, 08:13:25 pm by Thaddy »
objects are fine constructs. You can even initialize them with constructors.

JanRoza

  • Hero Member
  • *****
  • Posts: 747
    • http://www.silentwings.nl
Re: 504 Gateway Timeout
« Reply #11 on: April 20, 2026, 11:53:14 pm »
@Thaddy: Yes I really missed it, a couple of times per day I read all new messages.
Just to learn and get wiser.  :)
OS: Windows 11 / Linux Mint 22.3
       Lazarus 4.6 RC FPC 3.2.2
       CodeTyphon 8.90 FPC 3.3.1

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2695
Re: 504 Gateway Timeout
« Reply #12 on: April 21, 2026, 08:28:46 am »
We were "serving" 100+ request per second the past days. That's something the server can't handle.
Bad requests are handled by fail2ban and other tools, so these IPs and networks get blocked. Fail2ban however has one problem I found out. It keeps all blocks in an internal sqlite database without removing entries. This DB has grown to 17GB, causing netblock detecting to fail.
Besides this, there is the past months a different pattern in server load which I don't know yet how to handle.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

LeP

  • Sr. Member
  • ****
  • Posts: 294
Re: 504 Gateway Timeout
« Reply #13 on: April 21, 2026, 08:35:57 am »
By me, this night the forum was still inacessible.

And now I can't use any link on the forum (login too): "Cookies error".

I had to go into my browser history to find the direct link to the login page, and now it seems to work.
Un Sistema per domarli, un IDE per trovarli, un codice per ghermirli e nel framework incatenarli.
An operating system to tame them, an IDE to find them, a code to catch them and in the framework chain them.

ccrause

  • Hero Member
  • *****
  • Posts: 1117
Re: 504 Gateway Timeout
« Reply #14 on: April 21, 2026, 08:45:12 am »
We were "serving" 100+ request per second the past days. That's something the server can't handle.
Bad requests are handled by fail2ban and other tools, so these IPs and networks get blocked. Fail2ban however has one problem I found out. It keeps all blocks in an internal sqlite database without removing entries. This DB has grown to 17GB, causing netblock detecting to fail.
Besides this, there is the past months a different pattern in server load which I don't know yet how to handle.
@Marc thank you for maintaining this service, it is much appreciated.  I also had trouble connecting since about Saturday, obviously it is better now  :D.

 

TinyPortal © 2005-2018