[SOLVED] NC10 Cant delete folder external SMB storage

Hello there,

A problem appear only with folder, i can create a folder but impossible to delete via WEB interface and also NCClient synchro.
No problem with files

Ubuntu Server 10.04 LTS
NC 10.0.1
External Mount NAS via SMB W2012 Server
LDAP module for authentification (W2012 Server AD)
SMB for External Storage

NClient 2.2.4 on Windows7
it seem to not a right problem, i dont understand why, if someone have an idea, thank

{“reqId”:“gVRDqh22penrKkvgOfOx”,“remoteAddr”:“10.2.3.7”,“app”:“webdav”,“message”:“Exception:
{“Message”:“Invalid request for
smb:\/\/10.2.1.2\/personnel$\/USER1\/test
(InvalidTypeException)”,“Exception”:“Icewind\\SMB\\Exception\\InvalidTypeException”,“Code”:21,“Trace”:”#0
\/var\/www\/nextcloud-10.0.1\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/NativeState.php(72):
Icewind\\SMB\\NativeState->handleError(‘smb:\/\/10.2.1.2\/…’)\n#1
\/var\/www\/nextcloud-10.0.1\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/NativeState.php(204):
Icewind\\SMB\\NativeState->testResult(false,
‘smb:\/\/10.2.1.2\/…’)\n#2
\/var\/www\/nextcloud-10.0.1\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/NativeShare.php(243):
Icewind\\SMB\\NativeState->open(‘smb:\/\/10.2.1.2\/…’,
‘r’)\n#3
\/var\/www\/nextcloud-10.0.1\/apps\/files_external\/lib\/Lib\/Storage\/SMB.php(249):
Icewind\\SMB\\NativeShare->read(’\/USER1\/test’)\n#4
\/var\/www\/nextcloud-10.0.1\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php(294):
OCA\\Files_External\\Lib\\Storage\\SMB->fopen(‘test’,
‘r’)\n#5
\/var\/www\/nextcloud-10.0.1\/lib\/private\/Files\/Storage\/Wrapper\/Availability.php(318):
OC\\Files\\Storage\\Wrapper\\Wrapper->fopen(‘test’,
‘r’)\n#6
\/var\/www\/nextcloud-10.0.1\/lib\/private\/Files\/Storage\/Wrapper\/Encryption.php(849):
OC\\Files\\Storage\\Wrapper\\Availability->fopen(‘test’,
‘r’)\n#7
\/var\/www\/nextcloud-10.0.1\/lib\/private\/Files\/Storage\/Wrapper\/Encryption.php(917):
OC\\Files\\Storage\\Wrapper\\Encryption->readFirstBlock(‘test’)\n#8
\/var\/www\/nextcloud-10.0.1\/lib\/private\/Files\/Storage\/Wrapper\/Encryption.php(947):
OC\\Files\\Storage\\Wrapper\\Encryption->getHeader(‘test’)\n#9
\/var\/www\/nextcloud-10.0.1\/lib\/private\/Files\/Storage\/Wrapper\/Encryption.php(250):
OC\\Files\\Storage\\Wrapper\\Encryption->getEncryptionModule(‘test’)\n#10
[internal function]:
OC\\Files\\Storage\\Wrapper\\Encryption->unlink(‘test’)\n#11
\/var\/www\/nextcloud-10.0.1\/apps\/files_trashbin\/lib\/Storage.php(172):
call_user_func_array(Array, Array)\n#12
\/var\/www\/nextcloud-10.0.1\/apps\/files_trashbin\/lib\/Storage.php(96):
OCA\\Files_Trashbin\\Storage->doDelete(‘test’, ‘unlink’)\n#13
\/var\/www\/nextcloud-10.0.1\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php(261):
OCA\\Files_Trashbin\\Storage->unlink(‘test’)\n#14
\/var\/www\/nextcloud-10.0.1\/apps\/files_trashbin\/lib\/Trashbin.php(247):
OC\\Files\\Storage\\Wrapper\\Wrapper->unlink(‘test’)\n#15
\/var\/www\/nextcloud-10.0.1\/apps\/files_trashbin\/lib\/Storage.php(161):
OCA\\Files_Trashbin\\Trashbin::move2trash(‘NAS
PERSO\/t…’)\n#16
\/var\/www\/nextcloud-10.0.1\/apps\/files_trashbin\/lib\/Storage.php(107):
OCA\\Files_Trashbin\\Storage->doDelete(‘test’, ‘rmdir’)\n#17
\/var\/www\/nextcloud-10.0.1\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php(87):
OCA\\Files_Trashbin\\Storage->rmdir(‘test’)\n#18
\/var\/www\/nextcloud-10.0.1\/lib\/private\/Files\/View.php(1120):
OC\\Files\\Storage\\Wrapper\\Wrapper->rmdir(‘test’)\n#19
\/var\/www\/nextcloud-10.0.1\/lib\/private\/Files\/View.php(342):
OC\\Files\\View->basicOperation(‘rmdir’, ‘\/NAS
PERSO\/…’, Array)\n#20
\/var\/www\/nextcloud-10.0.1\/apps\/dav\/lib\/Connector\/Sabre\/Directory.php(277):
OC\\Files\\View->rmdir(’\/NAS PERSO\/…’)\n#21
\/var\/www\/nextcloud-10.0.1\/3rdparty\/sabre\/dav\/lib\/DAV\/Tree.php(179):
OCA\\DAV\\Connector\\Sabre\\Directory->delete()\n#22
\/var\/www\/nextcloud-10.0.1\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(285):
Sabre\\DAV\\Tree->delete(‘NAS PERSO\/t…’)\n#23 [internal
function]:
Sabre\\DAV\\CorePlugin->httpDelete(Object(Sabre\\HTTP\\Request),
Object(Sabre\\HTTP\\Response))\n#24
\/var\/www\/nextcloud-10.0.1\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105):
call_user_func_array(Array, Array)\n#25
\/var\/www\/nextcloud-10.0.1\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(459):
Sabre\\Event\\EventEmitter->emit(‘method:DELETE’, Array)\n#26
\/var\/www\/nextcloud-10.0.1\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(248):
Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request),
Object(Sabre\\HTTP\\Response))\n#27
\/var\/www\/nextcloud-10.0.1\/apps\/dav\/appinfo\/v1\/webdav.php(60):
Sabre\\DAV\\Server->exec()\n#28
\/var\/www\/nextcloud-10.0.1\/remote.php(165):
require_once(’\/var\/www\/nextcl…’)\n#29
{main}",“File”:"\/var\/www\/nextcloud-10.0.1\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/NativeState.php",“Line”:50,“User”:“USER1”}",“level”:4,“time”:“2016-10-20T08:14:40+00:00”,“method”:“DELETE”,“url”:"/remote.php/webdav/NAS%20%20PERSO/test",“user”:“USER1”}

Does the problem appear with only this folder?
is the folder created in via the webinterface?
is the folder empty?

Can you connect to the NAS via terminal and delete the folder that way?

Hello,
Yes only with folder
I 've tested two method, folder created with webinterface and NClient, same i cant delete them, empty folder yes
I just tested with terminal via command line smbclient, yes i can create and delete folder

Log file into NCClient say

|0|test|INST_REMOVE|Up|1477320082|580e1d6396274|0|00114459oca8akfgz86f|2|Error downloading https://cloud/remote.php/webdav/PERSO/test - server replied: Internal Server Error|500|0|0|||INST_NONE|

Thank

I 've made a fresh install of NC10.0.1 on
Ubuntu Server 16.04 LTS / Apache2 / PHP7 / MYSQL 5.7
Connected with a NAS DELL via SMB / LDAP Auhen

After some trick on SMB, all work WELL !

JB_D What do you mean with “After some trick on SMB, all work Well”? What did you do?

I solwed it with mounting it in the linux server instead but now I get an error message in the web when I delete the folder:
“Error deleting file” but the folder gets deleted.