Comments (2)
That's pretty serious. I'll look into this the next time I have some free time.
We intentionally don't use jsvc
as we don't need the things it gives us inside of docker.
from docker-unifi-rpi.
This may be less serious than it seemed. Looking at /mnt/cache/appdata/unifi/logs/mongod.log
inside the container, mongod does appear to listen for SIGTERM. It might be nice for the whole app to shut down cleanly, but AFAICT the database already does and that's the main thing that matters.
One small remaining concern is if mongod happens to take longer than 10s to shut down in some cases and gets killed instead. The log below is from an empty database that's not really being used. It only took 6ms to shut down. I also looked at another database under light load (2 APs and a couple dozen clients) and it took 200ms to shut down. Seems unlikely to be an issue for home use.
Mon Jan 13 02:12:31.935 [signalProcessingThread] got signal 15 (Terminated), will terminate after current cmd ends
Mon Jan 13 02:12:31.935 [signalProcessingThread] now exiting
Mon Jan 13 02:12:31.935 dbexit:
Mon Jan 13 02:12:31.935 [signalProcessingThread] shutdown: going to close listening sockets...
Mon Jan 13 02:12:31.935 [signalProcessingThread] closing listening socket: 7
Mon Jan 13 02:12:31.935 [signalProcessingThread] closing listening socket: 8
Mon Jan 13 02:12:31.935 [signalProcessingThread] removing socket file: /usr/lib/unifi/run/mongodb-27117.sock
Mon Jan 13 02:12:31.935 [signalProcessingThread] shutdown: going to flush diaglog...
Mon Jan 13 02:12:31.935 [signalProcessingThread] shutdown: going to close sockets...
Mon Jan 13 02:12:31.935 [signalProcessingThread] shutdown: waiting for fs preallocator...
Mon Jan 13 02:12:31.935 [signalProcessingThread] shutdown: closing all files...
Mon Jan 13 02:12:31.937 [conn6] end connection 127.0.0.1:36132 (14 connections now open)
Mon Jan 13 02:12:31.937 [conn9] end connection 127.0.0.1:36140 (14 connections now open)
Mon Jan 13 02:12:31.937 [conn7] end connection 127.0.0.1:36134 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn5] end connection 127.0.0.1:36128 (14 connections now open)
Mon Jan 13 02:12:31.937 [conn13] end connection 127.0.0.1:36150 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn4] end connection 127.0.0.1:36126 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn8] end connection 127.0.0.1:36138 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn15] end connection 127.0.0.1:36176 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn10] end connection 127.0.0.1:36142 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn11] end connection 127.0.0.1:36144 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn12] end connection 127.0.0.1:36148 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn2] end connection 127.0.0.1:36122 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn3] end connection 127.0.0.1:36124 (14 connections now open)
Mon Jan 13 02:12:31.938 [conn1] end connection 127.0.0.1:36120 (14 connections now open)
Mon Jan 13 02:12:31.939 [conn14] end connection 127.0.0.1:36152 (14 connections now open)
Mon Jan 13 02:12:31.941 [signalProcessingThread] closeAllFiles() finished
Mon Jan 13 02:12:31.941 [signalProcessingThread] shutdown: removing fs lock...
Mon Jan 13 02:12:31.941 dbexit: really exiting now
from docker-unifi-rpi.
Related Issues (20)
- 64-bit versions don't work on Raspberry Pi 3B+ with 64-bit Raspbian HOT 24
- WARNING: An illegal reflective access operation has occurred HOT 17
- Unifi controller stopped working after upgrade to "bullseye" on my pi4 HOT 5
- 7.5.165 fails with a ClassNotFoundException HOT 1
- Warning of image platform and detected host platform mismatch after installing on Ubuntu Server 22.04 64 bit HOT 4
- is 8.0.7 stable ? HOT 3
- 8.0.24+ needs a new mongo HOT 10
- 8.0.7 after restart
- Port 8080 not available (RPI 4B) again!
- Managed to install docker+Unifi latest on Raspi 4B with 64bit bookworm.... some remarks on "Release file" error. HOT 1
- Remapping of port 8080 in docker setup HOT 2
- /boot
- Connection error. Please check your Network application process state. HOT 1
- Mongo 2.4.14 is suddenly crashing on arm32v7 HOT 2
- Mongo can't upgrade data files from 2.4 directly to 3.6. HOT 2
- Mongo Upgrade! HOT 7
- Unable to setup new network controller HOT 5
- High Disk IO Requests after MongoDB Upgrade HOT 9
- Failure to pull image of the stack: unify Pulling nog matching manifest for linux/arm/v7 . . HOT 11
- Clarify docker-compose setup HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-unifi-rpi.