Reply
New Member
Posts: 11
Registered: ‎07-11-2014
Kudos: 2

Upgrade to controller version 5.10.12 fails to start

I upgraded my working Windows controller version 5.9.29 to the newest version 5.10.12 and i can't get it to start.  I even uninstalled the controller and re-installed it and tried to do a restore from a good backup.  I can see things going on in the db folder as it's trying to upgrade but it never finishes.  I let it run all night and it's still performing some kind of task.  I've attached the server log.

Senior Member
Posts: 16,473
Registered: ‎08-04-2017
Kudos: 3006
Solutions: 810

Re: Upgrade to controller version 5.10.12 fails to start

Hello @hmccallum,

 

What JAVA version are you running?

Could you PM me the controller logs?

 


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
New Member
Posts: 11
Registered: ‎07-11-2014
Kudos: 2

Re: Upgrade to controller version 5.10.12 fails to start

Java Version 8.2010.9

Senior Member
Posts: 16,473
Registered: ‎08-04-2017
Kudos: 3006
Solutions: 810

Re: Upgrade to controller version 5.10.12 fails to start

Hello @hmccallum,

 

Please PM me the controller logs.

 

 

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
Senior Member
Posts: 16,473
Registered: ‎08-04-2017
Kudos: 3006
Solutions: 810

Re: Upgrade to controller version 5.10.12 fails to start

Hello @hmccallum,

 

Please send me the backup file.

 

 

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
Senior Member
Posts: 16,473
Registered: ‎08-04-2017
Kudos: 3006
Solutions: 810

Re: Upgrade to controller version 5.10.12 fails to start

Hello @hmccallum,

 

I have send you the backup file, please read the README file.

 

 

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
New Member
Posts: 4
Registered: ‎10-18-2017

Re: Upgrade to controller version 5.10.12 fails to start

 

I have the Same problem,  except that it looks to finish the install and start but then never get online 

Senior Member
Posts: 16,473
Registered: ‎08-04-2017
Kudos: 3006
Solutions: 810

Re: Upgrade to controller version 5.10.12 fails to start

Hello @jasperwaale,

 

Could you PM me the controller logs?

What device are you using for the controller?

What is the output of the following commands?

dpkg -l | grep oracle
dpkg -l | grep openjdk

 

 

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
New Member
Posts: 4
Registered: ‎10-18-2017

Re: Upgrade to controller version 5.10.12 fails to start

 

Its working now, just take 30min to update DB it looks like, running on a Windows box, as doing a few other things, did look into a docker but last I tested it I did not manage to make it work keep restarting over and over its just my home setup so it not life or dead 

 

Thanks 

 

Jasper 

Senior Member
Posts: 16,473
Registered: ‎08-04-2017
Kudos: 3006
Solutions: 810

Re: Upgrade to controller version 5.10.12 fails to start

Hello @jasperwaale,


So you're back up and running?

 

 

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
New Member
Posts: 3
Registered: ‎08-07-2017

Re: Upgrade to controller version 5.10.12 fails to start

[ Edited ]

I'm in the same boat.

 

I upgraded this morning and my controller still hasn't come back online.

 

I'm running it on a RPI 2 and used apt to do the udpate which seemed to go fine until I try to access the controller.

 

I can't get to the logs in /usr/lib/unifi/logs/ as it says permission is denied.

 

Any suggestions? 

 

EDIT: I'm running OpenJDK 8, I think.

Senior Member
Posts: 16,473
Registered: ‎08-04-2017
Kudos: 3006
Solutions: 810

Re: Upgrade to controller version 5.10.12 fails to start

Hello @tristamr,

 

What is the output of the following commands?

dpkg -l | grep openjdk
dpkg -l | grep oracle

 

 

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
New Member
Posts: 3
Registered: ‎08-07-2017

Re: Upgrade to controller version 5.10.12 fails to start

Hi @AmazedMender16 

 

Here we go.

 

pi@raspberrypi:~ $ dpkg -l | grep openjdk
ii  openjdk-8-jre-headless:armhf         8u181-b13-2~deb9u1           armhf        OpenJDK Java runtime, using Hotspot JIT (headless)
pi@raspberrypi:~ $ dpkg -l | grep oracle
ii  oracle-java8-jdk                     8u65                         armhf        Java™ Platform, Standard Edition 8 Development Kit

Thanks

Senior Member
Posts: 16,473
Registered: ‎08-04-2017
Kudos: 3006
Solutions: 810

Re: Upgrade to controller version 5.10.12 fails to start

Hello @tristamr,


Awesome, please run the following commands.

su
service unifi stop
apt purge oracle-java8*
sed -i 's/^JAVA_HOME/#JAVA_HOME/' /etc/default/unifi
echo "JAVA_HOME="$( readlink -f "$( which java )" | sed "s:bin/.*$::" )"" >> /etc/default/unifi
service unifi start

 

 

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
New Member
Posts: 3
Registered: ‎08-07-2017

Re: Upgrade to controller version 5.10.12 fails to start

Thank you @AmazedMender16!

 

That seems to have done the trick. It kicked off a DB update and I got a bit of a fright when the AP's hadn't adopted but all seems good now.

 

New Member
Posts: 4
Registered: ‎10-18-2017

Re: Upgrade to controller version 5.10.12 fails to start

Yes, just now all is back
Senior Member
Posts: 16,473
Registered: ‎08-04-2017
Kudos: 3006
Solutions: 810

Re: Upgrade to controller version 5.10.12 fails to start

Hello @tristamr,

 

Awesome, glad I was able to help you out Man Happy

 

 

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
Highlighted
Senior Member
Posts: 16,473
Registered: ‎08-04-2017
Kudos: 3006
Solutions: 810

Re: Upgrade to controller version 5.10.12 fails to start

Hello @jasperwaale,

 

Awesome, glad you're backup up and running!

 

 

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
New Member
Posts: 4
Registered: ‎10-18-2017

Re: Upgrade to controller version 5.10.12 fails to start

Yes, Thanks, DB delay making the web system not running,
New Member
Posts: 3
Registered: ‎01-26-2017

Re: Upgrade to controller version 5.10.12 fails to start

@AmazedMender16  hi, i have the same error like @hmccallum  but im using ubuntu 16.04.5 LTS.

Should i downgrade first or just updating the java version?

 

[18:53:02,012] <launcher> INFO  system - ======================================================================
[18:53:02,024] <launcher> INFO  system - UniFi 5.10.12 (build atag_5.10.12_11629 - release) is started
[18:53:02,025] <launcher> INFO  system - ======================================================================
[18:53:02,025] <launcher> INFO  system - BASE dir:/usr/lib/unifi
[18:53:02,065] <launcher> INFO  system - Current System IP: 203.128.77.178
[18:53:02,065] <launcher> INFO  system - Hostname: badak
[18:53:04,029] <launcher> INFO  db     - waiting for db connection...
[18:53:04,681] <launcher> INFO  db     - Connecting to mongodb://127.0.0.1:27117
[18:53:04,910] <launcher> INFO  db     - DB version (5.9.29) different from Runtime Version(5.10.12), migrating...
[18:53:04,921] <launcher> INFO  system - [server backup] started
[18:53:04,922] <launcher> INFO  db     - Connecting to mongodb://127.0.0.1:27117
[18:53:46,733] <launcher> INFO  db     - Connecting to mongodb://127.0.0.1:27117
[18:53:55,288] <launcher> INFO  system - [server backup][BACKUP] end
[18:53:55,658] <launcher> WARN  AnnotationConfigApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'autoOptimizer' defined in com.ubnt.service.AppContext: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.ubnt.service.int.OoOO]: Factory method 'autoOptimizer' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configService' defined in com.ubnt.service.AppContext: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.ubnt.service.voidsuper.OOOo]: Factory method 'configService' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbService' defined in com.ubnt.service.AppContext: Invocation of init method failed; nested exception is java.lang.UnsupportedOperationException
[18:53:56,349] <UniFi> ERROR system - [exec] error, rc=1, cmdline=[/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java, -Dfile.encoding=UTF-8, -Djava.awt.headless=true, -Dapple.awt.UIElement=true, -Xmx1024M, -XX:+ExitOnOutOfMemoryError, -XX:+CrashOnOutOfMemoryError, -XX:ErrorFile=/usr/lib/unifi/logs/hs_err_pid%p.log, -jar, /usr/lib/unifi/lib/ace.jar, start]

 

root@badak:/home/bijikuda# dpkg -l | grep oracle
root@badak:/home/bijikuda# dpkg -l | grep openjdk
ii  openjdk-8-jre-headless:amd64         8u191-b12-2ubuntu0.16.04.1                 amd64        OpenJDK Java runtime, using Hotspot JIT (headless)

 

 

Reply