Skip to content
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

Call to undefined method OCA\\GroupFolders\\ACL\\ACLManager::preloadPaths() in file apps/groupfolders/lib/Mount/MountProvider.php' line 141 #2618

Closed
marcovdv opened this issue Nov 17, 2023 · 5 comments
Labels
0. Needs triage Issues that need to be triaged bug needs info

Comments

@marcovdv
Copy link

After updating NextCloud from 27.0.2 to 27.1.3 Internal Server Error

If you disable the groupfolders app, NextCloud 27.1.3 works as expected.

Steps to reproduce

  1. Update NextCloud from 27.0.2 to 27.1.3 with the groupfolders app enabled

Expected behaviour

After logging in, a working NextCloud 27.1.3

Actual behaviour

"Internal Server Error
The server was unable to complete your request.
If this happens again, please send the technical details below to the server administrator.
More details can be found in the server log."

Server configuration

Operating system: RHEL 8.9

Web server: Apache 2.4.37

Database: MariaDB 10.3.39

PHP version: 8.2

Nextcloud version: 27.1.3

Group folders version: 15.1.3

Updated from an older Nextcloud/ownCloud or fresh install: updated from 27.0.2

Where did you install Nextcloud from: Updated from 27.0.2 to 27.1.3 with WebUI

Logs

Web server error log

Web server error log
No errors in web server log

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"","level":3,"time":"2023-11-17T15:23:05+00:00","remoteAddr":"","user":"","app":"index","method":"GET","url":"/index.php/apps/dashboard/","message":"Call to undefined method OCA\\GroupFolders\\ACL\\ACLManager::preloadPaths() in file 'apps/groupfolders/lib/Mount/MountProvider.php' line 141","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0","version":"27.1.3.2","exception":{"Exception":"Exception","Message":"Call to undefined method OCA\\GroupFolders\\ACL\\ACLManager::preloadPaths() in file 'apps/groupfolders/lib/Mount/MountProvider.php' line 141","Code":0,"Trace":[{"file":"lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"Error","Message":"Call to undefined method OCA\\GroupFolders\\ACL\\ACLManager::preloadPaths()","Code":0,"Trace":[{"file":"lib/private/Files/Config/MountProviderCollection.php","line":89,"function":"getMountsForUser","class":"OCA\\GroupFolders\\Mount\\MountProvider","type":"->"},{"file":"lib/private/Files/Config/MountProviderCollection.php","line":138,"function":"getMountsFromProvider","class":"OC\\Files\\Config\\MountProviderCollection","type":"->"},{"file":"lib/private/Files/SetupManager.php","line":217,"function":"addMountForUser","class":"OC\\Files\\Config\\MountProviderCollection","type":"->"},{"file":"lib/private/Files/SetupManager.php","line":320,"function":"OC\\Files\\{closure}","class":"OC\\Files\\SetupManager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"lib/private/Files/SetupManager.php","line":216,"function":"setupForUserWith","class":"OC\\Files\\SetupManager","type":"->"},{"file":"lib/private/Files/SetupManager.php","line":393,"function":"setupForUser","class":"OC\\Files\\SetupManager","type":"->"},{"file":"lib/private/Files/Mount/Manager.php","line":95,"function":"setupForPath","class":"OC\\Files\\SetupManager","type":"->"},{"file":"lib/private/Files/View.php","line":1370,"function":"find","class":"OC\\Files\\Mount\\Manager","type":"->"},{"file":"lib/private/Files/Node/Root.php","line":202,"function":"getFileInfo","class":"OC\\Files\\View","type":"->"},{"file":"lib/private/Files/Node/LazyUserFolder.php","line":74,"function":"get","class":"OC\\Files\\Node\\Root","type":"->"},{"file":"apps/spreed/lib/TInitialState.php","line":149,"function":"get","class":"OC\\Files\\Node\\LazyUserFolder","type":"->"},{"file":"apps/spreed/lib/Files/TemplateLoader.php","line":109,"function":"publishInitialStateForUser","class":"OCA\\Talk\\Files\\TemplateLoader","type":"->"},{"file":"lib/private/EventDispatcher/ServiceEventListener.php","line":86,"function":"handle","class":"OCA\\Talk\\Files\\TemplateLoader","type":"->"},{"file":"3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->"},{"file":"3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"lib/private/EventDispatcher/EventDispatcher.php","line":94,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"lib/private/EventDispatcher/EventDispatcher.php","line":106,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"apps/dashboard/lib/Controller/DashboardController.php","line":85,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"index","class":"OCA\\Dashboard\\Controller\\DashboardController","type":"->"},{"file":"lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"apps/groupfolders/lib/Mount/MountProvider.php","Line":141},"CustomMessage":"--"}}

@marcovdv marcovdv added 0. Needs triage Issues that need to be triaged bug labels Nov 17, 2023
@GHBLoos
Copy link

GHBLoos commented Nov 19, 2023

I have exactly the same error.

@GHBLoos
Copy link

GHBLoos commented Nov 23, 2023

Anyone that can help? I can't access many of my files, because they are stored in group folders. When I enable the groupfolders app, Nextcloud is no longer accessible.

@GHBLoos
Copy link

GHBLoos commented Nov 23, 2023

The problem seem to already occur with version 27.1.2.

@joshtrichards
Copy link
Member

joshtrichards commented Nov 24, 2023

Exception: Call to undefined method OCA\GroupFolders\ACL\ACLManager::preloadPaths() in file '/var/www/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php' line 141

This error suggests you're running an outdated version of GroupFolders. That code doesn't exist in v15.3.1 (released back in September) of groupfolders for NC27 (via #2560/#2561).

Please confirm the version and if still occurring:

  • confirm you don't have have a second version of the app installed somehow (such as in a second apps_path defined in your config.php)
  • restart your web-app (if using mod_php) or app-fpm server(s)

@marcovdv
Copy link
Author

Dear Josh,

While searching for the problem with your suggestions in mind, I found the solution to the problem:
Before updating nextcloud, I also updated RHEL8 (apache) and updated php to 8.2. With these new updates mod_php got deprecated.
So I started php-fpm and everything works again.

Thanks for your time...!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Issues that need to be triaged bug needs info
Projects
None yet
Development

No branches or pull requests

3 participants