Support intro
Sorry to hear you’re facing problems
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
Nextcloud version: 18.0.3-1
Operating system and version: Arch Linux 5.6.4.arch1-1
nginx version: 1.17.10
PHP version: 7.4.5-1
The Nextcloud log has multiple entries regarding chmod errors pertaining to a specific file.
The file in question is /usr/share/webapps/nextcloud/lib/private/Log/File.php
It is owned by http:http; its permissions are set at 755 (-rwxr-xr-x)
Nextcloud seems to work without issue, but perhaps something is broken, and I just haven’t recognized it yet.
Is this the first time you’ve seen this error?: Y
Steps to replicate it:
- Upgrade to Nextcloud 18
- Upgrade to PHP 7.4
- Use Nextcloud calendar, files, and Logging features
The output of your Nextcloud log in Admin > Logging:
{"reqId":"wVQqW0btO6itxW3QwDQx","level":3,"time":"2020-04-16T14:02:13+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"--","app":"PHP","method":"GET","url":"/apps/theming/styles?v=2","message":"chmod(): Operation not permitted at /usr/share/webapps/nextcloud/lib/private/Log/File.php#84","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0","version":"18.0.3.0"}
{"reqId":"hM5SduLb2Prjjw90UmuV","level":3,"time":"2020-04-16T14:02:17+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"ncuser","app":"PHP","method":"GET","url":"/apps/files/","message":"chmod(): Operation not permitted at /usr/share/webapps/nextcloud/lib/private/Log/File.php#84","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0","version":"18.0.3.0"}
{"reqId":"87WYLBX5L7rPmHoBucwj","level":3,"time":"2020-04-16T14:02:29+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"ncuser","app":"PHP","method":"GET","url":"/apps/calendar/","message":"chmod(): Operation not permitted at /usr/share/webapps/nextcloud/lib/private/Log/File.php#84","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0","version":"18.0.3.0"}
{"reqId":"yWI0LCpV623FYpZfli8z","level":3,"time":"2020-04-16T14:08:08+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"ncuser","app":"PHP","method":"GET","url":"/settings/user","message":"chmod(): Operation not permitted at /usr/share/webapps/nextcloud/lib/private/Log/File.php#84","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0","version":"18.0.3.0"}
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'redacted',
'passwordsalt' => 'redacted',
'secret' => 'redacted',
'trusted_domains' =>
array (
0 => 'cloud.redacted.com',
),
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'dbindex' => 0,
'password' => 'secret',
'timeout' => 1.5,
),
'memcache.locking' => '\\OC\\Memcache\\Redis',
'datadirectory' => '/redacted/redacted',
'dbtype' => 'mysql',
'version' => '18.0.3.0',
'overwrite.cli.url' => 'https://cloud.redacted.com',
'dbname' => 'redacted',
'dbhost' => 'localhost',
'dbport' => 'redacted',
'dbtableprefix' => 'redacted',
'mysql.utf8mb4' => true,
'dbuser' => 'redacted',
'dbpassword' => 'redacted',
'installed' => true,
'log_type' => 'file',
'logfile' => '/var/log/nextcloud-error.log',
'loglevel' => 3,
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'redacted',
'mail_domain' => 'redacted',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'mail.redacted.com',
'mail_smtpport' => '465',
'mail_smtpname' => 'redacted@redacted.com',
'mail_smtppassword' => 'redacted',
'maintenance' => false,
'theme' => '',
'app_install_overwrite' =>
array (
0 => 'files_rightclick',
1 => 'files_reader',
),
);
The output of your nginx log in /var/log/nginx
:
2020/04/16 08:11:41 [warn] 1188#1188: *121 an upstream response is buffered to a temporary file /var/lib/nginx/proxy/1/00/0000000001 while reading upstream, client: redacted, server: cloud.redacted.com, request: "GET /loleaflet/a96fdaa/bundle.js HTTP/2.0", upstream: "https://127.0.0.1:9980/loleaflet/a96fdaa/bundle.js", host: "cloud.redacted.com"
2020/04/17 11:21:20 [warn] 8419#8419: *1 an upstream response is buffered to a temporary file /var/lib/nginx/proxy/1/00/0000000001 while reading upstream, client: redacted, server: cloud.redacted.com, request: "GET /loleaflet/a96fdaa/bundle.js HTTP/2.0", upstream: "https://127.0.0.1:9980/loleaflet/a96fdaa/bundle.js", host: "cloud.redacted.com"