<?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[WHich user for Cron task ?]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I've set a cron task from the app (Dolibarr) panel:<br />
<img src="https://file.thivinfo.com/Cloudron/2026-01-28_18-45.jpg" alt="text alternatif" class=" img-fluid img-markdown" /></p>
<p dir="auto">I assume this task is run as root? (or not www-data user)<br />
Am I right ?</p>
<p dir="auto">If I need to change the user, do you suggest to edit the <code>crontab</code> from the web terminal ?<br />
<code>crontab -e</code> ?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.cloudron.io/topic/14965/which-user-for-cron-task</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 02:35:35 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/14965.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Jan 2026 17:49:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WHich user for Cron task ? on Tue, 28 Apr 2026 11:02:49 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/sebastienserre" aria-label="Profile: sebastienserre">@<bdi>sebastienserre</bdi></a><br />
The custom cron runner was reworked and should work by default now without adding a specific cron job in the Cloudron Dashboard.<br />
See:  <a href="https://forum.cloudron.io/topic/15337/php-fatal-error-call-to-undefined-method-fetch_all-">https://forum.cloudron.io/topic/15337/php-fatal-error-call-to-undefined-method-fetch_all-</a>.</p>
<p dir="auto">Can you please try it and report back if that works?</p>
]]></description><link>https://forum.cloudron.io/post/124091</link><guid isPermaLink="true">https://forum.cloudron.io/post/124091</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Tue, 28 Apr 2026 11:02:49 GMT</pubDate></item><item><title><![CDATA[Reply to WHich user for Cron task ? on Tue, 28 Apr 2026 10:45:39 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Today, scheduled invoices haven't been created due to a permission error on the folder storing them in <code>/app/data/dolibarr/facture/FA2604-0802</code><br />
Also, I have set the cron job to run with ww-data but it still rotates the log on root user:<br />
<img src="https://file.thivinfo.com/Cloudron/2026-01-28_18-45.jpg" alt="text alternatif" class=" img-fluid img-markdown" /><br />
<img src="https://file.thivinfo.com/Cloudron/2026-04-28_12-32.jpg" alt="text alternatif" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.cloudron.io/post/124086</link><guid isPermaLink="true">https://forum.cloudron.io/post/124086</guid><dc:creator><![CDATA[sebastienserre]]></dc:creator><pubDate>Tue, 28 Apr 2026 10:45:39 GMT</pubDate></item><item><title><![CDATA[Reply to WHich user for Cron task ? on Mon, 16 Mar 2026 19:06:06 GMT]]></title><description><![CDATA[<p dir="auto">Sorry for my late answers. Yes, yes it fixes it. Thank you</p>
]]></description><link>https://forum.cloudron.io/post/121974</link><guid isPermaLink="true">https://forum.cloudron.io/post/121974</guid><dc:creator><![CDATA[sebastienserre]]></dc:creator><pubDate>Mon, 16 Mar 2026 19:06:06 GMT</pubDate></item><item><title><![CDATA[Reply to WHich user for Cron task ? on Tue, 17 Feb 2026 23:48:52 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/sebastienserre" aria-label="Profile: sebastienserre">@<bdi>sebastienserre</bdi></a><br />
Is this still an issue?</p>
]]></description><link>https://forum.cloudron.io/post/120380</link><guid isPermaLink="true">https://forum.cloudron.io/post/120380</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Tue, 17 Feb 2026 23:48:52 GMT</pubDate></item><item><title><![CDATA[Reply to WHich user for Cron task ? on Thu, 29 Jan 2026 10:09:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sebastienserre" aria-label="Profile: sebastienserre">@<bdi>sebastienserre</bdi></a> yes, cron commands are run as <code>root</code>. To run as a specific user, use <code>sudo</code> or <code>gosu</code> .</p>
<pre><code>gosu www-data:www-data /usr/bin/php /app/code/protected/yii cron/run
</code></pre>
<p dir="auto">OR</p>
<pre><code>sudo -E -u www-data php /app/code/upload/api/cron.php
</code></pre>
]]></description><link>https://forum.cloudron.io/post/119339</link><guid isPermaLink="true">https://forum.cloudron.io/post/119339</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Thu, 29 Jan 2026 10:09:19 GMT</pubDate></item><item><title><![CDATA[Reply to WHich user for Cron task ? on Thu, 29 Jan 2026 06:38:01 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: james">@<bdi>james</bdi></a><br />
I have an recurrent invoice created each 28th of the month and yesterday, it has not been created (first 28th after migrating to Cloudron).<br />
So I thought the Cron task was not run.<br />
i've added it on the Cron tab from the panel but the pdf generated by Dolibarr was owned by root user.</p>
]]></description><link>https://forum.cloudron.io/post/119326</link><guid isPermaLink="true">https://forum.cloudron.io/post/119326</guid><dc:creator><![CDATA[sebastienserre]]></dc:creator><pubDate>Thu, 29 Jan 2026 06:38:01 GMT</pubDate></item><item><title><![CDATA[Reply to WHich user for Cron task ? on Wed, 28 Jan 2026 21:24:47 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/sebastienserre" aria-label="Profile: sebastienserre">@<bdi>sebastienserre</bdi></a><br />
By default, the <a class="plugin-mentions-category plugin-mentions-a" href="/category/107/dolibarr" aria-label="Profile: dolibarr">@<bdi>dolibarr</bdi></a> app executes:</p>
<pre><code>*/15 * * * * /usr/bin/php /app/pkg/cron_run_jobs_custom.php
</code></pre>
<p dir="auto">Is your cron job something that really needs to be configured like this?</p>
]]></description><link>https://forum.cloudron.io/post/119321</link><guid isPermaLink="true">https://forum.cloudron.io/post/119321</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Wed, 28 Jan 2026 21:24:47 GMT</pubDate></item></channel></rss>