<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Backup cleanup task starts but do not finish the job]]></title><description><![CDATA[<p dir="auto">Use case 1: In one instance I see multiple started, but not finished backup cleaner jobs with the same log message.</p>
<pre><code>box:taskworker Starting task 3335. Logs are at /home/yellowtent/platformdata/logs/tasks/3335.log
box:backupcleaner run: retention is {"keepWithinSecs":604800}
box:shell mounts: mountpoint -q -- /mnt/cloudronbackup
box:database Connection 422 error: Packets out of order. Got: 0 Expected: 7 PROTOCOL_PACKETS_OUT_OF_ORDER
</code></pre>
<p dir="auto">Use case 2: In another instance other error, but also started but not finished.<br />
retention is</p>
<pre><code>{"keepDaily":3,"keepWeekly":4,"keepMonthly":6}
</code></pre>
<pre><code>...
2024-11-29T03:30:29.878Z box:tasks update 21410: {"message":"Removing app backup (b178e0a6-ffe8-4ede-976c-c382f998a50d): app_b178e0a6-ffe8-4ede-976c-c382f998a50d_v3.55.0_97d403e1"}
2024-11-29T03:30:30.451Z box:tasks update 21410: {"message":"2024-11-14-030035-138/app_n8n.example.org_v3.55.0: Removing directory /mnt/cloudronbackup/my_example_org/2024-11-14-030035-138/app_n8n.example.org_v3.55.0"}
2024-11-29T03:30:30.523Z box:tasks update 21410: {"message":"Removing directory /mnt/cloudronbackup/my_example_org/2024-11-14-030035-138/app_n8n.example.org_v3.55.0"}
2024-11-29T03:30:30.524Z box:shell filesystem: rm -rf /mnt/cloudronbackup/my_example_org/2024-11-14-030035-138/app_n8n.example.org_v3.55.0
2024-11-29T03:38:00.508Z box:backupcleaner removeBackup: unable to prune backup directory /mnt/cloudronbackup/my_example_org/2024-11-14-030035-138: ENOTEMPTY: directory not empty, rmdir '/mnt/cloudronbackup/my_example_org/2024-11-14-030035-138'
2024-11-29T03:38:00.521Z box:backupcleaner removeBackup: removed 2024-11-14-030035-138/app_n8n.example.org_v3.55.0
...
</code></pre>
<p dir="auto">Use case 2: The Jobs are finished now as a error. Some magic or the there is a hidden timeout.</p>
]]></description><link>https://forum.cloudron.io/topic/12870/backup-cleanup-task-starts-but-do-not-finish-the-job</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Mar 2026 00:48:48 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/12870.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 Nov 2024 13:46:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Backup cleanup task starts but do not finish the job on Sat, 21 Dec 2024 21:39:25 GMT]]></title><description><![CDATA[<p dir="auto">I would say lets close this here. I do not see any failed cleanup jobs even multiple jobs try todo the same.</p>
]]></description><link>https://forum.cloudron.io/post/98684</link><guid isPermaLink="true">https://forum.cloudron.io/post/98684</guid><dc:creator><![CDATA[tobiasb]]></dc:creator><pubDate>Sat, 21 Dec 2024 21:39:25 GMT</pubDate></item><item><title><![CDATA[Reply to Backup cleanup task starts but do not finish the job on Tue, 10 Dec 2024 13:24:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> Hetzner storagebox (Finland) and sshfs, rsync and encrypted filenames. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=21ee5037fec" class="not-responsive emoji emoji-android emoji--smile" style="height:23px;width:auto;vertical-align:middle" title=":D" alt="😄" /> The host fs (cloudron) is not a ssd (netcup).</p>
]]></description><link>https://forum.cloudron.io/post/98024</link><guid isPermaLink="true">https://forum.cloudron.io/post/98024</guid><dc:creator><![CDATA[tobiasb]]></dc:creator><pubDate>Tue, 10 Dec 2024 13:24:44 GMT</pubDate></item><item><title><![CDATA[Reply to Backup cleanup task starts but do not finish the job on Tue, 10 Dec 2024 13:20:36 GMT]]></title><description><![CDATA[<p dir="auto">So 2 hours seem plenty of time to finish removing a bunch of files and folders, strange how they took so long then.</p>
<p dir="auto">At least I don't see anything to fix as such, locking them can have other sideeffects and a task to do some file deletion isn't going to consume much resources anyways. Maybe the target filesystem in this case is very slow?</p>
]]></description><link>https://forum.cloudron.io/post/98022</link><guid isPermaLink="true">https://forum.cloudron.io/post/98022</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Tue, 10 Dec 2024 13:20:36 GMT</pubDate></item><item><title><![CDATA[Reply to Backup cleanup task starts but do not finish the job on Tue, 10 Dec 2024 12:45:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a></p>
<p dir="auto">The jobs did not start on same time 23:30,  01:30, 03:30, 05:30.<br />
At the moment only one cleanup is running.</p>
]]></description><link>https://forum.cloudron.io/post/98020</link><guid isPermaLink="true">https://forum.cloudron.io/post/98020</guid><dc:creator><![CDATA[tobiasb]]></dc:creator><pubDate>Tue, 10 Dec 2024 12:45:16 GMT</pubDate></item><item><title><![CDATA[Reply to Backup cleanup task starts but do not finish the job on Tue, 10 Dec 2024 12:32:08 GMT]]></title><description><![CDATA[<p dir="auto">Yeah I guess the main question is, why some were even running parallel. Timewise they should be spaced out, so maybe those were just manually triggered or took unexpectedly long?</p>
]]></description><link>https://forum.cloudron.io/post/98018</link><guid isPermaLink="true">https://forum.cloudron.io/post/98018</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Tue, 10 Dec 2024 12:32:08 GMT</pubDate></item><item><title><![CDATA[Reply to Backup cleanup task starts but do not finish the job on Tue, 10 Dec 2024 09:03:03 GMT]]></title><description><![CDATA[<p dir="auto">The four jobs from about was all successfully.</p>
<p dir="auto">So what I take from it. A job just start and do not care if the other job already runs, perhaps they try to cleanup the same.<br />
And perhaps it is faster, because job A delete file A and job B can delete file B, when it is faster than job A.<br />
I did not read the entire log to verify that this was the case.</p>
<p dir="auto">Just a idea:</p>
<p dir="auto">A cleanup-job should look/claim what it does so that a following job do not try it also and waste time to find out that the file list in his memory was already deleted.</p>
]]></description><link>https://forum.cloudron.io/post/98014</link><guid isPermaLink="true">https://forum.cloudron.io/post/98014</guid><dc:creator><![CDATA[tobiasb]]></dc:creator><pubDate>Tue, 10 Dec 2024 09:03:03 GMT</pubDate></item><item><title><![CDATA[Reply to Backup cleanup task starts but do not finish the job on Mon, 09 Dec 2024 12:31:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a></p>
<p dir="auto">The tasks are still running,  box-task-21538.service started Sun 2024-12-08 23:30:02 UTC; so I need to wait to say which task was sucessfully, which not.</p>
<p dir="auto">The directory <code>/mnt/cloudronbackup/my_example_org/2024-11-14-030035-138</code> is gone from my first post.</p>
]]></description><link>https://forum.cloudron.io/post/97984</link><guid isPermaLink="true">https://forum.cloudron.io/post/97984</guid><dc:creator><![CDATA[tobiasb]]></dc:creator><pubDate>Mon, 09 Dec 2024 12:31:41 GMT</pubDate></item><item><title><![CDATA[Reply to Backup cleanup task starts but do not finish the job on Mon, 09 Dec 2024 12:20:23 GMT]]></title><description><![CDATA[<p dir="auto">Ok so before we get into this, are the tasks finishing and if so, also sucessfully? Despite the log lines you had posted earlier, the files are also gone afterwards?</p>
<p dir="auto">Trying to find out if there is anything to debug in the first place or if the log lines were just confusing.</p>
]]></description><link>https://forum.cloudron.io/post/97982</link><guid isPermaLink="true">https://forum.cloudron.io/post/97982</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 09 Dec 2024 12:20:23 GMT</pubDate></item><item><title><![CDATA[Reply to Backup cleanup task starts but do not finish the job on Mon, 09 Dec 2024 11:33:58 GMT]]></title><description><![CDATA[<p dir="auto">When I trust systemctl status box-task-12345.service, then all 4 tasks try to remove the same ( <code>rm -rf /mnt/cloudronbackup/myhost/2024-11-26-030148-145/app_n8n.example.org_v3.57.0</code>).<br />
I opened the process (rm -rf) with strace. which still runs syscall unlinkat/newfstatat. (pid 130049)</p>
<pre><code>newfstatat(4, "tpgnVSb3898pzsvVCOpQQ-IwDccdLmSNWN1n-DYUdlo", {st_mode=S_IFREG|0644, st_size=2180, ...}, AT_SYMLINK_NOFOLLOW) = 0
unlinkat(4, "tpgnVSb3898pzsvVCOpQQ-IwDccdLmSNWN1n-DYUdlo", 0) = 0
</code></pre>
<p dir="auto">All other tasks tries the same:</p>
<pre><code>newfstatat(4, "FRWM67Hwddxd+j4LlMw0eNkJtl1TB-NY4hupbahkGyTyWLn0Kduf8YTNra3FrvU3", 0x55fcd3be73e8, AT_SYMLINK_NOFOLLOW) = -1 ENOENT (No such file or directory)
unlinkat(4, "FRWM67Hwddxd+j4LlMw0eNkJtl1TB-NY4hupbahkGyTyWLn0Kduf8YTNra3FrvU3", 0) = -1 ENOENT (No such file or directory)
</code></pre>
<p dir="auto">Summary:</p>
<pre><code>box-task-21539.service 
  130049 rm -rf /mnt/cloudronbackup/myhost/2024-11-26-030148-145/app_n8n.example.org_v3.57.0 # still running
box-task-21538.service
  130047 rm -rf /mnt/cloudronbackup/myhost/2024-11-26-030148-145/app_n8n.example.org_v3.57.0
box-task-21543.service
  130046 rm -rf /mnt/cloudronbackup/myhost/2024-11-26-030148-145/app_n8n.example.org_v3.57.0
box-task-21545.service
  130048 rm -rf /mnt/cloudronbackup/myhost/2024-11-26-030148-145/app_n8n.example.org_v3.57.0
</code></pre>
<p dir="auto">I will wait and see what will be happing when task 1 is finished.</p>
]]></description><link>https://forum.cloudron.io/post/97978</link><guid isPermaLink="true">https://forum.cloudron.io/post/97978</guid><dc:creator><![CDATA[tobiasb]]></dc:creator><pubDate>Mon, 09 Dec 2024 11:33:58 GMT</pubDate></item><item><title><![CDATA[Reply to Backup cleanup task starts but do not finish the job on Mon, 09 Dec 2024 10:49:02 GMT]]></title><description><![CDATA[<p dir="auto">So since this is trying to remove things, while they are already gone. The log is maybe a bit misleading. Those are not critical as the intended outcome of the task is just already fulfilled. Basically those are just debug logs in the end.</p>
]]></description><link>https://forum.cloudron.io/post/97976</link><guid isPermaLink="true">https://forum.cloudron.io/post/97976</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 09 Dec 2024 10:49:02 GMT</pubDate></item><item><title><![CDATA[Reply to Backup cleanup task starts but do not finish the job on Mon, 09 Dec 2024 10:42:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a></p>
<p dir="auto">At some ENOTEMPTY errors I see a new error.</p>
<pre><code>box:backupcleaner removeBackup: unable to prune backup directory /mnt/cloudronbackup/myhost/2024-11-26-030148-145: ENOTEMPTY: directory not empty, rmdir '/mnt/cloudronbackup/myhost/2024-11-26-030148-145'
Dec 09 05:28:23 box:backupcleaner removeBackup: error removing app_cef6575d-2b80-4e31-bf0f-01b61e1ca149_v1.4.3_344f2264 from database. BoxError: Backup not found at Object.del (/home/yellowtent/box/src/backups.js:281:42) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { reason: 'Not found', details: {} }
Dec 09 05:28:23
</code></pre>
]]></description><link>https://forum.cloudron.io/post/97974</link><guid isPermaLink="true">https://forum.cloudron.io/post/97974</guid><dc:creator><![CDATA[tobiasb]]></dc:creator><pubDate>Mon, 09 Dec 2024 10:42:59 GMT</pubDate></item><item><title><![CDATA[Reply to Backup cleanup task starts but do not finish the job on Mon, 09 Dec 2024 10:08:01 GMT]]></title><description><![CDATA[<p dir="auto">Ok just trying to understand this better. The issue is that those cleanup jobs run in parallel? They are ok to run in parallel as such, so they shouldn't fail due to that.</p>
<p dir="auto">The <code>unable to prune backup directory</code> is just logging that fact, but it would not fail here.</p>
<p dir="auto">Do you see other errors or failing tasks as such?</p>
]]></description><link>https://forum.cloudron.io/post/97964</link><guid isPermaLink="true">https://forum.cloudron.io/post/97964</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 09 Dec 2024 10:08:01 GMT</pubDate></item><item><title><![CDATA[Reply to Backup cleanup task starts but do not finish the job on Mon, 09 Dec 2024 08:52:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a></p>
<p dir="auto">Yes, internal 2 different issues, but both had ~ 5 running backup cleanup jobs.</p>
<p dir="auto">I do not see case one at the moment, but case 2 still.</p>
<p dir="auto"><img src="/assets/uploads/files/1733734092311-35689108-1079-42fa-a0c2-00c4fe39fdf5-grafik.png" alt="35689108-1079-42fa-a0c2-00c4fe39fdf5-grafik.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I bet only one job should be started and when job 1 does something, which job 2 tries also that this can happen.</p>
]]></description><link>https://forum.cloudron.io/post/97956</link><guid isPermaLink="true">https://forum.cloudron.io/post/97956</guid><dc:creator><![CDATA[tobiasb]]></dc:creator><pubDate>Mon, 09 Dec 2024 08:52:42 GMT</pubDate></item><item><title><![CDATA[Reply to Backup cleanup task starts but do not finish the job on Mon, 02 Dec 2024 15:19:38 GMT]]></title><description><![CDATA[<p dir="auto">Looks like two totally different issues. For case 1 no clue why the database queries would be out of order. Is this easily reproducible?</p>
<p dir="auto">For case 2, looking at the logs, I wonder why it has mixed messages about the app domain? Is this because you manually replaced those or is this actually mixing domains in the original logs? Why a <code>rm -rf</code> wouldn't work on a folder which contains data is strange. Can you check permissions with that folder?</p>
]]></description><link>https://forum.cloudron.io/post/97601</link><guid isPermaLink="true">https://forum.cloudron.io/post/97601</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 02 Dec 2024 15:19:38 GMT</pubDate></item></channel></rss>