<?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[Config file not applied?]]></title><description><![CDATA[<p>I'm having timeout problems. After increasing the limits to ridiculous levels (300 seconds) for all timeout settings I know about, I still get timeouts (much earlier than 300 seconds).</p>
<p>I'm building a docker image based on the official 2.5 image.</p>
<p>My Dockerfile:</p>
<pre><code class="language-bash">FROM jsreport/jsreport:2.5.0

COPY license-key.txt /app

RUN cd /app &amp;&amp; npm install \
  moment \
  moment-timezone \
  intl \
  dd-trace \
  handlebars-helpers \
  node-fetch \
  jsreport-assets \
  jsreport-static-pdf
</code></pre>
<p>In a mounted folder I have jsreport.config.json, which looks like this (this file is in the same folder as jsreport.license.json, which is the root of the mounted folder tree):</p>
<pre><code class="language-json">{
  &quot;httpPort&quot;: 5488,
  &quot;allowLocalFilesAccess&quot;: true,
  &quot;store&quot;: {
    &quot;provider&quot;: &quot;fs&quot;
  },
  &quot;blobStorage&quot;: {
    &quot;provider&quot;: &quot;fs&quot;
  },
  &quot;templatingEngines&quot;: {
    &quot;timeout&quot;: 300000,
  },
  &quot;chrome&quot;: {
    &quot;timeout&quot;: 300000
  },
  &quot;extensions&quot;: {
    &quot;scripts&quot;: {&quot;timeout&quot;: 300000},
    &quot;express&quot;: {
      &quot;inputRequestLimit&quot;: &quot;50mb&quot;
    },
    &quot;child-templates&quot;: {
      &quot;parallelLimit&quot;: 5
    }
  }
}
</code></pre>
<p>Here is what I get:</p>
<pre><code>Error: Timeout during evaluation of pdf-utils operations
    at Timeout._onTimeout (/app/node_modules/script-manager/lib/manager-servers.js:154:23)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7)
</code></pre>
<p>Is there any way to see the current config params from within Studio? I'm suspecting that my config doesn't get applied.</p>
]]></description><link>https://forum.jsreport.net/topic/1258/config-file-not-applied</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 18:24:43 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/1258.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Sep 2019 17:37:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Config file not applied? on Invalid Date]]></title><description><![CDATA[<p>I'm having timeout problems. After increasing the limits to ridiculous levels (300 seconds) for all timeout settings I know about, I still get timeouts (much earlier than 300 seconds).</p>
<p>I'm building a docker image based on the official 2.5 image.</p>
<p>My Dockerfile:</p>
<pre><code class="language-bash">FROM jsreport/jsreport:2.5.0

COPY license-key.txt /app

RUN cd /app &amp;&amp; npm install \
  moment \
  moment-timezone \
  intl \
  dd-trace \
  handlebars-helpers \
  node-fetch \
  jsreport-assets \
  jsreport-static-pdf
</code></pre>
<p>In a mounted folder I have jsreport.config.json, which looks like this (this file is in the same folder as jsreport.license.json, which is the root of the mounted folder tree):</p>
<pre><code class="language-json">{
  &quot;httpPort&quot;: 5488,
  &quot;allowLocalFilesAccess&quot;: true,
  &quot;store&quot;: {
    &quot;provider&quot;: &quot;fs&quot;
  },
  &quot;blobStorage&quot;: {
    &quot;provider&quot;: &quot;fs&quot;
  },
  &quot;templatingEngines&quot;: {
    &quot;timeout&quot;: 300000,
  },
  &quot;chrome&quot;: {
    &quot;timeout&quot;: 300000
  },
  &quot;extensions&quot;: {
    &quot;scripts&quot;: {&quot;timeout&quot;: 300000},
    &quot;express&quot;: {
      &quot;inputRequestLimit&quot;: &quot;50mb&quot;
    },
    &quot;child-templates&quot;: {
      &quot;parallelLimit&quot;: 5
    }
  }
}
</code></pre>
<p>Here is what I get:</p>
<pre><code>Error: Timeout during evaluation of pdf-utils operations
    at Timeout._onTimeout (/app/node_modules/script-manager/lib/manager-servers.js:154:23)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7)
</code></pre>
<p>Is there any way to see the current config params from within Studio? I'm suspecting that my config doesn't get applied.</p>
]]></description><link>https://forum.jsreport.net/post/5810</link><guid isPermaLink="true">https://forum.jsreport.net/post/5810</guid><dc:creator><![CDATA[msageryd]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Config file not applied? on Fri, 20 Sep 2019 05:52:21 GMT]]></title><description><![CDATA[<p>More info: The timeout occurs after exactly 30 seconds.</p>
<p>The same report, with same data finishes after 38 seconds on my local jsreport server. This is exactly the same docker image as I deploy to AWS Aurora. To be sure I just did a rebuild of the image and re-deployed it, problem persists.</p>
]]></description><link>https://forum.jsreport.net/post/5814</link><guid isPermaLink="true">https://forum.jsreport.net/post/5814</guid><dc:creator><![CDATA[msageryd]]></dc:creator><pubDate>Fri, 20 Sep 2019 05:52:21 GMT</pubDate></item><item><title><![CDATA[Reply to Config file not applied? on Invalid Date]]></title><description><![CDATA[<p>What if you put a typo to the <code>jsreport.config.json</code> to make it an invalid json. Does the jsreport start afterward? This way you can easily find out if the config file is used or not.</p>
<p>The config looks correct and the timeout for pdf utils should be 300s.</p>
<p>Btw in the jsreport 2.6.0 there is no timeout for the pdf utils.<br />
<a href="https://github.com/jsreport/jsreport/issues/563" rel="nofollow">https://github.com/jsreport/jsreport/issues/563</a></p>
]]></description><link>https://forum.jsreport.net/post/5842</link><guid isPermaLink="true">https://forum.jsreport.net/post/5842</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Config file not applied? on Mon, 23 Sep 2019 12:35:42 GMT]]></title><description><![CDATA[<p>Thanks.<br />
I have now done two things, and it seems to work. Unfortunately, it's quite cumbersome to research since my servers are at AWS. After every change I have to build an image, upload to AWS, wait for it to start, and when it's started I have to import all my templates again (server runs on Fargate with ephemeral storage).</p>
<p>I did:</p>
<ul>
<li>Upgrade to 2.6</li>
<li>Build the image with no-cache, like this: <code>docker build --no-cache ...</code></li>
</ul>
<p>Is there really no way of seeing the active config params from within studio? Can I reach them via script or helper?</p>
]]></description><link>https://forum.jsreport.net/post/5844</link><guid isPermaLink="true">https://forum.jsreport.net/post/5844</guid><dc:creator><![CDATA[msageryd]]></dc:creator><pubDate>Mon, 23 Sep 2019 12:35:42 GMT</pubDate></item><item><title><![CDATA[Reply to Config file not applied? on Invalid Date]]></title><description><![CDATA[<blockquote>
<p>Is there really no way of seeing the active config params from within studio? Can I reach them via script or helper?</p>
</blockquote>
<p>I am afraid no, only some options are exposed to the studio through <a href="http://localhost:5488/api/extensions" rel="nofollow">http://localhost:5488/api/extensions</a><br />
You would need to modify your server.js and expose config for example to the api using</p>
<pre><code class="language-js">jsreport.on('express-configure', (app) =&gt; {
  app.get('/api/config', (req, res) =&gt; res.send(JSON.stringify(jsreport.options)))
})
</code></pre>
]]></description><link>https://forum.jsreport.net/post/5847</link><guid isPermaLink="true">https://forum.jsreport.net/post/5847</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Config file not applied? on Invalid Date]]></title><description><![CDATA[<p>Ok,<br />
Please make this into a feature request. It would be great to be able to pull out config data from the server or even show it in the about-dialog in Studio.</p>
]]></description><link>https://forum.jsreport.net/post/5848</link><guid isPermaLink="true">https://forum.jsreport.net/post/5848</guid><dc:creator><![CDATA[msageryd]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Config file not applied? on Invalid Date]]></title><description><![CDATA[<p>It wouldn't be secure to expose connection strings and other secrets this way. However, we will consider it as an opt-in option you can enable in config. Thank you.</p>
]]></description><link>https://forum.jsreport.net/post/5849</link><guid isPermaLink="true">https://forum.jsreport.net/post/5849</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Config file not applied? on Invalid Date]]></title><description><![CDATA[<p>It can be tracked here <a href="https://github.com/jsreport/jsreport/issues/635" rel="nofollow">https://github.com/jsreport/jsreport/issues/635</a></p>
]]></description><link>https://forum.jsreport.net/post/5850</link><guid isPermaLink="true">https://forum.jsreport.net/post/5850</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Config file not applied? on Invalid Date]]></title><description><![CDATA[<p>How about just letting us add a version number to the config json and expose this. It would at least be a way ow knowing if your new config has been applied.</p>
<pre><code>{
  &quot;version&quot;: 12,
  &quot;httpPort&quot;: 5488,
  &quot;allowLocalFilesAccess&quot;: true,
  &quot;store&quot;: {
    &quot;provider&quot;: &quot;fs&quot;
  },
</code></pre>
]]></description><link>https://forum.jsreport.net/post/5851</link><guid isPermaLink="true">https://forum.jsreport.net/post/5851</guid><dc:creator><![CDATA[msageryd]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Config file not applied? on Invalid Date]]></title><description><![CDATA[<p>Problem solved!<br />
Kind of a face-palm.. But I might be forgiven due to the fact that Jan didn't catch the problem in my Dockerfile either =)</p>
<p>RTFM!<br />
It's quite clear, in the documentation about customising the docker image, that the config file needs to be copied into the image. The timeouts were working fine in my local dev environment because the config file was present in the mounted folder.</p>
]]></description><link>https://forum.jsreport.net/post/5870</link><guid isPermaLink="true">https://forum.jsreport.net/post/5870</guid><dc:creator><![CDATA[msageryd]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Config file not applied? on Invalid Date]]></title><description><![CDATA[<p>Just to clarify for others if you end up in the same place (i.e. didn't RTFM)</p>
<p>Here is my shiny new Dockerfile which makes use of the config file by copying it into the docker image from my mounted folder (yes, the folder name is &quot;mounted&quot;).</p>
<pre><code>FROM jsreport/jsreport:2.6.0

COPY license-key.txt /app
COPY ./mounted/jsreport.config.json /app

RUN cd /app &amp;&amp; npm install \
  moment \
  moment-timezone \
  intl \
  dd-trace \
  handlebars-helpers \
  node-fetch \
  jsreport-assets \
  jsreport-static-pdf
</code></pre>
]]></description><link>https://forum.jsreport.net/post/5871</link><guid isPermaLink="true">https://forum.jsreport.net/post/5871</guid><dc:creator><![CDATA[msageryd]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>