Unable to restore
-
@joseph , Ok, I will write. just interesting if I can stop all apps by one command and make hard update to 8.3?
-
@ivan-petro it's also quite easy to just start afresh using the AWS backup . See https://docs.cloudron.io/backups/#restore-cloudron .
-
@joseph , but I have separate volumes of apps(
please is it possible just update current to 8.3 ? I am wondering, I just need to ignore state of apps. -
@joseph ,
I've set up a new server and am in the process of restoring from AWS backups. However, I noticed that automatic backups were disabled for some apps, and the only available backups on AWS are quite old.
I have already switched Cloudron’s DNS to the new server. The old server is still active, and I would like to manually migrate specific apps from it to the new server.
Could you provide a step-by-step guide or tutorial on how to manually transfer these apps while preserving their data and configurations?
Thanks in advance for your help!
Best regards,
Ivan. -
Oh, the whole Cloudron workflow/actions relies on backups. Not sure how much more I can help but let's see . You can try the below but we don't really have any guide or tutorial since what we have is based on backups.
- Copy the contents of /home/yellowtent/appsdata/<appid>/ from the old server into the new server. Copy this into some temp location . Say /tmp/app1/ or something . Do not copy directly into appsdata , this won't work. In that directory, you will see one config.json . If you see the "manifest" field, it will have the appstore id and version (not upstreamVersion).
- Install a fresh app in new server . You can put in the version field in the URL bar if it's not matching to what you noted above.
- After the app installed: Backups -> Import . Select Filesystem and put in /tmp/app1 . Then, select rsync as the format as well.
-
@joseph , thanks for tutorial!
I did this , but in the end of import I have error:External Error: Error loading fsmetadata.json:ENOENT: no such file or directory, open '/mnt/cloudron-volume-2/appsdata/46322ece-e828-4c6c-a4a2-e8391f2e395f/fsmetadata.json'
please let me know if this can be fixed
-
@joseph , thanks for tutorial!
I did this , but in the end of import I have error:External Error: Error loading fsmetadata.json:ENOENT: no such file or directory, open '/mnt/cloudron-volume-2/appsdata/46322ece-e828-4c6c-a4a2-e8391f2e395f/fsmetadata.json'
please let me know if this can be fixed
@ivan-petro ah yes, that file is usually created by rsync backup. can you create a dummy file in the root of the /tmp/app1/fsmetadata.json directory like this:
{ "emptyDirs": [], "execFiles": [], "symlinks": [] }
Also, forgot to mention, maybe you can also
chown -R yellowtent:yellowtent /tmp/app1
. You might get permission errors when importing otherwise. -
@joseph thanks for help! yes it helped. app imported , app in "running" state. but for some reason can't start app. it's n8n app.
error:
=> Setting permissions Mar 21 10:03:56 => Starting N8N Mar 21 10:03:57 Last session crashed Mar 21 10:03:57 Permissions 0644 for n8n settings file /app/data/user/.n8n/config are too wide. This is ignored for now, but in the future n8n will attempt to change the permissions automatically. To automatically enforce correct permissions now set N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true (recommended), or turn this check off set N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false. Mar 21 10:03:57 User settings loaded from: /app/data/user/.n8n/config Mar 21 10:04:00 => Healtheck error: Error: connect ECONNREFUSED 172.18.17.229:5678 Mar 21 10:04:07 Initializing n8n process Mar 21 10:04:08 Migration "AddWebhookId1611144599516" failed, error: column "webhookId" of relation "webhook_entity" already exists Mar 21 10:04:08 Migrations in progress, please do NOT stop the process. Mar 21 10:04:08 Starting migration AddWebhookId1611144599516 Mar 21 10:04:08 There was an error running database migrations Mar 21 10:04:08 column "webhookId" of relation "webhook_entity" already exists Mar 21 10:04:08 n8n ready on 0.0.0.0, port 5678 Mar 21 10:04:10 => Healtheck error: Error: read ECONNRESET Mar 21 10:04:10 => Ensure directories Mar 21 10:04:10 => Loading configuration Mar 21 10:04:10 => Setting permissions Mar 21 10:04:10 => Starting N8N Mar 21 10:04:11 Permissions 0644 for n8n settings file /app/data/user/.n8n/config are too wide. This is ignored for now, but in the future n8n will attempt to change the permissions automatically. To automatically enforce correct permissions now set N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true (recommended), or turn this check off set N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false. Mar 21 10:04:11 User settings loaded from: /app/data/user/.n8n/config Mar 21 10:04:12 Last session crashed Mar 21 10:04:12 BoxError: Unexpected response code or HTTP error when piping /home/yellowtent/appsdata/46322ece-e828-4c6c-a4a2-e8391f2e395f/postgresqldump to http://172.18.30.2:3000/databases/db46322ecee8284c6ca4a2e8391f2e395f/restore?access_token=b34f5810ef1bca9de0e9ae8f2cf579dc8c6dee98de19c0e678aab0133d9393324478b02763b955a2caf9eca347a812de339642143c9ddf5525e51081d31d190f7c7d170d3e5e88ec4a4a2986ad047d7dd93c121440852b7c63d5d3ba43f03304855d21ffe00ab24a4ad217c13e3d9181771d595d2d04e9556cc6a7c2ab3cecdb&username=user46322ecee8284c6ca4a2e8391f2e395f: status 500 complete false Mar 21 10:04:20 => Healtheck error: Error: connect ECONNREFUSED 172.18.17.229:5678 Mar 21 10:04:22 Initializing n8n process Mar 21 10:04:22 n8n ready on 0.0.0.0, port 5678 Mar 21 10:04:22 Migrations in progress, please do NOT stop the process. Mar 21 10:04:22 Starting migration AddWebhookId1611144599516 Mar 21 10:04:22 Migration "AddWebhookId1611144599516" failed, error: column "webhookId" of relation "webhook_entity" already exists Mar 21 10:04:22 There was an error running database migrations Mar 21 10:04:22 column "webhookId" of relation "webhook_entity" already exists Mar 21 10:04:24 => Ensure directories Mar 21 10:04:24 => Loading configuration Mar 21 10:04:24 => Setting permissions Mar 21 10:04:25 => Starting N8N Mar 21 10:04:25 Permissions 0644 for n8n settings file /app/data/user/.n8n/config are too wide. This is ignored for now, but in the future n8n will attempt to change the permissions automatically. To automatically enforce correct permissions now set N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true (recommended), or turn this check off set N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false. Mar 21 10:04:25 User settings loaded from: /app/data/user/.n8n/config Mar 21 10:04:26 Last session crashed
-
@joseph thanks for help! yes it helped. app imported , app in "running" state. but for some reason can't start app. it's n8n app.
error:
=> Setting permissions Mar 21 10:03:56 => Starting N8N Mar 21 10:03:57 Last session crashed Mar 21 10:03:57 Permissions 0644 for n8n settings file /app/data/user/.n8n/config are too wide. This is ignored for now, but in the future n8n will attempt to change the permissions automatically. To automatically enforce correct permissions now set N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true (recommended), or turn this check off set N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false. Mar 21 10:03:57 User settings loaded from: /app/data/user/.n8n/config Mar 21 10:04:00 => Healtheck error: Error: connect ECONNREFUSED 172.18.17.229:5678 Mar 21 10:04:07 Initializing n8n process Mar 21 10:04:08 Migration "AddWebhookId1611144599516" failed, error: column "webhookId" of relation "webhook_entity" already exists Mar 21 10:04:08 Migrations in progress, please do NOT stop the process. Mar 21 10:04:08 Starting migration AddWebhookId1611144599516 Mar 21 10:04:08 There was an error running database migrations Mar 21 10:04:08 column "webhookId" of relation "webhook_entity" already exists Mar 21 10:04:08 n8n ready on 0.0.0.0, port 5678 Mar 21 10:04:10 => Healtheck error: Error: read ECONNRESET Mar 21 10:04:10 => Ensure directories Mar 21 10:04:10 => Loading configuration Mar 21 10:04:10 => Setting permissions Mar 21 10:04:10 => Starting N8N Mar 21 10:04:11 Permissions 0644 for n8n settings file /app/data/user/.n8n/config are too wide. This is ignored for now, but in the future n8n will attempt to change the permissions automatically. To automatically enforce correct permissions now set N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true (recommended), or turn this check off set N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false. Mar 21 10:04:11 User settings loaded from: /app/data/user/.n8n/config Mar 21 10:04:12 Last session crashed Mar 21 10:04:12 BoxError: Unexpected response code or HTTP error when piping /home/yellowtent/appsdata/46322ece-e828-4c6c-a4a2-e8391f2e395f/postgresqldump to http://172.18.30.2:3000/databases/db46322ecee8284c6ca4a2e8391f2e395f/restore?access_token=b34f5810ef1bca9de0e9ae8f2cf579dc8c6dee98de19c0e678aab0133d9393324478b02763b955a2caf9eca347a812de339642143c9ddf5525e51081d31d190f7c7d170d3e5e88ec4a4a2986ad047d7dd93c121440852b7c63d5d3ba43f03304855d21ffe00ab24a4ad217c13e3d9181771d595d2d04e9556cc6a7c2ab3cecdb&username=user46322ecee8284c6ca4a2e8391f2e395f: status 500 complete false Mar 21 10:04:20 => Healtheck error: Error: connect ECONNREFUSED 172.18.17.229:5678 Mar 21 10:04:22 Initializing n8n process Mar 21 10:04:22 n8n ready on 0.0.0.0, port 5678 Mar 21 10:04:22 Migrations in progress, please do NOT stop the process. Mar 21 10:04:22 Starting migration AddWebhookId1611144599516 Mar 21 10:04:22 Migration "AddWebhookId1611144599516" failed, error: column "webhookId" of relation "webhook_entity" already exists Mar 21 10:04:22 There was an error running database migrations Mar 21 10:04:22 column "webhookId" of relation "webhook_entity" already exists Mar 21 10:04:24 => Ensure directories Mar 21 10:04:24 => Loading configuration Mar 21 10:04:24 => Setting permissions Mar 21 10:04:25 => Starting N8N Mar 21 10:04:25 Permissions 0644 for n8n settings file /app/data/user/.n8n/config are too wide. This is ignored for now, but in the future n8n will attempt to change the permissions automatically. To automatically enforce correct permissions now set N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true (recommended), or turn this check off set N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false. Mar 21 10:04:25 User settings loaded from: /app/data/user/.n8n/config Mar 21 10:04:26 Last session crashed
@ivan-petro getting close! I can only guess that maybe the package version you have installed and the package version you had previously running were different. Can you check the step 2 in my previous steps (that you have the version correct) ?
Have you tried any other app btw?
-
@joseph You can go ahead and close this thread.
Yes, I did install the same version as my backup, but unfortunately, that didn’t help.
In the end, I had to reinstall the server completely and upgrade to 8.3.1 again.It’s clear that backups need to be properly saved.
Thanks for your help anyway. -
N nebulon marked this topic as a question
-
N nebulon has marked this topic as solved