Reply
New Member
Posts: 7
Registered: ‎10-30-2018

Re: MongoDB failing to install (For UniFi Controller) - Ubuntu 18.04

So do I need to have both the http and https ports open in order to run and configure the system?

 

Currently I'm not at the location where Ubuntu is running so I only have one port on the router and won't be able to change until I go there again.

Senior Member
Posts: 24,032
Registered: ‎08-04-2017
Kudos: 4550
Solutions: 1183

Re: MongoDB failing to install (For UniFi Controller) - Ubuntu 18.04

Hello @rmkleemann,

 

What are your plans for the controller?

Do you want to adopt remote devices to it or your just want to configure it remotely?

 


Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 7
Registered: ‎10-30-2018

Re: MongoDB failing to install (For UniFi Controller) - Ubuntu 18.04

Great question. In fact, I am not at all familiar with this system and honestly I don't know how it works. I came across it while doing searches in Google.

 

I've been looking for an NVR/Surveillance system that can run on Linux. I'm running Ubuntu server on a machine at a house with 3 security cameras. I tried Shinobi and Zoneminder but also wanted to try other alternatives.

 

Is Unifi used for this purpose? Is the controller what captures streams from the cameras and makes it available via web and also to mobile devices?

 

If I'm barking up the wrong tree please let me know so I can continue on researching for other tools.

 

Thank you for your great help!

Senior Member
Posts: 24,032
Registered: ‎08-04-2017
Kudos: 4550
Solutions: 1183

Re: MongoDB failing to install (For UniFi Controller) - Ubuntu 18.04

Hello @rmkleemann,


The UniFi SDN Controller is to manage UniFi devices ( UAPs, USW, USGs )

If you have UniFi Video devices you will need to install the UniFi Video application.

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 7
Registered: ‎10-30-2018

Re: MongoDB failing to install (For UniFi Controller) - Ubuntu 18.04

I see... so it cannot be used as a controller to manage/capture streams from other generic cameras?

Senior Member
Posts: 24,032
Registered: ‎08-04-2017
Kudos: 4550
Solutions: 1183

Re: MongoDB failing to install (For UniFi Controller) - Ubuntu 18.04

Hello @rmkleemann,

 

No, it's designed for UniFi Video Devices

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 7
Registered: ‎10-30-2018

Re: MongoDB failing to install (For UniFi Controller) - Ubuntu 18.04

ok thank you for the clarification and sorry for my misunderstanding.

 

I guess I need to clean up the install then. What's the best way to remove everything that's been installed by the script?

Senior Member
Posts: 24,032
Registered: ‎08-04-2017
Kudos: 4550
Solutions: 1183

Re: MongoDB failing to install (For UniFi Controller) - Ubuntu 18.04

[ Edited ]

Hello @rmkleemann,

 

No problem, the following command will uninstall everything that the script installed.

apt purge unifi -y
apt purge mongod* -y
apt purge openjdk* -y
rm /etc/apt/sources.list.d/mongodb-org-3.4.list
rm /etc/apt/sources.list.d/glennr-install-script.list
rm /etc/apt/sources.list.d/100-ubnt-unifi.list
apt-get autoremove -y; apt-get autoclean -y

Run these commands aswell if the script also created the swap file.

swapoff /swapfile
rm /swapfile

 

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 6
Registered: ‎01-21-2018
Kudos: 5

Re: MongoDB failing to install (For UniFi Controller) - Ubuntu 18.04

Someone please give this man (AmazedMender16) a cookie.
I can't believe Unifi's official deb is so broken.

New Member
Posts: 1
Registered: ‎02-28-2019

Re: MongoDB failing to install (For UniFi Controller) - Ubuntu 18.04

Hello @AmazedMender16 ,

 

I have stuck in impass situation with the installation of UNIFI controller on UBUNTU - Bionic 18.04, I have followed your instructions on executing your script. (Mentioned in your post).

 

However, I have been getting this below error, could you pelase advise me on how to allievate error.

 

 

########################################################
# #
# UniFi dependencies has been installed successfully! #
# Installing UniFi Controller 5.10.19! #
# #
########################################################

--2019-02-28 17:23:14-- https://dl.ui.com/unifi/5.10.19/unifi_sysvinit_all.deb
Resolving dl.ui.com (dl.ui.com)... 99.84.10.169
Connecting to dl.ui.com (dl.ui.com)|99.84.10.169|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 81226348 (77M) [application/x-debian-package]
Saving to: ‘unifi_sysvinit_all.deb’

unifi_sysvinit_all.deb 100%[====================================================>] 77.46M 4.14MB/s in 20s

2019-02-28 17:23:34 (3.92 MB/s) - ‘unifi_sysvinit_all.deb’ saved [81226348/81226348]

(Reading database ... 166892 files and directories currently installed.)
Preparing to unpack unifi_sysvinit_all.deb ...
Unpacking unifi (5.10.19-11646-1) ...
dpkg: dependency problems prevent configuration of unifi:
unifi depends on mongodb-server (>= 2.4.10) | mongodb-10gen (>= 2.4.14) | mongodb-org-server (>= 2.6.0); however:
Package mongodb-server is not installed.
Package mongodb-10gen is not installed.
Package mongodb-org-server is not installed.
unifi depends on mongodb-server (<< 1:3.6.0) | mongodb-10gen (<< 3.6.0) | mongodb-org-server (<< 3.6.0); however:
Package mongodb-server is not installed.
Package mongodb-10gen is not installed.
Package mongodb-org-server is not installed.

dpkg: error processing package unifi (--install):
dependency problems - leaving unconfigured
Processing triggers for systemd (237-3ubuntu10.13) ...
Processing triggers for ureadahead (0.100.0-20) ...
Errors were encountered while processing:
unifi

###############################################################

An error occurred. Aborting script..
Please contact Glenn R. (AmazedMender16) on the Community Forums!

 

Senior Member
Posts: 24,032
Registered: ‎08-04-2017
Kudos: 4550
Solutions: 1183

Re: MongoDB failing to install (For UniFi Controller) - Ubuntu 18.04

Hello @Gsm-cloud-tech,

 

Run the following command, then run my script again

dpkg --remove --force-remove-reinstreq unifi

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 1
Registered: ‎03-27-2019

Re: MongoDB failing to install (For UniFi Controller) - Ubuntu 18.04

Hi AmazedMender16,

 

I am having a very similar issues as @Gsm-cloud-tech.. I also ran the command :

dpkg --remove --force-remove-reinstreq unifi

 

and go the same result back when running the script.

 

Would you recommend removing everything and starting over?  Prior to that, I also ran the list of commands to remove all mongo.

 

########################################################
# #
# UniFi dependencies has been installed successfully! #
# Installing UniFi Controller 5.10.20! #
# #
########################################################

--2019-03-27 11:17:09-- https://dl.ui.com/unifi/5.10.20/unifi_sysvinit_all.deb
Resolving dl.ui.com (dl.ui.com)... 13.33.163.254
Connecting to dl.ui.com (dl.ui.com)|13.33.163.254|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 81243014 (77M) [application/x-debian-package]
Saving to: ‘unifi_sysvinit_all.deb’

unifi_sysvinit_all.deb 100%[============================================>] 77.48M 42.7MB/s in 1.8s

2019-03-27 11:17:11 (42.7 MB/s) - ‘unifi_sysvinit_all.deb’ saved [81243014/81243014]

Selecting previously unselected package unifi.
(Reading database ... 90597 files and directories currently installed.)
Preparing to unpack unifi_sysvinit_all.deb ...
Unpacking unifi (5.10.20-11657-1) ...
dpkg: dependency problems prevent configuration of unifi:
unifi depends on mongodb-server (>= 2.4.10) | mongodb-10gen (>= 2.4.14) | mongodb-org-server (>= 2.6.0); however:
Package mongodb-server is not installed.
Package mongodb-10gen is not installed.
Package mongodb-org-server is not installed.
unifi depends on mongodb-server (<< 1:3.6.0) | mongodb-10gen (<< 3.6.0) | mongodb-org-server (<< 3.6.0); however:
Package mongodb-server is not installed.
Package mongodb-10gen is not installed.
Package mongodb-org-server is not installed.

dpkg: error processing package unifi (--install):
dependency problems - leaving unconfigured
Processing triggers for systemd (237-3ubuntu10.15) ...
Processing triggers for ureadahead (0.100.0-20) ...
Errors were encountered while processing:
unifi

###############################################################

An error occurred. Aborting script..
Please contact Glenn R. (AmazedMender16) on the Community Forums!

 

Senior Member
Posts: 24,032
Registered: ‎08-04-2017
Kudos: 4550
Solutions: 1183

Re: MongoDB failing to install (For UniFi Controller) - Ubuntu 18.04

Hello @coleman74,

 

Welcome to the community!

 

Run the following commands.

dpkg --remove --force-remove-reinstreq unifi
apt purge mongo* openjdk* oracle*
apt clean; apt autoremove

Than run my script again.

 

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 1
Registered: ‎04-15-2019

Re: MongoDB failing to install (For UniFi Controller) - Ubuntu 18.04

Hola @AmazedMender16 

 

tengo el siguiente problema al ejecutar tu script en ubuntu 18.04 

 

nota: el error esta en la captura

 

 

error unifi.png
Highlighted
Senior Member
Posts: 24,032
Registered: ‎08-04-2017
Kudos: 4550
Solutions: 1183

Re: MongoDB failing to install (For UniFi Controller) - Ubuntu 18.04

Hello @tizan_stick,

 

Run the following commands, than run my script again.

rm /etc/apt/sources.list.d/sublime*
sed -i '/sublime/d' /etc/apt/sources.list

 

 

Regards,

Glenn R.

 

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 1
Registered: yesterday

Re: MongoDB failing to install (For UniFi Controller) - Ubuntu 18.04

Hello AmazedMender16,

 

i get the following error:

Ign:12 http://mirrors.edge.kernel.org/debian stretch/main Translation-en
Hit:13 http://mirrors.edge.kernel.org/debian stretch/contrib armhf Packages
Ign:13 http://mirrors.edge.kernel.org/debian stretch/contrib armhf Packages
Hit:14 http://mirrors.edge.kernel.org/debian stretch/contrib Translation-en
Ign:14 http://mirrors.edge.kernel.org/debian stretch/contrib Translation-en
Get:11 http://mirrors.edge.kernel.org/debian stretch/main armhf Packages [9,251 kB]
Err:12 http://mirrors.kernel.org/debian stretch/main Translation-en
  BZ2_bzread: /var/lib/apt/lists/partial/mirrors.kernel.org_debian_dists_stretch_main_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
Ign:12 http://mirrors.edge.kernel.org/debian stretch/main Translation-en
Hit:13 http://mirrors.edge.kernel.org/debian stretch/contrib armhf Packages
Ign:14 http://mirrors.edge.kernel.org/debian stretch/contrib Translation-en
Fetched 149 kB in 11s (12.8 kB/s)
Reading package lists... Done
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/glennr-pi-java.list:2 and /etc/apt/sources.list.d/glennr-pi-java.list:4
W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list.d/glennr-pi-java.list:1 and /etc/apt/sources.list.d/glennr-pi-java.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/glennr-pi-java.list:1 and /etc/apt/sources.list.d/glennr-pi-java.list:3
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/glennr-pi-java.list:1 and /etc/apt/sources.list.d/glennr-pi-java.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/glennr-pi-java.list:1 and /etc/apt/sources.list.d/glennr-pi-java.list:3
W: GPG error: http://ftp.nl.debian.org/debian stretch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY EF0F382A1A7B6500
W: The repository 'http://ftp.nl.debian.org/debian stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://mirrors.edge.kernel.org/debian stretch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY EF0F382A1A7B6500
W: The repository 'http://mirrors.kernel.org/debian stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Target Packages (ubiquiti/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list.d/100-ubnt.list:1 and /etc/apt/sources.list.d/ubnt.list:1
W: Target Packages (ubiquiti/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/100-ubnt.list:1 and /etc/apt/sources.list.d/ubnt.list:1
W: Target Translations (ubiquiti/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/100-ubnt.list:1 and /etc/apt/sources.list.d/ubnt.list:1
W: Target Translations (ubiquiti/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/100-ubnt.list:1 and /etc/apt/sources.list.d/ubnt.list:1
E: Failed to fetch http://mirrors.kernel.org/debian/dists/stretch/main/i18n/Translation-en  BZ2_bzread: /var/lib/apt/lists/partial/mirrors.kernel.org_debian_dists_stretch_main_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
E: Some index files failed to download. They have been ignored, or old ones used instead.
W: Target Packages (ubiquiti/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list.d/100-ubnt.list:1 and /etc/apt/sources.list.d/ubnt.list:1
W: Target Packages (ubiquiti/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/100-ubnt.list:1 and /etc/apt/sources.list.d/ubnt.list:1
W: Target Translations (ubiquiti/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/100-ubnt.list:1 and /etc/apt/sources.list.d/ubnt.list:1
W: Target Translations (ubiquiti/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/100-ubnt.list:1 and /etc/apt/sources.list.d/ubnt.list:1
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/glennr-pi-java.list:2 and /etc/apt/sources.list.d/glennr-pi-java.list:4
W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list.d/glennr-pi-java.list:1 and /etc/apt/sources.list.d/glennr-pi-java.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/glennr-pi-java.list:1 and /etc/apt/sources.list.d/glennr-pi-java.list:3
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/glennr-pi-java.list:1 and /etc/apt/sources.list.d/glennr-pi-java.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/glennr-pi-java.list:1 and /etc/apt/sources.list.d/glennr-pi-java.list:3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  netcat
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 8,962 B of archives.
After this operation, 32.8 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  netcat
E: There were unauthenticated packages and -y was used without --allow-unauthenticated

###############################################################

          An error occurred. Aborting script..
Please contact Glenn R. (AmazedMender16) on the Community Forums!


root@raspberrypi:/home/pi#

Sorry, but my linux skill not the best :-/

Many thanks in advance 

 

Senior Member
Posts: 24,032
Registered: ‎08-04-2017
Kudos: 4550
Solutions: 1183

Re: MongoDB failing to install (For UniFi Controller) - Ubuntu 18.04

Hello @Noxus,

 

Welcome to the community!

 

I will reach out to you via a PM!

 

 

Regards,
Glenn R.

 

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
Reply