fix(librechat): mongo via digest-pinned podman quadlet (kills the source-build freeze) #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/librechat-podman-mongo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
nixpkgs
mongodbis SSPL — no binary cache, soservices.librechat.enableLocalDBpulled a multi-hour C++ source build (~7G peak RAM + 3G swap in one service) into every deploy; auto-deploy restarted it on every boot and froze the box twice today (14:30, 17:37).Fix
librechat-mongo(digest-pinnedmongo:8), declared insidehosts/server/containers/librechat.nixviahome-manager.users.admin.services.podman.containers— one file holds the nspawn, firewall, secrets bootstrap and its DB. Loopback 27017 only; the nspawn reaches it directly (host netns).--wiredTigerCacheSizeG=0.5+MemoryMax=2G: mongod sizes its WT cache from visible RAM (host 30G) — without the cap it would target ~14G.allowUnfreedropped from the inner eval (mongodb was the only unfree; meilisearch is MIT).db-dump.shgains alibrechat-mongomongodump archive; AGENTS.md carries the SSPL-no-binary-cache gotcha.Bootstrap (done on the server)
/pool/services/librechat/secrets/mongo.env(0600: MONGO_INITDB_ROOT_USERNAME=librechat, MONGO_INITDB_ROOT_PASSWORD, MONGO_INITDB_DATABASE)/pool/services/librechat/secrets/mongo-uri(0600, newline-free URI, authSource=admin)/pool/services/podman/librechat-mongo/data dirVerified:
nix build .#nixosConfigurations.nixos-server.config.system.build.toplevel— no mongodb anywhere in the build set.After merge
sudo systemctl start auto-deploy.timer(it was stopped to break the freeze loop; its first re-run records a baseline, second run deploys).