<?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[Twenty bug fix]]></title><description><![CDATA[<p dir="auto">Hi Cloudron Team. There is a small bug in the package. So I have sent the details and the Fix (in order to make your work easier <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=7b44d6dff6c" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Here is everything:</p>
<h2>Summary</h2>
<p dir="auto">The Twenty package never registers Twenty's background cron jobs. The official Docker image runs <code>yarn command:prod cron:register:all</code> on every start (<a href="http://entrypoint.sh" target="_blank" rel="noopener noreferrer nofollow ugc">entrypoint.sh</a>), but the package's <a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a> omits this step. As a result no cron-driven feature works: an IMAP/SMTP-connected mailbox hangs on "Importing" forever and never picks up new mail, and scheduled workflow runs, calendar sync, webhook renewals, and cleanup jobs all silently never run. There are no errors in the logs, which makes this very hard to notice.</p>
<p dir="auto">Verified on package 1.29.0 (Twenty 2.55.0); the same gap is present in the current master <a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a> (1.30.0 / Twenty 2.56.1).</p>
<h2>Details</h2>
<ul>
<li>Official upstream <code>packages/twenty-docker/twenty/entrypoint.sh</code> calls <code>yarn command:prod cron:register:all</code> at every container start (skippable via <code>DISABLE_CRON_JOBS_REGISTRATION=true</code>). This registers ~32 BullMQ repeatable jobs in Redis (messaging import every minute, message list fetch every 5 minutes, ongoing-stale recovery hourly, workflow cron triggers, webhook renewal, cleanup jobs, etc.).</li>
<li>The package's <a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a> does database init, <code>cache:flush</code>, <code>upgrade</code>, <code>cache:flush</code>, then starts supervisord. It never registers the cron jobs.</li>
<li><code>supervisor/twenty-server.conf</code> runs <code>node dist/main.js</code>, which performs no cron registration in Twenty 2.x.</li>
<li><code>supervisor/twenty-worker.conf</code> runs <code>yarn worker:prod</code> with <code>DISABLE_CRON_JOBS_REGISTRATION=true</code>, which is correct (matches upstream docker-compose) but only makes sense when the registration already happened.</li>
<li>The <code>DISABLE_CRON_JOBS_REGISTRATION=false</code> line that <a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a> writes into <code>/app/data/env</code> is read by nothing in the package. The variable is only consumed by the upstream entrypoint, which the package replaces.</li>
<li>Net effect: the cron queue in Redis is empty forever. The worker consumes it fine, but no repeatable jobs exist to fire.</li>
</ul>
<p dir="auto">Observed on a client install: a Gmail account connected via IMAP/SMTP shows "Importing" indefinitely. The one-time import jobs enqueued during account setup run, but every subsequent step of the sync state machine is driven by cron jobs, so the import freezes and incoming mail is never fetched. App logs since installation show zero cron-queue activity. Running the registration command manually fixes it immediately ("Cron job registration completed: 32 successful, 0 failed, 3 skipped").</p>
<h2>Fix</h2>
<p dir="auto">Add the registration step to <a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a> after the upgrade step, before starting supervisord:</p>
<pre><code class="language-sh">if grep -q '^DISABLE_CRON_JOBS_REGISTRATION=true' /app/data/env; then
    echo "==&gt; Cron job registration disabled, skipping"
else
    echo "==&gt; Registering background cron jobs"
    gosu cloudron:cloudron yarn command:prod cron:register:all
fi
</code></pre>
<p dir="auto">Registration is idempotent and cheap, so running it on every start matches upstream behavior. The <code>DISABLE_CRON_JOBS_REGISTRATION=true</code> on the worker in supervisor conf can stay as is.</p>
<h2>Workaround for affected installs</h2>
<p dir="auto">Run once in the app's web terminal. The registered jobs persist in Redis across app restarts and updates; rerun only if the Redis addon is ever wiped.</p>
<pre><code class="language-sh">cd /app/code/packages/twenty-server
gosu cloudron:cloudron yarn command:prod cron:register:all
</code></pre>
]]></description><link>https://forum.cloudron.io/topic/16297/twenty-bug-fix</link><generator>RSS for Node</generator><lastBuildDate>Mon, 23 Nov 2026 11:44:00 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/16297.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Nov 2026 17:38:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Twenty bug fix on Mon, 23 Nov 2026 11:02:32 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/creative567145" aria-label="Profile: creative567145">@<bdi>creative567145</bdi></a><br />
This should be fixed with package version <a href="https://forum.cloudron.io/post/133146">1.33.1</a><br />
Can you please check that and report back?</p>
]]></description><link>https://forum.cloudron.io/post/133296</link><guid isPermaLink="true">https://forum.cloudron.io/post/133296</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Mon, 23 Nov 2026 11:02:32 GMT</pubDate></item></channel></rss>