Reply
Deleted Account
Posts: 0

Re: Unifi Controller on Debian 9

@Aggraxisthanks for going through and testing all those.  I just tried holding the kernel back on my Debian 8 box and updating the rest and sure enough unifi-video still runs.  They both (unifi and unifi-video) use mongo so you are probably right about that.  At least now we are just holding the kernel back and not a whole slew of packages. 

Emerging Member
Posts: 42
Registered: ‎08-07-2013
Kudos: 4

Re: Unifi Controller on Debian 9

Nice! Can't wait to try this in the morning! Thanks for looking at this everyone!!

New Member
Posts: 14
Registered: ‎05-06-2014
Kudos: 2

Re: Unifi Controller on Debian 9

@Aggraxis Thank you, I can confirm that downgrading the kernel makes the controller working again on Debian 9.

Apart from Unifi I had some strange libusb (from apcupsd) segfaults which also started after the kernel update...

Deleted Account
Posts: 0

Re: Unifi Controller on Debian 9

[ Edited ]

@UBNT-MikeD@UBNT-APieper 

 

I thought I should tag someone from UBNT, the thread is solved but in the long term we are going to want to upgrade our kernels at some point (unless the kernel is the problem and a fix is forthcoming there?  I am not really sure how to even identify or report an issue like this)

 

edit: also to keep in mind it affects Unifi-Video as well, confirmed Unifi on Debian 9 and Unifi-Video on Debian8/9

New Member
Posts: 21
Registered: ‎02-27-2016
Kudos: 3

Re: Unifi Controller on Debian 9

Confirmed here now too that reverting kernel is the workaround for now.
Regular Member
Posts: 605
Registered: ‎02-13-2014
Kudos: 525
Solutions: 19

Re: Unifi Controller on Debian 9

This got my Debian 8 server back up:

 

apt install linux-image-3.16.0-4-amd64=3.16.43-2
New Member
Posts: 19
Registered: ‎11-06-2016
Kudos: 3

Re: Unifi Controller on Debian 9

On ubuntu 16.04.2 booting to prior kernel 4.4.0-78-generic seems to work.

New Member
Posts: 1
Registered: ‎06-19-2017
Kudos: 1

Re: Unifi Controller on Debian 9

[ Edited ]

Running Ubuntu 16.04.2, neither unifi-video-3.7.1-1 nor unifi-5.4.16-9234 work when my servers are running kernel-4.4.0-81-generic. Both work when they are running 4.4.0-79-generic.

 

Related to the change to address CVE-2017-1000364? This is the only noted change between these two Ubuntu Kernel releases. 

New Member
Posts: 1
Registered: ‎06-20-2017

Re: Unifi Controller on Debian 9

the same problem occurs upgrading ubuntu 17.4 with linux 4.10. 22 kernel to 4.10.24.

New Member
Posts: 6
Registered: ‎02-26-2017
Kudos: 1

Re: Unifi Controller on Debian 9

@squirl . Confirmed Man Sad
Emerging Member
Posts: 71
Registered: ‎06-20-2017
Kudos: 9
Solutions: 1

Re: Unifi Controller on Debian 9

How can I change the kernel at ubuntu?
New Member
Posts: 12
Registered: ‎05-21-2017
Kudos: 4

Re: Unifi Controller on Debian 9

Can you upload /var/log/unifi-video content please.
New Member
Posts: 12
Registered: ‎05-21-2017
Kudos: 4

Re: Unifi Controller on Debian 9

[ Edited ]

Signal 11, or officially know as "segmentation fault", means that the program accessed a memory location that was not assigned.

 

A segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory location in a way that is not allowed (for example, attempting to write to a read-only location, or to overwrite part of the operating system).

 

Usually signal #11 (SIGSEGV) set, which is defined in the header file signal.h file. The default action for a program upon receiving SIGSEGV is abnormal termination. This action will end the process, but may generate a core file (also known as core dump) to aid debugging, or perform some other platform-dependent action. A core dump is the recorded state of the working memory of a computer program at a specific time, generally when the program has terminated abnormally.

Segmentation fault can also occur under following circumstances:

a) A buggy program / command, which can be only fixed by applying patch.

b) It can also appear when you try to access an array beyond the end of an array under C programming.

c) Inside a chrooted jail this can occur when critical shared libs, config file or /dev/ entry missing.

d) Sometime hardware or faulty memory or driver can also create problem.

e) Maintain suggested environment for all computer equipment (overheating can also generate this problem).



and you think the kernel is faulty ? LOL

New Member
Posts: 2
Registered: ‎06-19-2017
Kudos: 1

Re: Unifi Controller on Debian 9

confirmed fix for Ubuntu 16.04.2 LTS: The issue is tied to linux-image, just reboot with 4.4.0-78-generic instead of the recently installed 4.4.0-81-generic.

New Member
Posts: 14
Registered: ‎06-07-2013
Kudos: 1
Solutions: 1

Re: Unifi Controller on Debian 9

[ Edited ]

Same problem on

3.13.0-121-generic #170-Ubuntu SMP Wed Jun 14 09:04:33 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux: no controller anymore.

Reverted to

 3.13.0-116-generic #163-Ubuntu SMP Fri Mar 31 14:13:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux and all ok

 

New Member
Posts: 14
Registered: ‎06-07-2013
Kudos: 1
Solutions: 1

Re: Unifi Controller on Debian 9

And now 66 of 67 AP's are disconnected :-(. What a day...

Ubiquiti Employee
Posts: 9,541
Registered: ‎01-28-2013
Kudos: 16779
Solutions: 608
Contributions: 20

Re: Unifi Controller on Debian 9


@poisonsnak wrote:

@UBNT-MikeD@UBNT-APieper 

 

I thought I should tag someone from UBNT, the thread is solved but in the long term we are going to want to upgrade our kernels at some point (unless the kernel is the problem and a fix is forthcoming there?  I am not really sure how to even identify or report an issue like this)

 

edit: also to keep in mind it affects Unifi-Video as well, confirmed Unifi on Debian 9 and Unifi-Video on Debian8/9


Thanks for bringing this to our attention, and to everyone else here for the reports. We will investigate. 

 

Cheers,

Mike

New Member
Posts: 9
Registered: ‎12-14-2015

Re: Unifi Controller on Debian 9

Could tt have anything to do with CVE-2017-1000364? We are implementing this on my work and I was reading up on this and was thinking about this thread.

 

See: https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt

 

This has been fixed in the latest Linux kernel. AFAICS it could explain why the SIGSEGV is thrown with the newer kernel and not with the older one. My big question is why the user space stack is not expanded by the kernel but throwing the SIGSEGV. If, of course, this has something to do with the error.

 

I'm still holding out on upgrading my VM with the controller for now...

New Member
Posts: 8
Registered: ‎09-22-2015
Solutions: 1

Re: Unifi Controller on Debian 9

[ Edited ]

This discussion is way over my head, but I'm hoping this info will help smarter people solve this.

 

I'm running Debian 8 on a VM.  I apt-get upgraded and experienced the same problem everyone else seems to be having.

 

My broken kernel is /boot/vmlinuz-3.16.0-4-686-pae

 

The problem goes away with kernel /boot/vmlinuz-3.16.0-4-amd64

 

Same kernel version, different arch.  So, is PAE the problem?

 

Hope this helps.

New Member
Posts: 1
Registered: ‎10-10-2016
Kudos: 1

Re: Unifi Controller on Debian 9

Can someone tell me the command to revert the kernel to 4.4.0.78 on Ubuntu 16.04?
Reply