From a859d8a5f80d13bfa01588827df0ff3e23edda02 Mon Sep 17 00:00:00 2001 From: undefined Date: Wed, 7 Aug 2024 11:43:07 +0800 Subject: [PATCH] install: ignore mongodb stderr --- install/install.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/install.ts b/install/install.ts index 812211ca1..60e3c18b2 100644 --- a/install/install.ts +++ b/install/install.ts @@ -463,7 +463,8 @@ ${nixConfBase}`); `pm2 start bash --name hydro-sandbox -- -c "ulimit -s unlimited && hydro-sandbox -mount-conf ${process.env.HOME}/.hydro/mount.yaml -http-addr=localhost:5050"`, ...installAsJudge ? [] : [ () => console.log(`WiredTiger cache size: ${wtsize}GB`), - `pm2 start mongod --name mongodb -- --auth --bind_ip 0.0.0.0 --wiredTigerCacheSizeGB=${wtsize}`, + // The only thing mongod writes to stderr is 'libcurl no version information available' + `pm2 start mongod --name mongodb -e /dev/null -- --auth --bind_ip 0.0.0.0 --wiredTigerCacheSizeGB=${wtsize}`, () => sleep(1000), 'pm2 start hydrooj', async () => { @@ -571,6 +572,7 @@ ${nixConfBase}`); { init: 'install.postinstall', operations: [ + 'echo "layout=1" >/etc/HYDRO_INSTALLER', 'echo "vm.swappiness = 1" >>/etc/sysctl.conf', 'sysctl -p', // dont retry this as it usually fails