<?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[Failed to open stream: Permission denied]]></title><description><![CDATA[<p dir="auto">Hello</p>
<p dir="auto">My issue looks the same as <a href="https://forum.cloudron.io/topic/13321/failed-to-open-stream-permission-denied-for-cache-data/7">https://forum.cloudron.io/topic/13321/failed-to-open-stream-permission-denied-for-cache-data/7</a> but I don't think a solution as been provided <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=090c346130c" class="not-responsive emoji emoji-android emoji--disappointed" style="height:23px;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
<pre><code>Jan 10 17:23:32 =&gt; Run cron tasks
Jan 10 17:23:32 In Filesystem.php line 122:
Jan 10 17:23:32 2026-01-10T16:23:32Z
Jan 10 17:23:32 file_put_contents(/app/code/storage/framework/cache/data/71/e7/71e745d13645
Jan 10 17:23:32 beba997b5011324db8ee58db0e30): Failed to open stream: Permission denied
</code></pre>
<p dir="auto">I'm running Freescout 1.8.201 and emails are not automatically fetched. I've to click on Manage &gt; Tools Fetch Emails to get them.</p>
<p dir="auto">On Manage &gt; Status I can read:</p>
<pre><code>Non-writable files found
</code></pre>
<p dir="auto">/app/code/storage/framework/cache/data/71/e7/71e745d13645beba997b5011324db8ee58db0e30<br />
Run the following command (read more):<br />
sudo chown -R www-data:www-data /app/code<br />
on storage/framework/cache/data/</p>
<p dir="auto"><img src="https://file.thivinfo.com/Cloudron/2026-01-10_17-28.jpg" alt="text alternatif" class=" img-fluid img-markdown" /></p>
<p dir="auto">I've tried  sudo chown -R www-data:www-data /app/code but it anwsers "Read only file system"<br />
I've also tried sudo chmod 775 -R /app/code/ with same results.</p>
<p dir="auto">Do you have any idea what I can test ?</p>
<h3>Generate Diagnostics Data</h3>
<p dir="auto"><a href="https://paste.cloudron.io/opebufiqal" target="_blank" rel="noopener noreferrer nofollow ugc">https://paste.cloudron.io/opebufiqal</a></p>
]]></description><link>https://forum.cloudron.io/topic/14871/failed-to-open-stream-permission-denied</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 06:27:51 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/14871.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Jan 2026 17:19:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Failed to open stream: Permission denied on Tue, 13 Jan 2026 14:55:13 GMT]]></title><description><![CDATA[<p dir="auto">I do not have, Ihave deleted the email address and created a new one with the old as an ALias<br />
lost too much time with this. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=090c346130c" class="not-responsive emoji emoji-android emoji--disappointed" style="height:23px;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
<p dir="auto">Thank you for your help</p>
]]></description><link>https://forum.cloudron.io/post/118426</link><guid isPermaLink="true">https://forum.cloudron.io/post/118426</guid><dc:creator><![CDATA[sebastienserre]]></dc:creator><pubDate>Tue, 13 Jan 2026 14:55:13 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to open stream: Permission denied on Tue, 13 Jan 2026 11:52:44 GMT]]></title><description><![CDATA[<p dir="auto">So you can find the sieve scripts for each mailbox at <code>/home/yellowtent/boxdata/mail/&lt;mailbox&gt;/sieve</code> via SSH. Maybe check if you have any for that mailbox, just so we can rule that out.</p>
]]></description><link>https://forum.cloudron.io/post/118402</link><guid isPermaLink="true">https://forum.cloudron.io/post/118402</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Tue, 13 Jan 2026 11:52:44 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to open stream: Permission denied on Tue, 13 Jan 2026 11:16:20 GMT]]></title><description><![CDATA[<p dir="auto">Yes the original permissions error is gone.<br />
I really do not remember to have added any script but my brain is going these days....<br />
where should these scripts could be readable?<br />
I will check if something is wrong there.</p>
]]></description><link>https://forum.cloudron.io/post/118400</link><guid isPermaLink="true">https://forum.cloudron.io/post/118400</guid><dc:creator><![CDATA[sebastienserre]]></dc:creator><pubDate>Tue, 13 Jan 2026 11:16:20 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to open stream: Permission denied on Tue, 13 Jan 2026 09:58:51 GMT]]></title><description><![CDATA[<p dir="auto">Ok so the cron from the package, fetching new mails works and no more permissions errors? Just to have that out of the way.</p>
<p dir="auto">Is ther maybe some sieve script for that mailbox which could interact with mail like marking them as read?</p>
]]></description><link>https://forum.cloudron.io/post/118398</link><guid isPermaLink="true">https://forum.cloudron.io/post/118398</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Tue, 13 Jan 2026 09:58:51 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to open stream: Permission denied on Tue, 13 Jan 2026 07:03:13 GMT]]></title><description><![CDATA[<p dir="auto">I think the CRON are OK.<br />
I do not understand why, but it seems that emails on this mailboxe are marked as read. I can't find how because I've checked the settings and there are no rules to mark a mail as read.<br />
I've stopped SOGo and installed Roundcube, the same<br />
The address is not setup in Thunderbird but I've tried by closing it, and the email is also marked as read...<br />
is there logs I can check to know who and when a mail is marked as read ?</p>
<p dir="auto">This is how if 1 cron task (marking as read) works but then an error arises.<br />
here's an alert received by Freescout:</p>
<pre><code>[2026-01-13 07:52:06] Erreur lors de la récupération de l'e-mail {"error":"Error: connection failed - stream_socket_client(): Unable to connect to ssl:\/\/mail.txxx.com:993 (Connection refused); File: \/app\/code\/overrides\/webklex\/php-imap\/src\/Connection\/Protocols\/ImapProtocol.php (95)","mailbox":"Support Thxxxo"}
``</code></pre>
]]></description><link>https://forum.cloudron.io/post/118389</link><guid isPermaLink="true">https://forum.cloudron.io/post/118389</guid><dc:creator><![CDATA[sebastienserre]]></dc:creator><pubDate>Tue, 13 Jan 2026 07:03:13 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to open stream: Permission denied on Mon, 12 Jan 2026 16:48:19 GMT]]></title><description><![CDATA[<p dir="auto">I feel there is something else happening here, since both are running the same command. Can you run the cron shipped via the package (via the webterminal) and see if it shows any errors? We use freescout for the Cloudron support ticket and no further cron schedule should be required. Do you see any errors at all (besides the permissions issues, which are to be expected if you run some parts as root and they update cache files, which is wrong in the first place)</p>
]]></description><link>https://forum.cloudron.io/post/118358</link><guid isPermaLink="true">https://forum.cloudron.io/post/118358</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 12 Jan 2026 16:48:19 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to open stream: Permission denied on Mon, 12 Jan 2026 15:41:25 GMT]]></title><description><![CDATA[<p dir="auto">yes but without the external cron no emails are fetch.</p>
]]></description><link>https://forum.cloudron.io/post/118349</link><guid isPermaLink="true">https://forum.cloudron.io/post/118349</guid><dc:creator><![CDATA[sebastienserre]]></dc:creator><pubDate>Mon, 12 Jan 2026 15:41:25 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to open stream: Permission denied on Mon, 12 Jan 2026 15:32:39 GMT]]></title><description><![CDATA[<p dir="auto">Though this is exactly what the cronjob from the package already does. Cloudron runs that every minute. So at max it should take 1 minute for freescout to catch up on the emails.</p>
<p dir="auto">You can also trigger the cloudron's cron job in the top right menu, if you open a webterminal into the app. Just to see if this fetches the mails correctly.</p>
]]></description><link>https://forum.cloudron.io/post/118347</link><guid isPermaLink="true">https://forum.cloudron.io/post/118347</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 12 Jan 2026 15:32:39 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to open stream: Permission denied on Mon, 12 Jan 2026 15:12:15 GMT]]></title><description><![CDATA[<p dir="auto">The error gone thank you <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a></p>
<p dir="auto">I now have an issue on mails which are not fetched<br />
This is now like if Cron tasks were not correctly done. The email is mark as read but not available in Freescout.</p>
<ul>
<li>Setting unread an email</li>
<li>Visiting the URL <a href="https://example.com/system/cron/04c3f0b4a3771c3d76a2fac9a70b71a7" target="_blank" rel="noopener noreferrer nofollow ugc">https://example.com/system/cron/04c3f0b4a3771c3d76a2fac9a70b71a7</a> is fetching the unread emails.</li>
</ul>
<p dir="auto">and the email is in Freescout but as per Freescout</p>
<pre><code>Cron Commands

Make sure that you have the following line in your crontab:
* * * * * php /app/code/artisan schedule:run &gt;&gt; /dev/null 2&gt;&amp;1
Alternatively cron job can be executed by requesting the following URL every minute (this method is not recommended as some features may not work as expected, use it at your own risk):
https://example.com/system/cron/04c3f0b4a3771c3d76a2fac9a70b71a7 
</code></pre>
<p dir="auto">So I really do not know what I have to do <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=090c346130c" class="not-responsive emoji emoji-android emoji--disappointed" style="height:23px;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
]]></description><link>https://forum.cloudron.io/post/118344</link><guid isPermaLink="true">https://forum.cloudron.io/post/118344</guid><dc:creator><![CDATA[sebastienserre]]></dc:creator><pubDate>Mon, 12 Jan 2026 15:12:15 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to open stream: Permission denied on Mon, 12 Jan 2026 15:00:58 GMT]]></title><description><![CDATA[<p dir="auto">Have you restarted the app after removing the cron job, just to make sure the permissions are all set correctly?</p>
]]></description><link>https://forum.cloudron.io/post/118341</link><guid isPermaLink="true">https://forum.cloudron.io/post/118341</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 12 Jan 2026 15:00:58 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to open stream: Permission denied on Mon, 12 Jan 2026 14:58:04 GMT]]></title><description><![CDATA[<p dir="auto">Removed it and no emails are fetch.<br />
What's strange is I'm checking the emails on the Sogo Webmail (on Cloudron) and the email is mark as read... but not available on Freescout</p>
]]></description><link>https://forum.cloudron.io/post/118340</link><guid isPermaLink="true">https://forum.cloudron.io/post/118340</guid><dc:creator><![CDATA[sebastienserre]]></dc:creator><pubDate>Mon, 12 Jan 2026 14:58:04 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to open stream: Permission denied on Mon, 12 Jan 2026 14:44:07 GMT]]></title><description><![CDATA[<p dir="auto">I've removed and will monitor few days .<br />
Thanks</p>
]]></description><link>https://forum.cloudron.io/post/118339</link><guid isPermaLink="true">https://forum.cloudron.io/post/118339</guid><dc:creator><![CDATA[sebastienserre]]></dc:creator><pubDate>Mon, 12 Jan 2026 14:44:07 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to open stream: Permission denied on Mon, 12 Jan 2026 13:55:11 GMT]]></title><description><![CDATA[<p dir="auto">Ah I see, that custom cron is most likely the root case then, since it runs the scheduler as root instead of www-data. Either way the package already comes with this cron job: <a href="https://git.cloudron.io/packages/freescout-app/-/blob/master/cron.sh?ref_type=heads" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/packages/freescout-app/-/blob/master/cron.sh?ref_type=heads</a></p>
<p dir="auto">So you should be fine with just removing your custom cron setting there, if I read that correctly, and that hopefully solves the issue.</p>
]]></description><link>https://forum.cloudron.io/post/118337</link><guid isPermaLink="true">https://forum.cloudron.io/post/118337</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 12 Jan 2026 13:55:11 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to open stream: Permission denied on Mon, 12 Jan 2026 10:41:40 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a><br />
I've a cron here:<br />
<img src="https://file.thivinfo.com/Cloudron/2026-01-12_11-37_1.jpg" alt="cloudron app cron" class=" img-fluid img-markdown" /></p>
<p dir="auto">Here the list of Freescout module:<br />
<img src="https://file.thivinfo.com/Cloudron/2026-01-12_11-40.jpg" alt="freescout module list" class=" img-fluid img-markdown" /></p>
<p dir="auto">In the Workflows, I only have rule like "if email is XXXX then apply tag XXXX"</p>
]]></description><link>https://forum.cloudron.io/post/118321</link><guid isPermaLink="true">https://forum.cloudron.io/post/118321</guid><dc:creator><![CDATA[sebastienserre]]></dc:creator><pubDate>Mon, 12 Jan 2026 10:41:40 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to open stream: Permission denied on Mon, 12 Jan 2026 10:07:22 GMT]]></title><description><![CDATA[<p dir="auto">So <code>/app/code</code> is read-only in Cloudron, however <code>/app/code/storage</code> is linked into <code>/app/data/</code>, which is read-write. So the correct chown would be against <code>/app/data/storage/</code> in this case.  The startup code of the app does this already, which is why it works after a restart.</p>
<p dir="auto">Then the question remains, who changes permissions on that cache folder. Do you have some custom cron job or so which may run as root maybe? Which plugins have you installed, which could interfere here?</p>
]]></description><link>https://forum.cloudron.io/post/118314</link><guid isPermaLink="true">https://forum.cloudron.io/post/118314</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 12 Jan 2026 10:07:22 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to open stream: Permission denied on Sun, 11 Jan 2026 12:35:10 GMT]]></title><description><![CDATA[<p dir="auto">The error just came back....</p>
]]></description><link>https://forum.cloudron.io/post/118283</link><guid isPermaLink="true">https://forum.cloudron.io/post/118283</guid><dc:creator><![CDATA[sebastienserre]]></dc:creator><pubDate>Sun, 11 Jan 2026 12:35:10 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to open stream: Permission denied on Sat, 10 Jan 2026 19:01:04 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://forum.cloudron.io/topic/14610/not-receiving-tickets-in-freescout-helpdesk-cloudron-419-errors-on-polycast-receive/5?_=1768070658349">https://forum.cloudron.io/topic/14610/not-receiving-tickets-in-freescout-helpdesk-cloudron-419-errors-on-polycast-receive/5?_=1768070658349</a></p>
<p dir="auto">Rebooting mail service and then Freescout app is solving the issue.<br />
I will monitor to see if it's definitively fixed.</p>
]]></description><link>https://forum.cloudron.io/post/118266</link><guid isPermaLink="true">https://forum.cloudron.io/post/118266</guid><dc:creator><![CDATA[sebastienserre]]></dc:creator><pubDate>Sat, 10 Jan 2026 19:01:04 GMT</pubDate></item></channel></rss>