<?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[Euro Office 1.1.4 (DocumentServer 9.3.8): saving to Nextcloud fails, output files are created 0640 and nginx returns 403]]></title><description><![CDATA[<p dir="auto">After the automatic update to <strong>1.1.4</strong> (DocumentServer 9.3.8) last night, saving documents back to Nextcloud no longer works. The app stays <code>healthy</code> and <code>/healthcheck</code> returns <code>true</code>, so nothing in the dashboard shows it. I rolled back to 1.1.3 from the pre-update backup and everything works again.</p>
<p dir="auto"><strong>Symptom</strong></p>
<p dir="auto">The connector check in Nextcloud fails:</p>
<pre><code>occ eurooffice:documentserver --check
Error connection: Client error: `GET http://&lt;app-id&gt;/cache/files/data/conv_check_435581786_65/output.docx/check_435581786.docx?md5=…&amp;expires=…&amp;filename=check_435581786.docx` resulted in a `403 Forbidden` response
</code></pre>
<p dir="auto">The same <code>/cache/files/...</code> route is what Nextcloud uses to fetch the edited document on every save, so real saves fail the same way.</p>
<p dir="auto"><strong>Cause</strong></p>
<p dir="auto">Since 9.3.8 the document server writes its output files with mode <strong>0640</strong> instead of <strong>0644</strong>. nginx runs as <code>www-data</code> and can no longer read them:</p>
<pre><code>[error] open() "/var/lib/euro-office/documentserver/App_Data/cache/files/data/conv_check_549698124_65/output.docx" failed (13: Permission denied)

# before the update (1.1.3)
-rw-r--r-- 1 ds ds 8221 Nov 14 08:05 output.docx
# after the update (1.1.4)
-rw-r----- 1 ds ds 8154 Nov 15 08:22 output.docx
</code></pre>
<p dir="auto">The directories are still <code>drwxr-xr-x ds:ds</code>; only the files changed. In the access log the switch is exact: last <code>200</code> on <code>/cache/files</code> at 00:50 UTC, the update at 01:01, first <code>403</code> at 01:10, and only 403s after that.</p>
<p dir="auto"><strong>What I ruled out</strong></p>
<ul>
<li>Not the <code>secure_link</code> secret: both nginx and the document server use the default <code>verysecretstring</code>, and I recomputed the signature of a rejected URL (<code>base64url(md5(expires + uri + secret))</code>); it matches.</li>
<li>Not the umask: the <code>docservice</code> and <code>converter</code> processes run with umask <code>0022</code>, so the 0640 seems to be set explicitly in the new code (my guess is the output writer in <code>core</code>/x2t; 9.3.8 changed ZIP writing in <code>core#289</code>, but I did not find the exact line).</li>
</ul>
<p dir="auto"><strong>Workaround</strong></p>
<p dir="auto">Restore the app from the backup Cloudron made just before the update (it rolls the package back to 1.1.3) and turn off automatic updates for the app until this is fixed. After the restore new files are <code>0644</code> again and the connector check passes. Adding <code>www-data</code> to the <code>ds</code> group inside the container would also work, but that is lost on every restart.</p>
<p dir="auto"><strong>Suggestion</strong></p>
<p dir="auto">It would help if the package's health check (or a test in the package) did what the connector's <code>--check</code> does: convert a document and fetch the result through nginx. That would have caught this before release, because <code>/healthcheck</code> stays green.</p>
<p dir="auto">Cloudron 10.1.6, Nextcloud 35.0.2 with the <code>eurooffice</code> connector 11.0.6, Euro Office 1.1.3 → 1.1.4.</p>
]]></description><link>https://forum.cloudron.io/topic/16296/euro-office-1.1.4-documentserver-9.3.8-saving-to-nextcloud-fails-output-files-are-created-0640-and-nginx-returns-403</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Nov 2026 18:39:17 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/16296.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Nov 2026 08:59:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Euro Office 1.1.4 (DocumentServer 9.3.8): saving to Nextcloud fails, output files are created 0640 and nginx returns 403 on Mon, 16 Nov 2026 09:57:10 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-category plugin-mentions-a" href="/category/454/euro-office" aria-label="Profile: euro-office">@<bdi>euro-office</bdi></a> users<br />
I am already looking into it.</p>
]]></description><link>https://forum.cloudron.io/post/132916</link><guid isPermaLink="true">https://forum.cloudron.io/post/132916</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Mon, 16 Nov 2026 09:57:10 GMT</pubDate></item><item><title><![CDATA[Reply to Euro Office 1.1.4 (DocumentServer 9.3.8): saving to Nextcloud fails, output files are created 0640 and nginx returns 403 on Mon, 16 Nov 2026 09:51:25 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">we hit the same failure on one of our instances (package <code>1.1.4</code> / DocumentServer <code>9.3.8.37</code>, Nextcloud <code>35.0.3</code>, connector <code>11.0.6</code>) and your analysis matched what we saw. We also recomputed the <code>secure_link</code> signature of a rejected URL and it was valid.</p>
<p dir="auto">Two additions that may be useful:</p>
<ul>
<li>Adding <code>www-data</code> to the <code>ds</code> group was not possible for us: the container root file system is read-only (<code>usermod</code> → "cannot lock /etc/passwd"). Only <code>/tmp</code>, <code>/run</code> and <code>/app/data</code> are writable.</li>
<li>What helped us instead was an ACL entry <code>u:www-data:r-x</code>, as default ACL on <code>/tmp</code> and on <code>.../App_Data/cache/files/data</code>, plus once recursively for the files already there. New files created in <code>/tmp</code> pick the entry up automatically, and since it is stored with the file itself it also survived the rename into the cache for us. Owner and mode of the files stay unchanged. (<code>setfacl</code> was not installed in our image, so we set the ACL attribute directly.)</li>
</ul>
<p dir="auto">After that <code>/cache/files/...</code> returned 200 instead of 403 for us, <code>occ eurooffice:documentserver --check</code> reports "successfully connected", and opening and editing docx and xlsx works again. Because <code>/tmp</code> and <code>/app/data</code> are persistent volumes, we expect it to survive restarts as well. We have not been through an app update with it yet, so we kept it as a stopgap and kept the connector's cron check as our alarm, which mails the admins as soon as the check fails again. Whoever prefers to stay on an unchanged package can also restore the pre-update backup instead, but then auto updates for the app should stay off.</p>
]]></description><link>https://forum.cloudron.io/post/132914</link><guid isPermaLink="true">https://forum.cloudron.io/post/132914</guid><dc:creator><![CDATA[pbischoff]]></dc:creator><pubDate>Mon, 16 Nov 2026 09:51:25 GMT</pubDate></item><item><title><![CDATA[Reply to Euro Office 1.1.4 (DocumentServer 9.3.8): saving to Nextcloud fails, output files are created 0640 and nginx returns 403 on Mon, 16 Nov 2026 09:49:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/firmansi" aria-label="Profile: firmansi">@<bdi>firmansi</bdi></a> Reverting back to version 1.1.3 as indicated in the original post solved the problem for the time being for me.</p>
]]></description><link>https://forum.cloudron.io/post/132913</link><guid isPermaLink="true">https://forum.cloudron.io/post/132913</guid><dc:creator><![CDATA[as1111111]]></dc:creator><pubDate>Mon, 16 Nov 2026 09:49:22 GMT</pubDate></item><item><title><![CDATA[Reply to Euro Office 1.1.4 (DocumentServer 9.3.8): saving to Nextcloud fails, output files are created 0640 and nginx returns 403 on Mon, 16 Nov 2026 02:07:46 GMT]]></title><description><![CDATA[<p dir="auto">Is there any workaround on this issue?</p>
]]></description><link>https://forum.cloudron.io/post/132906</link><guid isPermaLink="true">https://forum.cloudron.io/post/132906</guid><dc:creator><![CDATA[firmansi]]></dc:creator><pubDate>Mon, 16 Nov 2026 02:07:46 GMT</pubDate></item></channel></rss>