[Bug]: Log flooded with "($homeFolder) must be of type OCP\Files\Folder"
⚠️ This issue respects the following points: ⚠️
- [X] This is a bug, not a question or a configuration/webserver/proxy issue.
- [X] This issue is not already reported on Github (I've searched it).
- [X] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- [X] Nextcloud Server is running on 64bit capable CPU, PHP and OS.
- [X] I agree to follow Nextcloud's Code of Conduct.
Bug description
In all my NC26 installations (PHP 8.1) the logs are constantly flooded with the error message
[index] Fehler: TypeError: OCA\Files\Service\TagService::__construct(): Argument #4 ($homeFolder) must be of type OCP\Files\Folder, null given, called in /var/www/nextcloud/apps/files/lib/AppInfo/Application.php on line 111 at <<closure>>
Steps to reproduce
Simply checking the logs
Expected behavior
These errors should not happen
Installation method
Community Manual installation with Archive
Nextcloud Server version
26
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- [X] Default user-backend (database)
- [X] LDAP/ Active Directory
- [X] SSO - SAML
- [ ] Other
Configuration report
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"10.0.1.6",
"***.de"
],
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"forwarded_for_headers": [
"HTTP_X_FORWARDED_FOR",
"HTTP_FORWARDED_FOR"
],
"overwrite.cli.url": "https:\/\/***.de",
"overwritehost": "***.de",
"overwriteprotocol": "https",
"allow_local_remote_servers": true,
"htaccess.RewriteBase": "\/",
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "26.0.0.11",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"maintenance": false,
"enable_avatars": true,
"filesystem_check_changes": 1,
"theme": "",
"default_language": "de",
"default_locale": "de_DE",
"default_phone_region": "DE",
"defaultapp": "files",
"skeletondirectory": "\/var\/www\/skeleton",
"share_folder": "\/Shared",
"log_type": "file",
"logfile": "\/var\/log\/nextcloud\/nextcloud.log",
"loglevel": 2,
"mail_smtpmode": "smtp",
"remember_login_cookie_lifetime": 2592000,
"session_lifetime": 604800,
"session_keepalive": true,
"log_rotate_size": "10485760",
"trashbin_retention_obligation": "30, 60",
"versions_retention_obligation": "auto, 365",
"check_for_working_webdav": true,
"simpleSignUpLink.shown": false,
"auth.webauthn.enabled": false,
"music.lastfm_api_key": "2897d80221740bce55bd257a138705d1",
"memcache.local": "\\OC\\Memcache\\APCu",
"filelocking.enabled": true,
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0,
"timeout": 0.5,
"dbindex": 0
},
"logtimezone": "Europe\/Berlin",
"preview_libreoffice_path": "\/usr\/bin\/libreoffice",
"enable_previews": true,
"enabledPreviewProviders": [
"OC\\Preview\\PNG",
"OC\\Preview\\JPEG",
"OC\\Preview\\GIF",
"OC\\Preview\\BMP",
"OC\\Preview\\MarkDown",
"OC\\Preview\\MP3",
"OC\\Preview\\TXT",
"OC\\Preview\\Movie",
"OC\\Preview\\Photoshop",
"OC\\Preview\\SVG",
"OC\\Preview\\TIFF",
"OC\\Preview\\HEIC",
"OC\\Preview\\MKV",
"OC\\Preview\\MOV",
"OC\\Preview\\MP4",
"OC\\Preview\\AVI",
"OC\\Preview\\PDF",
"OC\\Preview\\OpenDocument",
"OC\\Preview\\MSOffice2003",
"OC\\Preview\\MSOffice2007",
"OC\\Preview\\MSOfficeDoc",
"OC\\Preview\\Image",
"OC\\Preview\\PPT",
"OC\\Preview\\PPTX"
],
"preview_max_x": "2048",
"preview_max_y": "2048",
"jpeg_quality": "60",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_sendmailmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "587",
"ldapIgnoreNamingRules": false,
"ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
"ldapUserCleanupInterval": 51,
"app_install_overwrite": [
"files_external_dropbox",
"bookmarks_fulltextsearch",
"files_inotify",
"files_fulltextsearch_tesseract",
"previewgenerator",
"quickaccesssorting",
"bbb",
"fulltextsearch",
"fulltextsearch_elasticsearch",
"files_fulltextsearch",
"socialsharing_email",
"extract",
"drawio",
"quicknotes",
"video_converter",
"oidc_login",
"facerecognition",
"files_linkeditor",
"metadata",
"cfg_share_links"
],
"updater.release.channel": "stable",
"mail_smtpauth": 1,
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"mail_smtpsecure": "tls",
"mail_smtpauthtype": "LOGIN",
"oidc_login_provider_url": "https:\/\/flaccs.de\/realms\/cloud",
"oidc_login_client_id": "***",
"oidc_login_client_secret": "wAHp73Wj5veVPHOGxwFBT17ek8EE2VhS",
"oidc_login_end_session_redirect": true,
"oidc_login_logout_url": "https:\/\/***.de\/apps\/oidc_login\/oidc",
"oidc_login_auto_redirect": false,
"oidc_login_hide_password_form": false,
"oidc_login_attributes": {
"id": "preferred_username",
"name": "name",
"mail": "email",
"quota": "nextcloudquota",
"groups": "groups"
},
"oidc_login_scope": "openid profile",
"oidc_login_disable_registration": false,
"oidc_login_redir_fallback": true,
"oidc_login_password_authentication": true,
"oidc_login_button_text": "Mit FLACCS Cloud anmelden",
"memories.exiftool": "\/var\/www\/nextcloud\/apps\/memories\/lib\/..\/exiftool-bin\/exiftool-amd64-glibc",
"memories.gis_type": 1,
"enabledFaceRecognitionMimetype": [
"image\/jpeg",
"image\/png",
"image\/heic",
"image\/tiff",
"image\/webp"
],
"memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
"memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
"memories.vod.path": "\/var\/www\/nextcloud\/apps\/memories\/exiftool-bin\/go-vod-amd64",
"memories.vod.disable": false,
"memories.vod.tempdir": "\/tmp\/memories_cache"
}
}
List of activated Apps
Enabled:
- activity: 2.18.0
- admin_audit: 1.16.0
- appointments: 1.14.13
- bbb: 2.4.0
- bookmarks: 13.0.1
- bruteforcesettings: 2.6.0
- calendar: 4.3.1
- camerarawpreviews: 0.8.1
- cfg_share_links: 3.0.2
- circles: 26.0.0
- cloud_federation_api: 1.9.0
- comments: 1.16.0
- contacts: 5.2.0
- contactsinteraction: 1.7.0
- dashboard: 7.6.0
- dav: 1.25.0
- deck: 1.9.0
- drawio: 2.1.0
- extract: 1.3.5
- facerecognition: 0.9.12
- federatedfilesharing: 1.16.0
- federation: 1.16.0
- files: 1.21.1
- files_accesscontrol: 1.16.0
- files_automatedtagging: 1.16.1
- files_downloadactivity: 1.16.0
- files_external: 1.18.0
- files_fulltextsearch: 25.0.0
- files_fulltextsearch_tesseract: 25.0.0
- files_inotify: 0.1.14
- files_linkeditor: 1.1.13
- files_pdfviewer: 2.7.0
- files_retention: 1.15.0
- files_rightclick: 1.5.0
- files_sharing: 1.18.0
- files_trashbin: 1.16.0
- files_versions: 1.19.1
- firstrunwizard: 2.15.0
- forms: 3.2.0
- fulltextsearch: 25.0.0
- fulltextsearch_elasticsearch: 25.0.0
- groupfolders: 14.0.0
- guests: 2.4.0
- integration_openai: 1.0.2
- logreader: 2.11.0
- lookup_server_connector: 1.14.0
- maps: 1.0.2
- memories: 4.13.0-alpha.1
- metadata: 0.18.0
- news: 21.2.0-beta1
- nextcloud_announcements: 1.15.0
- notes: 4.7.2
- notifications: 2.14.0
- notify_push: 0.6.2
- oauth2: 1.14.0
- oidc_login: 2.5.0
- photos: 2.2.0
- polls: 5.0.0-rc1
- previewgenerator: 5.2.1
- privacy: 1.10.0
- provisioning_api: 1.16.0
- qownnotesapi: 23.3.0
- quickaccesssorting: 1.1.4
- quicknotes: 0.8.5
- quota_warning: 1.16.0
- recommendations: 1.5.0
- richdocuments: 8.0.0
- serverinfo: 1.16.0
- settings: 1.8.0
- sharebymail: 1.16.0
- side_menu: 3.7.2
- socialsharing_email: 2.5.0
- spreed: 16.0.2
- support: 1.9.0
- survey_client: 1.14.0
- systemtags: 1.16.0
- tasks: 0.14.5
- text: 3.7.2
- theming: 2.1.1
- translate: 1.1.1
- twofactor_backupcodes: 1.15.0
- twofactor_totp: 8.0.0-alpha.0
- updatenotification: 1.16.0
- user_ldap: 1.16.0
- user_status: 1.6.0
- video_converter: 1.0.5
- viewer: 1.10.0
- weather_status: 1.6.0
- workflow_pdf_converter: 1.11.0
- workflowengine: 2.8.0
Disabled:
- audioplayer: 3.3.1 (installed 3.3.1)
- encryption: 2.14.0
- music: 1.8.2 (installed 1.8.2)
- ncdownloader: 1.0.2 (installed 1.0.2)
- ocdownloader: 1.9.1 (installed 1.8.1)
- password_policy: 1.16.0 (installed 1.15.0)
- ransomware_protection: 1.14.0 (installed 1.14.0)
- related_resources: 1.1.0-alpha1 (installed 1.1.0-alpha1)
- suspicious_login: 4.4.0
- talk_matterbridge: 1.26.0-0 (installed 1.26.0-0)
- workflow_script: 1.11.1 (installed 1.11.1)
Nextcloud Signing status
No response
Nextcloud Logs
[index] Fehler: TypeError: OCA\Files\Service\TagService::__construct(): Argument #4 ($homeFolder) must be of type OCP\Files\Folder, null given, called in /var/www/nextcloud/apps/files/lib/AppInfo/Application.php on line 111 at <<closure>>
0. /var/www/nextcloud/apps/files/lib/AppInfo/Application.php line 111
OCA\Files\Service\TagService->__construct()
1. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 171
OCA\Files\AppInfo\Application->OCA\Files\AppInfo\{closure}("*** sensitive parameters replaced ***")
2. /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php line 122
OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensitive parameters replaced ***")
3. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 138
Pimple\Container->offsetGet()
4. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 487
OC\AppFramework\Utility\SimpleContainer->query()
5. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 465
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
6. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 65
OC\AppFramework\DependencyInjection\DIContainer->query()
7. /var/www/nextcloud/apps/files/lib/AppInfo/Application.php line 90
OC\AppFramework\Utility\SimpleContainer->get()
8. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 171
OCA\Files\AppInfo\Application->OCA\Files\AppInfo\{closure}("*** sensitive parameters replaced ***")
9. /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php line 122
OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensitive parameters replaced ***")
10. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 138
Pimple\Container->offsetGet()
11. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 487
OC\AppFramework\Utility\SimpleContainer->query()
12. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 465
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
13. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 65
OC\AppFramework\DependencyInjection\DIContainer->query()
14. /var/www/nextcloud/lib/private/AppFramework/App.php line 148
OC\AppFramework\Utility\SimpleContainer->get()
15. /var/www/nextcloud/lib/private/Route/Router.php line 315
OC\AppFramework\App::main()
16. /var/www/nextcloud/lib/base.php line 1055
OC\Route\Router->match()
17. /var/www/nextcloud/index.php line 36
OC::handleRequest()
GET /apps/files/api/v1/stats
from 10.0.1.60 at 2023-04-03T14:32:19+02:00
Additional info
No response
I had the same issue. Look for http 500 responses in your log. In my case there were lots of 500s for /apps/files/api/v1/stats and they corresponded with the errors in nextcloud and were triggered every 60s by requests from some sessions left open in chrome on one of my devices.
Same here also PHP 8.1 and NC 26.
Should be fixed by https://github.com/nextcloud/server/pull/37826
Hello!
I ran into this problem on NC 26.0.1. I checked ApiController.php and there no patched lines as shown in #37836 How is this possible and can it be fixed?
Same here NC 26.0.1
Same here NC 26.0.2
what is the solution please
Can you please reopen this? Still an Issue with 26.0.2.