Impossible to move or copy some files

]

Nextcloud version : 13.0.5 with app Social Login
Operating system and version: Debian 9.5
Apache or nginx version : Apache/2.4.25 (Debian)
PHP version : 7.0

The issue you are facing:

  • video automaticaly upload to server /instantupload/camera/video/
  • using browser, trying to “MOVE” the video files to another location
  • message “impossible to move file” without more info

The output of your Nextcloud log in Admin > Logging:

{"reqId":"Jk5fUU2Q6nmjDbE955qh","level":0,"time":"2018-07-31T15:48:33+00:00","remoteAddr":"2.7.154.143","user":"google-109","app":"webdav","method":"MOVE","url":"\/remote.php\/webdav\/InstantUpload\/Camera\/VID_20180625_155423.mp4","message":"Exception: {\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\Forbidden\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Tree.php(158): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory->moveInto('VID_20180625_15...', 'InstantUpload\\\/C...', Object(OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File))\\n#1 \\\/var\\\/www\\\/html\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(646): Sabre\\\\DAV\\\\Tree->move('InstantUpload\\\/C...', 'Rammstein\\\/VID_2...')\\n#2 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpMove(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#3 \\\/var\\\/www\\\/html\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#4 \\\/var\\\/www\\\/html\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(479): Sabre\\\\Event\\\\EventEmitter->emit('method:MOVE', Array)\\n#5 \\\/var\\\/www\\\/html\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#6 \\\/var\\\/www\\\/html\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(80): Sabre\\\\DAV\\\\Server->exec()\\n#7 \\\/var\\\/www\\\/html\\\/remote.php(164): require_once('\\\/var\\\/www\\\/html\\\/a...')\\n#8 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/Directory.php\",\"Line\":421}","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/67.0.3396.99 Safari\/537.36","version":"13.0.5.2"}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'oczplgyolm75',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' =>
  array (
    0 => '',
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '127.0.0.1',
    'port' => 6379,
  ),
  'datadirectory' => '/mnt/raid6/nextcloud',
  'overwrite.cli.url' => 'https://nextcloud.rkn.ovh',
  'dbtype' => 'mysql',
  'version' => '13.0.5.2',
  'dbname' => 'nextcloudDB',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_nextadmin',
  'dbpassword' => 'sxvP4KdSvcrBINuj0qSB6hbskyQve0',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpsecure' => 'ssl',
  'mail_from_address' => 'tech',
  'mail_domain' => 'rknovh',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.sendgrid.net',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'apikey',
  'mail_smtppassword' => '',
  'cache_chunk_gc_ttl' => 86400,
  'filelocking.ttl' => 3600,
  'auth.bruteforce.protection.enabled' => false,
  'maintenance' => false,
  'loglevel' => 0,
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
  'updater.secret' => '$2y$10$6/Al3jJ3qWM/.ddDPz2LK.9rr3QAUPTyyvUSEUsJMOaXQ7SWiEAMe',
  'theme' => '',
);

exemple:

{“reqId”:“Sw9RQqQXqoX3WXgE2XYS”,“level”:0,“time”:“2018-07-31T16:03:50+00:00”,“remoteAddr”:“2.7.154.143”,“user”:“google-109”,“app”:“webdav”,“method”:“MOVE”,“url”:“/remote.php/webdav/InstantUpload/Camera/VID_20180725_213201.mp4”,“message”:“Exception: {"Exception":"Sabre\\DAV\\Exception\\Forbidden","Message":"","Code":0,"Trace":"#0 \/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/Tree.php(158): OCA\\DAV\\Connector\\Sabre\\Directory->moveInto(‘VID_20180725_21…’, ‘InstantUpload\/C…’, Object(OCA\\DAV\\Connector\\Sabre\\File))\n#1 \/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(646): Sabre\\DAV\\Tree->move(‘InstantUpload\/C…’, ‘Rammstein\/VID_2…’)\n#2 [internal function]: Sabre\\DAV\\CorePlugin->httpMove(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#3 \/var\/www\/html\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#4 \/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit(‘method:MOVE’, Array)\n#5 \/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#6 \/var\/www\/html\/apps\/dav\/appinfo\/v1\/webdav.php(80): Sabre\\DAV\\Server->exec()\n#7 \/var\/www\/html\/remote.php(164): require_once(‘\/var\/www\/html\/a…’)\n#8 {main}","File":"\/var\/www\/html\/apps\/dav\/lib\/Connector\/Sabre\/Directory.php","Line":421}”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36”,“version”:“13.0.5.2”}

and for COPY

,“level”:4,“time”:“2018-07-31T16:06:46+00:00”,“remoteAddr”:“2.7.154.143”,“user”:“google-109817171205445496490”,“app”:“webdav”,“method”:“COPY”,“url”:“/remote.php/webdav/InstantUpload/Camera/VID_20180725_213201.mp4”,“message”:“Exception: {"Exception":"OCA\\DAV\\Connector\\Sabre\\Exception\\Forbidden","Message":"No permissions to copy object.","Code":0,"Trace":"#0 \/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(688): OCA\\DAV\\Connector\\Sabre\\ObjectTree->copy(‘InstantUpload\/C…’, ‘Rammstein\/VID_2…’)\n#1 [internal function]: Sabre\\DAV\\CorePlugin->httpCopy(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#2 \/var\/www\/html\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#3 \/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit(‘method:COPY’, Array)\n#4 \/var\/www\/html\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#5 \/var\/www\/html\/apps\/dav\/appinfo\/v1\/webdav.php(80): Sabre\\DAV\\Server->exec()\n#6 \/var\/www\/html\/remote.php(164): require_once(‘\/var\/www\/html\/a…’)\n#7 {main}","File":"\/var\/www\/html\/apps\/dav\/lib\/Connector\/Sabre\/ObjectTree.php","Line":219}”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36”,“version”:“13.0.5.2”}

I dont understand the Forbidden\ or Forbidden","Message":"No permissions to copy object
as i used to copy/move files without troubles before.

This is a live running nextcloud, who was fully fonctionnal on a fresh debian stretch:

  • was updated from denian 9.1 to 9.5 ( with a faulty redis config, fixed now )
  • was a fresh 13.0.0 install, automatically updated to 13.0.5

I did notice some the impossibility to move/copy just a few files from /instantupload/ but now it is all files.

OK, i feel stupid…

This server is so wide, i can track all folder/files changes…
The destination folder is a share folder, and the account i used dont have specifics rights on it !!!