Restoration error "External Error: Not found"
-
Hi everyone,
I have a hard drive crash last night, so I've reinstall the complete OS. The restoration looks OK (all the configurations was back, same as mails and so on) but all the applications are in error "Error: External Error - Not found".
In the logs I have this :
Aug 12 13:55:17 box:backups downloadApp: time: 116.377 Aug 12 13:55:17 box:apptask XXXAppNameXXX.fr error installing app: BoxError: Not found Aug 12 13:55:17 box:apptask XXXAppNameXXX.fr updating app with values: {"installationState":"error","error":{"message":"Not found","reason":"External Error","taskId":"4368","installationState":"pending_restore"}} Aug 12 13:55:17 box:tasks setCompleted - 4368: {"result":null,"error":{"stack":"BoxError: Not found\n at PassThrough.<anonymous> (/home/yellowtent/box/src/backups.js:636:19)\n at PassThrough.emit (events.js:203:15)\n at DestroyableTransform.<anonymous> (/home/yellowtent/box/src/storage/gcs.js:116:20)\n at DestroyableTransform.emit (events.js:198:13)\n at /home/yellowtent/box/node_modules/through2/through2.js:18:12\n at process._tickCallback (internal/process/next_tick.js:61:11)","name":"BoxError","reason":"External Error","details":{},"message":"Not found"}} Aug 12 13:55:17 box:tasks 4368: {"percent":100,"result":null,"error":{"stack":"BoxError: Not found\n at PassThrough.<anonymous> (/home/yellowtent/box/src/backups.js:636:19)\n at PassThrough.emit (events.js:203:15)\n at DestroyableTransform.<anonymous> (/home/yellowtent/box/src/storage/gcs.js:116:20)\n at DestroyableTransform.emit (events.js:198:13)\n at /home/yellowtent/box/node_modules/through2/through2.js:18:12\n at process._tickCallback (internal/process/next_tick.js:61:11)","name":"BoxError","reason":"External Error","details":{},"message":"Not found"}}
Do you know what could be wrong ? Do you have an idea on how to run the apps ?
Thanks a lot in advance !
-
@EggEek This is just a guess on my part, but I wonder if "External" refers to an external drive if you had custom data directories in any of your apps. If you had an external location / custom directory, was that drive or directory restored too / remounted? Might be part of the problem. Just a guess though, I could be way off.
-
The 'external' here means that the error was external to cloudron (and it couldn't do anything about it).
@EggEek Can you check the backup configuration ? The error means that the backup is not found when restoring. Maybe with the new disk the path to backups changed? Or do you have the backups available at all in this new disk? (Maybe you need to copy over
/var/backups
?) -
@d19dotca @girish Thanks a lot for your answers. I forgot to mention that the backup is in a Google Cloud Storage. I will try to copy the file for the remote storage in /var/backups and let you know.
Just one last question : do I need the last successfull backup before the crash or I need to copy all the backups ?
-
@EggEek Oh, if the backups are on GCS, you don't need to copy anything. Cloudron will download from GCS. Is Cloudron backups configured to use GCS? If you go to the Backups view and then just click save (without making any changes), does it work? That will re-check the credentials atleast.
-
Hi @girish, thanks for your answer. I have checked the configuraion and I have relaunch some of restorations but they are all stuck to "Restoring - Waiting for Cloudron to initialize" state. I have try to restart the server several times but without success. Can I stop the restoration process (with the CLI maybe) and retry ?
-
@EggEek Usually, there is a good reason it is stuck. Can you check
/home/yellowtent/platformdata/logs/box.log
? You can also dosystemctl restart box
. This will restart the box code and then the box.log file will info on why it's having trouble with the platform starting up.If the apps are marked in error state, you can just go into each app and restore from it's latest backup.
-
Hi @girish,
I have done a complete reinstallation of the server and now I don't have any issue. I think I've done something wrong while I've completed the restoration informations the first time.
Thank's a lot for your support, the subject can be marked as solved.