Reply
New Member
Posts: 31
Registered: ‎08-26-2018
Kudos: 1
Solutions: 3
Accepted Solution

Unifi Controller Crashes

I need some help troubleshooting my Unifi controller.

 

The VM the server is running on keeps crashing. Its not just the unifi service that crashes, its the whole Ubuntu VM that crashes and is totally unresponsive. 

 

I had this problem on a previous Unifi controller VM. I created a entirly new VM and manually installed Ubuntu 18.04 and Unifi and the problem persists. The server runs for maybe 10 hours and then totally locks up. The VM's screen frezes, mouse and keyboard inputs do not affect it. The VM drops off the network, and the only way to get it working again is to power the VM off and then on.

 

Controller Version: 5.9.29

Ubuntu Version: 18.04 LTS

 

Unifi, Mongod log files are attached.

 

Any help you can offer would be greatly appreicated.

 

 


Accepted Solutions
New Member
Posts: 31
Registered: ‎08-26-2018
Kudos: 1
Solutions: 3

Re: Unifi Controller Crashes

I upgraded my ESXi host from 6.5 to 6.7U1. I read elsewhere that there was a known issue with Ubuntu 18.04 crashing when run on ESXi 6.5.

 

I'm going to let the Ubuntu 18.04 VMs run for awhile and see if any of them crash.

 

View solution in original post


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

Re: Unifi Controller Crashes

[ Edited ]

Hello @User789876,

 

How much memory does the VM have?

How many devices are you running on the controller?

 

 

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: 31
Registered: ‎08-26-2018
Kudos: 1
Solutions: 3

Re: Unifi Controller Crashes

The VM has 4 CPU cores and 8GB of RAM. 

 

The only unifi devices are 1x USG and 1x8 port switch. We use the Unifi system for the hotspots, we have a network of Ruckus hotspots in our building that are routed though the USG and the Unifi Hotspot, there is not usually more than 5 guests connected to the hotspot at any given time.

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

Re: Unifi Controller Crashes

Hello @User789876,

 

Doesn’t make sense that the entire VM freezes with only 2 devices... 

Are you running anything else on the VM?

 

 

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: 31
Registered: ‎08-26-2018
Kudos: 1
Solutions: 3

Re: Unifi Controller Crashes

No Unifi Controller is the only thing installed on this VM.

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

Re: Unifi Controller Crashes

Hello @User789876,

 

No way! Could you remove the custom entries in the system.properties file?

 

UniFI Network controller with 2 devices should run fine on a 2GB VM with 1 CPU core.

 

 

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: 31
Registered: ‎08-26-2018
Kudos: 1
Solutions: 3

Re: Unifi Controller Crashes

[ Edited ]

The problem persists when the custom XMS/XMX values are removed from the system.properties file.

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

Re: Unifi Controller Crashes

Hello @User789876,

 

Could you start the VM and stop the UniFi service to see if it still freezes?

service unifi stop

 

 

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: 31
Registered: ‎08-26-2018
Kudos: 1
Solutions: 3

Re: Unifi Controller Crashes

I only added the custom XMS / XMX values yesterday. The controller had was crashing before the custom memory values were inserted.

 

I've removed the XMS/XMX values and restarted the unifi service . I fully expect it to crash again today, but I can't say how long it will take.

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

Re: Unifi Controller Crashes

[ Edited ]

Hello @User789876,

 

I wan't to see if the VM crashes/freezes with the UniFi Services stopped not restarted...

service unifi stop

Sounds like something is wrong with the VM settings.

Are you using as VM Host/Software?

 

 

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: 31
Registered: ‎08-26-2018
Kudos: 1
Solutions: 3

Re: Unifi Controller Crashes

Stopping and starting Unifi doesnt cause the VM to freeze.

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

Re: Unifi Controller Crashes

Hello @User789876,

 

Thats not what I am asking... stop the service and let the VM run with UniFi STOPPED...

 

 

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: 31
Registered: ‎08-26-2018
Kudos: 1
Solutions: 3

Re: Unifi Controller Crashes

I see.

 

Ok, I'll stop the unifi service on my original Unifi controller VM, It has the same issue.

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

Re: Unifi Controller Crashes

Hello @User789876,

 

So the VM still crashes/freezes if you restart the VM and turn of the UniFi Service?

If so than there is something wrong with your VM settings...

What are you using as VM Host/Software?

 

 

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: 31
Registered: ‎08-26-2018
Kudos: 1
Solutions: 3

Re: Unifi Controller Crashes

I dont know if the server will crash with Unifi stopped or not. Personally I doubt it will, but we will see.

 

Since this problem started I havent seen either of my Unifi VMs run for more than about 12 hours with out crashing. If VM I stopped the service on is still running at about 9 PM local time tonight Im going to have to say its not a problem with the OS / VM.

 

I'm using VMware ESXi 6.5.

 

 

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

Re: Unifi Controller Crashes

Hello @User789876,

 

Could you share the VM Settings?

How much memory/disk space did you allocate?

 

 

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: 31
Registered: ‎08-26-2018
Kudos: 1
Solutions: 3

Re: Unifi Controller Crashes

 

CPU: 4x vCPUs

Memory: 8 GB

Hard Disk: 256 GB

 

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

Re: Unifi Controller Crashes

Hello @User789876,


Could you create a new VM with Ubuntu Server 18.04, don't install anything on it... Just keep it running.

Setup a constant ping to the new VM and see if it stays up..

 

 

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: 31
Registered: ‎08-26-2018
Kudos: 1
Solutions: 3

Re: Unifi Controller Crashes

Yes I can do that

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

Re: Unifi Controller Crashes

Hello @User789876,

 

Awesome, please keep me posted!

 

 

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