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

[Bug]: TypeError: OCA\GroupFolders\ACL\ACLManagerFactory::getACLManager() #2474

Closed
5 of 8 tasks
ebdavison opened this issue Jul 18, 2023 · 5 comments
Closed
5 of 8 tasks
Labels
0. Needs triage Issues that need to be triaged bug

Comments

@ebdavison
Copy link

⚠️ This issue respects the following points: ⚠️

Bug description

After updating to current versions of server and apps, there was a recommendation to update php to at least 8.1. I updated to 8.2 and when trying to do a groupfolders scan, I get the following exception.

# sudo -u nginx php /var/www/nextcloud/occ groupfolders:scan 1
The current PHP memory limit is below the recommended value of 512MB.
An unhandled exception has been thrown:
TypeError: OCA\GroupFolders\ACL\ACLManagerFactory::getACLManager(): Argument nextcloud/server#1 ($user) must be of type OCP\IUser, null given, called in /var/www/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php on line 206 and defined in /var/www/nextcloud/apps/groupfolders/lib/ACL/ACLManagerFactory.php:37
Stack trace:
#0 /var/www/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php(206): OCA\GroupFolders\ACL\ACLManagerFactory->getACLManager()
nextcloud/server#1 /var/www/nextcloud/apps/groupfolders/lib/Command/Scan.php(82): OCA\GroupFolders\Mount\MountProvider->getMount()
nextcloud/server#2 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(298): OCA\GroupFolders\Command\Scan->execute()
nextcloud/server#3 /var/www/nextcloud/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run()
nextcloud/server#4 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1040): OC\Core\Command\Base->run()
nextcloud/server#5 /var/www/nextcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
nextcloud/server#6 /var/www/nextcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
nextcloud/server#7 /var/www/nextcloud/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
nextcloud/server#8 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
nextcloud/server#9 /var/www/nextcloud/occ(11): require_once('...')
nextcloud/server#10 {main}[root@valinor Storage]# 

Steps to reproduce

  1. run sudo -u nginx php /var/www/nextcloud/occ groupfolders:scan 1

Expected behavior

proper scan of files in group folder

Installation method

Community Web installer on a VPS or web space

Nextcloud Server version

27

Operating system

RHEL/CentOS

PHP engine version

PHP 8.2

Web server

Nginx

Database engine version

PostgreSQL

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?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

The current PHP memory limit is below the recommended value of 512MB.
{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "rivendell.edandmonique.org"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "27.0.0.8",
        "overwrite.cli.url": "https:\/\/rivendell.edandmonique.org",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "5432",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "tls",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "dbindex": 0,
            "timeout": "0.0"
        },
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": "true",
        "enable_previews": "true",
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\Movie",
            "OC\\Preview\\PDF",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown"
        ],
        "preview_max_x": "1024",
        "preview_max_y": "768",
        "preview_max_scale_factor": "1",
        "auth.bruteforce.protection.enabled": "true",
        "trashbin_retention_obligation": "auto,7",
        "skeletondirectory": "",
        "defaultapp": "file",
        "activity_expire_days": "14",
        "integrity.check.disabled": "false",
        "updater.release.channel": "stable",
        "maintenance": false,
        "theme": "",
        "loglevel": 0,
        "app_install_overwrite": [
            "groupfolders",
            "vdirsyncerui"
        ],
        "updater.secret": "***REMOVED SENSITIVE VALUE***",
        "bulkupload.enabled": false
    }
}

List of activated Apps

The current PHP memory limit is below the recommended value of 512MB.
Enabled:
  - activity: 2.19.0
  - admin_audit: 1.17.0
  - analytics: 4.9.4
  - bruteforcesettings: 2.7.0
  - calendar: 4.4.3
  - circles: 27.0.0
  - cloud_federation_api: 1.10.0
  - comments: 1.17.0
  - contacts: 5.3.2
  - contactsinteraction: 1.8.0
  - cookbook: 0.10.2
  - dashboard: 7.7.0
  - dav: 1.27.0
  - drawio: 2.1.1
  - event_update_notification: 2.2.0
  - federatedfilesharing: 1.17.0
  - federation: 1.17.0
  - files: 1.22.0
  - files_external: 1.19.0
  - files_mindmap: 0.0.28
  - files_pdfviewer: 2.8.0
  - files_rightclick: 1.6.0
  - files_sharing: 1.19.0
  - files_trashbin: 1.17.0
  - files_versions: 1.20.0
  - firstrunwizard: 2.16.0
  - groupfolders: 15.0.1
  - integration_google: 2.0.2
  - logreader: 2.12.0
  - lookup_server_connector: 1.15.0
  - nextcloud_announcements: 1.16.0
  - notes: 4.8.1
  - notifications: 2.15.0
  - oauth2: 1.15.0
  - password_policy: 1.17.0
  - phonetrack: 0.7.6
  - photos: 2.3.0
  - privacy: 1.11.0
  - provisioning_api: 1.17.0
  - qownnotesapi: 23.6.0
  - recommendations: 1.6.0
  - related_resources: 1.2.0
  - serverinfo: 1.17.0
  - settings: 1.9.0
  - sharebymail: 1.17.0
  - spreed: 17.0.1
  - support: 1.10.0
  - survey_client: 1.15.0
  - systemtags: 1.17.0
  - text: 3.8.0
  - theming: 2.2.0
  - twofactor_backupcodes: 1.16.0
  - twofactor_totp: 9.0.0
  - updatenotification: 1.17.0
  - user_status: 1.7.0
  - vdirsyncerui: 0.0.8
  - viewer: 2.1.0
  - weather_status: 1.7.0
  - workflowengine: 2.9.0
Disabled:
  - duplicatefinder: 0.0.15 (installed 0.0.15)
  - encryption: 2.15.0 (installed 2.9.0)
  - files_markdown: 2.4.1 (installed 2.4.1)
  - files_reader: 1.5.3 (installed 1.5.3)
  - socialsharing_email: 2.6.0 (installed 2.6.0)
  - suspicious_login: 5.0.0
  - user_ldap: 1.17.0

Nextcloud Signing status

Integrity checker has been disabled. Integrity cannot be verified.

Nextcloud Logs

{"reqId":"MwYItEPMSxz51xr1HTq0","level":0,"time":"2023-07-18T18:45:29+00:00","remoteAddr":"10.211.1.114","user":"nextcloud_admin","app":"files_mindmap","method":"POST","url":"/apps/phonetrack/track","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"27.0.0.8","data":{"app":"files_mindmap"}}
{"reqId":"eQXKJcQZ95wKBvjyCSBM","level":0,"time":"2023-07-18T18:45:35+00:00","remoteAddr":"10.211.1.114","user":"nextcloud_admin","app":"files_mindmap","method":"GET","url":"/apps/files/api/v1/stats","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"27.0.0.8","data":{"app":"files_mindmap"}}
{"reqId":"UlCvY650Z6MYlxHOd482","level":0,"time":"2023-07-18T18:45:36+00:00","remoteAddr":"10.211.1.114","user":"nextcloud_admin","app":"files_mindmap","method":"PUT","url":"/ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"27.0.0.8","data":{"app":"files_mindmap"}}
{"reqId":"n0XzZqbttBgJMSEb4cPj","level":0,"time":"2023-07-18T18:45:44+00:00","remoteAddr":"10.211.1.114","user":"nextcloud_admin","app":"files_mindmap","method":"POST","url":"/apps/phonetrack/track","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"27.0.0.8","data":{"app":"files_mindmap"}}
{"reqId":"1a7o2sXAKRp9fbYFa4SX","level":1,"time":"2023-07-18T18:45:55+00:00","remoteAddr":"213.109.202.66","user":"--","app":"core","method":"GET","url":"/actuator/gateway/routes","message":"Trusted domain error. \"213.109.202.66\" tried to access using \"104.6.176.46:443\" as host.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36","version":"27.0.0.8","data":{"app":"core"}}
{"reqId":"sFO2YLyWQfHmJWwXxeb2","level":0,"time":"2023-07-18T18:45:55+00:00","remoteAddr":"10.211.1.114","user":"nextcloud_admin","app":"files_mindmap","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"27.0.0.8","data":{"app":"files_mindmap"}}
{"reqId":"pia7KhIAOpf6Niw39LaO","level":0,"time":"2023-07-18T18:45:59+00:00","remoteAddr":"10.211.1.114","user":"nextcloud_admin","app":"files_mindmap","method":"POST","url":"/apps/phonetrack/track","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"27.0.0.8","data":{"app":"files_mindmap"}}
{"reqId":"6z8KotvQaIy6FoxKoM73","level":0,"time":"2023-07-18T18:46:08+00:00","remoteAddr":"10.211.1.15","user":"fdavison","app":"files_mindmap","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows) mirall/3.4.0stable-Win64 (build 20211129) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"27.0.0.8","data":{"app":"files_mindmap"}}
{"reqId":"wOPFSdlymhTxgISqUTUg","level":0,"time":"2023-07-18T18:46:08+00:00","remoteAddr":"10.211.1.15","user":"fdavison","app":"files_mindmap","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications?format=json","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows) mirall/3.4.0stable-Win64 (build 20211129) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"27.0.0.8","data":{"app":"files_mindmap"}}
{"reqId":"dJTzMaN1WgUHtNVczVob","level":0,"time":"2023-07-18T18:46:14+00:00","remoteAddr":"10.211.1.114","user":"nextcloud_admin","app":"files_mindmap","method":"POST","url":"/apps/phonetrack/track","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"27.0.0.8","data":{"app":"files_mindmap"}}

Additional info

No response

@ebdavison ebdavison added 0. Needs triage Issues that need to be triaged bug labels Jul 18, 2023
@szaimen szaimen transferred this issue from nextcloud/server Jul 18, 2023
@ebdavison
Copy link
Author

Seems the same as #2473

@BJKle
Copy link

BJKle commented Jul 19, 2023

This is unrelated to OS and NC Version. I have it it different instances.
It should get fixed ASAP.
Thanks

@j-ed
Copy link

j-ed commented Jul 19, 2023

Every 12 hours the cronjob, which is running in the background, sends an email which contains the displayed TypeError message.
I'm using the groupfolders app v14.0.3 on Nextcloud v26.0.3 with PHP v8.1.18.

@koelle25
Copy link

As you already found out, this is a duplicate of #2473. I recommend closing this issue in favor of and to concentrate efforts on #2473.

@ebdavison
Copy link
Author

ok with me as the OP to close this and focus on #2473

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

4 participants