{"id":1866,"date":"2018-05-19T00:53:09","date_gmt":"2018-05-18T15:53:09","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=1866"},"modified":"2018-05-19T00:53:09","modified_gmt":"2018-05-18T15:53:09","slug":"nextcloud-files-locked","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2018\/05\/19\/nextcloud-files-locked\/","title":{"rendered":"Nextcloud\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u30ed\u30c3\u30af\u3055\u308c\u3066\u56f0\u308b"},"content":{"rendered":"<p>Nextcloud client\u304c\u30a8\u30e9\u30fc\u3092\u51fa\u529b\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0e\u30a2\u30a4\u30b3\u30f3\u3082\u8d64\u306b&gt;&lt;<br \/>\n\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u30ed\u30c3\u30af\u304c\u639b\u304b\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u304c\u5fc3\u5f53\u305f\u308a\u306f\u3042\u308a\u307e\u305b\u3093\uff0e\u30b5\u30fc\u30d0\u306e\u30ed\u30b0\u3082\u540c\u69d8\u3067\u3057\u305f\uff0e<\/p>\n<div class=\"codehilite\">\n<pre><span><\/span> 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 (&quot;Documents\/somefile.md&quot; is locked)\r\n<\/pre>\n<\/div>\n<p><a href=\"https:\/\/duckduckgo.com\/\" title=\"DuckDuckGo\">DuckDuckGo<\/a>\u3067\u691c\u7d22\u3057\u3066\u4ee5\u4e0b\u306e\u30d5\u30a9\u30fc\u30e9\u30e0\u3092\u898b\u3064\u3051\u307e\u3057\u305f\uff0e<\/p>\n<ul>\n<li><a href=\"https:\/\/help.nextcloud.com\/t\/file-is-locked-how-to-unlock\/1883\/28\" title=\"File is locked - how to unlock - howto - Nextcloud community\">File is locked &#8211; how to unlock &#8211; howto &#8211; Nextcloud community<\/a><\/li>\n<\/ul>\n<p>\u53c2\u8003\u306bdb\u3067lock\u304c1\u306b\u306a\u3063\u3066\u308b\u3082\u306e\u3092\u6d88\u3057\u305f\u3089\u4eca\u56de\u306f\u76f4\u308a\u307e\u3057\u305f\uff0e<br \/>\n<code>occ files:scan<\/code>\u306f\u4eca\u56de\u52b9\u304b\u306a\u304b\u3063\u305f\u3067\u3059\uff0e<\/p>\n<div class=\"codehilite\">\n<pre><span><\/span>$ sudo -u www-data php .\/occ maintenance:mode --on\r\n$ mysql -u nextcloud -p -D nextcloud -e <span class=\"s1\">&#39;delete from oc_file_locks where 1&#39;<\/span>\r\nEnter password: ***********\r\n$ sudo -u www-data php .\/occ maintenance:mode --off\r\n<\/pre>\n<\/div>\n<p>\u3061\u3087\u3063\u3068<code>config.php<\/code>\u3092\u898b\u76f4\u3057\u305f\u308a\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\uff0e<\/p>\n<h2 id=\"_1\">\u74b0\u5883<\/h2>\n<h3 id=\"client\">client<\/h3>\n<div class=\"codehilite\">\n<pre><span><\/span>$ lsb_release -d\r\nDescription:    Debian GNU\/Linux unstable <span class=\"o\">(<\/span>sid<span class=\"o\">)<\/span>\r\n$ uname -m\r\nx86_64\r\n$ dpkg-query -W nextcloud-client\r\nnextcloud-client        <span class=\"m\">2<\/span>.3.2-bata1-1\r\n<\/pre>\n<\/div>\n<h3 id=\"server\">server<\/h3>\n<div class=\"codehilite\">\n<pre><span><\/span>$ lsb_release -d\r\nDescription:    Debian GNU\/Linux <span class=\"m\">9<\/span>.4 <span class=\"o\">(<\/span>stretch<span class=\"o\">)<\/span>\r\n$ uname -m\r\nx86_64\r\n$ sudo -u www-data php .\/occ -V\r\nNextcloud <span class=\"m\">13<\/span>.0.2\r\n<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Nextcloud client\u304c\u30a8\u30e9\u30fc\u3092\u51fa\u529b\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0e\u30a2\u30a4\u30b3\u30f3\u3082\u8d64\u306b&gt;&lt; \u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u30ed\u30c3\u30af\u304c\u639b\u304b\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u304c\u5fc3\u5f53\u305f\u308a\u306f\u3042\u308a\u307e\u305b\u3093\uff0e\u30b5\u30fc\u30d0\u306e\u30ed\u30b0\u3082\u540c\u69d8\u3067\u3057\u305f\uff0e 2018\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1866","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/1866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=1866"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/1866\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=1866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=1866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=1866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}