Cannot Delete Files - External Storage

Nextcloud version _16.0.3
Operating system and version Docker _Container (UnRaid)
Apache or nginx version _10.4.13-MariaDB-1:10.4.13+maria~bionic-log (Docker)
Database Cache _Redis

The issue you are facing:

I cannot delete or move folders that are stored in external storage devices.

I can delete files within folders stored on external storage devices.

I can also delete and move files stored in the “Nextcloud” base directory.

The error I get is as follows:

However there are no obvious errors in the logfile. There are no locked files in the MySql database and I have run a maintenance repair, again with no errors.

I have not changed anything

Is this the first time you’ve seen this error? Y:

Steps to replicate it:

  1. Tick > Delete folder.
  2. Blue Bar Starts to move across screen at the top.
  3. "Error deleting file “Test”.

The output of your Nextcloud log in Admin > Logging:

Please let me know if there is a way to upload the error log omitting IP addresses.

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

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '10.168.1.12',
    'port' => 6379,
  ),
  'datadirectory' => '/data',
  'instanceid' => 'XXX',
  'passwordsalt' => 'XXX',
  'secret' => 'XXX',
  'trusted_domains' => 
  array (
    0 => '10.168.1.12:444',
    1 => 'nextcloud.XXX.com',
  ),
  'dbtype' => 'mysql',
  'version' => '16.0.3.0',
  'overwrite.cli.url' => 'https://nextcloud.XXX.com',
  'overwirtehost' => 'nextcloud.XXX.com',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => '10.168.1.12:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'XXX',
  'dbpassword' => 'XXX',
  'installed' => true,
  'maintenance' => false,
);

I have tried all the obvious fixes and spent a considerable amount of time looking into this now.

Much appreciate if anyone can provide a solution.

Can you try 16.0.10 and tell us if this issue still exists? 16.0.3 is old.

Nextcloud 16 is unsupported.
But the error is perhaps something with DB tables and timeouts.
Perhaps something is too slow or your external storage is to big.
Read an example Corrupt DB-Tables?
Perhaps you can increase "nnodb_lock_wait_timeout”
Please upgrade to newer nextcloud versions.

https://nextcloud.com/changelog/

@devnull @Paradox551 Did not realise my Nextcloud was so out of date. I am used to my docker containers updating themselves.

I will update to version 18/19 and see if the issue persists.

I seem to have run into the following error at the moment at the backup stage. Any ideas?

Many thanks

The back up error seems to be related to the server timing out whilst creating the back up.

I can’t seem to figure out where to increase the timeout limit.

Update: Managed to get around the above issue by just waiting a few minutes then refreshing the page.

New problem updating to Nextcloud 18 is that how a get a HTTP 500 error, but that is something to deal with tomorrow night…

If you have shell accecess (ssh) you should use

php updater/updater.phar

instead of web updater.

https://docs.nextcloud.com/server/19/admin_manual/maintenance/update.html

-> part “Using the command line based updater”

Many thanks for your help Devnull.

I managed to figure that out in the end and will be sure to the use the command line based updater to keep Nextcloud up to date in the future.

I can now delete files, etc. too.

Thanks again

1 Like

2 posts were split to a new topic: Issues with deleting, moving, and renaming files - External storage