Bug 254330 - net-mgmt/unifi-lts mongodb terminating and controller crashing
Summary: net-mgmt/unifi-lts mongodb terminating and controller crashing
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Mark Felder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-16 09:35 UTC by fulder
Modified: 2021-03-27 22:18 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (feld)


Attachments
Full exception, mongodb log and server log (16.51 KB, text/plain)
2021-03-16 09:35 UTC, fulder
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description fulder 2021-03-16 09:35:56 UTC
Created attachment 223318 [details]
Full exception, mongodb log and server log

Installing a clean install of the unifi-lts package and starting up the service doesn't seem to start up the controller correctly. Trying to start up it manually gives the following error:

Exception in thread "launcher" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'Ò00000' defined in class com.ubnt.service.AppContext: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [com.ubnt.service.P.D com.ubnt.service.AppContext.Ò00000()] threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbService' defined in class com.ubnt.service.AppContext: Invocation of init method failed; nested exception is com.mongodb.CommandFailureException: { "serverUsed" : "127.0.0.1:27117" , "ok" : 0.0 , "errmsg" : "interrupted at shutdown" , "code" : 11600 , "codeName" : "InterruptedAtShutdown"}

Attaching mongodb.log, server.log and a full exception printout.
Comment 1 fulder 2021-03-16 09:49:01 UTC
Another thing to mention is that the unifi5 package seems to work without this bug. So a possible quickfix could be to simply upgrade this lts version (5.6.40) to match the unifi5 (5.14.23).
Comment 2 Juraj Lutter freebsd_committer freebsd_triage 2021-03-16 12:03:10 UTC
I will recommend to install net-mgmt/unifi6, that is actively maintained.
Comment 3 fulder 2021-03-16 12:18:19 UTC
Thanks for your fast response @Juraj Lutter, unifi6 seems to work just fine as well. 

Although, isn't it a bit weird to have a "lts" version which isn't supported/maintained :P. If broken and not maintained maybe it should just be removed all together in order to be less confusing?
Comment 4 Juraj Lutter freebsd_committer freebsd_triage 2021-03-27 22:18:21 UTC
unifi-lts and unifi-devel will be scheduled for removal as it is already not supported by the vendor.