<?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[Issue with cleanup extension]]></title><description><![CDATA[<p>We have enabled cleanup to run every 15 minutes on reports older than 30 minutes. This works one or two times when initiated, then seems to work haphazardly. That is, checking the status of a report older than 30 minutes will return &quot;report not found&quot; but the document persists in storage. Is it possible we have conflicting settings in the config?</p>
<pre><code>    &quot;reports&quot;: {
      &quot;cleanInterval&quot;: &quot;15m&quot;,
      &quot;cleanThreshold&quot;: &quot;30m&quot;
   }
</code></pre>
<p><img src="/uploads/files/1777397453607-upload-1f91c12e-05c5-440f-9fb9-65122804a780-resized.png" alt="0_1777397452702_upload-1f91c12e-05c5-440f-9fb9-65122804a780" class="img-responsive img-markdown" /></p>
<p>Timestamps are UTC, but you can see many old ones here, including the one that is &quot;not found&quot; in the screenshot above.</p>
<p><img src="/uploads/files/1777397580894-upload-0de0e82e-08ba-4ad4-96a2-2dc260b81d2e.png" alt="0_1777397579883_upload-0de0e82e-08ba-4ad4-96a2-2dc260b81d2e" class="img-responsive img-markdown" /></p>
]]></description><link>https://forum.jsreport.net/topic/3530/issue-with-cleanup-extension</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 04:02:02 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/3530.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Apr 2026 17:33:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Issue with cleanup extension on Invalid Date]]></title><description><![CDATA[<p>We have enabled cleanup to run every 15 minutes on reports older than 30 minutes. This works one or two times when initiated, then seems to work haphazardly. That is, checking the status of a report older than 30 minutes will return &quot;report not found&quot; but the document persists in storage. Is it possible we have conflicting settings in the config?</p>
<pre><code>    &quot;reports&quot;: {
      &quot;cleanInterval&quot;: &quot;15m&quot;,
      &quot;cleanThreshold&quot;: &quot;30m&quot;
   }
</code></pre>
<p><img src="/uploads/files/1777397453607-upload-1f91c12e-05c5-440f-9fb9-65122804a780-resized.png" alt="0_1777397452702_upload-1f91c12e-05c5-440f-9fb9-65122804a780" class="img-responsive img-markdown" /></p>
<p>Timestamps are UTC, but you can see many old ones here, including the one that is &quot;not found&quot; in the screenshot above.</p>
<p><img src="/uploads/files/1777397580894-upload-0de0e82e-08ba-4ad4-96a2-2dc260b81d2e.png" alt="0_1777397579883_upload-0de0e82e-08ba-4ad4-96a2-2dc260b81d2e" class="img-responsive img-markdown" /></p>
]]></description><link>https://forum.jsreport.net/post/14913</link><guid isPermaLink="true">https://forum.jsreport.net/post/14913</guid><dc:creator><![CDATA[mmoye]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Issue with cleanup extension on Invalid Date]]></title><description><![CDATA[<p>What jsreport version do you use? What template store do you use?</p>
<p>With the debug logs, you should see this</p>
<pre><code>Cleaning up old reports
Cleaned ${removedReports} old reports
</code></pre>
<p>and when something fails you should see</p>
<pre><code>Failed to clean up old reports
</code></pre>
<p>Could you share these logs?</p>
]]></description><link>https://forum.jsreport.net/post/14914</link><guid isPermaLink="true">https://forum.jsreport.net/post/14914</guid><dc:creator><![CDATA[admin]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Issue with cleanup extension on Invalid Date]]></title><description><![CDATA[<p>Thank you for the quick reply. We are using version 4.8.0. Template store is fs. There is nothing in the logs related to cleanup other than an acknowledgement of the settings. What does the last part of the statement refer to with 'undefined report(s) deletion per run'?</p>
<p><code>info: reports extension has enabled old reports cleanup with interval 900000ms, threshold 1800000ms and undefined report(s) deletion per run</code></p>
<p>Here is the entire config:</p>
<pre><code>{
  &quot;httpPort&quot;: 5488,
  &quot;store&quot;: {
    &quot;provider&quot;: &quot;fs&quot;
  },
  &quot;blobStorage&quot;: {
    &quot;provider&quot;: &quot;fs&quot;
  },
  &quot;logger&quot;: {
    &quot;console&quot;: {
      &quot;transport&quot;: &quot;console&quot;,
      &quot;level&quot;: &quot;debug&quot;
    },
    &quot;file&quot;: {
      &quot;transport&quot;: &quot;file&quot;,
      &quot;level&quot;: &quot;info&quot;,
      &quot;filename&quot;: &quot;logs/reporter.log&quot;
    },
    &quot;error&quot;: {
      &quot;transport&quot;: &quot;file&quot;,
      &quot;level&quot;: &quot;error&quot;,
      &quot;filename&quot;: &quot;logs/error.log&quot;
    }
  },
  &quot;trustUserCode&quot;: true,
  &quot;reportTimeout&quot;: 12000000,
  &quot;workers&quot;: {
    &quot;numberOfWorkers&quot;: 8
  },
  &quot;extensions&quot;: {
    &quot;authentication&quot;: {
      &quot;cookieSession&quot;: {
        &quot;secret&quot;: &quot;xxxxxxxxxx&quot;
      },
      &quot;admin&quot;: {
        &quot;username&quot;: &quot;xxxxxxxxxx&quot;,
        &quot;password&quot;: &quot;xxxxxxxxxxx&quot;
      },
      &quot;enabled&quot;: true
    },
    &quot;sample-template&quot;: {
      &quot;createSamples&quot;: true
    },
    &quot;reports&quot;: {
      &quot;cleanInterval&quot;: &quot;15m&quot;,
      &quot;cleanThreshold&quot;: &quot;30m&quot;
   }
  }
}
</code></pre>
]]></description><link>https://forum.jsreport.net/post/14915</link><guid isPermaLink="true">https://forum.jsreport.net/post/14915</guid><dc:creator><![CDATA[mmoye]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Issue with cleanup extension on Invalid Date]]></title><description><![CDATA[<blockquote>
<p>What does the last part of the statement refer to with 'undefined report(s) deletion per run'?</p>
</blockquote>
<p>That seems to be just a logging issue fixed in the 4.9.0</p>
<blockquote>
<p>There is nothing in the logs related to cleanup other than an acknowledgement of the settings.</p>
</blockquote>
<p>That is strange, when I run with the short interval, I can immediately see the cleanup logs (at the end). Could you double-check the same and compare with your setup?</p>
<pre><code>C:\work\jsreport\jsreport&gt;docker run -p 5488:5488 -e extensions_reports_cleanInterval=5s -e extensions_reports_cleanThreshold=1m jsreport/jsreport:4.8.0
2026-04-28T19:05:09.581Z - info: Initializing jsreport (version: 4.8.0, configuration file: jsreport.config.json, nodejs: 18.20.5)
2026-04-28T19:05:09.582Z - info: Searching for available extensions in /app/
2026-04-28T19:05:09.583Z - info: Extensions location cache not found, crawling directories
2026-04-28T19:05:09.694Z - info: Found 35 extension(s)
2026-04-28T19:05:09.702Z - debug: Writing extension locations cache to /tmp/jsreport/core/locations.json
2026-04-28T19:05:09.702Z - debug: Discovered 35 extensions
2026-04-28T19:05:09.729Z - info: Using extension authentication@4.2.3
2026-04-28T19:05:09.781Z - debug: Extension authentication@4.2.3 was disabled
2026-04-28T19:05:09.781Z - info: Using extension base@4.0.0
2026-04-28T19:05:09.784Z - info: Using extension child-templates@4.1.0
2026-04-28T19:05:09.784Z - info: Using extension cli@4.1.0
2026-04-28T19:05:09.785Z - info: Using extension components@4.0.2
2026-04-28T19:05:09.786Z - info: Using extension data@4.1.0
2026-04-28T19:05:09.786Z - info: Using extension express@4.2.0
2026-04-28T19:05:09.898Z - info: Using extension freeze@4.0.0
2026-04-28T19:05:09.898Z - info: Using extension fs-store@4.1.0
2026-04-28T19:05:09.936Z - info: Using extension handlebars@4.0.1
2026-04-28T19:05:09.937Z - info: Using extension import-export@4.0.6
2026-04-28T19:05:09.940Z - info: Using extension jsrender@4.0.0
2026-04-28T19:05:09.941Z - info: Using extension licensing@4.0.4
2026-04-28T19:05:09.959Z - info: Using extension localization@4.0.1
2026-04-28T19:05:09.959Z - info: Using extension npm@4.0.0
2026-04-28T19:05:09.962Z - info: Using extension pdf-utils@4.3.0
2026-04-28T19:05:09.964Z - info: Using extension reports@4.1.3
2026-04-28T19:05:09.965Z - info: reports extension has enabled old reports cleanup with interval 5000ms, threshold 60000ms and undefined report(s) deletion per run
2026-04-28T19:05:09.966Z - info: Using extension tags@4.0.1
2026-04-28T19:05:09.966Z - info: Using extension text@4.0.2
2026-04-28T19:05:09.966Z - info: Using extension version-control@4.1.0
2026-04-28T19:05:09.969Z - info: Using extension assets@4.2.1
2026-04-28T19:05:09.973Z - info: Using extension authorization@4.1.0
2026-04-28T19:05:09.974Z - debug: Extension authorization@4.1.0 was disabled
2026-04-28T19:05:09.974Z - info: Using extension browser-client@4.1.0
2026-04-28T19:05:09.975Z - info: Using extension chrome-pdf@4.1.1
2026-04-28T19:05:09.976Z - debug: Chrome strategy is chrome-pool, numberOfWorkers: 1
2026-04-28T19:05:09.977Z - debug: Chrome custom launch options are args=--no-sandbox,--disable-dev-shm-usage, executablePath=/usr/lib/chromium/chrome, protocolTimeout=60000
2026-04-28T19:05:09.977Z - info: Using extension docx@4.7.0
2026-04-28T19:05:09.978Z - info: Using extension html-to-xlsx@4.2.0
2026-04-28T19:05:10.070Z - info: html-to-xlsx detected chrome as available html engine
2026-04-28T19:05:10.070Z - info: Using extension pptx@4.4.0
2026-04-28T19:05:10.071Z - info: Using extension scheduling@4.1.0
2026-04-28T19:05:10.082Z - info: Using extension scripts@4.2.0
2026-04-28T19:05:10.082Z - info: Using extension static-pdf@4.1.0
2026-04-28T19:05:10.082Z - info: Using extension studio@4.3.0
2026-04-28T19:05:10.112Z - info: Using extension xlsx@4.4.0
2026-04-28T19:05:10.113Z - info: Using extension public-templates@4.0.0
2026-04-28T19:05:10.113Z - debug: Extension public-templates@4.0.0 was disabled
2026-04-28T19:05:10.113Z - info: Using extension sample-template@4.0.1
2026-04-28T19:05:10.114Z - info: Using extension studio-theme-dark@4.0.0
2026-04-28T19:05:10.115Z - info: Using general timeout for rendering (reportTimeout: 60000)
2026-04-28T19:05:10.115Z - info: Using fs provider for template store.
2026-04-28T19:05:10.117Z - info: fs store is persisting using fs for /app/data
2026-04-28T19:05:10.121Z - info: fs store is loading data
2026-04-28T19:05:10.129Z - info: fs store is initialized successfully
2026-04-28T19:05:10.132Z - debug: studio default theme is: light
2026-04-28T19:05:10.134Z - info: Creating default express app.
2026-04-28T19:05:10.142Z - info: jsreport server successfully started on http port: 5488
2026-04-28T19:05:10.143Z - info: Verifying license key free
2026-04-28T19:05:10.143Z - info: Using free license
2026-04-28T19:05:10.152Z - info: Migrating templates chrome settings (waitForNetworkIddle -&gt; waitForNetworkIdle)
2026-04-28T19:05:10.154Z - info: Migration successful
2026-04-28T19:05:10.155Z - debug: Creating samples is disabled
2026-04-28T19:05:10.155Z - info: Initializing worker threads
2026-04-28T19:05:10.155Z - debug: Extensions in workers: base, child-templates, components, data, express, handlebars, jsrender, localization, npm, pdf-utils, reports, text, version-control, assets, browser-client, chrome-pdf, docx, html-to-xlsx, pptx, scripts, static-pdf, studio, xlsx
2026-04-28T19:05:10.418Z - info: 2 worker threads initialized in 263ms
2026-04-28T19:05:10.418Z - info: Starting temp files cleanup with 180000ms threshold
2026-04-28T19:05:10.418Z - info: reporter initialized
2026-04-28T19:05:14.967Z - debug: Cleaning up old reports
2026-04-28T19:05:14.969Z - debug: Cleaned 0 old reports
2026-04-28T19:05:19.969Z - debug: Cleaning up old reports
2026-04-28T19:05:19.969Z - debug: Cleaned 0 old reports
</code></pre>
]]></description><link>https://forum.jsreport.net/post/14916</link><guid isPermaLink="true">https://forum.jsreport.net/post/14916</guid><dc:creator><![CDATA[admin]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Issue with cleanup extension on Invalid Date]]></title><description><![CDATA[<p>Here are the logs after restarting the VM we have JSR running on.</p>
<pre><code>2026-04-28T19:28:17.650Z - info: Initializing jsreport (version: 4.8.0, configuration file: jsreport.config.json, nodejs: 22.14.0)
2026-04-28T19:28:17.651Z - info: Searching for available extensions in C:\apps\jsreportapp\
2026-04-28T19:28:19.551Z - info: Extensions location cache contains up to date information, skipping crawling in C:\apps\jsreportapp\
2026-04-28T19:28:19.884Z - info: Found 36 extension(s)
2026-04-28T19:28:19.893Z - warn: Filtering out duplicated extension &quot;handlebars&quot; from C:\apps\jsreportapp\node_modules\@jsreport\jsreport-handlebars, using C:\apps\jsreportapp\node_modules\@jsreport\.jsreport-handlebars-l3SNQned
2026-04-28T19:28:19.931Z - info: Using extension handlebars@4.0.1
2026-04-28T19:28:19.932Z - info: Using extension authentication@4.2.3
2026-04-28T19:28:19.934Z - info: Using extension base@4.0.0
2026-04-28T19:28:19.934Z - info: Using extension child-templates@4.1.0
2026-04-28T19:28:19.935Z - info: Using extension cli@4.1.0
2026-04-28T19:28:19.935Z - info: Using extension components@4.0.2
2026-04-28T19:28:19.935Z - info: Using extension data@4.1.0
2026-04-28T19:28:19.936Z - info: Using extension express@4.2.0
2026-04-28T19:28:19.937Z - info: Using extension freeze@4.0.0
2026-04-28T19:28:19.937Z - info: Using extension fs-store@4.1.0
2026-04-28T19:28:19.940Z - info: Using extension import-export@4.0.6
2026-04-28T19:28:19.940Z - info: Using extension jsrender@4.0.0
2026-04-28T19:28:19.940Z - info: Using extension licensing@4.0.4
2026-04-28T19:28:19.941Z - info: Using extension localization@4.0.1
2026-04-28T19:28:19.941Z - info: Using extension npm@4.0.0
2026-04-28T19:28:19.943Z - info: Using extension pdf-utils@4.3.0
2026-04-28T19:28:19.943Z - info: Using extension reports@4.1.3
2026-04-28T19:28:19.944Z - info: reports extension has enabled old reports cleanup with interval 30000ms, threshold 60000ms and undefined report(s) deletion per run
2026-04-28T19:28:19.944Z - info: Using extension tags@4.0.1
2026-04-28T19:28:19.944Z - info: Using extension text@4.0.2
2026-04-28T19:28:19.944Z - info: Using extension version-control@4.1.0
2026-04-28T19:28:19.945Z - info: Using extension assets@4.2.1
2026-04-28T19:28:19.946Z - info: Using extension authorization@4.1.0
2026-04-28T19:28:19.946Z - info: Using extension browser-client@4.1.0
2026-04-28T19:28:19.946Z - info: Using extension chrome-pdf@4.1.1
2026-04-28T19:28:19.948Z - info: Using extension docx@4.7.0
2026-04-28T19:28:19.948Z - info: Using extension html-to-xlsx@4.2.0
2026-04-28T19:28:19.949Z - info: html-to-xlsx detected chrome as available html engine
2026-04-28T19:28:19.949Z - info: Using extension pptx@4.4.0
2026-04-28T19:28:19.949Z - info: Using extension scheduling@4.1.0
2026-04-28T19:28:19.950Z - info: Using extension scripts@4.2.0
2026-04-28T19:28:19.951Z - info: Using extension static-pdf@4.1.0
2026-04-28T19:28:19.951Z - info: Using extension studio@4.3.0
2026-04-28T19:28:19.963Z - info: Using extension xlsx@4.4.0
2026-04-28T19:28:19.963Z - info: Using extension public-templates@4.0.0
2026-04-28T19:28:19.964Z - info: Using extension sample-template@4.0.1
2026-04-28T19:28:19.964Z - info: Using extension studio-theme-dark@4.0.0
2026-04-28T19:28:19.965Z - info: Code sandboxing is disabled, users can potentially penetrate the local system if you allow code from external users to be part of your reports
2026-04-28T19:28:19.965Z - info: Using general timeout for rendering (reportTimeout: 12000000)
2026-04-28T19:28:19.965Z - info: Using fs provider for template store.
2026-04-28T19:28:19.966Z - info: fs store is persisting using fs for C:\apps\jsreportapp\data
2026-04-28T19:28:20.070Z - info: fs store is loading data
2026-04-28T19:28:20.315Z - info: fs store is initialized successfully
2026-04-28T19:28:20.325Z - info: Creating default express app.
2026-04-28T19:28:20.340Z - error: Error when starting http server on port 5488 Error: listen EADDRINUSE: address already in use :::5488
    at Server.setupListenHandle [as _listen2] (node:net:1937:16)
    at listenInCluster (node:net:1994:12)
    at Server.listen (node:net:2099:7)
    at C:\apps\jsreportapp\node_modules\@jsreport\jsreport-express\lib\main.js:22:12
    at new Promise (&lt;anonymous&gt;)
    at startAsync (C:\apps\jsreportapp\node_modules\@jsreport\jsreport-express\lib\main.js:16:10)
    at C:\apps\jsreportapp\node_modules\@jsreport\jsreport-express\lib\main.js:50:14
    at Object.start (C:\apps\jsreportapp\node_modules\@jsreport\jsreport-express\lib\main.js:125:13)
    at Object.&lt;anonymous&gt; (C:\apps\jsreportapp\node_modules\@jsreport\jsreport-express\lib\main.js:333:30)
    at async ListenerCollection.fire (C:\apps\jsreportapp\node_modules\@jsreport\jsreport-core\lib\shared\listenerCollection.js:157:21)
2026-04-28T19:28:20.340Z - error: Error occurred during reporter init: Error: listen EADDRINUSE: address already in use :::5488
    at Server.setupListenHandle [as _listen2] (node:net:1937:16)
    at listenInCluster (node:net:1994:12)
    at Server.listen (node:net:2099:7)
    at C:\apps\jsreportapp\node_modules\@jsreport\jsreport-express\lib\main.js:22:12
    at new Promise (&lt;anonymous&gt;)
    at startAsync (C:\apps\jsreportapp\node_modules\@jsreport\jsreport-express\lib\main.js:16:10)
    at C:\apps\jsreportapp\node_modules\@jsreport\jsreport-express\lib\main.js:50:14
    at Object.start (C:\apps\jsreportapp\node_modules\@jsreport\jsreport-express\lib\main.js:125:13)
    at Object.&lt;anonymous&gt; (C:\apps\jsreportapp\node_modules\@jsreport\jsreport-express\lib\main.js:333:30)
    at async ListenerCollection.fire (C:\apps\jsreportapp\node_modules\@jsreport\jsreport-core\lib\shared\listenerCollection.js:157:21)
2026-04-28T19:28:20.776Z - info: docx generation was finished rootId=pbp9huzgxenxetv, id=pbp9huzgxenxetv
2026-04-28T19:28:21.115Z - info: Rendering request 3 finished in 46396 ms rootId=pbp9huzgxenxetv, id=pbp9huzgxenxetv
</code></pre>
<p>I generated 2 reports at 7:28 UTC.</p>
<p><img src="/uploads/files/1777404913810-upload-71d64cf5-33a5-493f-bd0d-4bafa6d9a0ea-resized.png" alt="0_1777404912819_upload-71d64cf5-33a5-493f-bd0d-4bafa6d9a0ea" class="img-responsive img-markdown" /><br />
<img src="/uploads/files/1777404973505-upload-74f8f504-9b74-4f7d-be05-7d5526e99c09-resized.png" alt="0_1777404973291_upload-74f8f504-9b74-4f7d-be05-7d5526e99c09" class="img-responsive img-markdown" /></p>
<p>They are both still in storage (7:37 UTC)<br />
<img src="/uploads/files/1777405075503-upload-f55afc98-e2a4-4e95-aa0a-ac60305f15b2.png" alt="0_1777405074650_upload-f55afc98-e2a4-4e95-aa0a-ac60305f15b2" class="img-responsive img-markdown" /></p>
]]></description><link>https://forum.jsreport.net/post/14917</link><guid isPermaLink="true">https://forum.jsreport.net/post/14917</guid><dc:creator><![CDATA[mmoye]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>