Nextcloud version (eg, 29.0.5): 29.0.2
Operating system and version (eg, Ubuntu 29.04): Ubuntu 22.04.4
Apache or nginx version (eg, Apache 2.4.25): nginx/1.24.0
PHP version (eg, 8.3): 8.2
The issue you are facing:
When the ‘Activity’ - app is activated, it leads to errors being thrown when doing file operations in a group folder like deleting or moving, sometimes also uploading a file. There might be a connection to ACLs being used, since it could be working on some level in a directory structure and in a deeper level it won’t.
Is this the first time you’ve seen this error? (Y/N): No, it’s been there since quite some time and also with older NC versions.
Steps to replicate it:
- Create a file in a groupfolder
- Try to delete it → produces an error
- deactivate activity app
- try again to delete the file → works
The output of your Nextcloud log in Admin > Logging:
OC\Files\Utils\PathHelper::normalizePath(): Argument #1 ($path) must be of type string, null given, called in /var/www/cloud/nextcloud/lib/private/Files/Node/Node.php on line 344
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"subdomain.domain.org"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "28.0.3.2",
"overwrite.cli.url": "https:\/\/subdomain.domain.org\/",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"htaccess.RewriteBase": "\/",
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0
},
"filelocking.enabled": true,
"memcache.locking": "\\OC\\Memcache\\Redis",
"mail_smtpmode": "smtp",
"mail_smtpsecure": "ssl",
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"mail_smtptimeout": 30,
"maintenance": false,
"maintenance_window_start": 21,
"theme": "",
"loglevel": 2,
"updater.release.channel": "stable",
"activity_use_cached_mountpoints": "true",
"activity_expire_days": 62,
"default_phone_region": "DE",
"app_install_overwrite": [
"bbb",
"bruteforcesettings",
"polls",
"camerarawpreviews",
"suspicious_login",
"apporder",
"impersonate",
"event_update_notification",
"approval",
"timetracker",
"issuetemplate"
],
"trashbin_retention_obligation": "auto, 121",
"minimum.supported.desktop.version": "3.3.6",
"preview_max_memory": 512,
"bulkupload.enabled": true,
"defaultapp": ""
}
}
The output of your Apache/nginx/system log in /var/log/____
:
nothing.
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.
{
"reqId": "WuGDv1KYFxCh5rXIXwhv",
"level": 3,
"time": "2024-03-01T11:42:24+00:00",
"remoteAddr": "95.90.97.25",
"user": "cloudadmin",
"app": "webdav",
"method": "DELETE",
"url": "/remote.php/dav/files/cloudadmin/01_International%20Programmes/01_Countries/Global%20Project/Neue%20Textdatei.md",
"message": "OC\\Files\\Utils\\PathHelper::normalizePath(): Argument #1 ($path) must be of type string, null given, called in /var/www/cloud/nextcloud/lib/private/Files/Node/Node.php on line 344",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:121.0) Gecko/20100101 Firefox/121.0",
"version": "28.0.3.2",
"exception": {
"Exception": "TypeError",
"Message": "OC\\Files\\Utils\\PathHelper::normalizePath(): Argument #1 ($path) must be of type string, null given, called in /var/www/cloud/nextcloud/lib/private/Files/Node/Node.php on line 344",
"Code": 0,
"Trace": [
{
"file": "/var/www/cloud/nextcloud/lib/private/Files/Node/Node.php",
"line": 344,
"function": "normalizePath",
"class": "OC\\Files\\Utils\\PathHelper",
"type": "::"
},
{
"file": "/var/www/cloud/nextcloud/lib/private/Files/Node/Folder.php",
"line": 70,
"function": "normalizePath",
"class": "OC\\Files\\Node\\Node",
"type": "->"
},
{
"function": "getFullPath",
"class": "OC\\Files\\Node\\Folder",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/lib/private/Files/Node/LazyFolder.php",
"line": 84,
"function": "call_user_func_array"
},
{
"file": "/var/www/cloud/nextcloud/lib/private/Files/Node/LazyFolder.php",
"line": 428,
"function": "__call",
"class": "OC\\Files\\Node\\LazyFolder",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/lib/private/Files/Node/LazyFolder.php",
"line": 161,
"function": "getFullPath",
"class": "OC\\Files\\Node\\LazyFolder",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/apps/activity/lib/FilesHooks.php",
"line": 1333,
"function": "get",
"class": "OC\\Files\\Node\\LazyFolder",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/apps/activity/lib/FilesHooks.php",
"line": 1203,
"function": "getUnrelatedUsers",
"class": "OCA\\Activity\\FilesHooks",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/apps/activity/lib/FilesHooks.php",
"line": 176,
"function": "getAffectedUsersFromCachedMounts",
"class": "OCA\\Activity\\FilesHooks",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/apps/activity/lib/FilesHooks.php",
"line": 117,
"function": "addNotificationsForFileAction",
"class": "OCA\\Activity\\FilesHooks",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/apps/activity/lib/FilesHooksStatic.php",
"line": 59,
"function": "fileDelete",
"class": "OCA\\Activity\\FilesHooks",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/lib/private/legacy/OC_Hook.php",
"line": 105,
"function": "fileDelete",
"class": "OCA\\Activity\\FilesHooksStatic",
"type": "::"
},
{
"file": "/var/www/cloud/nextcloud/lib/private/Files/View.php",
"line": 1270,
"function": "emit",
"class": "OC_Hook",
"type": "::"
},
{
"file": "/var/www/cloud/nextcloud/lib/private/Files/View.php",
"line": 1144,
"function": "runHooks",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/lib/private/Files/View.php",
"line": 702,
"function": "basicOperation",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/apps/dav/lib/Connector/Sabre/File.php",
"line": 543,
"function": "unlink",
"class": "OC\\Files\\View",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php",
"line": 197,
"function": "delete",
"class": "OCA\\DAV\\Connector\\Sabre\\File",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
"line": 281,
"function": "delete",
"class": "Sabre\\DAV\\Tree",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
"line": 89,
"function": "httpDelete",
"class": "Sabre\\DAV\\CorePlugin",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 472,
"function": "emit",
"class": "Sabre\\DAV\\Server",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 253,
"function": "invokeMethod",
"class": "Sabre\\DAV\\Server",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
"line": 321,
"function": "start",
"class": "Sabre\\DAV\\Server",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/apps/dav/lib/Server.php",
"line": 373,
"function": "exec",
"class": "Sabre\\DAV\\Server",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/apps/dav/appinfo/v2/remote.php",
"line": 35,
"function": "exec",
"class": "OCA\\DAV\\Server",
"type": "->"
},
{
"file": "/var/www/cloud/nextcloud/remote.php",
"line": 172,
"args": [
"/var/www/cloud/nextcloud/apps/dav/appinfo/v2/remote.php"
],
"function": "require_once"
}
],
"File": "/var/www/cloud/nextcloud/lib/private/Files/Utils/PathHelper.php",
"Line": 52,
"message": "OC\\Files\\Utils\\PathHelper::normalizePath(): Argument #1 ($path) must be of type string, null given, called in /var/www/cloud/nextcloud/lib/private/Files/Node/Node.php on line 344",
"exception": {},
"CustomMessage": "OC\\Files\\Utils\\PathHelper::normalizePath(): Argument #1 ($path) must be of type string, null given, called in /var/www/cloud/nextcloud/lib/private/Files/Node/Node.php on line 344"
}
}