Could not boot files_trashbin: Too few arguments to function OCA\GroupFolders\Versions\VersionsBackend::__construct()
How to use GitHub
- Please use the ๐ reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
- Upgrade to Nextcloud 29.0.1
[no app in context] Fatal: Could not boot files_trashbin: Too few arguments to function OCA\GroupFolders\Versions\VersionsBackend::__construct(), 7 passed in /var/www/nextcloud/apps/groupfolders/lib/AppInfo/Application.php on line 153 and exactly 8 expected
Server configuration
Operating system: Ubuntu 22.04.4 LTS
Web server: nginx/1.18.0 (Ubuntu)
Database: mariadb Ver 15.1 Distrib 10.6.16-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper
PHP version: PHP 8.2.19 (cli) (built: May 23 2024 12:34:42) (NTS)
Nextcloud version: (see Nextcloud admin page) 29.0.1
Group folders version: 17.0.0
Updated from an older Nextcloud/ownCloud or fresh install: 28.0.5
Where did you install Nextcloud from: nextcloud.com
Are you using external storage, if yes which one: local/s3/smb/sftp/... None
Are you using encryption: yes/no No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/Saml/... No
Logs
Nextcloud log (data/nextcloud.log)
Nextcloud log
{"reqId":"Yr6mu8LfP8DA4EqIQlNX","level":4,"time":"2024-05-27T03:21:33+10:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"xxxxxx","app":"no app in context","method":"GET","url":"/apps/logreader/api/poll?lastReqId=3opb5woZKQZqusjEhfSs","message":"Could not boot files_trashbin: Too few arguments to function OCA\\GroupFolders\\Versions\\VersionsBackend::__construct(), 7 passed in /var/www/nextcloud/apps/groupfolders/lib/AppInfo/Application.php on line 153 and exactly 8 expected","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0","version":"29.0.1.1","exception":{"Exception":"ArgumentCountError","Message":"Too few arguments to function OCA\\GroupFolders\\Versions\\VersionsBackend::__construct(), 7 passed in /var/www/nextcloud/apps/groupfolders/lib/AppInfo/Application.php on line 153 and exactly 8 expected","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/groupfolders/lib/AppInfo/Application.php","line":153,"function":"__construct","class":"OCA\\GroupFolders\\Versions\\VersionsBackend","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":175,"function":"OCA\\GroupFolders\\AppInfo\\{closure}","class":"OCA\\GroupFolders\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":122,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"offsetGet","class":"Pimple\\Container","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":464,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":442,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":64,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/nextcloud/apps/groupfolders/lib/AppInfo/Application.php","line":147,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":175,"function":"OCA\\GroupFolders\\AppInfo\\{closure}","class":"OCA\\GroupFolders\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":122,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"offsetGet","class":"Pimple\\Container","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":464,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/ServerContainer.php","line":155,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":445,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":64,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/nextcloud/apps/files_trashbin/lib/AppInfo/Application.php","line":94,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":45,"function":"registerTrashBackends","class":"OCA\\Files_Trashbin\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php","line":50,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->"},{"file":"/var/www/nextcloud/apps/files_trashbin/lib/AppInfo/Application.php","line":72,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":200,"function":"boot","class":"OCA\\Files_Trashbin\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":437,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":216,"function":"loadApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":128,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/AppInfo/Application.php","line":220,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":200,"function":"boot","class":"OCA\\DAV\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":437,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":216,"function":"loadApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":128,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1030,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/groupfolders/lib/Versions/VersionsBackend.php","Line":52,"message":"Could not boot files_trashbin: Too few arguments to function OCA\\GroupFolders\\Versions\\VersionsBackend::__construct(), 7 passed in /var/www/nextcloud/apps/groupfolders/lib/AppInfo/Application.php on line 153 and exactly 8 expected","exception":[],"CustomMessage":"Could not boot files_trashbin: Too few arguments to function OCA\\GroupFolders\\Versions\\VersionsBackend::__construct(), 7 passed in /var/www/nextcloud/apps/groupfolders/lib/AppInfo/Application.php on line 153 and exactly 8 expected"},"id":"66536f9d662cc"}
... same Problem here
Similar configuration like above except Apache fpm php 8.1.2 mariadb 10.6.16
Same problem here Same configuration except OS: Ubuntu 20.04.1 Apache fpm php 8.1.28 mysql 8.0.36
Resolved for me as of NC 29.0.2 and Groupfolders 17.0.1
It's not resolved in NC 29.0.2 and Groupfolders 17.0.1
It's not resolved in NC 29.0.2 and Groupfolders 17.0.1
I just said, that I - personally - have no problems with it anymore
Same here. NC 29.0.2 Group Folders 17.0.1 PHP 8.2 (fpm) Mariadb 15.1
update to NC 29.0.3
Same here. NC 29.0.3 Group Folders 17.0.1 PHP: 8.1.2 PostgreSQL 14.12
If this occurred after upgrading from NC28, this may be a PHP caching matter. Please restart Apache/mod_php or php-fpm.
In addition, it may be worthwhile to review your PHP opcache validation config values if they are other than the default: https://docs.nextcloud.com/server/latest/admin_manual/installation/server_tuning.html#enable-php-opcache
You are right - I rebooted the VM to expand RAM, but did not think to check the log after. Looking at it now, the issue (as well as a 'Host 192.168.12.198 was not connected to because it violates local access rules') disappeared after reboot.
Reminder to self: Reboot after major version upgrades. Or if there's strange errors. It's low effort and may actually fix the problem.