Nextcloudのファイルがロックされて困る

Nextcloud clientがエラーを出力するようになりました.アイコンも赤に><
エラーメッセージはこんな感じでロックが掛かっているようですが心当たりはありません.サーバのログも同様でした.

 2018/05/18 20:57:58,                     Documents/somefile.md,                     Nextcloud,Error transferring https://files.matoken.org/remote.php/dav/files/matoken/Documents/somefile.md - server replied: Locked ("Documents/somefile.md" is locked)

DuckDuckGo 🏛️で検索して以下のフォーラムを見つけました.

参考にdbでlockが1になってるものを消したら今回は直りました.
occ files:scanは今回効かなかったです.

$ sudo -u www-data php ./occ maintenance:mode --on
$ mysql -u nextcloud -p -D nextcloud -e 'delete from oc_file_locks where 1'
Enter password: ***********
$ sudo -u www-data php ./occ maintenance:mode --off

ちょっとconfig.phpを見直したりしてみようと思います.

環境

client

$ lsb_release -d
Description:    Debian GNU/Linux unstable (sid)
$ uname -m
x86_64
$ dpkg-query -W nextcloud-client
nextcloud-client        2.3.2-bata1-1

server

$ lsb_release -d
Description:    Debian GNU/Linux 9.4 (stretch)
$ uname -m
x86_64
$ sudo -u www-data php ./occ -V
Nextcloud 13.0.2

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)