{"id":573,"date":"2020-10-20T13:01:42","date_gmt":"2020-10-20T18:01:42","guid":{"rendered":"https:\/\/www.scheh.com\/?p=573"},"modified":"2021-02-23T14:28:25","modified_gmt":"2021-02-23T19:28:25","slug":"use-unifi-with-mongodb-above-4-0-0","status":"publish","type":"post","link":"https:\/\/www.scheh.com\/index.php\/2020\/10\/20\/use-unifi-with-mongodb-above-4-0-0\/","title":{"rendered":"Use Unifi with Mongodb above 4.0.0"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"573\" class=\"elementor elementor-573\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1840ac0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1840ac0\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-768378f4\" data-id=\"768378f4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-809c00e elementor-widget elementor-widget-text-editor\" data-id=\"809c00e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><\/p>\n<pre>If you're trying to install the unifi controller on linux and you want to use a version of Mongodb above 4.0.0, like 4.4.0, then do the following as su.<\/pre>\n<p><\/p>\n<p><\/p>\n<p>You cannot use apt install unifi. You have to get the download link for the latest controller from <a href=\"https:\/\/www.ui.com\/download\/unifi\/unifi-ap\">https:\/\/www.ui.com\/download\/unifi\/unifi-ap<\/a><\/p>\n<p><\/p>\n<p><\/p>\n<p>Once you&#8217;ve got that link url, move into your home folder and download it from that link, something like this:<\/p>\n<p><\/p>\n<p><\/p>\n<pre>wget https:\/\/dl.ui.com\/unifi\/6.0.28\/unifi_sysvinit_all.deb<\/pre>\n<p><\/p>\n<p><\/p>\n<p>Install it:<\/p>\n<p><\/p>\n<p><\/p>\n<pre>dpkg --ignore-depends=mongodb-org-server -i unifi_sysvinit_all.deb<\/pre>\n<p><\/p>\n<p><\/p>\n<p>Fix the broken packages:<\/p>\n<ul>\n<li>vim commands are accessible by hitting :<\/li>\n<li>hit the insert key or i to edit<\/li>\n<li>hit the ESC key to exit editing<\/li>\n<li>to save and exit, :wq<\/li>\n<li>to exit and not save, :q!<\/li>\n<li>to save, :w<\/li>\n<\/ul>\n<p><\/p>\n<p><\/p>\n<pre>vim \/var\/lib\/dpkg\/status<\/pre>\n<p><\/p>\n<p><\/p>\n<p>Find this location:<\/p>\n<p><\/p>\n<p><\/p>\n<pre>Package: unifi<br>Status: install ok installed<\/pre>\n<p><\/p>\n<p><\/p>\n<p>Remove the maximum Mondodb limitation so that the Depends looks something like this:<\/p>\n<p><\/p>\n<p><\/p>\n<pre>Depends: binutils, coreutils, adduser, libcap2, curl, mongodb-server (>= 2.4.10) | mongodb-10gen (>= 2.4.14) | mongodb-org-server (>= 2.6.0), mongodb-server | mongodb-10gen | mongodb-org-server, java8-runtime-headless, jsvc (>= 1.0.8), logrotate<\/pre>\n<p><\/p>\n<p><\/p>\n<p>You should be able to log in and configure or restore your new controller.<\/p>\n<p>You may to need rerun acme.sh if you use it for SSL certificates, more can be found&nbsp;<a href=\"https:\/\/www.scheh.com\/index.php\/2019\/04\/03\/reblog-of-securing-ubiquiti-unifi-cloud-key-with-lets-encrypt-ssl-and-automatic-dns-01-challenge\/\" target=\"_blank\">here<\/a>&nbsp;or modify and run the command below:<\/p>\n<pre>acme.sh --force --issue --dns dns_cf -d unifi.naschenweng.info --pre-hook \"touch \/etc\/ssl\/private\/cert.tar; tar -zcvf \/root\/.acme.sh\/CloudKeySSL_`date +%Y-%m-%d_%H.%M.%S`.tgz \/etc\/ssl\/private\/*\" --fullchainpath \/etc\/ssl\/private\/cloudkey.crt --keypath \/etc\/ssl\/private\/cloudkey.key --reloadcmd \"sh \/root\/.acme.sh\/cloudkey-renew-hook.sh\"<\/pre>\n<p><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re trying to install the unifi controller on linux and you want to use a version of Mongodb above 4.0.0, like 4.4.0, then do the following as su. You cannot use apt install unifi. You have to get the download link for the latest controller from https:\/\/www.ui.com\/download\/unifi\/unifi-ap Once you&#8217;ve got that link url, move [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-573","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3eyIP-9f","_links":{"self":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/posts\/573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/comments?post=573"}],"version-history":[{"count":3,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/posts\/573\/revisions"}],"predecessor-version":[{"id":665,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/posts\/573\/revisions\/665"}],"wp:attachment":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/media?parent=573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/categories?post=573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/tags?post=573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}