3.10.1 login page slow to load

Re: 3.10.1 login page slow to load

by Leon Stringer -
Number of replies: 3
Picture of Core developers Picture of Particularly helpful Moodlers

To me, 60 seconds suggests a timeout is expiring. For example something configured to call to something via a network connection, but it doesn't hear back from the remote end so after 60s it gives up and continues.

Some things to check: if there are any additional plugins installed? If there are any non-standard authentication methods enabled? if using an additional theme is this configured to do something special for login?

Your browser's developer tools may be able to help (for example: Network Monitor in Firefox) by showing if it's the resource /login/index.php that's taking 60s or something else.

On a CentOS 8 server with 2 GB RAM with no other load I'd expect the login page to load within 2 seconds, with no OPcache, maybe 5 seconds.

If you do see debug info please share it, it may be relevant.

Average of ratings: Useful (1)
In reply to Leon Stringer

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: 3.10.1 login page slow to load

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

Suggestions:

Some things to check: if there are any additional plugins installed? If there are any non-standard authentication methods enabled?

Basically check if either 1) there's an authentication plugin that's timing out, or 2) there's an enrolment plugin that's timing out. The authentication plugins are tried in the order in which they appear in the Manage authentication page. Some authentication plugins may try multiple servers, e.g. auth_ldap can try multiple servers, and one server may be unavailable but the connection attempt may need to time out before the next is tried.

On successful authentication any enabled enrolment plugins will enrol the user as needed. If one of these is attempting to connect to an unresponsive server, e.g. enrol_database, then this may have to time out before the login process completes.

Average of ratings: Useful (2)
In reply to Leon Stringer

Re: 3.10.1 login page slow to load

by Junior Saraiva -

Hello everybody,

Great tips Leon Stringer.
I had the same problem reported here and following your tips I verified that there was an LDAP Enrollment Method (enrolsettingsldap) that was active and configured incorrectly (that is, without use), but because it was enabled it made Moodle check in all logins.

Thanks for sharing.

Average of ratings: Useful (1)