Server: Error deleting multiple files from Deleted files with NextCloud 15.0.0.10

Created on 22 Dec 2018  Â·  10Comments  Â·  Source: nextcloud/server

Steps to reproduce

  1. Go to Files and click 'Deleted files'
  2. Select multiple files
  3. Click on the triple dots 'Actions'
  4. Click 'Delete'

Expected behaviour

Selected files shall be deleted

Actual behaviour

Error shows 'Error while removing files from trashbin'
Of the selected files only one file is being deleted.

Server configuration

Operating system:
Arch linux, kernel 4.19.8

Web server:
Apache 2.4.37

Database:
Mariadb 10.1.37

PHP version:
PHP 7.3.0

Nextcloud version: (see Nextcloud admin page)
NextCloud 15.0.0.10

Updated from an older Nextcloud/ownCloud or fresh install:
Updated from latest version

Where did you install Nextcloud from:
Arch linux package repository

Signing status:


Signing status

Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

Technical information

The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results

  • core

    • EXTRA_FILE



      • ocs/.rnd


      • .rnd



Raw output

Array
(
[core] => Array
(
[EXTRA_FILE] => Array
(
[ocs/.rnd] => Array
(
[expected] =>
[current] => 53379c25bc5d27655048e9c27dad56254a859a95db527e4a7c230c416331f116f50f292097b1cc24841179c2c67ec047a8488aa17be63db910447b2d58ba1e62
)

                [.rnd] => Array
                    (
                        [expected] => 
                        [current] => eccb3e406ecc10541a2411aa233cc361bd5db68a94b6b2194ac3a415b3fabf1393b69028c5f52263100c04a77bd3188e9be9a3c5afb4cde34ee2030d4ff69d2b
                    )

            )

    )

)

List of activated apps:


App list

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

PHP Warning: require_once(): open_basedir restriction in effect. File(/

Nextcloud configuration:


Config report

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or 

Insert your config.php content here. 
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Unable to run occ command. See item above. Config.php content:
$CONFIG = array (
'instanceid' => '',
'passwordsalt' => '',
'secret' => '',
'trusted_domains' =>
array (
0 => '',
1 => '.nl',
2 => '127.0.0.1',
),
'datadirectory' => '/data',
'overwrite.cli.url' => 'https:/nextcloud/',
'memcache.local' => '\OC\Memcache\APCu',
'dbtype' => 'mysql',
'version' => '15.0.0.10',
'dbname' => '',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => '',
'dbpassword' => '',
'logtimezone' => 'UTC',
'installed' => true,
'appstore.experimental.enabled' => true,
'mail_from_address' => '',
'mail_smtpmode' => '',
'mail_domain' => '',
'mail_smtpsecure' => 'tls',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtphost' => '',
'mail_smtpport' => '',
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
);

Are you using external storage, if yes which one: local/smb/sftp/...
No

Are you using encryption: yes/no
No

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
Not applicable

Client configuration

Mozilla Firefox 64.0 (64-bit)

Operating system:
Arch linux

Logs

Web server error log


Web server error log

Insert your webserver log here

Nextcloud log (data/nextcloud.log)


Nextcloud log

Insert your Nextcloud log here

Browser log


Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

0. Needs triage bug

Most helpful comment

@libre4IT can you please reopen this issue?

All 10 comments

Fixed the issue by deleting the trashbin using the occ command. After this multiple files can be deleted at once by using the browser as usual. Apparently something didn't went ok after the upgrade to NC 15.0.0.
Please note that during the upgrade the occ command did not work for me (path of NC wasn't part of open_basedir in php.ini).

I've got the same issue. When clicking the "deleted files" link in the browser it's just hanging and nothing happens. Though it can be fixed with OCC, it's still an issue that needs to looked into.
Disabling and re-enabling the "Deleted Files" plugin, doesn't make a difference.

If more people can confirm this issue, it should be re-opened.
I'm using Nextcloud 15.0 on Ubuntu 16.04 LTS

Update: there was also a problem with the occ command:

sudo -u www-data php occ trashbin:cleanup myusername

Cannot write into "config" directory!

Changed the data ownership to www-data, and then the above occ command worked.

Bin empty, and problem solved.

i have the same issue.. some parts of the selected files will not be deleted, then you have to reload the page and select multiple files and delete and redo this process until the files are deleted. that is how i managed to delete multiple files

I have the same issue here and I am not using any command line. So there is no way for me to avoid this or deleting files via SFTP. The only way to really delete the files is by deleting them one by one. And when I am updating the page in my browser, Nextcloud redirects me to Nextcloud Talk. What's also new is that the sorting of the files is different. When I open the trash bin it shows me now the newest deleted files but the oldest deleted files.

@libre4IT can you please reopen this issue?

Reopened uppon request

Same here on 15.0.4.

Issue is not solved be the mentioned command. It just empties the trash bin, but I can also do that by select all files in the trash and delete it. Multiselect and delete is still not working afterwards.

The sorting of the files is also strange for me as mentioned by @GoetheG

If you still see this issue please create a new issue https://github.com/nextcloud/server/issues/new?labels=bug%2C+0.+Needs+triage&template=Bug_report.md. We need the issue template to reproduce your issue.

Was this page helpful?
0 / 5 - 0 ratings