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 (eg, 20.0.5): 24.0.2
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52
PHP version (eg, 7.4): 8.1.2
The issue you are facing:
I am trying to backup my nextcloud folder to backblaze and I cant do it due to the permission restrictions. When I change the permmissions to 777 it will refuse to load stating that everyone can access the data directory. I have tried to use the checkdatadirectorypermissions flag but it does not seem to work.
Is this the first time you’ve seen this error? (Y/N): N
Steps to replicate it:
- sudo chmod 7777 (path to nextcloud data)/nxt -Rv
- reload webserver
The output of your Nextcloud log in Admin > Logging:
Error PHP chmod(): Operation not permitted at var/www/nextcloud/lib/private/Log/File.php#86 2022-07-14T19:21:08+1000
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => '(Hidden)'',
'passwordsalt' => 'f(Hidden)'',
'secret' => '(Hidden)'',
'trusted_domains' =>
array (
1 => '(Hidden)',
0 => '192.168.0.x',
),
'datadirectory' => '/media/data',
'checkdatadirectorypermissions' => False,
'dbtype' => 'mysql',
'version' => '24.0.2.1',
'overwrite.cli.url' => 'http://192.168.0.252',
'dbname' => 'nextcloud',
'dbhost' => '192.168.0.247:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'oc_admin4',
'dbpassword' => 'dGd5q86suWBiGXZHFaWECXla76Ht0T',
'installed' => true,
'overwriteprotocol' => 'https',
);
The output of your Apache/nginx/system log in /var/log/____
:
[Thu Jul 14 00:00:24.040927 2022] [mpm_prefork:notice] [pid 777] AH00163: Apache/2.4.52 (Ubuntu) configured -- resuming normal operations
[Thu Jul 14 00:00:24.040958 2022] [core:notice] [pid 777] AH00094: Command line: '/usr/sbin/apache2'
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.
Error PHP chmod(): Operation not permitted at var/www/nextcloud/lib/private/Log/File.php#86 2022-07-14T19:21:08+1000
{"reqId":"kPedBaA4otntsb3vJtaV","level":3,"time":"2022-07-14T09:17:55+00:00","remoteAddr":"192.168.0.251","user":"--","app":"PHP","method":"POST","url":"/index.php/apps/phonetrack/log/overland/f819367af876f0b62cf9289ba582498c/Telstra87348","message":"chmod(): Operation not permitted at /var/www/nextcloud/lib/private/Log/File.php#86","userAgent":"Overland/1.2 (iPhone; iOS 15.1; Scale/3.00)","version":"24.0.2.1"}
{"reqId":"MgJz7qPfhbQURZv4AuVP","level":3,"time":"2022-07-14T09:21:08+00:00","remoteAddr":"192.168.0.251","user":"--","app":"PHP","method":"POST","url":"/index.php/apps/phonetrack/log/overland/f819367af876f0b62cf9289ba582498c/Telstra87348","message":"Undefined array key \"device_id\" at /var/www/nextcloud/apps/phonetrack/lib/Controller/LogController.php#1910","userAgent":"Overland/1.2 (iPhone; iOS 15.1; Scale/3.00)","version":"24.0.2.1","exception":{"Exception":"Error","Message":"Undefined array key \"device_id\" at /var/www/nextcloud/apps/phonetrack/lib/Controller/LogController.php#1910","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/phonetrack/lib/Controller/LogController.php","line":1910,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"logOverland","class":"OCA\\PhoneTrack\\Controller\\LogController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1023,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"MgJz7qPfhbQURZv4AuVP","level":3,"time":"2022-07-14T09:21:08+00:00","remoteAddr":"192.168.0.251","user":"--","app":"PHP","method":"POST","url":"/index.php/apps/phonetrack/log/overland/f819367af876f0b62cf9289ba582498c/Telstra87348","message":"Undefined array key \"device_id\" at /var/www/nextcloud/apps/phonetrack/lib/Controller/LogController.php#1910","userAgent":"Overland/1.2 (iPhone; iOS 15.1; Scale/3.00)","version":"24.0.2.1","exception":{"Exception":"Error","Message":"Undefined array key \"device_id\" at /var/www/nextcloud/apps/phonetrack/lib/Controller/LogController.php#1910","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/phonetrack/lib/Controller/LogController.php","line":1910,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"logOverland","class":"OCA\\PhoneTrack\\Controller\\LogController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1023,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}