backup error: "undefined is not mounted"
-
@BrutalBirdie so you are essentially saying the
undefined
comes from src/storage/filesystem.js:88 ?Do you know what we have to setup and how to reproduce this issue?
For the
/mnt/cloudronbackup
, since there is only one backup backend supported, it made sense to hardcode this so it is less likely to clash with other directory names on the system. Did you hit any issue with this? -
The error is definitely in these 3 patches.
wget https://git.cloudron.io/cloudron/box/-/commit/04b7c14fd71e65072f43ed008d9e8b598dd946ab.diff wget https://git.cloudron.io/cloudron/box/-/commit/8b9d821905b55c624084cb7665d8fbdb621a56e4.diff wget https://git.cloudron.io/cloudron/box/-/commit/a786fad3eed59e9ed141c7a3344466b61e280891.diff
Because when I set the backup to
no-op
and then revert the changes:git apply -R a786fad3eed59e9ed141c7a3344466b61e280891.diff git apply -R 8b9d821905b55c624084cb7665d8fbdb621a56e4.diff git apply -R 04b7c14fd71e65072f43ed008d9e8b598dd946ab.diff
And then setup my CIFS backup again, its working as intended.
Also regarding my previous post with explicit
/backup/cloudron-backup
in the now reverted version I only have to do/backup
again -
Can you try updating to 7.1 and trying this? Not sure what the status of the "code" is with all these patches applied Would be great to know if this is reproducible with 7.1 . What you can do is to take a VM snapshot and then update without taking a cloudron backup.
-
@BrutalBirdie yes, please I did make sure to test all the variety of backends in 7.1, but let me know.
-
Seems like after an upgrade to v7.1 there is no more issue.
So if you have to restore from
v7.0.4
apply the 3 patches so you can restore Cloudron.
After the successful restore set the backup option toNo-Op
aka. No Backup!
De-apply the patches in reverse order.git apply -R a786fad3eed59e9ed141c7a3344466b61e280891.diff git apply -R 8b9d821905b55c624084cb7665d8fbdb621a56e4.diff git apply -R 04b7c14fd71e65072f43ed008d9e8b598dd946ab.diff
Restart the box.service
systemctl restart box.service
Then configure your backup again and make sure it works.Then do the upgrade. Do not disable the automatic backup before the upgrade.
-
@BrutalBirdie Can you confirm which version you are on, 7.1.0 or 7.1.1? I've hit this issue after restoring an instance that was on 7.1.0 already.
-
I am on
v7.1.1
- now
This issue is very specific!
If you run into this and feel not comfortable fixing it alone, do not hesitate to write a support ticket or here in the forum!The issue only appears after a specific error chain.
- You need to have a Cloudron
v7.0.4
which needs to be fully restored - Then you get the first error https://forum.cloudron.io/topic/6494/restore-error-cannot-access-error-before-initialization
2.1. solved by applying the 3x patches - Restored Cloudron running now and throwing the
undefined is not mounted
error when trying to backup
3.1. Still on versionv7.0.4
you need to set backup option toNo-Op
No backup
3.2. De-apply the 3x patches in reverse order (like described above)
3.3. Restartbox.service
-systemctl restart box.service
3.4. Configure your backup solution again and make sure it works as intended
3.5. Upgrade tov7.1.1
and do not disable the pre-backup option
3.6. After the successful upgrade tov7.1.1
everything works as expected again
- You need to have a Cloudron
-
@BrutalBirdie Actually for me the issue appeared after:
- Upgrading an instance to 7.1.0
- Doing a full backup (which worked fine)
- Restoring this instance on a new server (also worked fine) and shutting down the old server
- But then daily backups on the newly restored instance fail with the "undefined is not mounted" error.
I've been in touch with support about this. I've given them ssh access and wait to hear what they say but perhaps simply upgrading to 7.1.1 might solve it.
-
This was indeed a bug. Fixed in https://git.cloudron.io/cloudron/box/-/commit/2434e813836e7837162c1798794d04655227d9cf . Thanks a lot @avatar1024 . It will be part of 7.1.2