Reply
Established Member
Posts: 850
Registered: ‎09-03-2009
Kudos: 44
Solutions: 7

Cloud key stuck in - UniFi Controller is starting up

How all,

 

Guys, any idea how to fix this? 

 

Best regards,

Alex

Skype: nanflexal
WISP - Bicol Region, Philippines
www.adamosbroadband.com
unifi problem.jpg
Emerging Member
Posts: 69
Registered: ‎11-09-2016
Kudos: 4
Solutions: 2

Re: Cloud key stuck in - UniFi Controller is starting up

Senior Member
Posts: 13,055
Registered: ‎08-04-2017
Kudos: 2217
Solutions: 640

Re: Cloud key stuck in - UniFi Controller is starting up

[ Edited ]

Hello @Nanflexal,

 

Please post your controller logs.

Sounds like a corrupted DB.

 

Did you have autobackups enabled?

 

 

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 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: 2
Registered: ‎09-19-2018

Re: Cloud key stuck in - UniFi Controller is starting up

I'm having the same issue ever since the Cloud Key auto updated to the latest software and firmware versions. Here is my server.log

 

[2018-08-06 22:42:37,998] <db-server> INFO  db     - DbServer stopped
[2018-08-06 22:42:41,283] <launcher> ERROR db     - Got error while connecting to db...
java.lang.NullPointerException
        at com.ubnt.service.OoOO.W.OÒ0000(Unknown Source)
        at com.ubnt.service.OoOO.W.afterPropertiesSet(Unknown Source)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1758)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1695)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:573)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
        at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:392)
        at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:364)
        at com.ubnt.service.AppContext$$EnhancerBySpringCGLIB$$2bbb109a.dbService(<generated>)
        at com.ubnt.service.AppContext.statService(Unknown Source)
        at com.ubnt.service.AppContext$$EnhancerBySpringCGLIB$$2bbb109a.CGLIB$statService$4(<generated>)
        at com.ubnt.service.AppContext$$EnhancerBySpringCGLIB$$2bbb109a$$FastClassBySpringCGLIB$$dfaeb29b.invoke(<generated>)
        at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
        at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:361)
        at com.ubnt.service.AppContext$$EnhancerBySpringCGLIB$$2bbb109a.statService(<generated>)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:582)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1247)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1096)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:535)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
        at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:392)
        at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:364)
        at com.ubnt.service.AppContext$$EnhancerBySpringCGLIB$$2bbb109a.statService(<generated>)
        at com.ubnt.service.AppContext.houseKeeper(Unknown Source)
        at com.ubnt.service.AppContext$$EnhancerBySpringCGLIB$$2bbb109a.CGLIB$houseKeeper$2(<generated>)
        at com.ubnt.service.AppContext$$EnhancerBySpringCGLIB$$2bbb109a$$FastClassBySpringCGLIB$$dfaeb29b.invoke(<generated>)
        at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
        at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:361)
        at com.ubnt.service.AppContext$$EnhancerBySpringCGLIB$$2bbb109a.houseKeeper(<generated>)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:582)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1247)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1096)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:535)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:759)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)

 

I've been trying to run some mongodb commands with no luck so far. 

New Member
Posts: 2
Registered: ‎09-19-2018

Re: Cloud key stuck in - UniFi Controller is starting up

I ended up doing a full restore ubnt-systool reset2defaults. I do have auto-backup turned on. The backups are not getting created. Hopefully after this restore that will change.

Senior Member
Posts: 13,055
Registered: ‎08-04-2017
Kudos: 2217
Solutions: 640

Re: Cloud key stuck in - UniFi Controller is starting up

Hello @dapete2,

 

Glad you’re back up and running.

 

 

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 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: 8
Registered: ‎12-03-2015

Re: Cloud key stuck in - UniFi Controller is starting up

My Cloud Key just started doing this today as well. Not sure how to resolve the issue. According to the server.log I'm seeing errors related to Mongo DB:

 

[2019-01-10 22:59:57,648] <db-server> ERROR system - [exec] error, rc=100, cmdline=[bin/mongod, --dbpath, /usr/lib/unifi/data/db, --port, 27117, --unixSocketPrefix, /usr/lib/unifi/run, --noprealloc, --nohttpinterface, --journal, --smallfiles, --bind_ip, 127.0.0.1]
[2019-01-10 23:00:02,148] <db-server> ERROR system - [exec] error, rc=100, cmdline=[bin/mongod, --dbpath, /usr/lib/unifi/data/db, --port, 27117, --unixSocketPrefix, /usr/lib/unifi/run, --noprealloc, --nohttpinterface, --journal, --smallfiles, --bind_ip, 127.0.0.1]
[2019-01-10 23:00:06,627] <db-server> ERROR system - [exec] error, rc=100, cmdline=[bin/mongod, --dbpath, /usr/lib/unifi/data/db, --port, 27117, --unixSocketPrefix, /usr/lib/unifi/run, --noprealloc, --nohttpinterface, --journal, --smallfiles, --bind_ip, 127.0.0.1]

 

Any ideas?  I tried the prune script but that doesn't work since I can't connect to the Mongo DB.

Senior Member
Posts: 13,055
Registered: ‎08-04-2017
Kudos: 2217
Solutions: 640

Re: Cloud key stuck in - UniFi Controller is starting up

Hello @nospoon4u,

 

Could you try to repair the DB?

 

 

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 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
Reply