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: 23,663
Registered: ‎08-04-2017
Kudos: 4483
Solutions: 1162

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: 23,663
Registered: ‎08-04-2017
Kudos: 4483
Solutions: 1162

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?

Highlighted
Senior Member
Posts: 23,663
Registered: ‎08-04-2017
Kudos: 4483
Solutions: 1162

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: 23,663
Registered: ‎08-04-2017
Kudos: 4483
Solutions: 1162

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: 23,663
Registered: ‎08-04-2017
Kudos: 4483
Solutions: 1162

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: 23,663
Registered: ‎08-04-2017
Kudos: 4483
Solutions: 1162

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
Senior Member
Posts: 23,663
Registered: ‎08-04-2017
Kudos: 4483
Solutions: 1162

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
Reply