Issues deleting my folders and files on an encrypted profile (OC10.x)

Not really.

I have noticed that you have updated from ownCloud 7 to 10, is that right?

also this:

are the files stored locally or on an external storage?

I’ve updated from 7 to 8 to 9 to 10 > 10.0.x
Currently all file stores are locally.

Maybe you could still update to 10.0.8 or even to the upcoming 10.0.9 and issues like this are already solved?

I’ll give it a try.
Eventhough I think, that it must be an issue which was due to the memcache/redis configuration attempt

Maybe I found something. A occ repair gives me this:
apache@cloud ~/localhost/htdocs/owncloud $ ./occ files:scan --all --repair
0 [>---------------------------]

Scanning files for 15 users
Starting scan for user 1 out of 15 (2C6C3DAB-B6E1-4E9B-B8B7-298FB3695517)
Starting scan for user 2 out of 15 (4FDE5FBB-846C-4E18-B730-4903DD48A5F3)
Starting scan for user 3 out of 15 (797B499E-E3A2-470D-9FDF-392987CD14AF)
Starting scan for user 4 out of 15 (D4FB7ECC-8903-48AE-8034-DFAA8C3E0BD7)
Starting scan for user 5 out of 15 (E354B8F4-EBD0-4F32-A830-C487E9FBAA2F)
Starting scan for user 6 out of 15 (ED5E8E98-63D5-4B4B-BB9E-7FBEC837AF8A)
Starting scan for user 7 out of 15 (a.xxxxx)
Starting scan for user 8 out of 15 (xxxxx)
Starting scan for user 9 out of 15 (h.xxxxx)
Starting scan for user 10 out of 15 (xxxxxx)
Starting scan for user 11 out of 15 (p.xxxxxx)
Starting scan for user 12 out of 15 (s.fohler)
Exception during scan: OCP\Lock\LockedException: “files/cee97d5676d4a183c4636153c2bc758e” is locked
#0 /var/www/localhost/htdocs/owncloud/lib/private/Files/Storage/Common.php(653): OC\Lock\DBLockingProvider->acquireLock(‘files/cee97d567…’, 2)
#1 /var/www/localhost/htdocs/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php(589): OC\Files\Storage\Common->acquireLock(‘scanner::’, 2, Object(OC\Lock\DBLockingProvider))
#2 /var/www/localhost/htdocs/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php(589): OC\Files\Storage\Wrapper\Wrapper->acquireLock(‘scanner::’, 2, Object(OC\Lock\DBLockingProvider))
#3 /var/www/localhost/htdocs/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php(589): OC\Files\Storage\Wrapper\Wrapper->acquireLock(‘scanner::’, 2, Object(OC\Lock\DBLockingProvider))
#4 /var/www/localhost/htdocs/owncloud/lib/private/Files/Cache/Scanner.php(321): OC\Files\Storage\Wrapper\Wrapper->acquireLock(‘scanner::’, 2, Object(OC\Lock\DBLockingProvider))
#5 /var/www/localhost/htdocs/owncloud/lib/private/Files/Utils/Scanner.php(246): OC\Files\Cache\Scanner->scan(’’, true, 3)
#6 /var/www/localhost/htdocs/owncloud/apps/files/lib/Command/Scan.php(243): OC\Files\Utils\Scanner->scan(’/s.fohler’, false)
#7 /var/www/localhost/htdocs/owncloud/apps/files/lib/Command/Scan.php(389): OCA\Files\Command\Scan->scanFiles(‘s.fohler’, ‘/s.fohler’, false, Object(Symfony\Component\Console\Output\ConsoleOutput), false, false)
#8 /var/www/localhost/htdocs/owncloud/apps/files/lib/Command/Scan.php(354): OCA\Files\Command\Scan->userScan(Array, NULL, false, Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput), false)
#9 /var/www/localhost/htdocs/owncloud/apps/files/lib/Command/Scan.php(319): OCA\Files\Command\Scan->processUserChunks(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput), Array, NULL, false)
#10 /var/www/localhost/htdocs/owncloud/lib/composer/symfony/console/Command/Command.php(252): OCA\Files\Command\Scan->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/localhost/htdocs/owncloud/core/Command/Base.php(159): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/localhost/htdocs/owncloud/lib/composer/symfony/console/Application.php(946): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/localhost/htdocs/owncloud/lib/composer/symfony/console/Application.php(248): Symfony\Component\Console\Application->doRunCommand(Object(OCA\Files\Command\Scan), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/www/localhost/htdocs/owncloud/lib/composer/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/localhost/htdocs/owncloud/lib/private/Console/Application.php(161): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /var/www/localhost/htdocs/owncloud/console.php(106): OC\Console\Application->run()
#17 /var/www/localhost/htdocs/owncloud/occ(11): require_once(’/var/www/localh…’)
#18 {main}
Starting scan for user 13 out of 15 (xxxxxxx)
Starting scan for user 14 out of 15 (xxxxxxx)
Starting scan for user 15 out of 15 (xxxxxxx)

±--------±------±-------------+
| Folders | Files | Elapsed time |
±--------±------±-------------+
| 63997 | 89599 | 00:25:38 |
±--------±------±-------------+

Maybe that gives us a hint?

found something on how to unlock locked files.

@dmitry thank you for that hint. I’ve tried that, but the table oc_file_locks does not have any content according to the “select * from oc_file_locks”. Yet the innodb table file shows >800 000 rows and 150MB data. Any idea what we can do about that?

Could you try to install redis again, following the documentation, and see if the locks disappear?

If you don’t have redis, file locking is done by the database, the locks last for one hour.

@dmitry I don’t have redis installed, and if it’s done by database, the locks I have are much longer then one hour. What triggers those logs, any idea about that?

fine edits I suppose.

Could you try to install redis? it’s not that complicated :slight_smile:

Maybe that would fix your file locks.

I can try it, but I think I wanted to do that in the first place and there was a showstopper for that.
Do you some good instructions, or howto guides for the REDIS usage in Owncloud?

https://doc.owncloud.com/server/10.0/admin_manual/configuration/server/caching_configuration.html?highlight=redis#installing-redis-on-debian-based-distributions

what was the issue with the installaton?

The configuration told me that the REDIS implementation is not supported.
So I tried it with memcached.

I did a file consistency scan, and for some reason the owncloud does not show any files listed for “any” user anymore. Anyone an idea what could have caused that?

Could you post the results here?

I’m stuck. I tried to remove the caching, and to reinstall but what I got now is, that I do have only bland file lists, no directories no files nothing for every user.
If I try to open the deleted files, I see some of the old ones. How do I figure out what happend? I’m fairly freaked out now, I don’t want to loos all the files of my or all the other accounts hosted on that owncloud store.

Is there any log I can provide to make things more clear?
I definitly need some help to figure out how to fix that.

Hey,

are you still on 10.0.7 or have you updated to 10.0.10 recently?

For the “file is locked” issue i think the only advise which can be given from user side is to choose a hosting provider / environment which allows you to use redis as the file locking backend and a configuration of the “system cron” background job.

I’ve tried 10.0.0.10 already. Yet now, as I mentioned no files are visible anymore. Only the deleted files will be shown, if I try to list them.

Can someone tell me what this output want’s to tell me?
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
      • lib/composer/natxet/CssMin/src/CssMin.php
      • lib/composer/natxet/CssMin/composer.json
      • lib/composer/natxet/CssMin/README
      • core/doc/admin/_sources/configuration/server/js_css_asset_management_configuration.rst.txt
      • core/doc/admin/_sources/configuration/server/security/ransomware-protection.rst.txt
      • core/doc/admin/configuration/server/js_css_asset_management_configuration.html
      • core/doc/admin/configuration/server/security/ransomware-protection.html
  • templateeditor
    • EXTRA_FILE
      • controller/adminsettingscontroller.php
      • http/mailtemplateresponse.php
      • lib/adminpanel.php
      • lib/mailtemplate.php
      • app/templateeditor.php
  • files_external
    • EXTRA_FILE
      • 3rdparty/Dropbox/OAuth.php
      • 3rdparty/Dropbox/API.php
      • 3rdparty/Dropbox/autoload.php
      • 3rdparty/Dropbox/OAuth/PEAR.php
      • 3rdparty/Dropbox/OAuth/Curl.php
      • 3rdparty/Dropbox/OAuth/PHP.php
      • 3rdparty/Dropbox/OAuth/Wordpress.php
      • 3rdparty/Dropbox/OAuth/Zend.php
      • 3rdparty/Dropbox/OAuth/ca-bundle.pem
      • 3rdparty/Dropbox/OAuth/Consumer/Dropbox.php
      • 3rdparty/Dropbox/Exception.php
      • 3rdparty/Dropbox/Exception/Forbidden.php
      • 3rdparty/Dropbox/Exception/RequestToken.php
      • 3rdparty/Dropbox/Exception/NotFound.php
      • 3rdparty/Dropbox/Exception/OverQuota.php
      • lib/Lib/Backend/Dropbox.php
      • lib/Lib/Storage/Dropbox.php
      • js/dropbox.js
      • ajax/oauth1.php

Raw output

Array
(
[core] => Array
(
[EXTRA_FILE] => Array
(
[lib/composer/natxet/CssMin/src/CssMin.php] => Array
(
[expected] =>
[current] => 3dbb09114c95f76781d9facc76b2d479c1e9776bf7d63da5a09078f9433897eb1ae6fca84f8569ac40bd5a3cd08c4d828316136cc7ede47d95d73552be02a042
)

                [lib/composer/natxet/CssMin/composer.json] => Array
                    (
                        [expected] => 
                        [current] => 2849b139201f7844eaad998314cf5069455c00cfdf16cf3e53d8496922ddbc8f5cf12f6b9180be216d0631f37b17e98c05de17a990da7601b4efb7c4ebec3bd3
                    )

                [lib/composer/natxet/CssMin/README] => Array
                    (
                        [expected] => 
                        [current] => fe9af7fa554d602f03964eb267863ecb332f1e8ccebc8f35e8798a9637c6ff139f05a0ff12679b0d5dbcd4455eb67786d1f1682cef2d041c36537f92d0a3f600
                    )

                [core/doc/admin/_sources/configuration/server/js_css_asset_management_configuration.rst.txt] => Array
                    (
                        [expected] => 
                        [current] => 956ace6e39af1141c30207f8de8bc6abf09de3c63908b186dcf23060a455dc1c67c243bc49aa13e362ef467bdb8dab7c569ac53395c167bad262c235279b790f
                    )

                [core/doc/admin/_sources/configuration/server/security/ransomware-protection.rst.txt] => Array
                    (
                        [expected] => 
                        [current] => e68e0ebb933b302610b64b3a812b286b71536d222e7fe01e678f53560b9d8c4337423ab2dd887276232175f5bd8876a77792709536bff92ca2766ad3b7efb9c6
                    )

                [core/doc/admin/configuration/server/js_css_asset_management_configuration.html] => Array
                    (
                        [expected] => 
                        [current] => ff1a7b190add7344103c3489c5b8a16dded1c8b22125d216cfb948898ec17c5d4904ffdad57da4d198e4acfe6952de213c877a29e1af25cb70ebb16c3011f2b4
                    )

                [core/doc/admin/configuration/server/security/ransomware-protection.html] => Array
                    (
                        [expected] => 
                        [current] => 3dde7b6c014b18923304664532cdecc818110637c26959872d6be09e634d2d4d3d518a5830afdaad379bc1b11a58a9fecf05855b3734d0016891dd3b59e34e37
                    )

            )

    )

[templateeditor] => Array
    (
        [EXTRA_FILE] => Array
            (
                [controller/adminsettingscontroller.php] => Array
                    (
                        [expected] => 
                        [current] => 8dea5e7bdf423cfda892d68791859beaa689b45a5ccee4d46e4c7937d06777ad9f766c98c29995dae6a2ec370b34601043f18180123e2f69ae3a116637fafc1c
                    )

                [http/mailtemplateresponse.php] => Array
                    (
                        [expected] => 
                        [current] => e09a5dfd9bc719ea04c1876fae94fd539b060ba8b1a9a01e043002defca53861678bc14f3b625c376546cc9aa5135528031696530017036d2337459aa876cc42
                    )

                [lib/adminpanel.php] => Array
                    (
                        [expected] => 
                        [current] => c4eaf76cdd3b4eacd55ee599975b31e689be142237ee148be4b80e61527326a5876d4e28e3c2fdb8f43e43cfbe43b5c04bb567e3492357ad090c680b56024ca8
                    )

                [lib/mailtemplate.php] => Array
                    (
                        [expected] => 
                        [current] => 0a1e1859940f929f45a94f8280a2daf6f924be4e1ea82fdc6dbb59e12fb8aaf8075d66c9cb04ef40928636d16424861ae9b08440354b009115e8662753e4ca14
                    )

                [app/templateeditor.php] => Array
                    (
                        [expected] => 
                        [current] => 36ad0ed56162c9e4fc571daf1947081687a80b565e5137202e2f7eab06d6431329bdeec18c54bb2949e59965115177319417a6df765e81f0ebc40d5b69b146c3
                    )

            )

    )

[files_external] => Array
    (
        [EXTRA_FILE] => Array
            (
                [3rdparty/Dropbox/OAuth.php] => Array
                    (
                        [expected] => 
                        [current] => cc1af021373e74c5a0531b81240740e11d88bad38890155a1ac41e875cb26e35e1eb0a08153454bf96eae27b3a34f600fafa76b58d85553b6604a5358954bbde
                    )

                [3rdparty/Dropbox/API.php] => Array
                    (
                        [expected] => 
                        [current] => a6866ef3ceeb26d9d4b2ccc343aeaf626c82f03e279962bc7d761a68e87e5a7916ff0bcf7a350e20889557336ed9c5dd1651cfe513fa04bb8a03cd6d8f9cc484
                    )

                [3rdparty/Dropbox/autoload.php] => Array
                    (
                        [expected] => 
                        [current] => 7f831eb7adb5343ff9790428b51a62ce94b1c34385fec7984e45afbf54cf55119650772045ac6f7409d15582e07152ace6d64f3dae5a9a9281e9ee0714b9d5b7
                    )

                [3rdparty/Dropbox/OAuth/PEAR.php] => Array
                    (
                        [expected] => 
                        [current] => 5d11f888cda6871139a76dcbee9a5856a75706fad54a8152ff1ea6b8a207ba959e2c2ebab9e8aa6635ad523d8846ba2d15d8fdf9e52459a02201b3b31735b25b
                    )

                [3rdparty/Dropbox/OAuth/Curl.php] => Array
                    (
                        [expected] => 
                        [current] => fd22aca4aec936b6b81693bc67738e08a0110720c471059ed0240568451b18f51fc79bb9619d81b9ace9161775fe2d01d81a2adfdda43986090d7e6b02a1c10f
                    )

                [3rdparty/Dropbox/OAuth/PHP.php] => Array
                    (
                        [expected] => 
                        [current] => 225553fde870e8bccaf98e52ff61a28da323ca17383a474c096394babd943601e07caa4658fbcd01b0c8ac1396c4c9ae1b79c3c472c1683d0b8b3bc5f115063a
                    )

                [3rdparty/Dropbox/OAuth/Wordpress.php] => Array
                    (
                        [expected] => 
                        [current] => 1b1fd11e0753b9dc0b0b5393d0618896052bb48115c2ac09640c66157aa3848d52a1779de23cdcd98d37d8596be5403edb6891998bfa2cabdc2a05a713742c4f
                    )

                [3rdparty/Dropbox/OAuth/Zend.php] => Array
                    (
                        [expected] => 
                        [current] => 108bfc910b5258a328fdd1ef12b99ae94cceb4f3a785770f15b89564e0f326fd86dda3593f085dfa1dd37ad78547ae5f7c788979d6c9843975b4dced9111cacf
                    )

                [3rdparty/Dropbox/OAuth/ca-bundle.pem] => Array
                    (
                        [expected] => 
                        [current] => 90f17bf35259a2a3e385d7bfcf4d0244bd94b572835864c33f6a2f30651445373cf5840e5f811ae8c3914e2fcaab63c36bfc5d49d75ad9f37fdf682e6dd6e847
                    )

                [3rdparty/Dropbox/OAuth/Consumer/Dropbox.php] => Array
                    (
                        [expected] => 
                        [current] => bc98245ac1623cba9fe963b87190f3cec24832e7fd578808b494c6433dcaf2381ebf49f9a557d99c7ed30cc4f4c368ae71701f0a3ee0deadfabc61ef4ac55ee4
                    )

                [3rdparty/Dropbox/Exception.php] => Array
                    (
                        [expected] => 
                        [current] => 013f5ad46c6e74bce445883428f038e988d0389b4bfece7223a65210bb7ef5464dc7078aedf294671450fedb819980e8caef4ff499a3d1e78529b6b746b39d7e
                    )

                [3rdparty/Dropbox/Exception/Forbidden.php] => Array
                    (
                        [expected] => 
                        [current] => 886cc399ff1b940d9b51032589f2900473c99c617bcd2b1d6aa0fb053abbaf28e1d825556d1a19682324b276015356d96388ad85656308670cb4d083a603c674
                    )

                [3rdparty/Dropbox/Exception/RequestToken.php] => Array
                    (
                        [expected] => 
                        [current] => 613259eaa4ffe6c2618917dc37bbdc0551bd4034f2d43d581ec9a2024ec3dc7d31490f6a9cc970b02d4456358fa1c587f7afb420950434ebbed9d5a1df20d0a4
                    )

                [3rdparty/Dropbox/Exception/NotFound.php] => Array
                    (
                        [expected] => 
                        [current] => 96ab235b2bc835f60fbb996d390613df31866fe827b995c4d3348043313142851d44c36c8ebec93ed30f8488dc13e0a4e894fa1f57bc4e7c52effe13aec62a93
                    )

                [3rdparty/Dropbox/Exception/OverQuota.php] => Array
                    (
                        [expected] => 
                        [current] => cb8cec67ba77427dd1d56f63a3f27ec1e8ed271cbff39872d7caefe950b2d6d3ddec426380ae8135f9bc0df7dc04cf9e746e032812cf91a2f9f3991e0924c295
                    )

                [lib/Lib/Backend/Dropbox.php] => Array
                    (
                        [expected] => 
                        [current] => 90a7d702f8ca21a786b1918a63f37ef0cd9bc28ae6579ca6f3c9b9b197841005ccb96bfc449872d72933001bdf05e221d447fb4370f8a9030c7bb1190992dbfd
                    )

                [lib/Lib/Storage/Dropbox.php] => Array
                    (
                        [expected] => 
                        [current] => 4ea3dda86d2f6f75fed295b508be447a8d93cf425c107010cb060ec7845e6b5f2957db09c4d32c6c718257ffe039a042b114cc9b08e8a879e2c5ed7db8844f01
                    )

                [js/dropbox.js] => Array
                    (
                        [expected] => 
                        [current] => 1ac657c202d387f2cb99c4652241a82efb735b7c6ff3f0ee571c8207c7217d9d40431037afa8eb04d2560742edc9228292dc5c5668d21244edf49d7696731dd8
                    )

                [ajax/oauth1.php] => Array
                    (
                        [expected] => 
                        [current] => c302d7cd9ff1d43807116c555013facd4628db3fb763668372da68996ae407fcf3334edc8d599f097ac605f4fbe203fbce2fdac9c010c9311f61110e03ab603f
                    )

            )

    )

)