<?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[gencache_init: Failed to create directory: /var/www/.cache/samba - Read-only file system]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">I am getting this error in the Nextcloud logs:</p>
<pre><code>"gencache_init: Failed to create directory: /var/www/.cache/samba - Read-only file system"
</code></pre>
<p dir="auto">As far as I can see on Google, it is an error related to permissions on that particular folder. But I am uncertain how to fix this in Cloudron.</p>
<p dir="auto">Hoping someone here can help <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=cb8b82e1523" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":slightly_smiling_face:" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/topic/8273/gencache_init-failed-to-create-directory-var-www-cache-samba-read-only-file-system</link><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 19:36:16 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/8273.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Dec 2022 08:30:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to gencache_init: Failed to create directory: /var/www/.cache/samba - Read-only file system on Sat, 24 Dec 2022 11:01:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/razumasu" aria-label="Profile: Razumasu">@<bdi>Razumasu</bdi></a> thanks for writing that up <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f64f.png?v=cb8b82e1523" class="not-responsive emoji emoji-android emoji--pray" style="height:1.4em;width:auto;vertical-align:middle" title="🙏" alt="🙏" /></p>
]]></description><link>https://forum.cloudron.io/post/58677</link><guid isPermaLink="true">https://forum.cloudron.io/post/58677</guid><dc:creator><![CDATA[jdaviescoates]]></dc:creator><pubDate>Sat, 24 Dec 2022 11:01:35 GMT</pubDate></item><item><title><![CDATA[Reply to gencache_init: Failed to create directory: /var/www/.cache/samba - Read-only file system on Fri, 23 Dec 2022 23:31:13 GMT]]></title><description><![CDATA[<p dir="auto">After some digging, I located the issue and managed to fix it. If someone else encounters the problem, here is a description of what was happening and how to fix it.</p>
<p dir="auto">My Cloudron server is using external storage connected via CIFS. My issue was that I had mounted the external share incorrectly, but I hadn't noticed because it was actually working - just giving a lot of errors in the log, and (I realized today) running slowly.</p>
<p dir="auto">The INCORRECT way I had set it up was:</p>
<ul>
<li>I had the volume added as a Cloudron CIFS volume.</li>
<li>Then I added that volume on the storage tab in the app settings for Nextcloud on the Cloudron My Apps page.</li>
<li>(Now comes the mistake) then inside the Nextcloud administrator settings, I attached the storage as CIFS with a direct link to the external share. Meaning that the settings I put in Cloudron weren't being used. This resulted in errors.</li>
</ul>
<p dir="auto">The correct way of doing it is as follows:</p>
<ol>
<li>Add the external storage as a volume in Cloudron.</li>
<li>Add the share as read/write on the "storage" part of the app settings.</li>
<li>Inside the Nextcloud administrator settings, add the storage on the external storage tab BUT add it as local storage with the path "/media/{ShareName}"</li>
</ol>
<p dir="auto">Nextcloud will treat the storage as something local on the server and not use its own CIFS (or SFTP) implementation which apparently isn't very good.</p>
<p dir="auto">This seems to have solved the issue. I have no more errors in the log, and the file synchronization has gotten a lot faster now that Nextcloud doesn't have to call the CIFS share 7 times per file as it was doing in the incorrect configuration.</p>
<p dir="auto">I hope this helps someone in the future <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=cb8b82e1523" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/post/58660</link><guid isPermaLink="true">https://forum.cloudron.io/post/58660</guid><dc:creator><![CDATA[Razumasu]]></dc:creator><pubDate>Fri, 23 Dec 2022 23:31:13 GMT</pubDate></item><item><title><![CDATA[Reply to gencache_init: Failed to create directory: /var/www/.cache/samba - Read-only file system on Fri, 23 Dec 2022 14:15:33 GMT]]></title><description><![CDATA[<p dir="auto">Unless explicitly mentioned in the packaging, all those folders are read-only in Cloudron. Maybe we have to add this to the packaging then, but first we need to understand where this is coming from. Do you have any Nextcloud plugins/apps installed which cause this?</p>
]]></description><link>https://forum.cloudron.io/post/58638</link><guid isPermaLink="true">https://forum.cloudron.io/post/58638</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Fri, 23 Dec 2022 14:15:33 GMT</pubDate></item></channel></rss>