Internal Server Error -> ArgumentCountError Too few arguments to function OCA\GroupFolders

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 29.0.5): 29.0.4.1
Operating system and version (eg, Ubuntu 24.04): ubuntu-server 22.04.4
Apache or nginx version (eg, Apache 2.4.25): NGinx 1.27
PHP version (eg, 8.3): 8.3.10

The issue you are facing:
Internal Server Error calling my URL of the Nextcloud
(https://mycloud.domain.com)
Caused by errors with groupfolders in combination with fulltextsearch enabled.

Is this the first time you’ve seen this error? (Y/N): y

Steps to replicate it:

  1. don’t know what happen → so can’t give any steps to reproduce

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "192.168.55.16",
        "mycloud.domain.com"
    ],
    "dns_pinning": true,
    "activity_expire_days": 14,
    "auth.bruteforce.protection.enabled": true,
    "blacklisted_files": [
        ".htaccess",
        "Thumbs.db",
        "thumbs.db"
    ],
    "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
    "overwritehost": "mycloud.domain.com",
    "overwriteconaddr": "^192\\.168\\.55\\.90$",
    "overwriteprotocol": "https",
    "forward_for_headers": [
        "X-Forwarded-For",
        "HTTP_X_FORWARDED_FOR"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "overwrite.cli.url": "https:\/\/mycloud.doamin.com",
    "dbtype": "pgsql",
    "version": "29.0.4.1",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "htaccess.RewriteBase": "\/",
    "logtimezone": "Europe\/Berlin",
    "default_phone_region": "DE",
    "logfile": "\/mnt\/cloud\/data\/nextcloud.log",
    "log_rotate_size": 10485760,
    "cron_log": true,
    "loglevel": 2,
    "installed": true,
    "filesystem_check_changes": 1,
    "quota_include_external_storage": false,
    "skeletondirectory": "",
    "share_folder": "\/Freigaben",
    "knowledgebaseenabled": false,
    "ldapIgnoreNamingRules": false,
    "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
    "ldapUserCleanupInterval": 20,
    "bulkupload.enabled": false,
    "memcache.local": "\\OC\\Memcache\\APCu",
    "memcache.distributed": "\\OC\\Memcache\\Redis",
    "filelocking.enabled": "true",
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 0,
        "timeout": 0
    },
    "mail_smtpmode": "sendmail",
    "mail_smtpsecure": "ssl",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "465",
    "mail_smtptimeout": 10,
    "mail_smtpauth": 0,
    "mail_smtpauthtype": "LOGIN",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "maintenance": false,
    "integrity.check.disabled": false,
    "updater.release.channel": "stable",
    "enable_previews": true,
    "preview_Movie_path": "\/usr\/bin\/ffmpeg",
    "preview_ffmpeg_path": "\/usr\/bin\/ffmpeg",
    "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",
        "OC\\Preview\\HEIC",
        "OC\\Preview\\OpenDocument",
        "OC\\Preview\\MSOffice2003",
        "OC\\Preview\\MSOfficeDoc",
        "OC\\Preview\\Image",
        "OC\\Preview\\Photoshop",
        "OC\\Preview\\SVG",
        "OC\\Preview\\Font",
        "OC\\Preview\\MKV",
        "OC\\Preview\\MP4",
        "OC\\Preview\\AVI",
        "OC\\Preview\\TIFF"
    ],
    "preview_max_x": 2048,
    "preview_max_y": 2048,
    "preview_max_memory": 4096,
    "preview_max_filesize_image": 256,
    "preview_max_scale_factor": 1,
    "trashbin_retention_obligation": "auto, 2",
    "mail_sendmailmode": "smtp",
    "data-fingerprint": "FINGERPRINT",
    "onlyoffice": {
        "verify_peer_off": true,
        "jwt_header": "Authorization",
        "jwt_secret": "***REMOVED SENSITIVE VALUE***"
    },
    "encryption.legacy_format_support": false,
    "encryption.key_storage_migrated": false,
    "defaultapp": "dashboard",
    "theme": "",
    "allow_local_remote_servers": true,
    "files_external_allow_create_new_local": true,
    "simpleSignUpLink.shown": false,
    "memories.exiftool": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/exiftool-amd64-glibc",
    "memories.vod.disable": false,
    "memories.vod.path": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",
    "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
    "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
    "session_keepalive": true,
    "memories.video_default_quality": "-2",
    "maintenance_window_start": 1,
    "memories.db.triggers.fcu": true,
    "memories.gis_type": 2,
    "memories.index.mode": "1"
}

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

[index] Fehler: Too few arguments to function OCA\GroupFolders\Folder\FolderManager::__construct(), 4 passed in /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/GroupFoldersService.php on line 67 and exactly 5 expected
	GET /login
	von 192.168.55.121 von -- um 17.08.2024, 07:43:57

in path
/mnt/cloud/data/_groupfolders i have 3 groupfolders, trash and versions

Bildschirmfoto vom 2024-08-17 08-06-33

about one week ago i switched my cloud from php8.2-fpm to php8.3-fpm.
I observed the cloud every day several times - but all went ok so far.
cronjob, phpsession clean, etc. seems to work as expected.

I had an update to the groupfolders app 17.0.2 but firstly with no (bad) effect - today i had to reboot the server and after that reboot the “Internal Server Error odysee began …”

Searching several older posts and github entries i tried to figure out what’s wrong but lastly i can’t get a solution.

As workaround i disabled the fulltextsearch app and beyond that moment (a further reload of php8.3-fpm + nginx) brought back the login prompt of my NC.

Append Info:
during both apps enabled (fulltextsearch + groupfolders) no login prompt in any browser appears because of “Internal Server Error…” message
BUT
NC Client on Android, dav, caldav, carddav were still working!
So only the WebUI → Login seems to be affected (in my case)
I was able to mount a davs://…cloud/remote.php/… under Linux as well.
(weird)

My enabled apps:

Enabled:
 - activity: 2.21.1
 - admin_audit: 1.19.0
 - bookmarks: 14.2.4
 - bruteforcesettings: 2.9.0
 - calendar: 4.7.15
 - circles: 29.0.0-dev
 - cloud_federation_api: 1.12.0
 - comments: 1.19.0
 - contacts: 6.0.0
 - contactsinteraction: 1.10.0
 - dashboard: 7.9.0
 - dav: 1.30.1
 - federatedfilesharing: 1.19.0
 - federation: 1.19.0
 - files: 2.1.0
 - files_accesscontrol: 1.19.1
 - files_automatedtagging: 1.19.0
 - files_downloadlimit: 2.0.0
 - files_external: 1.21.0
 - files_pdfviewer: 2.10.0
 - files_reminders: 1.2.0
 - files_sharing: 1.21.0
 - files_versions: 1.22.0
 - gpxpod: 5.0.18
 - groupfolders: 17.0.2
 - logreader: 2.14.0
 - lookup_server_connector: 1.17.0
 - memories: 7.3.1
 - nextcloud_announcements: 1.18.0
 - notes: 4.10.1
 - notifications: 2.17.0
 - notify_push: 0.7.0
 - oauth2: 1.17.0
 - onlyoffice: 9.3.0
 - password_policy: 1.19.0
 - photos: 2.5.0
 - previewgenerator: 5.6.0
 - privacy: 1.13.0
 - provisioning_api: 1.19.0
 - qownnotesapi: 24.4.0
 - related_resources: 1.4.0
 - serverinfo: 1.19.0
 - settings: 1.12.0
 - sharebymail: 1.19.0
 - support: 1.12.0
 - suspicious_login: 7.0.0
 - systemtags: 1.19.0
 - tasks: 0.16.0
 - text: 3.10.1
 - theming: 2.4.0
 - theming_customcss: 1.17.0
 - twofactor_backupcodes: 1.18.0
 - twofactor_totp: 11.0.0-dev
 - twofactor_webauthn: 1.4.0
 - updatenotification: 1.19.1
 - user_ldap: 1.20.0
 - user_status: 1.9.0
 - viewer: 2.3.0
 - weather_status: 1.9.0
 - workflowengine: 2.11.0
Disabled:
 - encryption: 2.3.0
 - files_fulltextsearch: 29.0.0
 - files_trashbin: 1.18.0
 - firstrunwizard: 2.3.0
 - fulltextsearch_elasticsearch: 29.0.1
 - recommendations: 1.3.0
 - survey_client: 1.2.0

In case of disabling (removing) fulltextsearch app i also had to disable the apps files_fulltextsearch and fulltextsearch_elasticsearch as well. Other wise i got errors for each file operation (creating, modifying, deleting, etc.)

Appreciate any help …
Thx!

1 Like

We have exactly the same issue. Just before the trouble started, the groupfolders app was updated to 16.0.8

Upstream bug report

It confirms my initial impression that it is (also?) a bug in the fulltextsearch app, as others have found out too, and already developed a patch

1 Like

Yes can confirm this patch seems to work for me as well :slight_smile:

Have re-installed fulltextsearch and re-enabled the files_… and elsticsearch

all working for now :+1:

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.