Closed Ho551 closed 1 year ago
What do your php-fpm logs indicate?
Have you tuned your php-fpm pool settings?
Some examples of sane settings used by the NC All-in-One stack:
Logs from php-fpm look fine.
Error log from apache2: [Mon Jul 03 20:05:08.501233 2023] [proxy_fcgi:error] [pid 52934:tid 140173421565504] (104)Connection reset by peer: [client xx.xx.xx.xxx:62989] AH01075: Error dispatching request to :
System is not very busy:
It seems that some requests are taking an incredibly long time to process. This is only with the new NC versions 26.0.3 and 27.0.0. Everything worked before. When the problem does not occur, the performance is also very good.
I'm at a loss here
{"reqId":"x3Q9eU07UzKt5Z5jlkfc","level":3,"time":"2023-06-27T14:22:15+02:00","remoteAddr":"84.154.99.177","user":"Niklas","app":"webdav","method":"MOVE","url":"/remote.php/dav/files/Niklas/2023_Itter","message":"OC\Files\Cache\QuerySearchHelper::getCachesAndMountPointsForSearch(): Argument #1 ($root) must be of type OC\Files\Node\Root, OC\Files\Node\LazyRoot given, called in /var/www/html/nextcloud/lib/private/Files/Node/Folder.php on line 238","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36","version":"27.0.0.8","exception":{"Exception":"TypeError","Message":"OC\Files\Cache\QuerySearchHelper::getCachesAndMountPointsForSearch(): Argument #1 ($root) must be of type OC\Files\Node\Root, OC\Files\Node\LazyRoot given, called in /var/www/html/nextcloud/lib/private/Files/Node/Folder.php on line 238","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/Files/Node/Folder.php","line":238,"function":"getCachesAndMountPointsForSearch","class":"OC\Files\Cache\QuerySearchHelper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/Folder.php","line":292,"function":"search","class":"OC\Files\Node\Folder","type":"->"},{"file":"/var/www/html/nextcloud/apps/music/lib/Utility/Scanner.php","line":383,"function":"searchByMime","class":"OC\Files\Node\Folder","type":"->"},{"file":"/var/www/html/nextcloud/apps/music/lib/Hooks/FileHooks.php","line":42,"function":"deleteFolder","class":"OCA\Music\Utility\Scanner","type":"->"},{"file":"/var/www/html/nextcloud/apps/music/lib/Hooks/FileHooks.php","line":109,"function":"deleted","class":"OCA\Music\Hooks\FileHooks","type":"::"},{"function":"preRenamed","class":"OCA\Music\Hooks\FileHooks","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/Hooks/EmitterTrait.php","line":105,"function":"call_user_func_array"},{"file":"/var/www/html/nextcloud/lib/private/Hooks/PublicEmitter.php","line":40,"function":"emit","class":"OC\Hooks\BasicEmitter","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/Root.php","line":143,"function":"emit","class":"OC\Hooks\PublicEmitter","type":"->"},{"function":"emit","class":"OC\Files\Node\Root","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/LazyFolder.php","line":73,"function":"call_user_func_array"},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/LazyFolder.php","line":101,"function":"__call","class":"OC\Files\Node\LazyFolder","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/HookConnector.php","line":183,"function":"emit","class":"OC\Files\Node\LazyFolder","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_Hook.php","line":105,"function":"rename","class":"OC\Files\Node\HookConnector","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/View.php","line":752,"function":"emit","class":"OC_Hook","type":"::"},{"file":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":450,"function":"rename","class":"OC\Files\View","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":160,"function":"moveInto","class":"OCA\DAV\Connector\Sabre\Directory","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":612,"function":"move","class":"Sabre\DAV\Tree","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMove","class":"Sabre\DAV\CorePlugin","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/lib/Server.php","line":364,"function":"exec","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\DAV\Server","type":"->"},{"file":"/var/www/html/nextcloud/remote.php","line":172,"args":["/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/Files/Cache/QuerySearchHelper.php","Line":201,"message":"OC\Files\Cache\QuerySearchHelper::getCachesAndMountPointsForSearch(): Argument #1 ($root) must be of type OC\Files\Node\Root, OC\Files\Node\LazyRoot given, called in /var/www/html/nextcloud/lib/private/Files/Node/Folder.php on line 238","exception":{},"CustomMessage":"OC\Files\Cache\QuerySearchHelper::getCachesAndMountPointsForSearch(): Argument #1 ($root) must be of type OC\Files\Node\Root, OC\Files\Node\LazyRoot given, called in /var/www/html/nextcloud/lib/private/Files/Node/Folder.php on line 238"}}
Is the problem only related to the music app? I can reproduce the problem in a test system, but I haven't even installed the music app.
"Normal" navigation and use is sufficient for the FPM processes to appear to be busy.
As I said, there was no change to the configuration and there were never any problems with all previous NC versions. So there must have been some change.
{"reqId":"x3Q9eU07UzKt5Z5jlkfc","level":3,"time":"2023-06-27T14:22:15+02:00","remoteAddr":"84.154.99.177","user":"Niklas","app":"webdav","method":"MOVE","url":"/remote.php/dav/files/Niklas/2023_Itter","message":"OC\Files\Cache\QuerySearchHelper::getCachesAndMountPointsForSearch(): Argument #1 ($root) must be of type OC\Files\Node\Root, OC\Files\Node\LazyRoot given, called in /var/www/html/nextcloud/lib/private/Files/Node/Folder.php on line 238","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36","version":"27.0.0.8","exception":{"Exception":"TypeError","Message":"OC\Files\Cache\QuerySearchHelper::getCachesAndMountPointsForSearch(): Argument #1 ($root) must be of type OC\Files\Node\Root, OC\Files\Node\LazyRoot given, called in /var/www/html/nextcloud/lib/private/Files/Node/Folder.php on line 238","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/Files/Node/Folder.php","line":238,"function":"getCachesAndMountPointsForSearch","class":"OC\Files\Cache\QuerySearchHelper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/Folder.php","line":292,"function":"search","class":"OC\Files\Node\Folder","type":"->"},{"file":"/var/www/html/nextcloud/apps/music/lib/Utility/Scanner.php","line":383,"function":"searchByMime","class":"OC\Files\Node\Folder","type":"->"},{"file":"/var/www/html/nextcloud/apps/music/lib/Hooks/FileHooks.php","line":42,"function":"deleteFolder","class":"OCA\Music\Utility\Scanner","type":"->"},{"file":"/var/www/html/nextcloud/apps/music/lib/Hooks/FileHooks.php","line":109,"function":"deleted","class":"OCA\Music\Hooks\FileHooks","type":"::"},{"function":"preRenamed","class":"OCA\Music\Hooks\FileHooks","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/Hooks/EmitterTrait.php","line":105,"function":"call_user_func_array"},{"file":"/var/www/html/nextcloud/lib/private/Hooks/PublicEmitter.php","line":40,"function":"emit","class":"OC\Hooks\BasicEmitter","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/Root.php","line":143,"function":"emit","class":"OC\Hooks\PublicEmitter","type":"->"},{"function":"emit","class":"OC\Files\Node\Root","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/LazyFolder.php","line":73,"function":"call_user_func_array"},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/LazyFolder.php","line":101,"function":"__call","class":"OC\Files\Node\LazyFolder","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Node/HookConnector.php","line":183,"function":"emit","class":"OC\Files\Node\LazyFolder","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_Hook.php","line":105,"function":"rename","class":"OC\Files\Node\HookConnector","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/View.php","line":752,"function":"emit","class":"OC_Hook","type":"::"},{"file":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":450,"function":"rename","class":"OC\Files\View","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":160,"function":"moveInto","class":"OCA\DAV\Connector\Sabre\Directory","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":612,"function":"move","class":"Sabre\DAV\Tree","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMove","class":"Sabre\DAV\CorePlugin","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/lib/Server.php","line":364,"function":"exec","class":"Sabre\DAV\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\DAV\Server","type":"->"},{"file":"/var/www/html/nextcloud/remote.php","line":172,"args":["/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/Files/Cache/QuerySearchHelper.php","Line":201,"message":"OC\Files\Cache\QuerySearchHelper::getCachesAndMountPointsForSearch(): Argument #1 ($root) must be of type OC\Files\Node\Root, OC\Files\Node\LazyRoot given, called in /var/www/html/nextcloud/lib/private/Files/Node/Folder.php on line 238","exception":{},"CustomMessage":"OC\Files\Cache\QuerySearchHelper::getCachesAndMountPointsForSearch(): Argument #1 ($root) must be of type OC\Files\Node\Root, OC\Files\Node\LazyRoot given, called in /var/www/html/nextcloud/lib/private/Files/Node/Folder.php on line 238"}}
38634
@joshtrichards Updated to php 8.2 yesterday. In addition, the entire configuration was made according to the documentation and the apache configuration was also checked.
Unfortunately the error keeps popping up.
My productive system has an externally integrated storage via CIFS and I switched my test system to the default local data directory. The problem occurs on both systems.
As already mentioned, something must be delaying the processing enormously.
Hi @Ho551 - That particular error in your Nextcloud log is music app related. That doesn't mean it's the only problem in your installation nor the root cause of the behavior you're seeing.
As for your test installation, hard to say without more details, but glad you're eliminating some more variables. Unfortunately I can't reproduce this behavior you're experiencing. I'd suggest trying the following:
nextcloud.log
in real-time (i.e. using tail -f
) to see if you can get some indication of which transaction might be the culprit from the server-side@Ho551 I think I'm facing the same issue as you. I could remediate by deactivating OnlyOffice. Could you try whether that helps for you, too? Maybe this is an OnlyOffice issue and not really related to the nextcloud server itself.
I could find the problem. There were problems with the thumbnails. Some of the preview images were not loaded and that is why the web interface hung up many times. In my case I had the complete thumbnails regenerated according to the instructions in the wiki of the app previewgenerator.
Thanks for the help!
⚠️ This issue respects the following points: ⚠️
Bug description
After updating to NC 27, the NC web view freezes after navigating through the storage or apps.
There are excruciatingly long waiting times. If I restart php-fpm, I can browse a few steps again, after that the same behavior again.
Error appears since version 26.0.3
Everything worked in version 26.0.2.
Steps to reproduce
Expected behavior
No freezing UI
Installation method
Community Manual installation with Archive
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
Storage of NC is mounted by CIFS Share