{"id":250,"date":"2019-01-09T18:02:57","date_gmt":"2019-01-09T17:02:57","guid":{"rendered":"https:\/\/rizzus.tech\/?p=250"},"modified":"2019-01-09T18:02:57","modified_gmt":"2019-01-09T17:02:57","slug":"unifi-cloudkey-restore","status":"publish","type":"post","link":"https:\/\/rizzus.tech\/?p=250","title":{"rendered":"Unifi CloudKey Restore"},"content":{"rendered":"\n<p>ssh to cloudKey <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/tmp\/\nwget <a href=\"https:\/\/help.ubnt.com\/hc\/en-us\/article_attachments\/360008640574\/CK_repair.js\">https:\/\/help.ubnt.com\/hc\/en-us\/article_attachments\/360008640574\/CK_repair.js<\/a><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">service unifi stop<br><br>mongod --dbpath \/usr\/lib\/unifi\/data\/db --smallfiles --logpath \/usr\/lib\/unifi\/logs\/server.log --repair<br><br>mongod --dbpath \/usr\/lib\/unifi\/data\/db --smallfiles --logpath \/usr\/lib\/unifi\/logs\/server.log --journal --fork (if you get an error try to remove --journaled )<br><br>mongo &lt; \/tmp\/CK_repair.js<br><br>mongod --dbpath \/usr\/lib\/unifi\/data\/db --smallfiles --logpath \/usr\/lib\/unifi\/logs\/server.log --shutdown<br><br>service unifi start<br><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>ssh to cloudKey cd \/tmp\/ wget https:\/\/help.ubnt.com\/hc\/en-us\/article_attachments\/360008640574\/CK_repair.js service unifi stopmongod &#8211;dbpath \/usr\/lib\/unifi\/data\/db &#8211;smallfiles &#8211;logpath \/usr\/lib\/unifi\/logs\/server.log&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/rizzus.tech\/?p=250\">Read the post<span class=\"screen-reader-text\">Unifi CloudKey Restore<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":251,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-250","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nocatnoidea","excerpt","zoom","full-without-featured","even","excerpt-0"],"_links":{"self":[{"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/posts\/250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rizzus.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=250"}],"version-history":[{"count":1,"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/posts\/250\/revisions"}],"predecessor-version":[{"id":252,"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/posts\/250\/revisions\/252"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/media\/251"}],"wp:attachment":[{"href":"https:\/\/rizzus.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rizzus.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rizzus.tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}