From a1d0fc66b081e7dfcd6fb8ad8173dd9be3f5441d Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Mon, 11 Nov 2024 18:37:41 +0200 Subject: [PATCH] Updated Cron (markdown) --- Cron.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cron.md b/Cron.md index ea8c59d..7f09a32 100644 --- a/Cron.md +++ b/Cron.md @@ -26,6 +26,11 @@ sleep 10 /snap/wekan/current/usr/bin/mongosh wekan \ --eval 'db.adminCommand({ setParameter: 1, diagnosticDataCollectionEnabled: false});' \ --port 27019 + +# Delete incomplete uploads so that they would not prevent starting WeKan +/snap/wekan/current/usr/bin/mongosh wekan \ +--eval 'db.getCollection("cfs.attachments.filerecord").find( { "uploadedAt": { "$exists": true }, "copies.attachments" : null,"failures.copies.attachments.doneTrying" : {"$ne" : true}});' \ +--port 27019 ``` 3) Save and exit nano: Ctrl-o Enter Ctrl-x Enter