Moodle LMS Username and Password Verification 504 Gateway Time-out

Moodle LMS Username and Password Verification 504 Gateway Time-out

by Kevin Lu -
Number of replies: 1

Hi Moodle Experts,

Thank you for reading this thread. It seems for unknown reason, I can't login to my Moodle LMS on a new browser, I was using it two hours ago and after lunch, I encounter this issue. It is not an Internet connection issue because I traveled to another place and tried to connect to LMS, it was still not working.

Does it mean that a DNS server that verifies the password and username is down? However, my manager and I checked the server and it was all running, in fact, it was only using 7% of the usage.

I have another browser that already logged into Moodle and I can perform all the functions. However, all of my teammates can't login to Moodle if they had logged out. It is also not a cache issue because we all cleared out the cache.

Below are the screenshots of the issue and the Moodle version information, thank you!

Moodle Cannot Login


504 Gateway Timeout


Moodle Version

Average of ratings: -
In reply to Kevin Lu

Re: Moodle LMS Username and Password Verification 504 Gateway Time-out

by Ken Task -
Picture of Particularly helpful Moodlers

DNS doesn't "verifies the password and username" but 504 Gateway errors do/could involve DNS.

There isn't a single fix ... must be investigated.

Google Search:

https://www.google.com/search?q=504+Gateway+error

One can see several links.

Please see from the above Google search, this page (many are just like it):

https://bobcares.com/blog/how-to-fix-504-gateway-timeout-error-in-your-websites/

While the next is about WordPress, what one does is almost the same for Moodle:

https://www.000webhost.com/blog/504-gateway-timeout

Where one is hosted, how hosted, in control of DNS or not, etc. makes a difference in more specific information.

Suggest contacting help desk of hosting provider for some assistance.

If using a Mac client/Linux client (can even run from your own server if Linux) ... try some curl test to your server.

Like: curl -vvv -I https://FQDNofYourMoodleSite/

include the /moodle/ directory if that's how you access your Moodle.

Do a 'dig' for your server: dig fqdnofmoodleserver

Do a reverse lookup on the IP address seen in the output of above:

dig -x IPADDRESS

Other things to check .... php max execution time, time zone correct?

Your web service errors logs.

'spirit of sharing', Ken