Reply
New Member
Posts: 4
Registered: ‎08-21-2018

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

@AmazedMender16


Unfortunately the same problem.

Regards, Felix
Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

[ Edited ]

Hello @fwuerfel,

 

Sorry for the inconvenience

Could you try this script?

Removed since it was a test script.

 

 

Regards,

Glenn R.

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

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

@AmazedMender16


That happens:



2018-08-21 14:43:55 (1,69 MB/s) - ‘unifi_sysvinit_all.deb’ saved [66812202/66812202]

Vormals nicht ausgewähltes Paket unifi wird gewählt.
(Lese Datenbank ... 102588 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von unifi_sysvinit_all.deb ...
Entpacken von unifi (5.8.28-11052-1) ...
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von unifi:
unifi hängt ab von jsvc (>= 1.0.8); aber:
Paket jsvc ist nicht installiert.

dpkg: Fehler beim Bearbeiten des Paketes unifi (--install):
Abhängigkeitsprobleme - verbleibt unkonfiguriert
Trigger für ureadahead (0.100.0-20) werden verarbeitet ...
Trigger für systemd (237-3ubuntu10.3) werden verarbeitet ...
Fehler traten auf beim Bearbeiten von:
unifi
-e
########################################
# An error occurred. Aborting script.. #
########################################

root@dg-ubuntu:~#


Thx Felix
Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts - Works on Ubuntu 18.04 and 16.04

Hello @fwuerfel,

 

May I remote in to check some things?

Please send me TV details on PM.

 

 

Regards,

Glenn R.

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

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Works on Ubuntu 18.04 and 16.04

Hello @AmazedMender16!!

 

Thank you so much for sharing your scripts!! They helped me resolve all the issues I was having with my Controller installation. Indeed terrific work!!

 

Best!!

Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Works on Ubuntu 18.04 and 16.04

Hello @shelha,

 

Thank you for your kind words!

Glad my scripts helped out out!

 

 

Regards,

Glenn R.

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

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Works on Ubuntu 18.04 and 16.04

This worked perfectly for me!! Very nice bash scripting skills my friend.

Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Works on Ubuntu 18.04 and 16.04

Hello @rmgainey,

 

Thank you for your kind words!

Glad the script helped you out!

 

 

Regards,

Glenn R.

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

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Works on Ubuntu 18.04 and 16.04

Hi,

 

Thanks a lot for this thread @AmazedMender16 ! It Helped like hell Man Happy

 

I want to mention that I had the STUN problem that I solved by changing the IP of my controller since it was on a floating IP and it has to be on the root IP of the server to work ! (See Quote below)


@slooffmaster wrote:
Do keep in mind that if you are using a DO floating IP address attached to your controller the STUN connection will always fail.

 

Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Works on Ubuntu 18.04 and 16.04

Hello @jicao,

 

Glad the script helped you out, always nice to hear!

 

 

Regards,

Glenn R.

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

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Works on Ubuntu 18.04 and 16.04

Really appreciate the community in here! So many helpful threads and members.  My Ubuntu VM I use to host the Unifi controller crashed after a power loss and I couldn't stand it back up to save my life.  I used 16.04 previously and tried installing the controller on the newer 18.04 but after a couple unsucessful attempts with incorrect versions of MongoDB and Java I was wasting time.  I decided to give Glenn's Unifi 5.8.28 - 18.04 script a try and PRESTO no trouble, no hassle, no more forum searching.

 

Glenn,  thank you for taking the time to compile and distibute these scripts! You are a gentlemen and a scholar!

 

 

Thanks, 

 

 

Joel

Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Works on Ubuntu 18.04 and 16.04

Hello @joel-davis,

 

Glad it helped you out, thank you so much for your kind words!!

 

 

Regards,

Glenn R.

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

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Works on Ubuntu 18.04 and 16.04

You saved me some time troubleshooting mongoDB issues - it it's not going to be such a late night!. Thank you!
Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Works on Ubuntu 18.04 and 16.04

Hello @gmgartner,

 

Glad that I saved you some valuable time!

 

 

Regards,

Glenn R.

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

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Works on Ubuntu 18.04 and 16.04

Thanks so much! you are a life (and time...) saver...Hurray

Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Works on Ubuntu 18.04 and 16.04

Hello @Harelsh,

 

You're welcome!

Glad it saved you Man Tongue

 

 

Regards,

Glenn R.

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

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Works on Ubuntu 18.04 and 16.04

Wish I could kudo it twice! Thumbsup

Rescued my controller after an Ubuntu server update killed it - Thanks.

Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Works on Ubuntu 18.04 and 16.04

[ Edited ]

Hello @KentHomeCinema,

 

Thank you for your kind words!

I'm glad that I was able to rescue your server Man Tongue Ubnt Banana

 

 

Regards,

Glenn R.

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

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Works on Ubuntu 18.04 and 16.04

[ Edited ]

I've been trying to get Ubiquiti to work in a virtualized Ubuntu Server 18.04 but no matter what I do, I can't get it to work. Then I came across this script, which claims at the end that unifi is running, but I still cannot access it.

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

 UniFi 5.8.28 has been installed successfully
 Now checking UniFi system status

 TIP: Press CTRL+C to exit UniFi system status!

 Author   | 
 Email    | 
 Website  | 

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



● unifi.service - unifi
   Loaded: loaded (/lib/systemd/system/unifi.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2018-08-29 10:40:37 CEST; 19s ago
 Main PID: 18802 (jsvc)
    Tasks: 24 (limit: 1097)
   CGroup: /system.slice/unifi.service
           ├─18802 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-oracle/jre -cp /usr/share/java/commons-daemon.
           ├─18803 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-oracle/jre -cp /usr/share/java/commons-daemon.
           ├─18804 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-oracle/jre -cp /usr/share/java/commons-daemon.
           └─19789 /usr/lib/jvm/java-8-oracle/jre/bin/java -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Dapple.awt

Aug 29 10:39:34 ubuntu systemd[1]: Starting unifi...
Aug 29 10:39:34 ubuntu unifi.init[18716]:  * Starting Ubiquiti UniFi Controller unifi
Aug 29 10:40:37 ubuntu unifi.init[18716]:    ...fail!
Aug 29 10:40:37 ubuntu systemd[1]: Started unifi.

The log is (still) filled with

[2018-08-29 10:43:38,221] <main> WARN  system - reload system.properties failed: file not found
[2018-08-29 10:43:47,329] <UniFi> ERROR system - [exec] error, rc=255, cmdline=[/usr/lib/jvm/java-8-oracle/jre/bin/java, -Dfile.encoding=UTF-8, -Djava.awt.headless=true, -Dapple.awt.UIElement=true, -Xmx1024M, -XX:ErrorFile=/usr/lib/unifi/logs/hs_err_pid%p.log, -jar, /usr/lib/unifi/lib/ace.jar, start]
[2018-08-29 10:43:49,127] <main> WARN  system - reload system.properties failed: file not found
[2018-08-29 10:43:58,209] <UniFi> ERROR system - [exec] error, rc=255, cmdline=[/usr/lib/jvm/java-8-oracle/jre/bin/java, -Dfile.encoding=UTF-8, -Djava.awt.headless=true, -Dapple.awt.UIElement=true, -Xmx1024M, -XX:ErrorFile=/usr/lib/unifi/logs/hs_err_pid%p.log, -jar, /usr/lib/unifi/lib/ace.jar, start]
[2018-08-29 10:44:00,183] <main> WARN  system - reload system.properties failed: file not found
[2018-08-29 10:44:09,274] <UniFi> ERROR system - [exec] error, rc=255, cmdline=[/usr/lib/jvm/java-8-oracle/jre/bin/java, -Dfile.encoding=UTF-8, -Djava.awt.headless=true, -Dapple.awt.UIElement=true, -Xmx1024M, -XX:ErrorFile=/usr/lib/unifi/logs/hs_err_pid%p.log, -jar, /usr/lib/unifi/lib/ace.jar, start]
[2018-08-29 10:44:11,146] <main> WARN  system - reload system.properties failed: file not found


Is this because I've been trying to get unifi to work using the numerous solutions posted on this forum, that things might have gotten a bit messed up?

Addition: systemctl -a | grep unifi says unifi is running, systemctl -a | grep mongod isn't showing anything.

 

Senior Member
Posts: 10,402
Registered: ‎08-04-2017
Kudos: 1691
Solutions: 508

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Works on Ubuntu 18.04 and 16.04

Hello @bartgrefte,

 

That could have messed up things yeah.. could you try to create a new VM and run the script?

 

 

 

Regards,

Glenn R.

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