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