<?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[celery beat keeps restarting]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">this is something I just noticed in my logs, but could not yet find a permanent solutions for. The following log messages are repeating:</p>
<pre><code>Nov 05 15:49:28 celery beat v4.4.7 (cliffs) is starting.
Nov 05 15:49:29 2020-11-05 14:49:29,169 INFO exited: celery-beat (exit status 73; not expected)
Nov 05 15:49:30 [pid: 230|app: 0|req: 2/2] 172.18.0.1 () {34 vars in 444 bytes} [Thu Nov 5 14:49:30 2020] GET /healthz/ =&gt; generated 2 bytes in 15 msecs (HTTP/1.1 200) 10 headers in 535 bytes (1 switches on core 0)
Nov 05 15:49:30 2020-11-05 14:49:30,027 INFO spawned: 'celery-beat' with pid 281
Nov 05 15:49:30 172.18.0.1 - - [05/Nov/2020:14:49:30 +0000] "GET /healthz/ HTTP/1.1" 200 2 "-" "Mozilla (CloudronHealth)"
Nov 05 15:49:31 2020-11-05 14:49:31,029 INFO success: celery-beat entered RUNNING state, process has stayed up for &gt; than 1 seconds (startsecs)
Nov 05 15:49:33 ERROR: Pidfile (/run/celery/beat.pid) already exists.
Nov 05 15:49:33 Seems we're already running? (pid: 83)
Nov 05 15:49:33 celery beat v4.4.7 (cliffs) is starting.
Nov 05 15:49:33 2020-11-05 14:49:33,970 INFO exited: celery-beat (exit status 73; not expected)
Nov 05 15:49:34 2020-11-05 14:49:34,974 INFO spawned: 'celery-beat' with pid 303
Nov 05 15:49:35 2020-11-05 14:49:35,976 INFO success: celery-beat entered RUNNING state, process has stayed up for &gt; than 1 seconds (startsecs)
Nov 05 15:49:38 ERROR: Pidfile (/run/celery/beat.pid) already exists.
Nov 05 15:49:38 Seems we're already running? (pid: 83)
Nov 05 15:49:38 celery beat v4.4.7 (cliffs) is starting.
Nov 05 15:49:39 2020-11-05 14:49:39,217 INFO exited: celery-beat (exit status 73; not expected)
</code></pre>
<p dir="auto">Solution for now was to stop celery beat with <code>supervisorctl stop celery-beat</code>, remove the pidfile and then start the service again with <code>supervisorctl start celery-beat</code>. The log was afterwards fine for a while, but in one out of two restarts of the app the log messages came back and I needed to manually interfere again.</p>
<p dir="auto">Likely related and something I am still looking into is the following message in the weblate performance report: <code>The Celery tasks queue is too long, either the worker is not running, or is too slow.</code></p>
<p dir="auto">The only queue that has more than 0 entries is the memory queue. But I did not yet find a way to manually inspect it</p>
]]></description><link>https://forum.cloudron.io/topic/3622/celery-beat-keeps-restarting</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 20:31:48 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/3622.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 Nov 2020 15:00:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to celery beat keeps restarting on Fri, 06 Nov 2020 10:56:44 GMT]]></title><description><![CDATA[<p dir="auto">The new package version now disables that pid-file so hopefully this issue will be gone.</p>
]]></description><link>https://forum.cloudron.io/post/18294</link><guid isPermaLink="true">https://forum.cloudron.io/post/18294</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Fri, 06 Nov 2020 10:56:44 GMT</pubDate></item><item><title><![CDATA[Reply to celery beat keeps restarting on Fri, 06 Nov 2020 07:31:29 GMT]]></title><description><![CDATA[<p dir="auto">Ah, /tmp is indeed mounted to the host and not a tmpfs.</p>
<p dir="auto">I just wanted to check if there is an indicator or error message when celery-beat starts the first time. I downloaded the "full log" from the log view, but strangely these error messages do not appear at all in that file.</p>
]]></description><link>https://forum.cloudron.io/post/18281</link><guid isPermaLink="true">https://forum.cloudron.io/post/18281</guid><dc:creator><![CDATA[fbartels]]></dc:creator><pubDate>Fri, 06 Nov 2020 07:31:29 GMT</pubDate></item><item><title><![CDATA[Reply to celery beat keeps restarting on Thu, 05 Nov 2020 20:23:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> Per this answer <a href="https://stackoverflow.com/questions/10876246/disable-pidfile-for-celerybeat/17674248#17674248" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/questions/10876246/disable-pidfile-for-celerybeat/17674248#17674248</a>, we can disable this pid file altogether.</p>
]]></description><link>https://forum.cloudron.io/post/18243</link><guid isPermaLink="true">https://forum.cloudron.io/post/18243</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 05 Nov 2020 20:23:11 GMT</pubDate></item><item><title><![CDATA[Reply to celery beat keeps restarting on Thu, 05 Nov 2020 19:58:52 GMT]]></title><description><![CDATA[<p dir="auto">Oddly I am not able to reproduce this issue, even if I manually create the exact same pid file, while celery-beat is stopped. After that celery-beat would still start up normally. Not sure what I miss here and why it ignores and replaces the existing pid file.</p>
]]></description><link>https://forum.cloudron.io/post/18241</link><guid isPermaLink="true">https://forum.cloudron.io/post/18241</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 05 Nov 2020 19:58:52 GMT</pubDate></item><item><title><![CDATA[Reply to celery beat keeps restarting on Thu, 05 Nov 2020 17:23:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fbartels" aria-label="Profile: fbartels">@<bdi>fbartels</bdi></a> said in <a href="/post/18196">celery beat keeps restarting</a>:</p>
<blockquote>
<p dir="auto">ERROR: Pidfile (/run/celery/beat.pid) already exists</p>
</blockquote>
<p dir="auto">I guess we have to remove this file on startup. We do this for, for example, for apache. I think supervisor also comes with a program called pidproxy which will forward signals. This way the file gets cleaned up properly when the app is restarted etc (cc <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> )</p>
]]></description><link>https://forum.cloudron.io/post/18211</link><guid isPermaLink="true">https://forum.cloudron.io/post/18211</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 05 Nov 2020 17:23:52 GMT</pubDate></item></channel></rss>