-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very first login is very slow, aka just how many database queries do we need? #12234
Comments
Facing somewhat same issue but haven't debugged the issue yet. When a new user logins for the first time to NC, they don't get a response back though the user get logged in and opening the instance in a new windows loads the default files app. Any suggestions for a workaround? Thanks |
Facing the same issue here. BEHAVIOUR 1: The initial page that ask for creating the nextcloud admin loads, I enter the settings. Then the http server time out appears after quite some time. Coming back to the same page after approx 5min gets me directly to the welcome page in the admin account, without asking login data again. From there everything click takes so long that http server timeout appears. After reloading the page at least 2 minutes later gets me to where I wanted to go. BEHAVIOUR 2: The initial page that ask for creating the nextcloud admin loads, I enter the settings. Then the http server times out. Reloading the page gets me to the login page. Entering the admin credentials leads to returning to the login page. Effectively I never get logged in. Interesting is that those two behaviours appear after installation in the exact same way. Parameters and order of steps are the same. Boot device was completly wiped and new partitioned before new install. Software versions seem not to have change during these days of reinstalling. I hope this helps to investigate further. Cheers! Odroid XU4 |
Here is a similar issue: #14632 |
I've long wondered why logging into a new Nextcloud installation takes such a long time on the first time. (the slow "out-of-the-box experience".) Thanks to the mariadb query log, I know now and I would like to share. Here is what I did:
My query log reports (with the help of grep and sed):
Note that at this time, none of the caches are warm yet. So my question: does the number of queries really have to be in the thousands before the first user is logged on?
To reproduce: get a database shell, then:
Note that if you run
mariadb
throughsystemd
, the actual location of the log file might be in a subdirectory. Tryfind /tmp -name mysql.log
to find it.The text was updated successfully, but these errors were encountered: