<?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[Vikunja app not responding after 2.5.0 update]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">after Vikunja 2.5.0 update (io.vikunja.cloudronapp@1.25.0), app is not responding with this error:</p>
<pre><code>level=ERROR msg="Migration failed: migration 20260720120000 failed: cannot recreate the unique index on tasks (project_id, index) because 2 sets of duplicate values exist — remove the duplicates manually, then restart Vikunja"
</code></pre>
<p dir="auto">Any help would be great.</p>
<p dir="auto">Thanks a lot</p>
]]></description><link>https://forum.cloudron.io/topic/15791/vikunja-app-not-responding-after-2.5.0-update</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 21:09:50 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/15791.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Aug 2026 15:28:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Vikunja app not responding after 2.5.0 update on Thu, 06 Aug 2026 17:02:27 GMT]]></title><description><![CDATA[<p dir="auto">My experience with ChatGPT has been.. spotty at best. I'm glad you figured it out! <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44c.png?v=090c346130c" class="not-responsive emoji emoji-android emoji--ok_hand" style="height:23px;width:auto;vertical-align:middle" title="👌" alt="👌" /></p>
]]></description><link>https://forum.cloudron.io/post/127825</link><guid isPermaLink="true">https://forum.cloudron.io/post/127825</guid><dc:creator><![CDATA[humpty]]></dc:creator><pubDate>Thu, 06 Aug 2026 17:02:27 GMT</pubDate></item><item><title><![CDATA[Reply to Vikunja app not responding after 2.5.0 update on Thu, 06 Aug 2026 15:00:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/humpty" aria-label="Profile: humpty">@<bdi>humpty</bdi></a> Yes, I rolled back twice always with same error restoring app...</p>
<p dir="auto">I asked to ChatGPT 5.0:</p>
<pre><code>I’m on Cloudron trying to Update Vikunja app to 2.5.0 , but I get this error:

level=ERROR msg="Migration failed: migration 20260720120000 failed: cannot recreate the unique index on tasks (project_id, index) because 2 sets of duplicate values exist — remove the duplicates manually, then restart Vikunja"

what I’ve to do?
</code></pre>
<p dir="auto">Then ChatGPT answered with MySql different queries, then I told:</p>
<pre><code>I’m on postgres
</code></pre>
<p dir="auto">Then gave me this answer:</p>
<p dir="auto">For PostgreSQL, follow the same principle: keep one task in each duplicate set and assign new task indexes to the others.</p>
<h2>1. Back up Vikunja</h2>
<p dir="auto">Create a manual Cloudron backup before modifying the database. Ideally stop Vikunja or ensure nobody is using it during the repair.</p>
<h2>2. Connect to PostgreSQL</h2>
<p dir="auto">Open the Vikunja app’s <strong>Terminal</strong> and run:</p>
<pre><code class="language-bash">psql "$CLOUDRON_POSTGRESQL_URL"
</code></pre>
<p dir="auto">If that variable is unavailable:</p>
<pre><code class="language-bash">PGPASSWORD="$CLOUDRON_POSTGRESQL_PASSWORD" psql \
  -h "$CLOUDRON_POSTGRESQL_HOST" \
  -p "$CLOUDRON_POSTGRESQL_PORT" \
  -U "$CLOUDRON_POSTGRESQL_USERNAME" \
  -d "$CLOUDRON_POSTGRESQL_DATABASE"
</code></pre>
<h2>3. Inspect the duplicates</h2>
<pre><code class="language-sql">SELECT
    project_id,
    "index",
    COUNT(*) AS count,
    ARRAY_AGG(id ORDER BY id) AS task_ids
FROM tasks
GROUP BY project_id, "index"
HAVING COUNT(*) &gt; 1
ORDER BY project_id, "index";
</code></pre>
<p dir="auto">To also see task titles:</p>
<pre><code class="language-sql">SELECT
    t.id,
    t.project_id,
    t."index",
    t.title
FROM tasks AS t
JOIN (
    SELECT project_id, "index"
    FROM tasks
    GROUP BY project_id, "index"
    HAVING COUNT(*) &gt; 1
) AS d
  ON d.project_id = t.project_id
 AND d."index" = t."index"
ORDER BY t.project_id, t."index", t.id;
</code></pre>
<h2>4. Automatically reassign the extra indexes</h2>
<p dir="auto">The following keeps the lowest task ID in each duplicate set unchanged and assigns unused indexes to the others:</p>
<pre><code class="language-sql">BEGIN;

LOCK TABLE tasks IN ACCESS EXCLUSIVE MODE;

WITH ranked AS (
    SELECT
        id,
        project_id,
        "index",
        ROW_NUMBER() OVER (
            PARTITION BY project_id, "index"
            ORDER BY id
        ) AS duplicate_number
    FROM tasks
),
to_fix AS (
    SELECT
        id,
        project_id,
        ROW_NUMBER() OVER (
            PARTITION BY project_id
            ORDER BY "index", id
        ) AS new_offset
    FROM ranked
    WHERE duplicate_number &gt; 1
),
project_max AS (
    SELECT
        project_id,
        COALESCE(MAX("index"), 0) AS max_index
    FROM tasks
    GROUP BY project_id
)
UPDATE tasks AS t
SET "index" = pm.max_index + f.new_offset
FROM to_fix AS f
JOIN project_max AS pm
  ON pm.project_id = f.project_id
WHERE t.id = f.id
RETURNING t.id, t.project_id, t."index", t.title;

COMMIT;
</code></pre>
<p dir="auto">This does <strong>not</strong> delete tasks. It only changes the duplicate per-project task numbers.</p>
<h2>5. Confirm the problem is fixed</h2>
<pre><code class="language-sql">SELECT project_id, "index", COUNT(*)
FROM tasks
GROUP BY project_id, "index"
HAVING COUNT(*) &gt; 1;
</code></pre>
<p dir="auto">It should return:</p>
<pre><code class="language-text">(0 rows)
</code></pre>
<p dir="auto">Exit PostgreSQL:</p>
<pre><code class="language-sql">\q
</code></pre>
<p dir="auto">Then restart Vikunja and retry the Cloudron update to 2.5.0.</p>
<hr />
<p dir="auto">ChatGPT forgot to remember me to enble recovery mode because app was unreachable at moment, but I solved.</p>
<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/humpty" aria-label="Profile: humpty">@<bdi>humpty</bdi></a> for your patience taking look into the problem.</p>
]]></description><link>https://forum.cloudron.io/post/127813</link><guid isPermaLink="true">https://forum.cloudron.io/post/127813</guid><dc:creator><![CDATA[p44]]></dc:creator><pubDate>Thu, 06 Aug 2026 15:00:19 GMT</pubDate></item><item><title><![CDATA[Reply to Vikunja app not responding after 2.5.0 update on Thu, 06 Aug 2026 14:25:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/p44" aria-label="Profile: p44">@<bdi>p44</bdi></a> Yes, browser cache. But, it seems a farfetched idea. Have you tried rolling back to a working backup and then updating again? Perhaps something went wrong or the newest update will bypass/address the issue.</p>
]]></description><link>https://forum.cloudron.io/post/127810</link><guid isPermaLink="true">https://forum.cloudron.io/post/127810</guid><dc:creator><![CDATA[humpty]]></dc:creator><pubDate>Thu, 06 Aug 2026 14:25:43 GMT</pubDate></item><item><title><![CDATA[Reply to Vikunja app not responding after 2.5.0 update on Thu, 06 Aug 2026 14:10:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/humpty" aria-label="Profile: humpty">@<bdi>humpty</bdi></a> thanks for your help.</p>
<p dir="auto">Do you mean browser cache?</p>
<p dir="auto">Cloudron app does not start after update...</p>
]]></description><link>https://forum.cloudron.io/post/127808</link><guid isPermaLink="true">https://forum.cloudron.io/post/127808</guid><dc:creator><![CDATA[p44]]></dc:creator><pubDate>Thu, 06 Aug 2026 14:10:15 GMT</pubDate></item><item><title><![CDATA[Reply to Vikunja app not responding after 2.5.0 update on Thu, 06 Aug 2026 13:17:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/p44" aria-label="Profile: p44">@<bdi>p44</bdi></a> 2.5.0 is working fine for me. I had to log back in though. Maybe it's a cache issue on your end?</p>
]]></description><link>https://forum.cloudron.io/post/127804</link><guid isPermaLink="true">https://forum.cloudron.io/post/127804</guid><dc:creator><![CDATA[humpty]]></dc:creator><pubDate>Thu, 06 Aug 2026 13:17:00 GMT</pubDate></item><item><title><![CDATA[Reply to Vikunja app not responding after 2.5.0 update on Thu, 06 Aug 2026 08:38:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: james">@<bdi>james</bdi></a> No fixed at all...</p>
]]></description><link>https://forum.cloudron.io/post/127795</link><guid isPermaLink="true">https://forum.cloudron.io/post/127795</guid><dc:creator><![CDATA[p44]]></dc:creator><pubDate>Thu, 06 Aug 2026 08:38:19 GMT</pubDate></item><item><title><![CDATA[Reply to Vikunja app not responding after 2.5.0 update on Thu, 06 Aug 2026 07:48:04 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/p44" aria-label="Profile: p44">@<bdi>p44</bdi></a><br />
According to the upstream this was fixed <a href="https://github.com/go-vikunja/vikunja/issues/3313" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/go-vikunja/vikunja/issues/3313</a> with version <code>2.5.0</code>.<br />
Maybe reporting this upstream then is a good idea.</p>
]]></description><link>https://forum.cloudron.io/post/127792</link><guid isPermaLink="true">https://forum.cloudron.io/post/127792</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Thu, 06 Aug 2026 07:48:04 GMT</pubDate></item></channel></rss>