Old thread, but today I finally fixed this problem for my self.
Thanks to @tflidd I used the files_external:export command found the mount_id of the offending storage location, then used files_external:delete # to remove it.
The command for my docker container provided by linuxserver.io were:
To find the ID:
sudo -u abc php /config/www/nextcloud/occ files_external:export
[
{
"mount_id": 1,
"mount_point": "\/Local(unencrypted)",
"storage": "\\OC\\Files\\Storage\\FailedStorage",
"authentication_type": "null::null",
"configuration": {
"datadir": "\/ucs"
},
"options": {
"encrypt": true,
"previews": true,
"enable_sharing": false,
"filesystem_check_changes": 1,
"encoding_compatibility": false,
"readonly": false
},
"applicable_users": [],
"applicable_groups": [
"admin"
]
},
{
"mount_id": 2,
"mount_point": "\/Local",
"storage": "\\OC\\Files\\Storage\\Local",
"authentication_type": "null::null",
"configuration": {
"datadir": "\/ucs\/"
},
"options": {
"encrypt": true,
"previews": true,
"enable_sharing": false,
"filesystem_check_changes": 1,
"encoding_compatibility": false,
"readonly": false
},
"applicable_users": [
"me"
],
"applicable_groups": []
}
]
To remove it:
sudo -u abc php /config/www/nextcloud/occ files_external:delete 1
+----------+---------------------+-------------------------------------------+---------------------+------------------+---------+------------------+-------------------+
| Mount ID | Mount Point | Storage | Authentication Type | Configuration | Options | Applicable Users | Applicable Groups |
+----------+---------------------+-------------------------------------------+---------------------+------------------+---------+------------------+-------------------+
| 1 | /Local(unencrypted) | Unknown storage backend local_unencrypted | None | datadir: "\/ucs" | | | admin |
+----------+---------------------+-------------------------------------------+---------------------+------------------+---------+------------------+-------------------+
Delete this mount? [y/N] y
And that was it. Problem solved after almost a year.