From 3583aaf8823a313cdb57be882e8e13016f557dab Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 17 Mar 2021 11:10:47 -0700 Subject: [PATCH] Fix issue where df output is not parsed correctly LANG is the default locale i.e when LC_* are not specificall LC_ALL will override them all https://forum.cloudron.io/topic/4681/going-to-system-info-triggers-assertion-error (cherry picked from commit f7bd47888ac157fc5b86021f6458b6a7f0d3fba8) --- setup/start/systemd/box.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup/start/systemd/box.service b/setup/start/systemd/box.service index 35d9b59b8..c4afcb9c2 100644 --- a/setup/start/systemd/box.service +++ b/setup/start/systemd/box.service @@ -13,7 +13,8 @@ Type=idle WorkingDirectory=/home/yellowtent/box Restart=always ExecStart=/home/yellowtent/box/box.js -Environment="HOME=/home/yellowtent" "USER=yellowtent" "DEBUG=box:*,connect-lastmile,-box:ldap" "BOX_ENV=cloudron" "NODE_ENV=production" +; we run commands like df which will parse properly only with correct locale +Environment="HOME=/home/yellowtent" "USER=yellowtent" "DEBUG=box:*,connect-lastmile,-box:ldap" "BOX_ENV=cloudron" "NODE_ENV=production" "LC_ALL=C" ; kill apptask processes as well KillMode=control-group ; Do not kill this process on OOM. Children inherit this score. Do not set it to -1000 so that MemoryMax can keep working