Files locked and dead folders

Nextcloud version: 13.0.4
Operating system and version: Raspbian 9
nginx version: 1.10.3
PHP version: 7.0

I have two issues:

Issue 1:
I can’t move or delete different files. The log is showing a typical locked error: OCA\DAV\Connector\Sabre\Exception\FileLocked
To fix this I put Nextcloud into maintainance mode and deleted the locked entries in the database as explained in the documentation. I ran the occ:scan as well - but still the error occurs.
Cron is running and redis should be in use.

Issue 2:
I have somehow created dead folders. Using the webinterface, there is for example folder1 and it has about 25GB of files in its properties. Which was correct in the past. I moved all files from within this folder to different locations, the folder should be empty now. When I try to open this folder I get back to the home directory of my user. Using WebDav shows me the same folder and when I try to open it, I get a message telling me, that there is no folder. This is just an example of one folder. I got 3 of them in different locations.
Besides running the occ files scan all command I tried the occ files cleanup command too.

I feel the urge to rebuild the nextcloud file database…
Hopefully you can give me some hints and support by this. I don’t wanna start over and reinstall the hole system. Maybe I handle this hole Nextcloud thing in a very bad way.

The output of my config.php file in /path/to/nextcloud:

?php
$CONFIG = array (
  'instanceid' => '##########',
  'passwordsalt' => '##########',
  'secret' => '##########',
  'trusted_domains' => 
  array (
    0 => '##########',
  ),
  'datadirectory' => '##########',
  'overwrite.cli.url' => '##########',
  'dbtype' => 'mysql',
  'version' => '13.0.4.0',
  'dbname' => '##########',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '##########',
  'dbpassword' => '##########',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'logtimezone' => '##########',
  'maintenance' => false,
  'skeletondirectory' => '',
  'theme' => '',
  'loglevel' => 2,
'filelocking.enabled' => 'true',
  'memcache.locking' => '\OC\Memcache\Redis',
  'redis' => array(
     'host' => '/var/run/redis/redis-server.sock',
     'port' => 0,
     'timeout' => 0.0,
      ),
);

1 Like