<?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[Gotenberg Permission Issue and large log volume]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am having two major issues with the Paperless-ngx app.</p>
<p dir="auto">The first one deals with Gotenberg. Processing of - in my example - <code>.eml</code> and <code>.html</code> files fails with <em>500 Internal Server Error</em>.<br />
On closer inspection of the logs, I can see this error relating to permissions:</p>
<pre><code>2025-03-26T03:15:17Z [2025-03-26 04:15:17,718] [ERROR] [paperless.consumer] Error occurred while consuming document Example.eml: Error while converting email to PDF: Server error '500 Internal Server Error' for url 'http://localhost:3000/forms/chromium/convert/html'

2025-03-26T03:15:17Z [2025-03-26 04:15:17,728] [ERROR] [paperless.tasks] ConsumeTaskPlugin failed: Example.eml: Error occurred while consuming document Example.eml: Error while converting email to PDF: Server error '500 Internal Server Error' for url 'http://localhost:3000/forms/chromium/convert/html'

2025-03-26T03:15:17Z [2025-03-26 04:15:17,824] [ERROR] [celery.app.trace] Task documents.tasks.consume_file[1368eaec-b063-4883-8ed2-1a11d2a46474] raised unexpected: ConsumerError("Example.eml: Error occurred while consuming document Example.eml: Error while converting email to PDF: Server error '500 Internal Server Error' for url 'http://localhost:3000/forms/chromium/convert/html'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500")

2025-03-26T03:15:17Z documents.consumer.ConsumerError: Example.eml: Error occurred while consuming document Example.eml: Error while converting email to PDF: Server error '500 Internal Server Error' for url 'http://localhost:3000/forms/chromium/convert/html'

2025-03-26T03:15:17Z documents.consumer.ConsumerError: Example.eml: Error occurred while consuming document Example.eml: Error while converting email to PDF: Server error '500 Internal Server Error' for url 'http://localhost:3000/forms/chromium/convert/html'

2025-03-26T03:15:17Z {"level":"error","ts":1742958917.707243,"logger":"api","msg":"convert HTML to PDF: convert to PDF: process first start: start process: run exec allocator: chrome failed to start:\nmkdir: cannot create directory ‘/root’: Permission denied\ntouch: cannot touch '/root/.local/share/applications/mimeapps.list': Permission denied\nchrome_crashpad_handler: --database is required\nTry 'chrome_crashpad_handler --help' for more information.\n[2868:2868:0326/031517.474572:ERROR:socket.cc(120)] recvmsg: Connection reset by peer (104)\n","log_type":"access","trace":"8ba08943-1dec-432b-8fdc-8b375407d48f","remote_ip":"::1","host":"localhost:3000","uri":"/forms/chromium/convert/html","method":"POST","path":"/forms/chromium/convert/html","referer":"","user_agent":"gotenberg-client/0.9.0","status":500,"latency":380718662,"latency_human":"380.718662ms","bytes_in":14690,"bytes_out":21}
</code></pre>
<p dir="auto">It seems the chromium binary wants to write to <code>/root/.local/share/applications</code> where it has no permissions?</p>
<p dir="auto">The second issue comes from the fact that the Paperless-ngx app is generating an enormous amount of logs, even under normal conditions.<br />
I am pretty sure that this is why my Paperless-ngx instance is causing extreme CPU load (completely maxed) as well.</p>
<p dir="auto">I'm not able to interpret the cause of the logs, but it looks like something related to Celery Scheduling or Redis is out of whack.</p>
<p dir="auto">Here are things I have already tried:</p>
<ul>
<li>Using the Cloudron Panel, move Paperless-ngx data, from a volume I used before, to the default location in container (no effect)</li>
<li>Delete /app/code  and let container recreate it (no effect)</li>
<li>Use <code>cURL</code> to send a simple test HTML file to Gotenberg to see if it can process it (same <em>500 Internal Server Error</em> with accompanying logs)</li>
</ul>
<p dir="auto">I should note that I recently performed a "backup and restore" as described in your documentation, which has been uneventful with the exception of the above-stated issues with Paperless.<br />
However, I don't know if they are directly related.</p>
<p dir="auto">I have linked the relevant part of the application log, where you can see both the issues with Gotenberg as well as the issue of very high log volume:<br />
<a href="https://gist.githubusercontent.com/lukasgabriel/0053a7c0e41a4c32980eb99acf248da9/raw/f288542530c321f925555ef3e5397dd21def33b1/aa8f2c69-31fc-4102-a375-7d175580f6b4.log" target="_blank" rel="noopener noreferrer nofollow ugc">https://gist.githubusercontent.com/lukasgabriel/0053a7c0e41a4c32980eb99acf248da9/raw/f288542530c321f925555ef3e5397dd21def33b1/aa8f2c69-31fc-4102-a375-7d175580f6b4.log</a></p>
]]></description><link>https://forum.cloudron.io/topic/13545/gotenberg-permission-issue-and-large-log-volume</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 12:03:35 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/13545.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Mar 2025 14:40:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Gotenberg Permission Issue and large log volume on Mon, 31 Mar 2025 15:33:27 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> perhaps pasting the code into one of the AIs can help spot the problem</p>
]]></description><link>https://forum.cloudron.io/post/104834</link><guid isPermaLink="true">https://forum.cloudron.io/post/104834</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Mon, 31 Mar 2025 15:33:27 GMT</pubDate></item><item><title><![CDATA[Reply to Gotenberg Permission Issue and large log volume on Mon, 31 Mar 2025 08:27:52 GMT]]></title><description><![CDATA[<p dir="auto">as the upstream author indicates, the .db.db is something python related (?) but sadly since we didn't find a way to validate the .db file on startup ourselves, there is little we can do for now to clear that if needed. At least my comments there to even be able to reproduce didn't move it forward. I guess in the end we would have to debug this and hopefully come up with a MR to fix it, but we aren't python developers with little insight into paperless code itself to be honest.</p>
]]></description><link>https://forum.cloudron.io/post/104758</link><guid isPermaLink="true">https://forum.cloudron.io/post/104758</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 31 Mar 2025 08:27:52 GMT</pubDate></item><item><title><![CDATA[Reply to Gotenberg Permission Issue and large log volume on Sun, 30 Mar 2025 22:10:05 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> The problem with the <code>.db.db</code> happened again not even 24h later.<br />
This GitHub Issue suggests it might be a Cloudron problem after all: <a href="https://github.com/paperless-ngx/paperless-ngx/discussions/7440#discussioncomment-10324614" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/paperless-ngx/paperless-ngx/discussions/7440#discussioncomment-10324614</a></p>
<p dir="auto">Any tips? I thought about setting up a cron job to check if the file has the duplicate file extension and rename/remove if it does, but an app package upgrade might remove that job, right? Should I set up the job inside the container, or on the Cloudron host?</p>
]]></description><link>https://forum.cloudron.io/post/104726</link><guid isPermaLink="true">https://forum.cloudron.io/post/104726</guid><dc:creator><![CDATA[lukasgabriel]]></dc:creator><pubDate>Sun, 30 Mar 2025 22:10:05 GMT</pubDate></item><item><title><![CDATA[Reply to Gotenberg Permission Issue and large log volume on Sat, 29 Mar 2025 22:17:00 GMT]]></title><description><![CDATA[<p dir="auto">I managed to solve the problem by deleting <code>/app/data/data/celerybeat-schedule.db.db</code><br />
It should have been named <code>/app/data/data/celerybeat-schedule.db</code> - not sure where it got the extra suffix from, but now the insane logs and CPU usage is fixed and everything runs smoothly again.</p>
]]></description><link>https://forum.cloudron.io/post/104675</link><guid isPermaLink="true">https://forum.cloudron.io/post/104675</guid><dc:creator><![CDATA[lukasgabriel]]></dc:creator><pubDate>Sat, 29 Mar 2025 22:17:00 GMT</pubDate></item><item><title><![CDATA[Reply to Gotenberg Permission Issue and large log volume on Sat, 29 Mar 2025 11:09:41 GMT]]></title><description><![CDATA[<p dir="auto">seems like the loggin situation has to be taken to paperless upstream development, maybe you can create an issue there about this.</p>
]]></description><link>https://forum.cloudron.io/post/104648</link><guid isPermaLink="true">https://forum.cloudron.io/post/104648</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Sat, 29 Mar 2025 11:09:41 GMT</pubDate></item><item><title><![CDATA[Reply to Gotenberg Permission Issue and large log volume on Fri, 28 Mar 2025 22:35: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> The latest patch related to <code>unoconv</code> has resolved the Gotenberg/Tika issues for me! I can now upload EMLs again, and I also tested successfully with XLSX and some others. Great work! <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f60a.png?v=a3d9da63442" class="not-responsive emoji emoji-android emoji--blush" style="height:23px;width:auto;vertical-align:middle" title=":blush:" alt="😊" /></p>
<p dir="auto">The log spam still persists though. <a class="plugin-mentions-user plugin-mentions-a" href="/user/luckow" aria-label="Profile: luckow">@<bdi>luckow</bdi></a>: <code>paperless.log</code> is normal for me as well, the problem is the <code>celery</code> warnings/errors from the container log, which you get by pressing the "Logs" button in the Cloudron panel. <code>PAPERLESS_DEBUG</code> is <code>false</code>.</p>
]]></description><link>https://forum.cloudron.io/post/104623</link><guid isPermaLink="true">https://forum.cloudron.io/post/104623</guid><dc:creator><![CDATA[lukasgabriel]]></dc:creator><pubDate>Fri, 28 Mar 2025 22:35:41 GMT</pubDate></item><item><title><![CDATA[Reply to Gotenberg Permission Issue and large log volume on Fri, 28 Mar 2025 22:02:35 GMT]]></title><description><![CDATA[<p dir="auto">I see a difference between the Cloudron log file <a href="https://my.example.org/logs.html?appId=123456-1234-1234-1234-123455" target="_blank" rel="noopener noreferrer nofollow ugc">https://my.example.org/logs.html?appId=123456-1234-1234-1234-123455</a> and the logs in Paperless. (constantly repeated same errors and a lot of visual distraction in the Cloudron logs compared to a quiet log from the app <a href="https://paperless.example.org/logs" target="_blank" rel="noopener noreferrer nofollow ugc">https://paperless.example.org/logs</a>). But at the moment it is not possible for me to investigate further.</p>
]]></description><link>https://forum.cloudron.io/post/104621</link><guid isPermaLink="true">https://forum.cloudron.io/post/104621</guid><dc:creator><![CDATA[luckow]]></dc:creator><pubDate>Fri, 28 Mar 2025 22:02:35 GMT</pubDate></item><item><title><![CDATA[Reply to Gotenberg Permission Issue and large log volume on Fri, 28 Mar 2025 21:59:29 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> I think HTML conversion is supported gotenberg: <a href="https://gotenberg.dev/docs/6.x/html" target="_blank" rel="noopener noreferrer nofollow ugc">https://gotenberg.dev/docs/6.x/html</a> - so for sanity-checking if gotenberg can run, it should work.<br />
But Paperless doesn't support it: <a href="https://github.com/paperless-ngx/paperless-ngx/discussions/6700" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/paperless-ngx/paperless-ngx/discussions/6700</a><br />
So you can disregard that point of my post <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f913.png?v=a3d9da63442" class="not-responsive emoji emoji-android emoji--nerd_face" style="height:23px;width:auto;vertical-align:middle" title=":nerd_face:" alt="🤓" /></p>
]]></description><link>https://forum.cloudron.io/post/104619</link><guid isPermaLink="true">https://forum.cloudron.io/post/104619</guid><dc:creator><![CDATA[lukasgabriel]]></dc:creator><pubDate>Fri, 28 Mar 2025 21:59:29 GMT</pubDate></item><item><title><![CDATA[Reply to Gotenberg Permission Issue and large log volume on Fri, 28 Mar 2025 21:54:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/luckow" aria-label="Profile: luckow">@<bdi>luckow</bdi></a> I'm looking at a ~2GB log file across a span of 5 days. But I turned off my Paperless instance for most of that time, so it's more like 2 days of uptime at most.<br />
I don't think the number of documents matters much, unless you're reprocessing them, but I also have around the same number as you.</p>
<p dir="auto">So I'd say I am solidly out of the normal <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f635.png?v=a3d9da63442" class="not-responsive emoji emoji-android emoji--dizzy_face" style="height:23px;width:auto;vertical-align:middle" title=":dizzy_face:" alt="😵" /></p>
]]></description><link>https://forum.cloudron.io/post/104618</link><guid isPermaLink="true">https://forum.cloudron.io/post/104618</guid><dc:creator><![CDATA[lukasgabriel]]></dc:creator><pubDate>Fri, 28 Mar 2025 21:54:20 GMT</pubDate></item><item><title><![CDATA[Reply to Gotenberg Permission Issue and large log volume on Fri, 28 Mar 2025 08:42:54 GMT]]></title><description><![CDATA[<p dir="auto">latest package release has <code>unoconv</code> fixed for the .eml use-case</p>
]]></description><link>https://forum.cloudron.io/post/104572</link><guid isPermaLink="true">https://forum.cloudron.io/post/104572</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Fri, 28 Mar 2025 08:42:54 GMT</pubDate></item><item><title><![CDATA[Reply to Gotenberg Permission Issue and large log volume on Thu, 27 Mar 2025 16:59:09 GMT]]></title><description><![CDATA[<p dir="auto">Further update on the .eml file handling, when giving proper access to <code>.local/share/applications/mimeapps.list</code> it creates that file, although it will remain empty and the .eml processing does not crash anymore but also it just doesn't proceed further without errors.</p>
<p dir="auto">Update: After figuring out how to set debug mode for chromium, the following errors show up, at least something to work with:</p>
<pre><code>17:56:45 - {"level":"debug","ts":1743094605.3818536,"logger":"api.formschromiumconverthtml.usrbinunoconverter","msg":"start unix process: /usr/bin/unoconverter --no-launch --format pdf --port 42231 -vvv --export ExportFormFields=true --export AllowDuplicateFieldNames=false --export ExportBookmarks=true --export ExportBookmarks=true --export ExportBookmarksToPDFDestination=false --export ExportPlaceholders=false --export ExportNotes=false --export ExportNotesPages=false --export ExportOnlyNotesPages=false --export ExportNotesInMargin=false --export ConvertOOoTargetToPDFTarget=false --export ExportLinksRelativeFsys=false --export ExportHiddenSlides=false --export IsSkipEmptyPages=false --export IsAddStream=false --export SinglePageSheets=false --export UseLosslessCompression=false --export Quality=90 --export ReduceImageResolution=false --export MaxImageResolution=300 --export SelectPdfVersion=2 --export PDFUACompliance=false --export UseTaggedPDF=false --export EnableTextAccessForAccessibilityTools=false --output /tmp/c14f54a1-26d4-41c1-8481-cc7decf80ae7/ce5a2b61-75ee-4e1e-ad9a-993395b81e83/f09408c7-8088-4402-b126-775865290d5e.pdf /tmp/c14f54a1-26d4-41c1-8481-cc7decf80ae7/ce5a2b61-75ee-4e1e-ad9a-993395b81e83/b9e9e260-67db-497c-b6ee-04adbf8c43d6.pdf","log_type":"application","trace":"8f429e44-92ba-4257-97bd-3413b3dc311e"}
17:56:45 - {"level":"debug","ts":1743094605.410921,"logger":"api.formschromiumconverthtml.usrbinunoconverter.stderr","msg":"Traceback (most recent call last):","log_type":"application","trace":"8f429e44-92ba-4257-97bd-3413b3dc311e"}
17:56:45 - {"level":"debug","ts":1743094605.4109411,"logger":"api.formschromiumconverthtml.usrbinunoconverter.stderr","msg":"  File \"/usr/bin/unoconverter\", line 19, in &lt;module&gt;","log_type":"application","trace":"8f429e44-92ba-4257-97bd-3413b3dc311e"}
17:56:45 - {"level":"debug","ts":1743094605.4110937,"logger":"api.formschromiumconverthtml.usrbinunoconverter.stderr","msg":"    from distutils.version import LooseVersion","log_type":"application","trace":"8f429e44-92ba-4257-97bd-3413b3dc311e"}
17:56:45 - {"level":"debug","ts":1743094605.4110994,"logger":"api.formschromiumconverthtml.usrbinunoconverter.stderr","msg":"ModuleNotFoundError: No module named 'distutils'","log_type":"application","trace":"8f429e44-92ba-4257-97bd-3413b3dc311e"}
17:56:45 - {"level":"debug","ts":1743094605.4153426,"logger":"api.formschromiumconverthtml.usrbinunoconverter","msg":"unix process already killed","log_type":"application","trace":"8f429e44-92ba-4257-97bd-3413b3dc311e"}
</code></pre>
]]></description><link>https://forum.cloudron.io/post/104523</link><guid isPermaLink="true">https://forum.cloudron.io/post/104523</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 27 Mar 2025 16:59:09 GMT</pubDate></item><item><title><![CDATA[Reply to Gotenberg Permission Issue and large log volume on Thu, 27 Mar 2025 16:33:46 GMT]]></title><description><![CDATA[<p dir="auto">I can reproduce the .eml file issue. No solution so far, but will keep this thread update.</p>
<p dir="auto">For the .html file, I get a normal error stating text/html mimetime is not supported. Is this supposed to work in the first place?</p>
<p dir="auto">For the logging, do you happen to have enabled debug logging by any chance? Basically enabling <code>PAPERLESS_DEBUG</code> in the config file? Otherwise it will log everything from INFO on. According to this <a href="https://github.com/paperless-ngx/paperless-ngx/discussions/3592" target="_blank" rel="noopener noreferrer nofollow ugc">issue</a> there seems to be no way to change the loglevel though. So maybe you have to ask this again upstream then.</p>
]]></description><link>https://forum.cloudron.io/post/104519</link><guid isPermaLink="true">https://forum.cloudron.io/post/104519</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 27 Mar 2025 16:33:46 GMT</pubDate></item><item><title><![CDATA[Reply to Gotenberg Permission Issue and large log volume on Thu, 27 Mar 2025 15:34:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lukasgabriel" aria-label="Profile: lukasgabriel">@<bdi>lukasgabriel</bdi></a> Apart from the error (maybe a package error), let's share some numbers: my paperless has a total of 815 documents. Clicking on <code>Donwnload Full logs</code> generates a 708MB log file.</p>
<p dir="auto">BTW: the same error on my site (tested with an eml file)</p>
<pre><code>Error while converting email to PDF: Server error '500 Internal Server Error' for url 'http://localhost:3000/forms/chromium/convert/html'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
</code></pre>
]]></description><link>https://forum.cloudron.io/post/104513</link><guid isPermaLink="true">https://forum.cloudron.io/post/104513</guid><dc:creator><![CDATA[luckow]]></dc:creator><pubDate>Thu, 27 Mar 2025 15:34:36 GMT</pubDate></item></channel></rss>