Nextcloud 11.0.2 External storage SMB and can not delete folder empty or not

Sorry to hear you’re facing problems :slight_frown:

If you’re urgently looking for support to keep your business running, consider checking out our paid support options.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the following as you can (you can cut and paste this into your topic):


Nextcloud version (eg, 10.0.2): 11.0.2
Operating system and version (eg, Ubuntu 16.04): Ubuntu 16.10
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.18
PHP version (eg, 5.6): 7
Is this the first time you’ve seen this error?: Yes All day

Can you reliably replicate it? (If so, please outline steps):
Add smb sharing, user has full access on the shared folder.

The issue you are facing:
Create a folder in Web access or on file server. Try to delete the folder but can’t do that.

The output of your Nextcloud log in Admin > Logging:
Error no app in context Icewind\SMB\Exception\NotFoundException: Invalid request for /5_TEKNIK/Anläggning/Projekt/Pågående projekt/176 Modifiering av hjälpkraft/Modifiering av hjälpkraft - Projekt/Pågående projekt/176 Modifiering av hjälpkraft/Modifiering av hjälpkraft - Projekt/QDTest (NotFoundException) 2017-03-01T16:20:06+0100
Error no app in context Icewind\SMB\Exception\NotFoundException: Invalid request for /5_TEKNIK/Anläggning/Projekt/Pågående projekt/176 Modifiering av hjälpkraft/Modifiering av hjälpkraft - Projekt/Pågående projekt/176 Modifiering av hjälpkraft/Modifiering av hjälpkraft - Projekt/QDTest (NotFoundException)

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):
/var/www/cloud-data (but not applicable here because of external storage)

The output of your Apache/nginx/system log in /var/log/____:
mkdir failed on directory /var/run/samba/msg.lock: Permission denied
mkdir failed on directory /var/run/samba/msg.lock: Permission denied
[Wed Mar 01 19:05:07.182767 2017] [:error] [pid 16184] [client 46.59.40.211:56699] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 104
[Wed Mar 01 19:05:07.183439 2017] [:error] [pid 16184] [client 46.59.40.211:56699] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/SQLParserUtils.php on line 208


Remember, this information may be requested if it isn’t supplied; for fastest response please provide as much as you can :heart: Feel free to use a pastebin service, otherwise log files can be indented with 4 spaces on each line to present them in a friendlier way on the forum.

I’ve installed php-smbclient and now I get this in nextcoud:
Fatal webdav OCA\DAV\Connector\Sabre\Exception\FileLocked: HTTP/1.1 423 “Projekt/QD” is locked 2017-03-01T19:16:46+0100
Fatal webdav OCA\DAV\Connector\Sabre\Exception\FileLocked: HTTP/1.1 423 “Projekt/QD” is locked 2017-03-01T19:15:54+0100
Fatal webdav OCA\DAV\Connector\Sabre\Exception\FileLocked: HTTP/1.1 423 “Projekt/QD” is locked 2017-03-01T19:15:38+0100
Fatal webdav OCA\DAV\Connector\Sabre\Exception\FileLocked: HTTP/1.1 423 “Projekt/QD” is locked 2017-03-01T19:14:07+0100
Fatal webdav OCA\DAV\Connector\Sabre\Exception\FileLocked: HTTP/1.1 423 “Projekt/QD” is locked 2017-03-01T19:12:09+0100
Fatal webdav OCA\DAV\Connector\Sabre\Exception\FileLocked: HTTP/1.1 423 “Projekt/QD” is locked 2017-03-01T19:11:56+0100
Fatal webdav OCA\DAV\Connector\Sabre\Exception\FileLocked: HTTP/1.1 423 “Projekt/QD” is locked 2017-03-01T19:08:23+0100
Fatal webdav OCA\DAV\Connector\Sabre\Exception\FileLocked: HTTP/1.1 423 “Projekt/QD” is locked