{"id":85,"date":"2020-02-04T13:43:27","date_gmt":"2020-02-04T13:43:27","guid":{"rendered":"http:\/\/remoteapple.com\/?p=85"},"modified":"2020-02-04T13:44:07","modified_gmt":"2020-02-04T13:44:07","slug":"resetting-unifi-cloud-key-after-power-failure","status":"publish","type":"post","link":"https:\/\/remoteapple.com\/?p=85","title":{"rendered":"Resetting Unifi Cloud Key after power failure"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Occasionally we suffer a power failure and my Unifi Cloud Key does not come back up properly. Sometimes it is because I shut off power to the sockets to change a face plate. In this case, I should really shut down the unifi service first, but lets face it. I will always forget.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is a shame as this service should be far more robust and not require manual intervention when this situation occurs, but it does.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To fix the problem of the Cloud Key becoming unavailable just SSH in and fire off the following commands to reset the MongoDB Database:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">service unifi stop<br>mongod --repair --dbpath \/srv\/unifi\/data\/db<br>service unifi start<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">I found this solution on this thread:<br><a href=\"https:\/\/community.ubnt.com\/t5\/UniFi-Wireless\/CloudKey-stuck\/td-p\/1601984\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/community.ubnt.com\/t5\/UniFi-Wireless\/CloudKey-stuck\/td-p\/1601984<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Occasionally we suffer a power failure and my Unifi Cloud Key does not come back up properly. Sometimes it is because I shut off power to the sockets to change a face plate. In this case, I should really shut down the unifi service first, but lets face it. I will always forget. It is [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[4,6],"tags":[],"class_list":["post-85","post","type-post","status-publish","format-standard","category-knowledge-base","category-networks","entry"],"_links":{"self":[{"href":"https:\/\/remoteapple.com\/index.php?rest_route=\/wp\/v2\/posts\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/remoteapple.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/remoteapple.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/remoteapple.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/remoteapple.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=85"}],"version-history":[{"count":0,"href":"https:\/\/remoteapple.com\/index.php?rest_route=\/wp\/v2\/posts\/85\/revisions"}],"wp:attachment":[{"href":"https:\/\/remoteapple.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/remoteapple.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/remoteapple.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}