Поврежденные файлы или что это?

Добрый день, столкнулся с такой проблемой, есть внешнее хранилище подключенное через mount, через WEB файлы видно все ок. Но есть одна папка, которую можно скачать только если провалиться внутрь и оттуда скачать файлы, если качать файлы целой папкой, то он качает 1 файл и еще 1 файл выходит поврежденным. При этом если качать много папок и эта папка среди этих множеств, то доходя до этой папки сервер перестает ее архивировать и соотвественно перестает ее скачивать.
Пытался сделать сканирование внешней папки следующим способом occ files:scan user --path=/user/files/external но не помогло. Куда посмотреть что бы понять что вообще стало с данной папкой?

Good afternoon, I ran into such a problem, there is an external storage connected via mount, through WEB files everything is ok. But there is one folder that can be downloaded only if you fall inside and download files from there, if you download files with a whole folder, then it downloads 1 file and another file comes out damaged. Moreover, if you download a lot of folders and this folder is among these sets, then when it reaches this folder, the server stops archiving it and, accordingly, stops downloading it.
Tried to scan an external folder in the following way occ files: scan user --path = / user / files / external but did not help. Where to look to understand what has become of this folder?

Вот что пишет в логирование, предполагаю проблема в этом файле.
OCP\Lock\LockedException: “Nextcloud/…/…/…/IMG_6243_1.jpg” is locked

“is locked” часто означает что кто-то этот файл “открыл”.

Попробый отключить все сессии юзеров, которым разрешен доступ к этому файлу.
Это должно эго unlock…

эмм, а как это сделать честно не знаю :frowning: и найти пока не смог.

Settings -> Personal -> Security -> Devices & Sessions (on the bottom)

EDIT:
Хотя это сессии только одного пользователя… Как показать все не знаю…

Помог вот этот способ.

Manually disable locking state:

  • put Nextcloud in maintenance mode: edit config/config.php and change this line:
    'maintenance' => true,
  • Empty table oc_file_locks : Use tools such as phpmyadmin or connect directly to your database and run (the default table prefix is oc_ , this prefix can be different or even empty):
    DELETE FROM oc_file_locks WHERE 1
  • disable maintenance mode (undo first step).
  • Make sure your cron-jobs run properly (you admin page tells you when cron ran the last time): https://docs.nextcloud.org/server/13/admin_manual/configuration_server/background_jobs_configuration.html

Вот ссылка на тему вдруг интересно все почитать.