Cannot delete own files

Hi everybody,

I am new to nextcloud, so I assume this will be a newbie-kind of question and thus I apologize for any possible newbie mistakes while asking for help here. I will be happy to provide all necessary information you request while helping me.

I am running a Server, I currently plan to equip with nextcloud. I am testing, how to set up nextcloud, so it can fit our purposes best and have run into this error.

Any help is greatly appreciated.

Nextcloud version 12.0.5
Operating system and version SME-Server 9.2 (based on CentOS)
Apache or nginx version: e-smith-apache.noarch 2.4.0-15.el6.sme @anaconda-base-201704272247.x86_64/9.2
PHP version:

[root@sme3 Photos]# php -v
PHP 5.3.3 (cli) (built: Mar 22 2017 12:27:09) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

This looks as if it were the wrong version, though I have installed php 7.1 aside to it. and configured the server to use it within ther storage area (SME-Server calls it iBay).

The issue you are facing:

As a normal user I can upload files e.g. a video, which is stored on my server like this:
/home//nextcloud/html/data/thomas/files/Videos
-rw-r–r-- 1 apache www 2611194068 Feb 7 12:41 Only_Lovers_Left_Alive-stv.mp4
However, I cannot delete this file anymore. I keep getting an error saying there was an error when deleting the file.

I can delete the file Nut.jpg in
/home//nextcloud/html/data/thomas/files/Photos
-rw-r----- 1 apache www 955026 Feb 4 22:14 Nut.jpg

Is this the first time you’ve seen this error? (Y/N): No

Steps to replicate it:

  1. Upload a file, while working in the desktop-client.
  2. Try to delete it

The output of your Nextcloud log in Admin > Logging:

Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Videos/Only_Lovers_Left_Alive-stv.mp4" is **locked**	2018-02-10T16:26:22+0100
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Videos/Only_Lovers_Left_Alive-stv.mp4" is locked	2018-02-10T15:59:44+0100
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Videos/Only_Lovers_Left_Alive-stv.mp4" is locked	2018-02-07T13:13:03+0100
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Videos/Only_Lovers_Left_Alive-stv.mp4" is locked	2018-02-07T13:08:54+0100
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Videos/Only_Lovers_Left_Alive-stv.mp4" is locked	2018-02-07T12:56:18+0100
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Videos/Only_Lovers_Left_Alive-stv.mp4" is locked	2018-02-07T12:55:27+0100
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Nextcloud.mp4" is locked	2018-02-07T12:54:44+0100
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Videos/Only_Lovers_Left_Alive-stv.mp4" is locked	2018-02-07T12:54:32+0100
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Nextcloud.mp4" is locked	2018-02-07T12:44:42+0100
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Videos/Only_Lovers_Left_Alive-stv.mp4" is locked	2018-02-07T12:44:21+0100
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Videos/Only_Lovers_Left_Alive-stv.mp4" is locked	2018-02-07T12:43:08+0100
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Videos/Only_Lovers_Left_Alive-stv.mp4" is locked	2018-02-07T12:42:54+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:17:46+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:17:16+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:16:46+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:16:16+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:15:46+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:15:16+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:14:46+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:14:16+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:13:46+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:13:16+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:12:46+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:12:15+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:11:45+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:11:15+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:10:45+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:10:15+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:09:45+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:09:15+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:08:45+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:08:16+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:07:46+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:07:46+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:07:46+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:07:46+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:07:46+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:07:46+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:07:46+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:07:44+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:07:43+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:07:43+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:07:43+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:07:43+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:07:43+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:07:41+0100
Fatal	webdav	RedisException: Redis server went away	2018-02-07T11:07:22+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82	2018-02-07T11:07:22+0100
Error	PHP	Redis::connect(): connect() failed: No such file or directory at /home/e-smith/files/ibays/nextcloud/html/lib/private/RedisFactory.php#82

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


<?php
$CONFIG = array (
  'instanceid' => 'xxxxxxxxxxx',
  'passwordsalt' => 'xxxxxxxxxxxxxxxxxx',
  'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxx',
  'trusted_domains' =>
  array (
    0 => '10.0.0.101',
    1 => 'xxxxxxxxxxxxx',
  ),
  'datadirectory' => '/home/<SNIP>/nextcloud/html/data',
  'overwrite.cli.url' => 'http://10.0.0.101/nextcloud',
  'dbtype' => 'mysql',
  'version' => '12.0.5.3',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'admin',
  'dbpassword' => 'you'd possibly like to know',
  'installed' => true,
  'mail_smtpmode' => 'sendmail',
  'mail_smtpauthtype' => 'PLAIN',
  'mail_from_address' => 'admin',
  'mail_domain' => '10.0.0.101',
  'mail_smtphost' => '10.0.0.101',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'thomas',
  'mail_smtppassword' => 'you'd possibly like to know',
);

The output of your Apache/nginx/system log in /var/log/____:
Hope, this is the correct log. It shows the attempt to delete the file

servername.domain.net 10.0.0.69 - - [10/Feb/2018:17:03:46 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0"
servername.domain.net 10.0.0.69 - - [10/Feb/2018:17:03:54 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1556 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0"
servername.domain.net 10.0.0.69 - - [10/Feb/2018:17:04:16 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0"
servername.domain.net 10.0.0.69 - - [10/Feb/2018:17:04:22 +0100] "PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1" 207 6262 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0"
servername.domain.net 10.0.0.69 - - [10/Feb/2018:17:04:22 +0100] "GET /nextcloud/index.php/apps/files/ajax/getstoragestats.php?dir=%2F HTTP/1.1" 200 210 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0"
servername.domain.net 10.0.0.69 - - [10/Feb/2018:17:04:24 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1556 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0"
servername.domain.net 10.0.0.69 - - [10/Feb/2018:17:04:26 +0100] "PROPFIND /nextcloud/remote.php/webdav/Videos HTTP/1.1" 207 1703 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0"
servername.domain.net 10.0.0.69 - - [10/Feb/2018:17:04:26 +0100] "GET /nextcloud/index.php/apps/files/ajax/getstoragestats.php?dir=%2FVideos HTTP/1.1" 200 210 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0"
**servername.domain.net 10.0.0.69 - - [10/Feb/2018:17:04:35 +0100] "DELETE /nextcloud/remote.php/webdav/Videos/Only_Lovers_Left_Alive-stv.mp4 HTTP/1.1" 423 257 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0"**
servername.domain.net 10.0.0.69 - - [10/Feb/2018:17:04:46 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 74 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0"
servername.domain.net 10.0.0.69 - - [10/Feb/2018:17:04:54 +0100] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1556 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0"

Did you try this?

Thanks tflidd, that solved my problem.
Is there sth. I can do to avoid orphaned locks (aside from running cron.php, of which I assume, it cares for these locks)?
BTW I promise to read more of the documentation asap.