Unable to create file /data/nextcloud.log because Invalid argument at /app/www/public/lib/private/Log/File.php#37"

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.2.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • Docker UnRaid
  • Is this the first time you’ve seen this error? (Yes / No):
    • No had it for a while now
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

Getting the following error around log file creation, am at my wits end with it now. Any help would be appriciated.

{“reqId”:“41LZHcWhhm2wPORJjcDm”,“level”:3,“time”:“2025-11-23T05:50:01+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“touch(): Unable to create file /data/nextcloud.log because Invalid argument at /app/www/public/lib/private/Log/File.php#37”,“userAgent”:“–”,“version”:“32.0.2.2”,“data”:{“app”:“PHP”}}

This does not look like AIO. You also didn’t post your config.

The error related to a mixture of your datadirectory and logfile configuration values and permissions.

This has been fixed, turns out the share was out of space :slight_smile:

1 Like

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