Reply
Ubiquiti Employee
Posts: 9,060
Registered: ‎01-28-2013
Kudos: 15399
Solutions: 599
Contributions: 20

UniFi Network Controller 5.10.12 Stable has been released

Please see our release post HERE.

 

This release follows our staggered release structure which means it will initially be available via this blog post only. It will be posted to the download site and official repos in the near future. If you aren't familiar with our release structure, please take a moment to read our post HERE. Thanks!

Emerging Member
Posts: 46
Registered: ‎04-29-2016
Kudos: 23
Solutions: 2

Re: UniFi Network Controller 5.10.12 Stable has been released

Running it on my home network. So far so good!
New Member
Posts: 30
Registered: ‎07-26-2016
Kudos: 2

Re: UniFi Network Controller 5.10.12 Stable has been released

@UBNT-MikeD, can you go in to greater detail on the security improvements in 5.10.12? Is there a CVE it specifically addresses?

Emerging Member
Posts: 53
Registered: ‎10-10-2017
Kudos: 19

Re: UniFi Network Controller 5.10.12 Stable has been released

Anyone successfully upgrade the controller on their Raspberry Pi? 

Established Member
Posts: 969
Registered: ‎02-12-2013
Kudos: 246
Solutions: 89

Re: UniFi Network Controller 5.10.12 Stable has been released

@Hypnosis4U2NV
There's a bunch of posts about Raspberry Pi in the Candidate thread - you need to upgrade Java before trying to upgrade:
https://community.ubnt.com/t5/UniFi-Wireless/UniFi-Network-Controller-5-10-12-Stable-Candidate-has-b...
Ubiquiti Employee
Posts: 9,060
Registered: ‎01-28-2013
Kudos: 15399
Solutions: 599
Contributions: 20

Re: UniFi Network Controller 5.10.12 Stable has been released


@Zetto wrote:

@UBNT-MikeD, can you go in to greater detail on the security improvements in 5.10.12? Is there a CVE it specifically addresses?


Sorry, I cannot at this time. We're planning to make an announcement in the coming weeks though. I think the plan is to include the CVE in the announcement.

 

Cheers,

Mike

Emerging Member
Posts: 53
Registered: ‎10-10-2017
Kudos: 19

Re: UniFi Network Controller 5.10.12 Stable has been released

I updated Java, but the normal way to update the controller doesn't work with 'sudo apt-get update' and 'sudo apt-get upgrade'.

 

Performed the manual update via these commands

wget https://dl.ubnt.com/unifi/5.10.12-20644d4901/unifi_sysvinit_all.deb 
sudo dpkg -i unifi_sysvinit_all.deb
rm unifi_sysvinit_all.deb

All I got was this error message

pi@Unifi_Controller:~ $ wget https://dl.ubnt.com/unifi/5.10.12-20644d4901/unifi_sysvinit_all.deb
--2019-02-06 19:42:07--  https://dl.ubnt.com/unifi/5.10.12-20644d4901/unifi_sysvinit_all.deb
Resolving dl.ubnt.com (dl.ubnt.com)... 13.33.75.5
Connecting to dl.ubnt.com (dl.ubnt.com)|13.33.75.5|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 81233330 (77M) [application/x-debian-package]
Saving to: ‘unifi_sysvinit_all.deb’

unifi_sysvinit_all.deb               100%[====================================================================>]  77.47M  3.65MB/s    in 31s

2019-02-06 19:42:38 (2.54 MB/s) - ‘unifi_sysvinit_all.deb’ saved [81233330/81233330]

pi@Unifi_Controller:~ $ sudo dpkg -i unifi_sysvinit_all.deb
(Reading database ... 126622 files and directories currently installed.)
Preparing to unpack unifi_sysvinit_all.deb ...
Previous setting (UniFi 5.9.29) is found.
Unpacking unifi (5.10.12-11629-1) over (5.9.29-11384-1) ...
Global symbol "$s" requires explicit package name (did you forget to declare "my $s"?) at /usr/bin/deb-systemd-helper line 347.
BEGIN not safe after errors--compilation aborted at /usr/bin/deb-systemd-helper line 418.
dpkg: warning: subprocess old post-removal script returned error exit status 255
dpkg: trying script from the new package instead ...
failed-upgrade: please reinstall previous version

sudo apt-get install --reinstall unifi=5.9.29-11384-1

dpkg: error processing archive unifi_sysvinit_all.deb (--install):
 subprocess new post-removal script returned error exit status 2
Previous setting (UniFi 5.9.29) is found.

abort-upgrade: please reinstall previous version

sudo apt-get install --reinstall unifi=5.9.29-11384-1

dpkg: error while cleaning up:
 subprocess new post-removal script returned error exit status 2
Processing triggers for systemd (232-25+deb9u4) ...
Errors were encountered while processing:
 unifi_sysvinit_all.deb
pi@Unifi_Controller:~ $

Now my controller wont even start.

Established Member
Posts: 969
Registered: ‎02-12-2013
Kudos: 246
Solutions: 89

Re: UniFi Network Controller 5.10.12 Stable has been released

@Hypnosis4U2NV

Like stated in the first post - this has only been released on the forums - website and apt will follow in a week if there's no major issues.

It looks like something on Debian is crashing - is it up-to-date? It crashes on this /usr/bin/deb-systemd-helper

You could just downgrade to 5.9.29:
wget https://dl.ubnt.com/unifi/5.9.29/unifi_sysvinit_all.deb
sudo dpkg -i unifi_sysvinit_all.deb
rm unifi_sysvinit_all.deb
Emerging Member
Posts: 53
Registered: ‎10-10-2017
Kudos: 19

Re: UniFi Network Controller 5.10.12 Stable has been released

Well looks like my entire Raspberry Pi installation is borked really good, so an entire reinstall is in order.

 

This obviously isn't ready for RPi.

Member
Posts: 224
Registered: ‎04-22-2018
Kudos: 26
Solutions: 2

Re: UniFi Network Controller 5.10.12 Stable has been released

 

 

There is no upgrade path from 5.9.29 to this? Don’t see that path listed in the docs, odd, as 5.9.29 is last stable release and what majority probably run.

 


AP AC LITE
UAP nanoHD (x2)
Edgerouter 4
Established Member
Posts: 969
Registered: ‎02-12-2013
Kudos: 246
Solutions: 89

Re: UniFi Network Controller 5.10.12 Stable has been released

@Gizbug
Possible Upgrade Paths: <=5.10.11 | <=5.9.33 | <=5.8.30 | <=5.7.28 | <=5.6.40
So yes, you can upgrade - 5.9.29 is less than 5.9.33
Emerging Member
Posts: 53
Registered: ‎05-30-2017
Kudos: 20
Solutions: 4

Re: UniFi Network Controller 5.10.12 Stable has been released

[ Edited ]

In the case of the Raspberry Pi, I am seeing the following in my server.log...

 

[00:28:24,247] <UniFi> ERROR system - [exec] error, rc=141, cmdline=[/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java, -Dfile.encoding=UTF-8, -Djava.awt.headless=true, -Dapple.awt.UIElement=true, -Xmx1024M, -Xms256M, -XX:+ExitOnOutOfMemoryError, -XX:+CrashOnOutOfMemoryError, -XX:ErrorFile=/usr/lib/unifi/logs/hs_err_pid%p.log, -jar, /usr/lib/unifi/lib/ace.jar, start]
[00:28:34,258] <UniFi> ERROR system - [exec] error, rc=141, cmdline=[/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java, -Dfile.encoding=UTF-8, -Djava.awt.headless=true, -Dapple.awt.UIElement=true, -Xmx1024M, -Xms256M, -XX:+ExitOnOutOfMemoryError, -XX:+CrashOnOutOfMemoryError, -XX:ErrorFile=/usr/lib/unifi/logs/hs_err_pid%p.log, -jar, /usr/lib/unifi/lib/ace.jar, start]
[00:28:44,258] <UniFi> ERROR system - [exec] error, rc=141, cmdline=[/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java, -Dfile.encoding=UTF-8, -Djava.awt.headless=true, -Dapple.awt.UIElement=true, -Xmx1024M, -Xms256M, -XX:+ExitOnOutOfMemoryError, -XX:+CrashOnOutOfMemoryError, -XX:ErrorFile=/usr/lib/unifi/logs/hs_err_pid%p.log, -jar, /usr/lib/unifi/lib/ace.jar, start]
[00:28:54,255] <UniFi> ERROR system - [exec] error, rc=141, cmdline=[/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java, -Dfile.encoding=UTF-8, -Djava.awt.headless=true, -Dapple.awt.UIElement=true, -Xmx1024M, -Xms256M, -XX:+ExitOnOutOfMemoryError, -XX:+CrashOnOutOfMemoryError, -XX:ErrorFile=/usr/lib/unifi/logs/hs_err_pid%p.log, -jar, /usr/lib/unifi/lib/ace.jar, start]
root@raspberrypi:/usr/lib/unifi/logs#

It seems there was a memory limit enforced at some point. UniFi is trying to allocate *ALL* of the memory the Raspberry Pi has, and is getting refused.

 

It still occurs if I drop the heap size in both the init file and in the system.properties file:

 

[00:38:07,219] <UniFi> ERROR system - [exec] error, rc=141, cmdline=[/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java, -Dfile.encoding=UTF-8, -Djava.awt.headless=true, -Dapple.awt.UIElement=true, -Xmx512M, -Xms256M, -XX:+ExitOnOutOfMemoryError, -XX:+CrashOnOutOfMemoryError, -XX:ErrorFile=/usr/lib/unifi/logs/hs_err_pid%p.log, -jar, /usr/lib/unifi/lib/ace.jar, start]
[00:38:17,212] <UniFi> ERROR system - [exec] error, rc=141, cmdline=[/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java, -Dfile.encoding=UTF-8, -Djava.awt.headless=true, -Dapple.awt.UIElement=true, -Xmx512M, -Xms256M, -XX:+ExitOnOutOfMemoryError, -XX:+CrashOnOutOfMemoryError, -XX:ErrorFile=/usr/lib/unifi/logs/hs_err_pid%p.log, -jar, /usr/lib/unifi/lib/ace.jar, start]
[00:38:27,225] <UniFi> ERROR system - [exec] error, rc=141, cmdline=[/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java, -Dfile.encoding=UTF-8, -Djava.awt.headless=true, -Dapple.awt.UIElement=true, -Xmx512M, -Xms256M, -XX:+ExitOnOutOfMemoryError, -XX:+CrashOnOutOfMemoryError, -XX:ErrorFile=/usr/lib/unifi/logs/hs_err_pid%p.log, -jar, /usr/lib/unifi/lib/ace.jar, start]
[00:38:37,220] <UniFi> ERROR system - [exec] error, rc=141, cmdline=[/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java, -Dfile.encoding=UTF-8, -Djava.awt.headless=true, -Dapple.awt.UIElement=true, -Xmx512M, -Xms256M, -XX:+ExitOnOutOfMemoryError, -XX:+CrashOnOutOfMemoryError, -XX:ErrorFile=/usr/lib/unifi/logs/hs_err_pid%p.log, -jar, /usr/lib/unifi/lib/ace.jar, start]
[00:38:47,220] <UniFi> ERROR system - [exec] error, rc=141, cmdline=[/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java, -Dfile.encoding=UTF-8, -Djava.awt.headless=true, -Dapple.awt.UIElement=true, -Xmx512M, -Xms256M, -XX:+ExitOnOutOfMemoryError, -XX:+CrashOnOutOfMemoryError, -XX:ErrorFile=/usr/lib/unifi/logs/hs_err_pid%p.log, -jar, /usr/lib/unifi/lib/ace.jar, start]
[00:38:57,221] <UniFi> ERROR system - [exec] error, rc=141, cmdline=[/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java, -Dfile.encoding=UTF-8, -Djava.awt.headless=true, -Dapple.awt.UIElement=true, -Xmx512M, -Xms256M, -XX:+ExitOnOutOfMemoryError, -XX:+CrashOnOutOfMemoryError, -XX:ErrorFile=/usr/lib/unifi/logs/hs_err_pid%p.log, -jar, /usr/lib/unifi/lib/ace.jar, start]
[00:39:07,223] <UniFi> ERROR system - [exec] error, rc=141, cmdline=[/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java, -Dfile.encoding=UTF-8, -Djava.awt.headless=true, -Dapple.awt.UIElement=true, -Xmx512M, -Xms256M, -XX:+ExitOnOutOfMemoryError, -XX:+CrashOnOutOfMemoryError, -XX:ErrorFile=/usr/lib/unifi/logs/hs_err_pid%p.log, -jar, /usr/lib/unifi/lib/ace.jar, start]
root@raspberrypi:

 

New Member
Posts: 35
Registered: ‎08-23-2018
Kudos: 7
Solutions: 1

Re: UniFi Network Controller 5.10.12 Stable has been released


@Hypnosis4U2NV wrote:

Well looks like my entire Raspberry Pi installation is borked really good, so an entire reinstall is in order.

 

This obviously isn't ready for RPi.


I'm using it since Beta 5.10.5 up to the actuall 5.10.12 on RPi but you need to update Java to the latest Version, the controller won't run on the default old Java Installation of Rasperian.

 

New Member
Posts: 35
Registered: ‎08-23-2018
Kudos: 7
Solutions: 1

Re: UniFi Network Controller 5.10.12 Stable has been released

[ Edited ]

@Smith6612 wrote:

In the case of the Raspberry Pi, I am seeing the following in my server.log...

 

 

Have you updated your Java 8 to the latest build?  The default included Rasperian build is no longer working with the controller.

 

This will work: java version "1.8.0_201"

 

Emerging Member
Posts: 53
Registered: ‎05-30-2017
Kudos: 20
Solutions: 4

Re: UniFi Network Controller 5.10.12 Stable has been released

[ Edited ]

I'll try that shortly. The Pi is currently going through a dist-upgrade since it needed it. 

 

EDIT: Thanks! Looks to actually be working after updating from Jesse to Squeeze. The dist-upgrade installed the latest version of OpenJDK.

New Member
Posts: 1
Registered: ‎11-28-2018

Re: UniFi Network Controller 5.10.12 Stable has been released

[ Edited ]

I upgraded from 5.9.29 to 5.10.12 (Windows). We had some custom ports configured in file system.properties which worked before:

 

unifi.https.port=xxx
unifi.stun.port=xxx
unifi.throughput.port=xxx

 

After the upgrade the custom ports are ignored and not working anymore. They are still shown in the config file but ignored.

 

Fixed: I moved the program folder and the update did not update the moved program folder but created a new one. And when I started the controller I startet the new one which had the default system.properties file. My fault :-)

Emerging Member
Posts: 53
Registered: ‎10-10-2017
Kudos: 19

Re: UniFi Network Controller 5.10.12 Stable has been released

The update to Java went fine, even confirmed it was running on the latest version to be sure. It was the install of the new controller version that went south, caused the controller to stop running. And then trying to re-install 5.9.29 to get it working again just completely screwed Raspbian altogther and I couldn't even reboot back into the pi. I'm sure those with Linux skills can get this to work, but for a novice like myself, this wasn't a simple task. So I stand by what I said, it's not ready for the RPi. And for those that want to know, this was on a RPi 2.

New Member
Posts: 10
Registered: ‎05-23-2018

Re: UniFi Network Controller 5.10.12 Stable has been released

Will this version of Java work?

 

 

pi@raspberrypi:~ $ java -version

openjdk version "1.8.0_181"

OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-2~deb9u1-b13)

OpenJDK Client VM (build 25.181-b13, mixed mode)

 

Thanks
Ken
Senior Member
Posts: 16,020
Registered: ‎08-04-2017
Kudos: 2913
Solutions: 791

Re: UniFi Network Controller 5.10.12 Stable has been released

Hello @facke02,

 

Should be fine, it's not that old.

 


Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-VoIP Installation Scripts
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W 3x • 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-PLUS • UCK-G2 • UCK
Member
Posts: 125
Registered: ‎03-15-2014
Kudos: 74
Solutions: 4

Re: UniFi Network Controller 5.10.12 Stable has been released


@AndiSchrogl wrote:

@Hypnosis4U2NV wrote:

Well looks like my entire Raspberry Pi installation is borked really good, so an entire reinstall is in order.

 

This obviously isn't ready for RPi.


I'm using it since Beta 5.10.5 up to the actuall 5.10.12 on RPi but you need to update Java to the latest Version, the controller won't run on the default old Java Installation of Rasperian.

 


 

Hi @AndiSchrogl 

 

Just to confirm.  After upgrading to the latest version of Java in Raspian (1.8.0_201) you upgrade to 5.10.12 went smooth?

 

Thanks,

Marcel

Reply