groupfolders icon indicating copy to clipboard operation
groupfolders copied to clipboard

Could not boot files_trashbin: Too few arguments to function OCA\GroupFolders\Versions\VersionsBackend::__construct()

Open nooblag opened this issue 1 year ago โ€ข 10 comments

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

  1. 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"}

nooblag avatar May 26 '24 17:05 nooblag

... same Problem here

Similar configuration like above except Apache fpm php 8.1.2 mariadb 10.6.16

ewuewu avatar May 31 '24 11:05 ewuewu

Same problem here Same configuration except OS: Ubuntu 20.04.1 Apache fpm php 8.1.28 mysql 8.0.36

MFredMx avatar Jun 03 '24 13:06 MFredMx

Resolved for me as of NC 29.0.2 and Groupfolders 17.0.1

MFredMx avatar Jun 11 '24 19:06 MFredMx

It's not resolved in NC 29.0.2 and Groupfolders 17.0.1

antonol68 avatar Jun 12 '24 01:06 antonol68

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

MFredMx avatar Jun 12 '24 16:06 MFredMx

Same here. NC 29.0.2 Group Folders 17.0.1 PHP 8.2 (fpm) Mariadb 15.1

simonflutilliant avatar Jun 22 '24 09:06 simonflutilliant

update to NC 29.0.3

itdating avatar Jun 26 '24 07:06 itdating

Same here. NC 29.0.3 Group Folders 17.0.1 PHP: 8.1.2 PostgreSQL 14.12

Raito00 avatar Jun 28 '24 06:06 Raito00

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

joshtrichards avatar Jul 14 '24 21:07 joshtrichards

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.

steamrick avatar Jul 14 '24 22:07 steamrick