-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
9.1.1 RC1: Long time to open administrator page #25984
Comments
Do you see a blank page until it loads ? Or does the page load partially but isn't finished ? |
It stays at the old page. After 2 minutes, the admin page fully loads. during this time, it hangs at I also see the error |
Same issue with 9.1.1RC2 |
When the admin page finally loads, I'll get the following error in the Apache error log: |
Hmm, try disabling the notifications app ? I don't see why it would take that long, and why on the users page and not the files view. Anyway, you said it stays at the old page while loading, so this means that in fact it's the PHP process that builds the page that is taking a long time. Do you have a lot of groups ? Maybe it's loading and building the groups section. These aren't ajax loaded yet. (future task: #10994) |
deactivating the notifications app doesn't help at all. the issue affects the Administrator page only - CPU goes up. |
Ah! Sorry, I misunderstood... Most of the time people complain about the users page being slow. Ok, most of the admin page is built on the server side. So there might be an app that takes longer to build it. How big is your owncloud.log at the moment ? There were reports that the log section is taking a long time to load even though it's supposed to properly use Let's find out if the problem is with the log, you can try applying this patch:
This will make the log fetcher return nothing. |
wow - yes, this resolves the issue!! The file is only 62MB. |
Hmm, but this doesn't make sense. Where was the log file stored before ? If the log file size is the same as before, it can't take longer to read from the former location than to read it from /var/log |
The log file was at the default location. The log file in ist new Location is now empty instead 62MB |
Okay, then it makes sense. Now the question is why it takes that long to read on your environment. |
anything I can do to help troubleshooting? |
@martin-zh I'd say simply post your PHP and web server version. Maybe it's related. |
Apache2: 2.4.18-2ubun |
Hello, I add this line : I configure my log to level 4 but the 'owncloud.log' show me the same of level 0 :/ |
Note that changing the log level only applies to new entries appended to the log, old entries will stay. |
Ok better ! |
From what I see the log reading code parses the log file byte by byte from the end, looking for newlines and stops when the limit is reached. Not sure why this would be slow on some systems ? I'd think that modern operating systems would cache the file in memory and make such jumping fast. It should be possible to optimize this a bit by making it jump block-wise instead of byte-wise. |
and: always ajax load the log. So if it's slow it would still display the admin page and the slowness would only be in the log level section (spinner) |
I have same issue for just one group of my users page. |
Hmmm, indeed the original reporter @martin-zh had the issue on the users page. |
I just tried with a debugger and the log-loading code doesn't run when opening the users page. Weird... |
Okay, I managed to recreate this: I added Here is what is likely happening:
Why would it be slow ? Maybe it is trying to write entries into the log while the log is still being parsed. Will try and confirm this. |
Just did a local test and it seems to only affect the currently logged in user, not other sessions. The solution for this is to make the log only be loaded in ajax. But I wonder whether we should simply remove it completely because I find that it's barely usable and best is to use a better log viewer app instead. |
IMHO it should be removed completely. A log viewer app can be used if someone needs to dig into the log ifle. |
Sounds good, that's also what @DeepDiver1975 @butonic said. We can't remove this in a stable version but could do it for 9.2. @RealRancor have you heard of many users using the log viewer on the admin page ? |
Ok, so this PR would remove the log entries table #26225 but keep the "download log" button. |
We are mostly pointing the users to the data/owncloud.log file itself. |
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
Expected behaviour
Page should load as fast as the other ones.
Actual behaviour
It take forever to load the page. It shows up after a couple of minutes but still wainting for something.
Server configuration
Operating system: Ubuntu 16.04
Web server: Apache
Database: mysql
PHP version:
ownCloud version (see ownCloud admin page): 9.1.1 RC
Updated from an older ownCloud or fresh install: updated from 9.1.0
ownCloud log (data/owncloud.log, see https://central.owncloud.org/t/how-to-find-webserver-or-oc-logfile-enable-php-logfile/808):
{"reqId":"VC1FcF0BfVFcc79lNUWy","remoteAddr":"192.168.1.218","app":"index","message":"Exception: {"Exception":"OC\NeedsUpdateException","Message":"","Code":0,"Trace":"#0 /var/www/owncloud/lib/private/legacy/app.php(119): OC_App::loadApp('dav')\n#1 /var/www/owncloud/lib/private/legacy/util.php(135): OC_App::loadApps(Array)\n#2 /var/www/owncloud/lib/base.php(890): OC_Util::setupFS()\n#3 /var/www/owncloud/index.php(39): OC::handleRequest()\n#4 {main}","File":"/var/www/owncloud/lib/private/legacy/app.php","Line":147}","level":3,"time":"2016-08-24T05:52:09+00:00","method":"GET","url":"/index.php/core/js/oc.js?v=8017b0bd05b37ab6dbf39a9190ac521e","user":"--"}
{"reqId":"A8+UJvfRoAWPR8tjiLBW","remoteAddr":"192.168.1.218","app":"core","message":"starting upgrade from 9.1.0.15 to 9.1.1.0","level":0,"time":"2016-08-24T05:52:11+00:00","method":"GET","url":"/core/ajax/update.php?requesttoken=KCkICjc%2FMQAOQH88ZT91djYwAw4GAWhMM3wnOVs%2BER0%3D%3AnbQpBQHbW38p4PACTCOLalP9T5lXnqETuX%2BkBFTa9Do%3D","user":"--"}
{"reqId":"mRrN2zE6Pqpro9fRuLbm","remoteAddr":"192.168.1.49","app":"PHP","message":"Uncaught Error: Access to undeclared static property: OC\Files\Filesystem::$normalizedPathCache in /var/www/owncloud/lib/private/Files/Filesystem.php:772\nStack trace:\n#0 /var/www/owncloud/lib/private/Files/View.php(2039): OC\Files\Filesystem::normalizePath('/tobiasbausch@g...')\n#1 /var/www/owncloud/lib/private/Files/View.php(1151): OC\Files\View->unlockFile('/MyFriends/Komm...', 1)\n#2 [internal function]: OC\Files\View->OC\Files{closure}()\n#3 /var/www/owncloud/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\Streams\CallbackWrapper->stream_close()\n#5 {main}\n thrown at /var/www/owncloud/lib/private/Files/Filesystem.php#772","level":3,"time":"2016-08-29T10:31:44+00:00","method":"PROPFIND","url":"/remote.php/webdav/","user":"jstaub@cfc.ch"}
{"reqId":"AqQ1OZ5pz1s9Wc12oevw","remoteAddr":"192.168.1.49","app":"PHP","message":"Uncaught Error: Access to undeclared static property: OC\Files\Filesystem::$normalizedPathCache in /var/www/owncloud/lib/private/Files/Filesystem.php:772\nStack trace:\n#0 /var/www/owncloud/lib/private/Files/View.php(2039): OC\Files\Filesystem::normalizePath('/tobiasbausch@g...')\n#1 /var/www/owncloud/lib/private/Files/View.php(1151): OC\Files\View->unlockFile('/MyFriends/Komm...', 1)\n#2 [internal function]: OC\Files\View->OC\Files{closure}()\n#3 /var/www/owncloud/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\Streams\CallbackWrapper->stream_close()\n#5 {main}\n thrown at /var/www/owncloud/lib/private/Files/Filesystem.php#772","level":3,"time":"2016-08-29T10:33:14+00:00","method":"PROPFIND","url":"/remote.php/webdav/","user":"jstaub@cfc.ch"}
Special configuration (external storage, external authentication, reverse proxy, server-side-encryption):
Integrity status for oC9+
Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
No errors have been found.
I'm not shure if this issue started with 9.1.1 RC1 - 9.1.0 was very slow. Personal, user and help are working as expected, logout takes a long time too.
The text was updated successfully, but these errors were encountered: