<?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[NC update to 4.12.1 fails]]></title><description><![CDATA[<p dir="auto">I encountered the this bug <a href="https://github.com/nextcloud/server/issues/29986" target="_blank" rel="noopener noreferrer nofollow ugc">29986</a> with the latest update a few hours ago.</p>
<pre><code>ERROR:  relation "user_id" already exists
</code></pre>
<p dir="auto">since the workaround needs a php edited, which will not work in a container over restart, any proposed way to handle that?</p>
<blockquote>
<p dir="auto">zordsdavini commented on 1 Dec 2021 •</p>
<p dir="auto">did some modifications in Version23000Date20210930122352.php and upgrade success:<br />
$table-&gt;addUniqueIndex(['user_id'], 'user_id'); changed to $table-&gt;addUniqueIndex(['user_id'], 'pc_user_id');</p>
</blockquote>
<p dir="auto">and:</p>
<blockquote>
<p dir="auto">Pytal commented on 10 Dec 2021</p>
<pre><code>did some modifications in Version23000Date20210930122352.php and upgrade success: $table-&gt;addUniqueIndex(['user_id'], 'user_id'); changed to $table-&gt;addUniqueIndex(['user_id'], 'pc_user_id');
</code></pre>
<p dir="auto">For those who renamed the index to pc_user_id, since we've merged #29996, we recommend that you rename the index to <code>profile_config_user_id_idx</code> to prevent any issues in the future</p>
</blockquote>
<p dir="auto">since NC is offline, a quick help/fix would be very appreciated.</p>
]]></description><link>https://forum.cloudron.io/topic/6510/nc-update-to-4-12-1-fails</link><generator>RSS for Node</generator><lastBuildDate>Mon, 14 Sep 2026 12:33:16 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/6510.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Feb 2022 10:13:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NC update to 4.12.1 fails on Fri, 18 Feb 2022 18:19:46 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> I got busy with other work, so when I came back 2 hours later to check on it. it seemed to complete. It took a very long time for some reason.</p>
<p dir="auto">Seems ok now at 4.11.4.</p>
]]></description><link>https://forum.cloudron.io/post/43652</link><guid isPermaLink="true">https://forum.cloudron.io/post/43652</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Fri, 18 Feb 2022 18:19:46 GMT</pubDate></item><item><title><![CDATA[Reply to NC update to 4.12.1 fails on Fri, 18 Feb 2022 12:56:51 GMT]]></title><description><![CDATA[<p dir="auto">That is very strange, since the database also gets reset on restore to that state it had.<br />
Do you see any errors we can work with or have you searched for upstream issues?</p>
]]></description><link>https://forum.cloudron.io/post/43633</link><guid isPermaLink="true">https://forum.cloudron.io/post/43633</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Fri, 18 Feb 2022 12:56:51 GMT</pubDate></item><item><title><![CDATA[Reply to NC update to 4.12.1 fails on Fri, 18 Feb 2022 04:31:59 GMT]]></title><description><![CDATA[<p dir="auto">I also have a cloudron that NC failed to come up on because it started the 4.12.1 update</p>
<p dir="auto">from there it got stuck in a loop:<br />
<code>Exception: Database error when running migration latest for app core</code></p>
<p dir="auto">Entire server backups also failed because the NC Redis service ran out of memory. Givint it more allowed backups to resume.</p>
<p dir="auto">Restoring to earlier version from 2 days ago, still erroring during migration, something about duplicate DB entries.</p>
<p dir="auto">Restoring from 3 days ago appears to get stuck at 65%. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f937.png?v=ef90891ebe9" class="not-responsive emoji emoji-android emoji--shrug" style="height:23px;width:auto;vertical-align:middle" title=":shrug:" alt="🤷" /></p>
]]></description><link>https://forum.cloudron.io/post/43617</link><guid isPermaLink="true">https://forum.cloudron.io/post/43617</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Fri, 18 Feb 2022 04:31:59 GMT</pubDate></item><item><title><![CDATA[Reply to NC update to 4.12.1 fails on Wed, 16 Feb 2022 14:53:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chymian" aria-label="Profile: chymian">@<bdi>chymian</bdi></a> good that this worked out. Although Cloudron should have made a backup prior to update and not proceed with update, if the backup failed. Maybe you skipped the backup during the manual update? I think the default is actually to skip, so maybe that should be changed then.</p>
]]></description><link>https://forum.cloudron.io/post/43518</link><guid isPermaLink="true">https://forum.cloudron.io/post/43518</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 16 Feb 2022 14:53:51 GMT</pubDate></item><item><title><![CDATA[Reply to NC update to 4.12.1 fails on Wed, 16 Feb 2022 14:46:56 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> said in <a href="/post/43510">NC update to 4.12.1 failes</a>:</p>
<blockquote>
<p dir="auto">To get back up quickly until a fix is there, you can restore to the backup made prior to the update.</p>
</blockquote>
<p dir="auto">that would have been my first choice, but the backup system didn't notice me about 5/7 failing backups due to my external minio server had updates problems, so I had only 2 out of the last week left, which had been too old.</p>
<blockquote>
<p dir="auto">Looks like some of their migration scripts have that bug, so maybe there is also a chance that if you put the app in debug mode, manually edit that file, then run the <a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a> within the app container to let it finish the database migrations. After that this script should not be run again so putting the app out of debug mode, theoretically should then work. I haven't tried that, since I don't have an instance where the issue is reproduced so far.</p>
</blockquote>
<p dir="auto">that worked. NC is online again.<br />
thx very much</p>
]]></description><link>https://forum.cloudron.io/post/43517</link><guid isPermaLink="true">https://forum.cloudron.io/post/43517</guid><dc:creator><![CDATA[chymian]]></dc:creator><pubDate>Wed, 16 Feb 2022 14:46:56 GMT</pubDate></item><item><title><![CDATA[Reply to NC update to 4.12.1 fails on Wed, 16 Feb 2022 12:10:32 GMT]]></title><description><![CDATA[<p dir="auto">To get back up quickly until a fix is there, you can restore to the backup made prior to the update.</p>
<p dir="auto">Looks like some of their migration scripts have that bug, so maybe there is also a chance that if you put the app in debug mode, manually edit that file, then run the <a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a> within the app container to let it finish the database migrations. After that this script should not be run again so putting the app out of debug mode, theoretically should then work. I haven't tried that, since I don't have an instance where the issue is reproduced so far.</p>
]]></description><link>https://forum.cloudron.io/post/43510</link><guid isPermaLink="true">https://forum.cloudron.io/post/43510</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 16 Feb 2022 12:10:32 GMT</pubDate></item></channel></rss>