mimugmail / opn-repo

OPNsense repo by mimugmail
Other
368 stars 28 forks source link

Unifi broker after update, mongodb issue #236

Open al13nus opened 1 month ago

al13nus commented 1 month ago

Hey guys,

what can I do here? Happended after OPNSense update from 24.1.9 to 24.7.4. My attempts:

  1. MongoDB wasn't running, so I restarted it.
  2. Tried to delete and reinstall the package.
  3. Firewall restart.
  4. Deleted folder of mongoDB rm -r "/var/db/mongodb/"
sudo service mongod start
Cannot 'start' mongod. Set mongod_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'.

Logs:

[2024-09-22 13:00:21,808] <launcher> INFO  system - ======================================================================
[2024-09-22 13:00:21,808] <launcher> INFO  system - UniFi 8.2.93 (build atag_8.2.93_25939 - release/release) is started
[2024-09-22 13:00:21,811] <launcher> INFO  system - Environment: UniFi-OS[false], UniFi-Cloud[false], UniFi-MongoService[false]
[2024-09-22 13:00:21,811] <launcher> INFO  system - ======================================================================
[2024-09-22 13:00:21,811] <launcher> INFO  system - BASE dir:/usr/local/share/java/unifi
[2024-09-22 13:00:21,826] <launcher> INFO  system - Current System IP: 192.168.70.1
[2024-09-22 13:00:21,827] <launcher> INFO  system - Hostname: OPNsense.localdomain
[2024-09-22 13:00:21,828] <launcher> INFO  system - ubic.env: prod
[2024-09-22 13:00:21,828] <launcher> INFO  system - System loaded
[2024-09-22 13:00:21,942] <launcher> INFO  mongo  - Checking if database needs to be shut down
[2024-09-22 13:00:23,173] <launcher> INFO  mongo  - Database was not running
[2024-09-22 13:00:23,173] <launcher> INFO  mongo  - Starting database process...
[2024-09-22 13:00:24,826] <mongo-db> WARN  mongo  - Stop listening to Mongo logs after process has exited
[2024-09-22 13:00:24,827] <mongo-db> INFO  mongo  - Database process stopped, code=62
mikelock commented 1 month ago

I have the same issue

FRahmann commented 1 month ago

Same here!

mimugmail commented 1 month ago

Sure? It should be fixed now

FRahmann commented 1 month ago

Sure? It should be fixed now

Im Home in about 4 Hours. Then I can recheck and provide you some more Information

kklyandev commented 1 month ago

Hi, I think I have a similar issue - I can't access the Unifi controller's UI and I'm not sure where to go see logs, but I can see a bunch of "<6>pid 13181 (mongod), jid 0, uid 975: exited on signal 6 (no core dump - bad address)" messages in the General logs section on my OPNSense (version 24.7.6). I'm using os-unifi-maxit v1.3 Do you have some troubleshooting steps I could take to further diagnose the issue?

pootinanny commented 5 days ago

Same issues as kklyandev.

Access logs show like 40 unifi user sessions with the same PID.

Looks like theyre all waiting for something:

30687 | unifi | 20 | 0 | 2763M | 228M | uwait | 3 | 0:01 | 0.16% | /usr/local/openjdk17/bin/java -Djava.awt.headless=true -Xmx1024M -Djava.net.preferIPv4Stack=false --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.time=ALL-UNNAMED --add-opens java.base/sun.security.util=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.rmi/sun.rmi.transport=ALL-UNNAMED -jar lib/ace.jar start{cluster-ClusterId{v} -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | --

image