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 failing (flaky CIFS mount)

Backup failing (flaky CIFS mount)

Scheduled Pinned Locked Moved Solved Support
backupshetznermountsshfs
26 Posts 7 Posters 3.5k Views 7 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.
  • jdaviescoatesJ jdaviescoates

    @girish yes:

    @jdaviescoates said in Backup failing:

    Backing up post-reboot worked fine. So my guess is that my Hetzner Storage Box had a wobble and somehow became unmounted mid backup.

    Sounds like others have been experiencing similar too, so I'm guessing a (hopefully temporary) issue with Hetzner storage boxes.

    Although like @robi said it'd be cool if there was some way Cloudron backups could try to survive such wobbles.

    girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #8

    @jdaviescoates Yes, at some point we want to make it possible to add mounts easily. When we do that, we can attempt to re-mount automatically, I guess.

    robiR 1 Reply Last reply
    2
    • girishG girish

      @jdaviescoates Yes, at some point we want to make it possible to add mounts easily. When we do that, we can attempt to re-mount automatically, I guess.

      robiR Offline
      robiR Offline
      robi
      wrote on last edited by
      #9

      @girish not sure this is the right context..

      this is about existing mounts and their resilience to disconnects.

      • monitoring mounts for health
      • allowing for self-healing if it exists from the protocol
      • if not, try harder, remount command for example
      • if still not, try unmount, then remount
      • if still not, notify to reboot

      Conscious tech

      P 1 Reply Last reply
      1
      • robiR robi

        @girish not sure this is the right context..

        this is about existing mounts and their resilience to disconnects.

        • monitoring mounts for health
        • allowing for self-healing if it exists from the protocol
        • if not, try harder, remount command for example
        • if still not, try unmount, then remount
        • if still not, notify to reboot
        P Offline
        P Offline
        p44
        translator
        wrote on last edited by
        #10

        @robi right suggestions.

        @girish I had this problem again: all backup folder this morning where unmounted...

        I 1 Reply Last reply
        0
        • P p44

          @robi right suggestions.

          @girish I had this problem again: all backup folder this morning where unmounted...

          I Offline
          I Offline
          iqweb
          wrote on last edited by
          #11

          @p44 said in Backup failing:

          @robi right suggestions.

          @girish I had this problem again: all backup folder this morning where unmounted...

          I've had the same thing again too

          girishG P 2 Replies Last reply
          1
          • I iqweb

            @p44 said in Backup failing:

            @robi right suggestions.

            @girish I had this problem again: all backup folder this morning where unmounted...

            I've had the same thing again too

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #12

            @iqweb Are you also using CIFS/NFS?

            I 1 Reply Last reply
            1
            • I iqweb

              @p44 said in Backup failing:

              @robi right suggestions.

              @girish I had this problem again: all backup folder this morning where unmounted...

              I've had the same thing again too

              P Offline
              P Offline
              p44
              translator
              wrote on last edited by
              #13

              @iqweb Still on Hetzner storage?

              1 Reply Last reply
              0
              • girishG girish

                @iqweb Are you also using CIFS/NFS?

                I Offline
                I Offline
                iqweb
                wrote on last edited by
                #14

                @girish said in Backup failing:

                @iqweb Are you also using CIFS/NFS?

                Yes - storage provider: CIFS Mount

                @p44 said in Backup failing:

                @iqweb Still on Hetzner storage?

                Yes - Hetzner storage box

                & again - I had to reboot to be able to remount.

                P 1 Reply Last reply
                1
                • I iqweb

                  @girish said in Backup failing:

                  @iqweb Are you also using CIFS/NFS?

                  Yes - storage provider: CIFS Mount

                  @p44 said in Backup failing:

                  @iqweb Still on Hetzner storage?

                  Yes - Hetzner storage box

                  & again - I had to reboot to be able to remount.

                  P Offline
                  P Offline
                  p44
                  translator
                  wrote on last edited by
                  #15

                  @iqweb Maybe Hetzner sometimes reboot Box instance? From my side is about one week CIFS mount is stable...

                  1 Reply Last reply
                  0
                  • nebulonN Offline
                    nebulonN Offline
                    nebulon
                    Staff
                    wrote on last edited by
                    #16

                    I also have to remount my cifs share about once a month. In my case I thought it was related to my residential home internet connection. Either way I think we have to handle such mount points better and maybe even attempt a remount automatically.

                    P girishG 2 Replies Last reply
                    3
                    • nebulonN nebulon

                      I also have to remount my cifs share about once a month. In my case I thought it was related to my residential home internet connection. Either way I think we have to handle such mount points better and maybe even attempt a remount automatically.

                      P Offline
                      P Offline
                      p44
                      translator
                      wrote on last edited by
                      #17

                      @nebulon Good idea to add a health-check to keep alive mounting

                      1 Reply Last reply
                      1
                      • nebulonN nebulon

                        I also have to remount my cifs share about once a month. In my case I thought it was related to my residential home internet connection. Either way I think we have to handle such mount points better and maybe even attempt a remount automatically.

                        girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #18

                        @nebulon Does cifs mounting have some retry flags? (i.e the fstab options)

                        nebulonN 1 Reply Last reply
                        0
                        • girishG girish

                          @nebulon Does cifs mounting have some retry flags? (i.e the fstab options)

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

                          @girish not that I have found and https://linux.die.net/man/8/mount.cifs does not mention anything.

                          Apparently systemd has some automounting feature https://www.freedesktop.org/software/systemd/man/systemd.automount.html which mounts the drive once the mountpoint is accessed by a process! Can't tell if it would reconnect such a mount though.

                          girishG 1 Reply Last reply
                          1
                          • nebulonN nebulon

                            @girish not that I have found and https://linux.die.net/man/8/mount.cifs does not mention anything.

                            Apparently systemd has some automounting feature https://www.freedesktop.org/software/systemd/man/systemd.automount.html which mounts the drive once the mountpoint is accessed by a process! Can't tell if it would reconnect such a mount though.

                            girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by
                            #20

                            @nebulon Maybe https://askubuntu.com/questions/1210867/remount-cifs-on-network-reconnect ? (just expands on your link)

                            imc67I 1 Reply Last reply
                            1
                            • girishG girish

                              @nebulon Maybe https://askubuntu.com/questions/1210867/remount-cifs-on-network-reconnect ? (just expands on your link)

                              imc67I Offline
                              imc67I Offline
                              imc67
                              translator
                              wrote on last edited by
                              #21

                              @girish & @nebulon any news on this issue?

                              I started yesterday to backup via cifs to a Hetzner storagebox (2 backups a day), today the first backup failed due to

                              Command failed with exit code 1 (EPERM): df -kPT /backups_cifs
                              

                              I solved it with a manual:

                              sudo umount /backups_cifs
                              sudo mount -a
                              

                              But do I need to script this with a daily cron or is Cloudron able to recover from this somehow?

                              P 1 Reply Last reply
                              0
                              • imc67I imc67

                                @girish & @nebulon any news on this issue?

                                I started yesterday to backup via cifs to a Hetzner storagebox (2 backups a day), today the first backup failed due to

                                Command failed with exit code 1 (EPERM): df -kPT /backups_cifs
                                

                                I solved it with a manual:

                                sudo umount /backups_cifs
                                sudo mount -a
                                

                                But do I need to script this with a daily cron or is Cloudron able to recover from this somehow?

                                P Offline
                                P Offline
                                p44
                                translator
                                wrote on last edited by p44
                                #22

                                @imc67 Dear, this happened because Hetzner did some maintenance on their Box Service.

                                Also a Cloudron restart solved problem.

                                nebulonN 1 Reply Last reply
                                0
                                • P p44

                                  @imc67 Dear, this happened because Hetzner did some maintenance on their Box Service.

                                  Also a Cloudron restart solved problem.

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

                                  @p44 actually I hit the same thing today morning, had to remount the disk. I happily ignored the heads up warning email about the maintenance from hetzner 😉

                                  P 1 Reply Last reply
                                  1
                                  • nebulonN nebulon

                                    @p44 actually I hit the same thing today morning, had to remount the disk. I happily ignored the heads up warning email about the maintenance from hetzner 😉

                                    P Offline
                                    P Offline
                                    p44
                                    translator
                                    wrote on last edited by p44
                                    #24

                                    @nebulon Yes, but not all my Cloudron installs has been affected, even if attached at the same Hetzner Box... Just restarted and all was operational again 🙂

                                    nebulonN 1 Reply Last reply
                                    0
                                    • P p44

                                      @nebulon Yes, but not all my Cloudron installs has been affected, even if attached at the same Hetzner Box... Just restarted and all was operational again 🙂

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

                                      @p44 in such cases a remount alone would be enough, no need to reboot the whole server, if that is what you did. This would then not affect downtime. We will soon implement auto-remounting in such cases.

                                      P 1 Reply Last reply
                                      5
                                      • nebulonN nebulon

                                        @p44 in such cases a remount alone would be enough, no need to reboot the whole server, if that is what you did. This would then not affect downtime. We will soon implement auto-remounting in such cases.

                                        P Offline
                                        P Offline
                                        p44
                                        translator
                                        wrote on last edited by
                                        #26

                                        @nebulon Yes before rebooting I tried to umount-remount but it seems it has been impossible due to an error... So I decided to restart.

                                        About auto-remounting it will be an amazing feature

                                        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