<?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[Nextcloud Migration Error]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">Have tried 10+ times to run a Nextcloud migration.</p>
<p dir="auto">But we are constantly getting the same error.</p>
<p dir="auto">We hope that this can be solved. Since this forum is public, the solution will be available for everyone else who will have the same problem <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=74f512c8ff7" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<blockquote></blockquote>
<p dir="auto">Task Error in the Nextcloud &gt; Repair Tab:</p>
<pre><code>Addons Error: Unexpected response code or HTTP error when piping /home/yellowtent/appsdata/57af8641-8ca3-4a61-b18a-cbf6308fb45e/postgresqldump to http://172.18.30.2:3000/databases/db57af86418ca34a61b18acbf6308fb45e/restore?access_token=072212caff8830b05a63b50516fa15953eeb2cd970e6668dbf7268d8dd43d609dcb58e6bf039e0b3befdd38b137de76828624185d3b0d6340a38f4e7aa467a2842bd64880a0392f4644e69faf49c4049fedcb4a2b3b41f7934a82d91e2453ea7172dad77131adb9389793dad635596d1c8db452a816a70985ed2941bfdc5d78e&amp;username=user57af86418ca34a61b18acbf6308fb45e: status 500 complete false
</code></pre>
<p dir="auto">Logs:</p>
<pre><code>17 06:41:29 box:tasks update 2805: {"percent":65,"message":"Download finished 2024-07-15-190000-564/app_vtmg.link_v4.22.2/postgresqldump to /home/yellowtent/appsdata/57af8641-8ca3-4a61-b18a-cbf6308fb45e/postgresqldump"}
Jul 17 06:41:29 box:backupformat/rsync Recreating empty directories in {"localRoot":"/home/yellowtent/appsdata/57af8641-8ca3-4a61-b18a-cbf6308fb45e","layout":[]}

Jul 17 06:44:37 box:backuptask downloadApp: time: 27101.091

Jul 17 06:44:37 box:tasks update 2805: {"percent":70,"message":"Restoring addons"}

Jul 17 06:44:37 box:services restoreAddons

Jul 17 06:44:37 box:services restoreAddons: restoring ["postgresql","sendmail","ldap","redis","localstorage","scheduler","turn"]

Jul 17 06:44:37 box:services Restore postgresql

Jul 17 06:44:37 box:services pipeFileToRequest: piping /home/yellowtent/appsdata/57af8641-8ca3-4a61-b18a-cbf6308fb45e/postgresqldump to http://172.18.30.2:3000/databases/db57af86418ca34a61b18acbf6308fb45e/restore?access_token=072212caff8830b05a63b50516fa15953eeb2cd970e6668dbf7268d8dd43d609dcb58e6bf039e0b3befdd38b137de76828624185d3b0d6340a38f4e7aa467a2842bd64880a0392f4644e69faf49c4049fedcb4a2b3b41f7934a82d91e2453ea7172dad77131adb9389793dad635596d1c8db452a816a70985ed2941bfdc5d78e&amp;username=user57af86418ca34a61b18acbf6308fb45e

Jul 17 06:48:43 box:services pipeFileToRequest: piped /home/yellowtent/appsdata/57af8641-8ca3-4a61-b18a-cbf6308fb45e/postgresqldump to http://172.18.30.2:3000/databases/db57af86418ca34a61b18acbf6308fb45e/restore?access_token=072212caff8830b05a63b50516fa15953eeb2cd970e6668dbf7268d8dd43d609dcb58e6bf039e0b3befdd38b137de76828624185d3b0d6340a38f4e7aa467a2842bd64880a0392f4644e69faf49c4049fedcb4a2b3b41f7934a82d91e2453ea7172dad77131adb9389793dad635596d1c8db452a816a70985ed2941bfdc5d78e&amp;username=user57af86418ca34a61b18acbf6308fb45e

Jul 17 06:51:44 box:services pipeFileToRequest: request completed with status code 500

Jul 17 06:51:44 box:apptask run: app error for state pending_restore: BoxError: Unexpected response code or HTTP error when piping /home/yellowtent/appsdata/57af8641-8ca3-4a61-b18a-cbf6308fb45e/postgresqldump to http://172.18.30.2:3000/databases/db57af86418ca34a61b18acbf6308fb45e/restore?access_token=072212caff8830b05a63b50516fa15953eeb2cd970e6668dbf7268d8dd43d609dcb58e6bf039e0b3befdd38b137de76828624185d3b0d6340a38f4e7aa467a2842bd64880a0392f4644e69faf49c4049fedcb4a2b3b41f7934a82d91e2453ea7172dad77131adb9389793dad635596d1c8db452a816a70985ed2941bfdc5d78e&amp;username=user57af86418ca34a61b18acbf6308fb45e: status 500 complete false at ClientRequest.&lt;anonymous&gt; (/home/yellowtent/box/src/services.js:1311:60) at ClientRequest.emit (node:events:518:28) at ClientRequest.emit (node:domain:488:12) at HTTPParser.parserOnIncomingClient (node:_http_client:698:27) at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17) at Socket.socketOnData (node:_http_client:540:22) at Socket.emit (node:events:518:28) at Socket.emit (node:domain:488:12) at addChunk (node:internal/streams/readable:559:12) at readableAddChunkPushByteMode (node:internal/streams/readable:510:3) { reason: 'Addons Error', details: {} }

Jul 17 06:51:44 box:taskworker Task took 27570.192 seconds

Jul 17 06:51:44 box:tasks setCompleted - 2805: {"result":null,"error":{"stack":"BoxError: Unexpected response code or HTTP error when piping /home/yellowtent/appsdata/57af8641-8ca3-4a61-b18a-cbf6308fb45e/postgresqldump to http://172.18.30.2:3000/databases/db57af86418ca34a61b18acbf6308fb45e/restore?access_token=072212caff8830b05a63b50516fa15953eeb2cd970e6668dbf7268d8dd43d609dcb58e6bf039e0b3befdd38b137de76828624185d3b0d6340a38f4e7aa467a2842bd64880a0392f4644e69faf49c4049fedcb4a2b3b41f7934a82d91e2453ea7172dad77131adb9389793dad635596d1c8db452a816a70985ed2941bfdc5d78e&amp;username=user57af86418ca34a61b18acbf6308fb45e: status 500 complete false\n at ClientRequest.&lt;anonymous&gt; (/home/yellowtent/box/src/services.js:1311:60)\n at ClientRequest.emit (node:events:518:28)\n at ClientRequest.emit (node:domain:488:12)\n at HTTPParser.parserOnIncomingClient (node:_http_client:698:27)\n at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)\n at Socket.socketOnData (node:_http_client:540:22)\n at Socket.emit (node:events:518:28)\n at Socket.emit (node:domain:488:12)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)","name":"BoxError","reason":"Addons Error","details":{},"message":"Unexpected response code or HTTP error when piping /home/yellowtent/appsdata/57af8641-8ca3-4a61-b18a-cbf6308fb45e/postgresqldump to http://172.18.30.2:3000/databases/db57af86418ca34a61b18acbf6308fb45e/restore?access_token=072212caff8830b05a63b50516fa15953eeb2cd970e6668dbf7268d8dd43d609dcb58e6bf039e0b3befdd38b137de76828624185d3b0d6340a38f4e7aa467a2842bd64880a0392f4644e69faf49c4049fedcb4a2b3b41f7934a82d91e2453ea7172dad77131adb9389793dad635596d1c8db452a816a70985ed2941bfdc5d78e&amp;username=user57af86418ca34a61b18acbf6308fb45e: status 500 complete false"}}

Jul 17 06:51:44 box:tasks update 2805: {"percent":100,"result":null,"error":{"stack":"BoxError: Unexpected response code or HTTP error when piping /home/yellowtent/appsdata/57af8641-8ca3-4a61-b18a-cbf6308fb45e/postgresqldump to http://172.18.30.2:3000/databases/db57af86418ca34a61b18acbf6308fb45e/restore?access_token=072212caff8830b05a63b50516fa15953eeb2cd970e6668dbf7268d8dd43d609dcb58e6bf039e0b3befdd38b137de76828624185d3b0d6340a38f4e7aa467a2842bd64880a0392f4644e69faf49c4049fedcb4a2b3b41f7934a82d91e2453ea7172dad77131adb9389793dad635596d1c8db452a816a70985ed2941bfdc5d78e&amp;username=user57af86418ca34a61b18acbf6308fb45e: status 500 complete false\n at ClientRequest.&lt;anonymous&gt; (/home/yellowtent/box/src/services.js:1311:60)\n at ClientRequest.emit (node:events:518:28)\n at ClientRequest.emit (node:domain:488:12)\n at HTTPParser.parserOnIncomingClient (node:_http_client:698:27)\n at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)\n at Socket.socketOnData (node:_http_client:540:22)\n at Socket.emit (node:events:518:28)\n at Socket.emit (node:domain:488:12)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)","name":"BoxError","reason":"Addons Error","details":{},"message":"Unexpected response code or HTTP error when piping /home/yellowtent/appsdata/57af8641-8ca3-4a61-b18a-cbf6308fb45e/postgresqldump to http://172.18.30.2:3000/databases/db57af86418ca34a61b18acbf6308fb45e/restore?access_token=072212caff8830b05a63b50516fa15953eeb2cd970e6668dbf7268d8dd43d609dcb58e6bf039e0b3befdd38b137de76828624185d3b0d6340a38f4e7aa467a2842bd64880a0392f4644e69faf49c4049fedcb4a2b3b41f7934a82d91e2453ea7172dad77131adb9389793dad635596d1c8db452a816a70985ed2941bfdc5d78e&amp;username=user57af86418ca34a61b18acbf6308fb45e: status 500 complete false"}}
[no timestamp]  Unexpected response code or HTTP error when piping /home/yellowtent/appsdata/57af8641-8ca3-4a61-b18a-cbf6308fb45e/postgresqldump to http://172.18.30.2:3000/databases/db57af86418ca34a61b18acbf6308fb45e/restore?access_token=072212caff8830b05a63b50516fa15953eeb2cd970e6668dbf7268d8dd43d609dcb58e6bf039e0b3befdd38b137de76828624185d3b0d6340a38f4e7aa467a2842bd64880a0392f4644e69faf49c4049fedcb4a2b3b41f7934a82d91e2453ea7172dad77131adb9389793dad635596d1c8db452a816a70985ed2941bfdc5d78e&amp;username=user57af86418ca34a61b18acbf6308fb45e: status 500 complete false

</code></pre>
<p dir="auto">Additional info if needed:</p>
<ol>
<li>The migration is run from a Linode VPS (Nexcloud on Cloudron) Ubuntu 22.04 LTS OS<br />
to a Dedicated server Ubuntu 24.04 LTS OS</li>
<li>In order so that there isn't any PostgreSQL database corruption, before the Backup was created we put Nextcloud in Recovery mode (so that the database isn't edited). We also tested without putting it in Recovery mode and the result was the same.</li>
<li>The migration is running from a Linode Object Storage</li>
</ol>
]]></description><link>https://forum.cloudron.io/topic/12114/nextcloud-migration-error</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 05:34:28 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/12114.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 Jul 2024 06:10:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Nextcloud Migration Error on Thu, 25 Jul 2024 07:10:34 GMT]]></title><description><![CDATA[<p dir="auto">I wish that we could do that, but this specific client doesn't want the configuration to be done. He is afraid that something might break. We assured him that all will be ok, but he insists. We must respect his wishes.</p>
<p dir="auto">Perhaps in the near future we will try it for some other client with high number of users.</p>
]]></description><link>https://forum.cloudron.io/post/91807</link><guid isPermaLink="true">https://forum.cloudron.io/post/91807</guid><dc:creator><![CDATA[creative567145]]></dc:creator><pubDate>Thu, 25 Jul 2024 07:10:34 GMT</pubDate></item><item><title><![CDATA[Reply to Nextcloud Migration Error on Thu, 25 Jul 2024 07:07:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/creative567145" aria-label="Profile: creative567145">@<bdi>creative567145</bdi></a> you can update to 8.0.2 and try the custom configuration . It's not documented but if this is requested more often, I can put this in the docs.</p>
]]></description><link>https://forum.cloudron.io/post/91806</link><guid isPermaLink="true">https://forum.cloudron.io/post/91806</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 25 Jul 2024 07:07:38 GMT</pubDate></item><item><title><![CDATA[Reply to Nextcloud Migration Error on Thu, 25 Jul 2024 06:49:58 GMT]]></title><description><![CDATA[<p dir="auto">Thank you <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a>  that will be very useful</p>
]]></description><link>https://forum.cloudron.io/post/91802</link><guid isPermaLink="true">https://forum.cloudron.io/post/91802</guid><dc:creator><![CDATA[creative567145]]></dc:creator><pubDate>Thu, 25 Jul 2024 06:49:58 GMT</pubDate></item><item><title><![CDATA[Reply to Nextcloud Migration Error on Mon, 22 Jul 2024 14:15:38 GMT]]></title><description><![CDATA[<p dir="auto">OK.  I have added a change in 8.0.2 where you can add a custom.conf along side the postgres configuration . It's not backed up but atleast it is persistent across restarts and updates.</p>
]]></description><link>https://forum.cloudron.io/post/91711</link><guid isPermaLink="true">https://forum.cloudron.io/post/91711</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 22 Jul 2024 14:15:38 GMT</pubDate></item><item><title><![CDATA[Reply to Nextcloud Migration Error on Mon, 22 Jul 2024 02:10:40 GMT]]></title><description><![CDATA[<p dir="auto">Thank you <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> very much!</p>
<p dir="auto">Yes <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> it's a quite big database. This Nextcloud has around 6000 users.<br />
The disk has above 1TB SSD so that was ok.</p>
<p dir="auto">Thank you <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> for the detailed steps. They were very helpful!<br />
The import was a success.</p>
<p dir="auto">Note: The change isn't persistent on a Reboot.<br />
It would be nice to change this:<br />
max_connections = 500<br />
to this:<br />
max_connections = 3000<br />
If the server is powerful enough, it should be able to sustain the x6 boost.<br />
The only challenge is how to make the change persistent after Reboot <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=74f512c8ff7" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":slightly_smiling_face:" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/post/91691</link><guid isPermaLink="true">https://forum.cloudron.io/post/91691</guid><dc:creator><![CDATA[creative567145]]></dc:creator><pubDate>Mon, 22 Jul 2024 02:10:40 GMT</pubDate></item><item><title><![CDATA[Reply to Nextcloud Migration Error on Thu, 18 Jul 2024 09:35:15 GMT]]></title><description><![CDATA[<p dir="auto">That change came from <a href="https://forum.cloudron.io/topic/11781/customize-postgresql-settings-limits">https://forum.cloudron.io/topic/11781/customize-postgresql-settings-limits</a></p>
]]></description><link>https://forum.cloudron.io/post/91576</link><guid isPermaLink="true">https://forum.cloudron.io/post/91576</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 18 Jul 2024 09:35:15 GMT</pubDate></item><item><title><![CDATA[Reply to Nextcloud Migration Error on Thu, 18 Jul 2024 09:19:24 GMT]]></title><description><![CDATA[<p dir="auto">This might be a regression I introduced in Cloudron 8. <a class="plugin-mentions-user plugin-mentions-a" href="/user/creative567145" aria-label="Profile: creative567145">@<bdi>creative567145</bdi></a> are you already on Cloudron 8 ?</p>
<p dir="auto">Assuming, you are on Cloudron 8, here's a workaround. A bit rough but should work:</p>
<ul>
<li>SSH into server and <code>docker exec -ti postgresql /bin/bash</code>
<ul>
<li>Edit the file <code>/var/lib/postgresql/14/main/postgresql.conf</code>. There is a field there <code>temp_file_limit = 1GB</code> . Remove that line altogether (the default is unlimited).</li>
<li><code>supervisorctl restart postgresql</code></li>
</ul>
</li>
</ul>
<p dir="auto">Now try the import.</p>
]]></description><link>https://forum.cloudron.io/post/91575</link><guid isPermaLink="true">https://forum.cloudron.io/post/91575</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 18 Jul 2024 09:19:24 GMT</pubDate></item><item><title><![CDATA[Reply to Nextcloud Migration Error on Thu, 18 Jul 2024 05:55:03 GMT]]></title><description><![CDATA[<p dir="auto">That is some large Nextcloud database instance! So I think the issue is with the postgres service creating a temp file in /tmp within the container. This is a transient volume, can you check if the disk it is created at has enough space temporarily? You can find the actual system path via <code>docker inspect postgresql</code> looking for the <code>Source</code> in the <code>/tmp</code> Mount.</p>
<p dir="auto">I think we will have to rewrite that part to not rely on tmp files in the future.</p>
]]></description><link>https://forum.cloudron.io/post/91558</link><guid isPermaLink="true">https://forum.cloudron.io/post/91558</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 18 Jul 2024 05:55:03 GMT</pubDate></item><item><title><![CDATA[Reply to Nextcloud Migration Error on Wed, 17 Jul 2024 20:24:19 GMT]]></title><description><![CDATA[<p dir="auto">Thank you <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/joseph" aria-label="Profile: joseph">@<bdi>joseph</bdi></a> on your help</p>
<p dir="auto">The PostreSQL service was already set to the max available 64GB RAM (from total 132GB RAM)</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> here is the requested log: (thank you again)</p>
<pre><code>Jul 17 06:51:43 2024-07-17 04:51:43.846 UTC [1062] ERROR: temporary file size exceeds temp_file_limit (1048576kB)

Jul 17 06:51:43 2024-07-17 04:51:43.846 UTC [1062] STATEMENT: CREATE INDEX oc_notifications_object ON public.oc_notifications USING btree (object_type, object_id);

Jul 17 06:51:43 2024-07-17 04:51:43.848 UTC [1007] root@db57af86418ca34a61b18acbf6308fb45e CONTEXT: parallel worker

Jul 17 06:51:43 2024-07-17 04:51:43.848 UTC [1007] root@db57af86418ca34a61b18acbf6308fb45e ERROR: temporary file size exceeds temp_file_limit (1048576kB)

Jul 17 06:51:43 2024-07-17 04:51:43.848 UTC [1007] root@db57af86418ca34a61b18acbf6308fb45e STATEMENT: CREATE INDEX oc_notifications_object ON public.oc_notifications USING btree (object_type, object_id);

Jul 17 06:51:43 2024-07-17 04:51:43.851 UTC [49] LOG: background worker "parallel worker" (PID 1062) exited with exit code 1

Jul 17 06:51:44 CONTEXT: parallel worker

Jul 17 06:51:44 restore: failed to restore database. code=3

Jul 17 06:51:44 restore: stderr from db import: ERROR: temporary file size exceeds temp_file_limit (1048576kB)

Jul 17 22:20:03 [GET] /healthcheck

Jul 17 22:20:03 healthcheck: disconnected
</code></pre>
<p dir="auto">The PostgreSQL Dump file is 15GB.<br />
From what we understand here, the limit is 1GB.<br />
How can we increase this limit or solve this problem another way?</p>
]]></description><link>https://forum.cloudron.io/post/91542</link><guid isPermaLink="true">https://forum.cloudron.io/post/91542</guid><dc:creator><![CDATA[creative567145]]></dc:creator><pubDate>Wed, 17 Jul 2024 20:24:19 GMT</pubDate></item><item><title><![CDATA[Reply to Nextcloud Migration Error on Wed, 17 Jul 2024 11:55:58 GMT]]></title><description><![CDATA[<p dir="auto">Services -&gt; PostgreSQL -&gt; Bump the memory limit</p>
]]></description><link>https://forum.cloudron.io/post/91497</link><guid isPermaLink="true">https://forum.cloudron.io/post/91497</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Wed, 17 Jul 2024 11:55:58 GMT</pubDate></item><item><title><![CDATA[Reply to Nextcloud Migration Error on Wed, 17 Jul 2024 06:23:08 GMT]]></title><description><![CDATA[<p dir="auto">Looks like this is related to the postgres database service. Can you also check the logs of that one? Depending on the dump size, it may also help to increase the memory limit of that service.</p>
]]></description><link>https://forum.cloudron.io/post/91468</link><guid isPermaLink="true">https://forum.cloudron.io/post/91468</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 17 Jul 2024 06:23:08 GMT</pubDate></item></channel></rss>