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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

NC25 [cron] TypeError: Argument 1 passed to . . . ::getACLManager() must be an instance of OCP\IUser, null given #2491

Closed
TP75 opened this issue Jul 27, 2023 · 2 comments
Labels
0. Needs triage Issues that need to be triaged bug

Comments

@TP75
Copy link
Contributor

TP75 commented Jul 27, 2023

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. Make normal use of NC 25 instance at your deliberation.
  2. Make use of system cron for regular NC housekeeping.
  3. Upgrade to NC "25.0.9.2" from earlier version.
  4. Optionally upgrade Group folders App from "13.1.3" to "13.1.4"

Expected behaviour

Silent operation and no error log in protocols.

Actual behaviour

Silent operation and error log (see below) at regular interval in protocols. The interval seems to be twice a day.

Server configuration

Operating system: Linux 5.10.0-23-amd64 x86_64 i.e. Debian 11.7 bullseye

Web server: Apache2 "2.4.56-1~deb11u2"

Database: mysql i.e. MariaDB 10.5.19

PHP version: PHP 7.4.33 (intentionally, legacy version is supported by Debian security team)

Nextcloud version: NC "25.0.9.2"

Group folders version: "13.1.3" and "13.1.4"

Updated from an older Nextcloud/ownCloud or fresh install: Update from NC "25.0.8"

Where did you install Nextcloud from: Nextcloud offical sources / NC Updater

Logs

Nextcloud log (data/nextcloud.log)

Nextcloud log

Excerpt from raw:

{"reqId":"RLfDhVCSGXWqeDuaFrWN","level":3,"time":"2023-07-22T11:35:01+02:00","remoteAddr":"","user":
"--","app":"cron","method":"","url":"--","message":"Argument 1 passed to 
OCA\\GroupFolders\\ACL\\ACLManagerFactory::getACLManager() must be an instance of OCP\\IUser, 
null given, called in /var/www/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php on line 206",
"userAgent":"--","version":"25.0.9.2", 
. . .

Formatted log entry:

[cron] Fehler: TypeError: Argument 1 passed to OCA\GroupFolders\ACL\ACLManagerFactory::getACLManager() 
must be an instance of OCP\IUser, null given, called in /var/www/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php 
on line 206 at <<closure>>

0. /var/www/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php line 206
   OCA\GroupFolders\ACL\ACLManagerFactory->getACLManager()
1. /var/www/nextcloud/apps/groupfolders/lib/Versions/VersionsBackend.php line 172
   OCA\GroupFolders\Mount\MountProvider->getMount()
2. /var/www/nextcloud/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php line 68
   OCA\GroupFolders\Versions\VersionsBackend->getAllVersionedFiles()
3. /var/www/nextcloud/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php line 59
   OCA\GroupFolders\Versions\GroupVersionsExpireManager->expireFolder()
5. /var/www/nextcloud/apps/groupfolders/lib/BackgroundJob/ExpireGroupVersions.php line 43
   OCA\GroupFolders\Versions\GroupVersionsExpireManager->expireAll()
6. /var/www/nextcloud/lib/public/BackgroundJob/Job.php line 78
   OCA\GroupFolders\BackgroundJob\ExpireGroupVersions->run()
7. /var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php line 103
   OCP\BackgroundJob\Job->start()
8. /var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php line 93
   OCP\BackgroundJob\TimedJob->start()
9. /var/www/nextcloud/cron.php line 152
   OCP\BackgroundJob\TimedJob->execute()

at 2023-07-22T11:35:01+02:00

Hope this helps.
馃尰

@TP75 TP75 added 0. Needs triage Issues that need to be triaged bug labels Jul 27, 2023
@TP75 TP75 changed the title [cron] TypeError: Argument 1 passed to . . . ::getACLManager() must be an instance of OCP\IUser, null given NC25 [cron] TypeError: Argument 1 passed to . . . ::getACLManager() must be an instance of OCP\IUser, null given Jul 27, 2023
@TP75
Copy link
Contributor Author

TP75 commented Jul 27, 2023

ref #2487 #2473 #2476

Unfortunately, the prior scan of open issues did not show these.
馃槩

@fschrempf
Copy link
Contributor

Duplicate of #2473

@fschrempf fschrempf marked this as a duplicate of #2473 Jul 27, 2023
@fschrempf fschrempf closed this as not planned Won't fix, can't repro, duplicate, stale Jul 27, 2023
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
Projects
None yet
Development

No branches or pull requests

2 participants