mimugmail Unifi (7.3.83) mongodb errors

Started by meelokun, July 03, 2023, 07:40:51 PM

Previous topic - Next topic
July 03, 2023, 07:40:51 PM Last Edit: July 03, 2023, 10:35:10 PM by meelokun
I've had this persistant issue with the os-unifi7-maxit plugin, where if the firewall experiences a non-clean shutdown, the unifi plugin is unable to recover - (i.e: unable to start back up). And everytime this happens i have to not only uninstall the plugin, but go into shell, and delete the entire /usr/local/share/java/unifi/ folder, before reinstalling it.

After a non-clean shutdown, my system log is flooded with the following notice/errors
2023-07-03T13:28:18-04:00   Notice   kernel   <6>pid 88314 (mongod), jid 0, uid 975: exited on signal 6   
2023-07-03T13:28:14-04:00   Notice   kernel   <6>pid 69372 (mongod), jid 0, uid 975: exited on signal 6   
2023-07-03T13:28:09-04:00   Notice   kernel   <6>pid 68133 (mongod), jid 0, uid 975: exited on signal 6   
2023-07-03T13:28:05-04:00   Notice   kernel   <6>pid 66300 (mongod), jid 0, uid 975: exited on signal 6   
2023-07-03T13:28:00-04:00   Notice   kernel   <6>pid 57931 (mongod), jid 0, uid 975: exited on signal 6   
2023-07-03T13:27:55-04:00   Notice   kernel   <6>pid 56444 (mongod), jid 0, uid 975: exited on signal 6   
2023-07-03T13:27:51-04:00   Notice   kernel   <6>pid 55303 (mongod), jid 0, uid 975: exited on signal 6   
2023-07-03T13:27:46-04:00   Notice   kernel   <6>pid 54073 (mongod), jid 0, uid 975: exited on signal 6

It appears to be something to do with mongodb, corruption of the DB? Pastebin of the last mongodb log.
https://pastebin.com/ze8ug4AD

i saw somewhere that "mongod --repair should be able to fix these kind of errors, but only if the fixes have been installed. According to the repair documentation, that only applies to Mongo DB 4.0.3 and later." - i see we are on mongodb 3.6.23  :-\

@mimugmail: What are the plans to move up to the latest controller version to 7.4.162? As well as incorporating a mongodb repair script?

No plans as 7.4 switches to mongo4 which needs manual recovery. Needs to settle a bit

@mimugmail - with the release of 23.7, are there plans now to update to the 7.4 branch? i dont quite understand what you meant by there needing to be a manual recovery for mongodb since the 7.4 branch requires 4.0

i guess has things settled a bit yet? hehe