opn-repo icon indicating copy to clipboard operation
opn-repo copied to clipboard

Unifi Controller 7 - MongoDB Running out of Memory

Open FreakyBigFoot opened this issue 2 years ago • 1 comments

I installed the Unifi controller on my firewall running opnsense. Was working great and now I get a 404 when trying to load the UI. Reviewed the logs and it seem it's running out of memory. I'm not sure where this could be adjusted.

2023-07-03T13:38:26,710] INFO db - ----- BEGIN BACKTRACE ----- [2023-07-03T13:38:26,710] INFO db - {"backtrace":[{"b":"1021000","o":"2A0E016","s":"_ZN5mongo15printStackTraceERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEE"},{"b":"1021000","o":"2A0D8DB","s":"_ZN5mongo29reportOutOfMemoryErrorAndExitEv"},{"b":"8041D1000","o":"1A580","s":"pthread_sigmask"},{"b":"8041D1000","o":"19B3F","s":"pthread_setschedparam"},{"b":"0","o":"7FFFFFFFF8A3"},{"b":"8041FF000","o":"12713A","s":"thr_kill"},{"b":"8041FF000","o":"A6764","s":"_raise"},{"b":"8041FF000","o":"14BD89","s":"abort"},{"b":"1021000","o":"2A045BC","s":"_ZN5mongo25fassertFailedWithLocationEiPKcj"},{"b":"1021000","o":"1535D73","s":"_ZN5mongo22WiredTigerEventHandlerC2Ev"},{"b":"1021000","o":"1638C3B","s":"__wt_event_handler_set"},{"b":"1021000","o":"163944A","s":"__wt_err_func"},{"b":"1021000","o":"163983D","s":"__wt_panic"},{"b":"1021000","o":"15DBD5A","s":"__wt_turtle_read"},{"b":"1021000","o":"15D85E6","s":"__wt_metadata_search"},{"b":"1021000","o":"1548A6C","s":"__wt_conn_dhandle_open"},{"b":"1021000","o":"163299A","s":"__wt_session_get_dhandle"},{"b":"1021000","o":"1632A3C","s":"__wt_session_get_dhandle"},{"b":"1021000","o":"1632480","s":"__wt_session_get_btree_ckpt"},{"b":"1021000","o":"15CE600","s":"__wt_curfile_open"},{"b":"1021000","o":"1616078","s":"__wt_open_cursor"},{"b":"1021000","o":"15D8C01","s":"__wt_metadata_cursor"},{"b":"1021000","o":"153D203","s":"wiredtiger_open"},{"b":"1021000","o":"1512C56","s":"_ZN5mongo18WiredTigerKVEngineC1ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_PNS_11ClockSourceES9_mmbbbb"},{"b":"1021000","o":"1500DDE","s":"_ZN5mongo46_mongoInitializerFunction_WiredTigerEngineInitEPNS_18InitializerContextE"},{"b":"1021000","o":"16D3ED2","s":"_ZN5mongo20ServiceContextMongoD29initializeGlobalStorageEngineEv"},{"b":"1021000","o":"14D91FA","s":"ZN5mongo11mongoDbMainEiPPcS1"},{"b":"1021000","o":"14D8860","s":"ZN5mongo11mongoDbMainEiPPcS1"},{"b":"1021000","o":"14D7D35","s":"ZN5mongo11mongoDbMainEiPPcS1"}],"processInfo":{ "mongodbVersion" : "3.6.23", "gitVersion" : "d352e6a4764659e0d0350ce77279de3c1f243e5c", "compiledModules" : [], "uname" : { "sysname" : "FreeBSD", "release" : "13.1-RELEASE-p8", "version" : "FreeBSD 13.1-RELEASE-p8 stable/23.1-n250461-cf0d42d1ca7 SMP", "machine" : "amd64" } }} [2023-07-03T13:38:26,710] INFO db - mongod(_ZN5mongo15printStackTraceERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEE+0x36) [0x3a2f016] [2023-07-03T13:38:26,710] INFO db - mongod(_ZN5mongo29reportOutOfMemoryErrorAndExitEv+0x15B) [0x3a2e8db] [2023-07-03T13:38:26,710] INFO db - libthr.so.3(pthread_sigmask+0x540) [0x8041eb580] [2023-07-03T13:38:26,710] INFO db - libthr.so.3(pthread_setschedparam+0x82F) [0x8041eab3f] [2023-07-03T13:38:26,710] INFO db - ??? [0x7ffffffff8a3] [2023-07-03T13:38:26,710] INFO db - libc.so.7(thr_kill+0xA) [0x80432613a] [2023-07-03T13:38:26,710] INFO db - libc.so.7(_raise+0x34) [0x8042a5764] [2023-07-03T13:38:26,710] INFO db - libc.so.7(abort+0x49) [0x80434ad89] [2023-07-03T13:38:26,710] INFO db - mongod(_ZN5mongo25fassertFailedWithLocationEiPKcj+0x15C) [0x3a255bc] [2023-07-03T13:38:26,710] INFO db - mongod(_ZN5mongo22WiredTigerEventHandlerC2Ev+0x243) [0x2556d73] [2023-07-03T13:38:26,710] INFO db - mongod(__wt_event_handler_set+0x5EB) [0x2659c3b] [2023-07-03T13:38:26,710] INFO db - mongod(__wt_err_func+0x88) [0x265a44a] [2023-07-03T13:38:26,710] INFO db - mongod(__wt_panic+0x49) [0x265a83d] [2023-07-03T13:38:26,710] INFO db - mongod(__wt_turtle_read+0x2AA) [0x25fcd5a] [2023-07-03T13:38:26,710] INFO db - mongod(__wt_metadata_search+0x1B6) [0x25f95e6] [2023-07-03T13:38:26,710] INFO db - mongod(__wt_conn_dhandle_open+0xEC) [0x2569a6c] [2023-07-03T13:38:26,710] INFO db - mongod(__wt_session_get_dhandle+0x4BA) [0x265399a] [2023-07-03T13:38:26,710] INFO db - mongod(__wt_session_get_dhandle+0x55C) [0x2653a3c] [2023-07-03T13:38:26,710] INFO db - mongod(__wt_session_get_btree_ckpt+0xD0) [0x2653480] [2023-07-03T13:38:26,710] INFO db - mongod(__wt_curfile_open+0xA0) [0x25ef600] [2023-07-03T13:38:26,710] INFO db - mongod(__wt_open_cursor+0x188) [0x2637078] [2023-07-03T13:38:26,710] INFO db - mongod(__wt_metadata_cursor+0x91) [0x25f9c01] [2023-07-03T13:38:26,710] INFO db - mongod(wiredtiger_open+0x10E3) [0x255e203] [2023-07-03T13:38:26,710] INFO db - mongod(_ZN5mongo18WiredTigerKVEngineC1ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_PNS_11ClockSourceES9_mmbbbb+0x916) [0x2533c56] [2023-07-03T13:38:26,710] INFO db - mongod(_ZN5mongo46_mongoInitializerFunction_WiredTigerEngineInitEPNS_18InitializerContextE+0x41E) [0x2521dde] [2023-07-03T13:38:26,710] INFO db - mongod(_ZN5mongo20ServiceContextMongoD29initializeGlobalStorageEngineEv+0x452) [0x26f4ed2] [2023-07-03T13:38:26,710] INFO db - mongod(ZN5mongo11mongoDbMainEiPPcS1+0x18BA) [0x24fa1fa] [2023-07-03T13:38:26,710] INFO db - mongod(ZN5mongo11mongoDbMainEiPPcS1+0xF20) [0x24f9860] [2023-07-03T13:38:26,710] INFO db - mongod(ZN5mongo11mongoDbMainEiPPcS1+0x3F5) [0x24f8d35] [2023-07-03T13:38:26,710] INFO db - ----- END BACKTRACE ----- [2023-07-03T13:38:26,711] INFO db - DbServer stopped [2023-07-03T13:38:26,711] WARN db - Mongo start up failed with rc=134

FreakyBigFoot avatar Jul 03 '23 20:07 FreakyBigFoot

Can I ask the dumb question? Is the opnsense machine/vm running out of memory?

Axsgranted avatar Aug 31 '23 20:08 Axsgranted