Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. backup error: "undefined is not mounted"

backup error: "undefined is not mounted"

Scheduled Pinned Locked Moved Solved Support
backupsnfs
16 Posts 5 Posters 1.9k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • BrutalBirdieB BrutalBirdie

    Looking around in the box code:

    grep -rin "is not mounted"
    
    src/storage/filesystem.js:86:        if (result.mountpoint !== apiConfig.mountPoint) return callback(new BoxError(BoxError.FS_ERROR, `${apiConfig.mountPoint} is not mounted`));
    src/storage/filesystem.js:88:        if (result.mountpoint === '/') return callback(new BoxError(BoxError.FS_ERROR, `${apiConfig.backupFolder} is not mounted`));
    src/storage/filesystem.js:317:        if (!safe.child_process.execSync(`mountpoint -q -- ${apiConfig.mountPoint}`)) return callback(new BoxError(BoxError.BAD_FIELD, `${apiConfig.mountPoint} is not mounted`, { field: 'mountPoint' }));
    

    The ${apiConfig.mountPoint} / ${apiConfig.backupFolder} => apiConfig is from api endpoint {{baseUrl}}/settings/backup_config I assume.

    This api endpoint delivers:

    {
        "provider": "cifs",
        "format": "tgz",
        "memoryLimit": 838860800,
        "schedulePattern": "00 00 5 * * *",
        "retentionPolicy": {
            "keepWithinSecs": 604800
        },
        "prefix": "",
        "noHardlinks": false,
        "mountOptions": {
            "host": "-REDACTED-.your-storagebox.de",
            "remoteDir": "/backup/cloudron-backup",
            "username": "-REDACTED-",
            "password": "●●●●●●●●"
        },
        "uploadPartSize": 10485760,
        "encryption": null,
        "mountStatus": {
            "state": "active",
            "message": "Mounted"
        }
    }
    

    There is no backupFolder here so either I am wrong with my guess about the api endpoint or something else.

    Hmmm more digging.

    BrutalBirdieB Offline
    BrutalBirdieB Offline
    BrutalBirdie
    Partner
    wrote on last edited by
    #6

    https://git.cloudron.io/cloudron/box/-/commit/a786fad3eed59e9ed141c7a3344466b61e280891#f873e27dcc2976565d4f0aca6c809f8d4e39c506_425_427

    In src/settings.js deleted line 425:

    backupConfig.mountPoint = '/mnt/cloudronbackup'; // hardcode the mountPoint for built-in mounts
    

    🤔 This is a hint why I had to go with explicit /backup/cloudron-backup in https://forum.cloudron.io/topic/6529/shooting-a-cloudron-server-right-in-the-brain-i-deleted-appsdata-and-boxdata-by-accident because I am quite sure I never did this before.

    Like my work? Consider donating a drink. Cheers!

    nebulonN BrutalBirdieB 2 Replies Last reply
    0
    • BrutalBirdieB BrutalBirdie

      https://git.cloudron.io/cloudron/box/-/commit/a786fad3eed59e9ed141c7a3344466b61e280891#f873e27dcc2976565d4f0aca6c809f8d4e39c506_425_427

      In src/settings.js deleted line 425:

      backupConfig.mountPoint = '/mnt/cloudronbackup'; // hardcode the mountPoint for built-in mounts
      

      🤔 This is a hint why I had to go with explicit /backup/cloudron-backup in https://forum.cloudron.io/topic/6529/shooting-a-cloudron-server-right-in-the-brain-i-deleted-appsdata-and-boxdata-by-accident because I am quite sure I never did this before.

      nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #7

      @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?

      1 Reply Last reply
      0
      • BrutalBirdieB BrutalBirdie

        https://git.cloudron.io/cloudron/box/-/commit/a786fad3eed59e9ed141c7a3344466b61e280891#f873e27dcc2976565d4f0aca6c809f8d4e39c506_425_427

        In src/settings.js deleted line 425:

        backupConfig.mountPoint = '/mnt/cloudronbackup'; // hardcode the mountPoint for built-in mounts
        

        🤔 This is a hint why I had to go with explicit /backup/cloudron-backup in https://forum.cloudron.io/topic/6529/shooting-a-cloudron-server-right-in-the-brain-i-deleted-appsdata-and-boxdata-by-accident because I am quite sure I never did this before.

        BrutalBirdieB Offline
        BrutalBirdieB Offline
        BrutalBirdie
        Partner
        wrote on last edited by
        #8

        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

        Like my work? Consider donating a drink. Cheers!

        1 Reply Last reply
        0
        • girishG Do not disturb
          girishG Do not disturb
          girish
          Staff
          wrote on last edited by
          #9

          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.

          BrutalBirdieB 1 Reply Last reply
          1
          • girishG girish

            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.

            BrutalBirdieB Offline
            BrutalBirdieB Offline
            BrutalBirdie
            Partner
            wrote on last edited by
            #10

            @girish this is my next testing step.

            Like my work? Consider donating a drink. Cheers!

            girishG 1 Reply Last reply
            1
            • BrutalBirdieB BrutalBirdie

              @girish this is my next testing step.

              girishG Do not disturb
              girishG Do not disturb
              girish
              Staff
              wrote on last edited by
              #11

              @BrutalBirdie yes, please 🙂 I did make sure to test all the variety of backends in 7.1, but let me know.

              BrutalBirdieB 1 Reply Last reply
              0
              • girishG girish

                @BrutalBirdie yes, please 🙂 I did make sure to test all the variety of backends in 7.1, but let me know.

                BrutalBirdieB Offline
                BrutalBirdieB Offline
                BrutalBirdie
                Partner
                wrote on last edited by BrutalBirdie
                #12

                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 to No-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.

                Like my work? Consider donating a drink. Cheers!

                avatar1024A 1 Reply Last reply
                0
                • BrutalBirdieB BrutalBirdie

                  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 to No-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.

                  avatar1024A Offline
                  avatar1024A Offline
                  avatar1024
                  wrote on last edited by
                  #13

                  @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.

                  BrutalBirdieB 1 Reply Last reply
                  0
                  • avatar1024A avatar1024

                    @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.

                    BrutalBirdieB Offline
                    BrutalBirdieB Offline
                    BrutalBirdie
                    Partner
                    wrote on last edited by BrutalBirdie
                    #14

                    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.

                    1. You need to have a Cloudron v7.0.4 which needs to be fully restored
                    2. 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
                    3. Restored Cloudron running now and throwing the undefined is not mounted error when trying to backup
                      3.1. Still on version v7.0.4 you need to set backup option to No-Op No backup
                      3.2. De-apply the 3x patches in reverse order (like described above)
                      3.3. Restart box.service - systemctl restart box.service
                      3.4. Configure your backup solution again and make sure it works as intended
                      3.5. Upgrade to v7.1.1 and do not disable the pre-backup option
                      3.6. After the successful upgrade to v7.1.1 everything works as expected again

                    Like my work? Consider donating a drink. Cheers!

                    avatar1024A 1 Reply Last reply
                    0
                    • BrutalBirdieB BrutalBirdie

                      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.

                      1. You need to have a Cloudron v7.0.4 which needs to be fully restored
                      2. 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
                      3. Restored Cloudron running now and throwing the undefined is not mounted error when trying to backup
                        3.1. Still on version v7.0.4 you need to set backup option to No-Op No backup
                        3.2. De-apply the 3x patches in reverse order (like described above)
                        3.3. Restart box.service - systemctl restart box.service
                        3.4. Configure your backup solution again and make sure it works as intended
                        3.5. Upgrade to v7.1.1 and do not disable the pre-backup option
                        3.6. After the successful upgrade to v7.1.1 everything works as expected again
                      avatar1024A Offline
                      avatar1024A Offline
                      avatar1024
                      wrote on last edited by
                      #15

                      @BrutalBirdie Actually for me the issue appeared after:

                      1. Upgrading an instance to 7.1.0
                      2. Doing a full backup (which worked fine)
                      3. Restoring this instance on a new server (also worked fine) and shutting down the old server
                      4. 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.

                      1 Reply Last reply
                      1
                      • girishG Do not disturb
                        girishG Do not disturb
                        girish
                        Staff
                        wrote on last edited by girish
                        #16

                        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

                        1 Reply Last reply
                        1
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search