504 Gateway Time-out when registering new user

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
wefer
Registered User
Posts: 13
Joined: Wed Jul 18, 2007 10:07 pm

504 Gateway Time-out when registering new user

Post by wefer »

Until a few weeks ago, my phpbb3 forum under version 3.2.7 was working fine, until I got a notice that new users could not register. Upon checking, I saw that indeed after doing the registration process, I was getting a "504 Gateway Time-out". I tried repairing and optimizing the table, changing the PHP version, uploading the files from a fresh install, and finally installing on a totally different test server. Nothing worked.
Put to the test, I decided to update the forum to the latest version 3.3.12. I followed all the instructions, new files, updating the database, etc. Everything Perfect! Except the user registration still doesn't work and keeps giving the same error!

From the tests I've done, I've ruled out that it's a server problem (I've tried two different ones on different hostings), files (I've updated the entire forum), PHP version (I've tried several), database (I've optimized it and repaired multiple times to no avail) or extensions (tried uninstalling them all).
I checked that the user IS CREATED in the database correctly before giving the error.
I also found that the phpbb3_qa_confirm table was a monstrous 4GB in size, much larger than all the other tables in the forum combined. I deleted all logs but that didn't help either.

What else can I try? I don't know what else to do.

Additional data:
  • Board started: 19 Apr 2005 11:55 pm
  • Avatar directory size: 1.12 MiB
  • Database size: 1.42 GiB
  • Size of posted attachments: 792.94 MiB
  • Database server: MySQL(i) 10.6.18-MariaDB-0ubuntu0.22.04.1
  • GZip compression: On
  • PHP version: 8.2.21
  • Orphan attachments: 250
  • Board version: 3.3.12
  • Number of posts: 253605
  • Number of users: 1058
  • Number of attachments: 5841
User avatar
warmweer
Jr. Extension Validator
Posts: 11476
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: 504 Gateway Time-out when registering new user

Post by warmweer »

A link to your board would allow us to see the behaviour and may provide a clue to the cause of the issue.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
ssl
Registered User
Posts: 1869
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: 504 Gateway Time-out when registering new user

Post by ssl »

Gateway errors are server issues. Every time you get a gateway error, you need to speak with your hosts because the problem is with them - not with phpBB, nor with an extension.


Support for phpBB 3.2 ends soon, consider upgrading.
Sorry for my English ... I do my best!

phpBB: 3.3.12 | PHP: 8.3.7
[Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
wefer
Registered User
Posts: 13
Joined: Wed Jul 18, 2007 10:07 pm

Re: 504 Gateway Time-out when registering new user

Post by wefer »

warmweer wrote: Tue Jul 09, 2024 7:11 am A link to your board would allow us to see the behaviour and may provide a clue to the cause of the issue.
https://transport.cat.marguas.com/index.php
ssl wrote: Tue Jul 09, 2024 7:42 am Gateway errors are server issues. Every time you get a gateway error, you need to speak with your hosts because the problem is with them - not with phpBB, nor with an extension.
Highly unlikely as I've tried installing it on two totally different servers on two totally different providers. Servers, by the way, where I have other applications installed and none of them give the slightest problem.
Another clue that it has nothing to do with the server is that all other forum functions work perfectly and at great speed.
User avatar
ssl
Registered User
Posts: 1869
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: 504 Gateway Time-out when registering new user

Post by ssl »

You probably right: https://kinsta.com/blog/504-gateway-timeout/

Error 504 can be triggered by various issues, including:
  1. Overloaded Servers: If the server is overwhelmed with requests, it may not be able to respond to all of them on time.
  2. Slow network: A slow network between the client and the main server or between proxy and main servers.
  3. Problems with intermediate servers: Protection servers or proxy servers are not working properly.
  4. Bugs in the CMS: For example, a bad configuration or an incompatible plugin.
  5. Hosting problems: The host may encounter technical problems.
  6. Server outages or maintenance: If the server is down or under maintenance, it will not be able to process requests in a timely manner.

Try disabling this extension to see if the error disappears: https://github.com/battye/show-subforum-images-ext
Sorry for my English ... I do my best!

phpBB: 3.3.12 | PHP: 8.3.7
[Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
User avatar
warmweer
Jr. Extension Validator
Posts: 11476
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: 504 Gateway Time-out when registering new user

Post by warmweer »

wefer wrote: Tue Jul 09, 2024 8:16 am
warmweer wrote: Tue Jul 09, 2024 7:11 am A link to your board would allow us to see the behaviour and may provide a clue to the cause of the issue.
I don't see anything obviously wrong.

The subforum images extension is severely outdated but I installed in on a testboard and it seems to work as intended. (even though composer.json states ">=3.2.0,<3.3.0@dev" )
The Google translate extension is also outdated (development has been terminated) but I doubt that would be the reason.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
wefer
Registered User
Posts: 13
Joined: Wed Jul 18, 2007 10:07 pm

Re: 504 Gateway Time-out when registering new user

Post by wefer »

Thanks for your responses

I've disabled all extensions, I've disabled all styles except prosilver, I've disabled antispam-bot, I've cleared the cache several times. And nothing change, everything remains the same.
As I said, the user is successfully created in the database, but not passed to the confirmation page. Can someone explain to me more or less what tasks the system does after creating the user in the DB? Maybe that way I can pull on the thread and see where it gets stuck.
User avatar
ssl
Registered User
Posts: 1869
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: 504 Gateway Time-out when registering new user

Post by ssl »

As already said above, you need to check with your host, the problem comes from them.
Sorry for my English ... I do my best!

phpBB: 3.3.12 | PHP: 8.3.7
[Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26710
Joined: Fri Aug 29, 2008 9:49 am

Re: 504 Gateway Time-out when registering new user

Post by Mick »

I notice you’re using nginx, do you have Cloudflare running by any chance?

Next time you get this error can you take a screencap and post it back here please?

Edit: NVM, I’ve just registered on your board which took about a minute once I clicked submit then got this:

IMG_0474.jpeg

Has your host updated or done something with nginx lately do you know? Are all your servers nginx?
You do not have the required permissions to view the files attached to this post.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel©
🇬🇧
User avatar
warmweer
Jr. Extension Validator
Posts: 11476
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: 504 Gateway Time-out when registering new user

Post by warmweer »

Mick wrote: Wed Jul 10, 2024 6:20 am Are all your servers nginx?
is nginx the correct spelling?
I always thought it was spelled jinxed :mrgreen:
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
wefer
Registered User
Posts: 13
Joined: Wed Jul 18, 2007 10:07 pm

Re: 504 Gateway Time-out when registering new user

Post by wefer »

Ok, thanks again for your answers.
Good news: I got the registration system working fine...sort of. I increased PHP max_execution_time from 30 to 120 and now the register takes 1 minute and 2 seconds to respond (!), but at least it works fine.

Anyway, I don't understand how it's possible for the registration to take so long, especially when everything else on the forum goes so fast. The datadase is updated and optimized. Anything else I can do to speed up the process?

Thanks.
Last edited by wefer on Wed Jul 10, 2024 7:55 pm, edited 1 time in total.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6028
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: 504 Gateway Time-out when registering new user

Post by thecoalman »

I don't know if it will help but there is sample config file for NGINX in the docs folder of the download if you are not already using it. Whatever the case there isn't a lot of people here familiar with it, try asking on NGINX forum how you can troubleshoot what is hanging.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison

Return to “[3.3.x] Support Forum”