Reply
New Member
Posts: 30
Registered: ‎03-06-2018
Kudos: 3
Solutions: 2
Accepted Solution

UniFi CloudKey Crashed this morning

Tried to get into my web admin this morning and it produced the login page but would time out logging in.

 

Hoping it would resolve the issue i SSH to the controller and rebooted it.

 

Now the web interface is stuck on 

 

UniFi Controller is starting up...

Please wait a moment

 

And the Server.log is showing the following error followed by a java stack dump

 

<inform-29> ERROR Http11Processor - Error finishing response

java.lang.NullPointerException: null
at org.apache.coyote.http11.Http11OutputBuffer$SocketOutputBuffer.end(Http11OutputBuffer.java:641) ~[tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.coyote.http11.filters.IdentityOutputFilter.end(IdentityOutputFilter.java:166) ~[tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.coyote.http11.Http11OutputBuffer.end(Http11OutputBuffer.java:266) ~[tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.coyote.http11.Http11Processor.endRequest(Http11Processor.java:1525) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:840) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.34.jar:8.5.34]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_171]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_171]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.34.jar:8.5.34]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_171]

 

I did notice some ways to uninstall the unifi software and reinstall it and also some mongodb fixes but i was hoping someone could provide me an exact fix for this issue i am seeing.


Accepted Solutions
New Member
Posts: 30
Registered: ‎03-06-2018
Kudos: 3
Solutions: 2

Re: UniFi CloudKey Crashed this morning

For anyone else who comes across this I ended up resetting to defaults and restoring from a backup.

View solution in original post


All Replies
Senior Member
Posts: 23,958
Registered: ‎08-04-2017
Kudos: 4535
Solutions: 1179

Re: UniFi CloudKey Crashed this morning

Hello @bigjohns97,

 

Could you upload both log files to a cloud drive and PM me the URL?

Have you tried pruning the old data and repairing the DB?

 

 

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: 30
Registered: ‎03-06-2018
Kudos: 3
Solutions: 2

Re: UniFi CloudKey Crashed this morning

I haven't tried those as neither referenced the error i was getting and i was hoping to not to end up messing something else up by guessing at the problem.

As for the logs I have this log
/usr/lib/unifi/logs/server.log

Which other one were you referring to?
Senior Member
Posts: 23,958
Registered: ‎08-04-2017
Kudos: 4535
Solutions: 1179

Re: UniFi CloudKey Crashed this morning

Hello @bigjohns97,

 

Server.log and mongod.log if there is one.

 

 

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: 30
Registered: ‎03-06-2018
Kudos: 3
Solutions: 2

Re: UniFi CloudKey Crashed this morning

[ Edited ]

Couldn't find a mongod.log but i sent the server.log

Senior Member
Posts: 23,958
Registered: ‎08-04-2017
Kudos: 4535
Solutions: 1179

Re: UniFi CloudKey Crashed this morning

Hello @bigjohns97,

 

Did you have autobackups turned on?

Try the 2 articles I mentioned earlier!

 

 

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: 30
Registered: ‎03-06-2018
Kudos: 3
Solutions: 2

Re: UniFi CloudKey Crashed this morning

I did try those and they don't work as mongo isn't even starting. I ended up uninstalling unifi using dpkg and reinstalling and now trying a restore from backup
Senior Member
Posts: 23,958
Registered: ‎08-04-2017
Kudos: 4535
Solutions: 1179

Re: UniFi CloudKey Crashed this morning

Hello @bigjohns97,

 

Let me know if you can restore a backup!

 

 

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: 30
Registered: ‎03-06-2018
Kudos: 3
Solutions: 2

Re: UniFi CloudKey Crashed this morning

Nope, it comes up and says checking backup file and restoring.... and just sits there.

Been sitting there for a couple of hours now.
Senior Member
Posts: 23,958
Registered: ‎08-04-2017
Kudos: 4535
Solutions: 1179

Re: UniFi CloudKey Crashed this morning

Hello @bigjohns97,

 

Upload a backup to a cloud drive and PM me the URL.

 


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: 30
Registered: ‎03-06-2018
Kudos: 3
Solutions: 2

Re: UniFi CloudKey Crashed this morning

Sent, going to try and upload this and restore using that way.

Senior Member
Posts: 23,958
Registered: ‎08-04-2017
Kudos: 4535
Solutions: 1179

Re: UniFi CloudKey Crashed this morning

Hello @bigjohns97,

 

I have send you a PM with instructions, please read the README file.

 


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: 30
Registered: ‎03-06-2018
Kudos: 3
Solutions: 2

Re: UniFi CloudKey Crashed this morning

For anyone else who comes across this I ended up resetting to defaults and restoring from a backup.
Reply