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. Nextcloud backup crashes

Nextcloud backup crashes

Scheduled Pinned Locked Moved Solved Support
30 Posts 6 Posters 4.0k Views 6 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.
  • O opensourced

    @girish Bevor I used Minio for backups, I was mounting a NFS mount. But I went away from using this, because there were instabilities with the mount and if the share was not mounted, the backup was made onto the rootfs and eventually filled up the disk untill the instance crashed.

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

    @opensourced er, apologies . I confused you and @jagan !

    Can you tell a bit more about your network? Is it a home network or public VPS? Just trying to understand the practicalities of backing up so much. Where the minio and NFS in your local network ?

    O 1 Reply Last reply
    0
    • girishG girish

      @opensourced I have been testing things on the side and tried copying over such amount of data to a CIFS mounted Hetzner Storage and just cp -r command failed in the middle. rclone failed as well since the Hetzner storage box mount point disconnects/breaks randomly. I am getting farther with rsync but currently cloudron does not have an adapter for rsync. We are still working on this. Fundamentally, backing up 2.5TB of data reliably is a very complicated task.

      All this to say, I don't really have a solution but if someone has ideas, I can try something else.

      E Offline
      E Offline
      eganonoa
      wrote on last edited by
      #21

      @girish said in Nextcloud backup crashes:

      @opensourced I have been testing things on the side and tried copying over such amount of data to a CIFS mounted Hetzner Storage and just cp -r command failed in the middle. rclone failed as well since the Hetzner storage box mount point disconnects/breaks randomly. I am getting farther with rsync but currently cloudron does not have an adapter for rsync. We are still working on this. Fundamentally, backing up 2.5TB of data reliably is a very complicated task.

      All this to say, I don't really have a solution but if someone has ideas, I can try something else.

      @girish A few years ago you helped me out with a similar issue (not on forums but via a support ticket) with backing up a large Nextcloud instance (2TB+). The issue was with timeouts and you advised how and where to update to extend the timeout window significantly. I was using a Hetzner Storage Box in Germany and a VPS in Sweden using a CIFS mount. Later I moved it to an sshfs, rsync to a local server.

      This fixed the issue and allowed me a couple of years of backups of that large Nextcloud instance (with many other apps running concurrently) without problem. I don't have those emails any more or access to that instance but wanted to mention in case a reminder is useful to you here as it seems to be a similar issue.

      1 Reply Last reply
      2
      • girishG girish

        @opensourced er, apologies . I confused you and @jagan !

        Can you tell a bit more about your network? Is it a home network or public VPS? Just trying to understand the practicalities of backing up so much. Where the minio and NFS in your local network ?

        O Offline
        O Offline
        opensourced
        wrote on last edited by
        #22

        @girish Cloudron is running in a Proxmox cluster. In the same local network there are storage servers via 10Gb/s. I guess ideal would be a NFS mount from a TrueNAS server. This way I could get rid of encryption overhead and use Jumbo frames. If cloudron could handle those NFS mounts stable, I would switch back to this. Other suggestions are very welcome.

        1 Reply Last reply
        1
        • robiR Offline
          robiR Offline
          robi
          wrote on last edited by
          #23

          @girish can you make sure the remount checks for CIFS are applied to NFS as well? At every backup..

          Having it be more bulletproof would be great!

          Conscious tech

          O 1 Reply Last reply
          2
          • O Offline
            O Offline
            opensourced
            wrote on last edited by
            #24

            I would warmly welcome this and change right back to NFS.

            1 Reply Last reply
            0
            • J Offline
              J Offline
              jagan
              wrote on last edited by
              #25

              Somehow, the backup is failing because files from the cache were not found.

              Jan 17 06:05:54box:shell copy (stderr): /bin/cp: cannot create hard link '/mnt/cloudronbackup/2024-01-16-143004-490/app_n8n.sbvu.ac.in_v3.17.2/data/user/.cache/n8n/public/assets/@jsplumb/browser-ui-d5e5c8b4.js' to '/mnt/cloudronbackup/snapshot/app_3b812988-82fc-4270-b8b1-a94efa9fc06a/data/user/.cache/n8n/public/assets/@jsplumb/browser-ui-d5e5c8b4.js': No such file or directory
              
              
              1 Reply Last reply
              0
              • robiR robi

                @girish can you make sure the remount checks for CIFS are applied to NFS as well? At every backup..

                Having it be more bulletproof would be great!

                O Offline
                O Offline
                opensourced
                wrote on last edited by
                #26

                @robi said in Nextcloud backup crashes:

                @girish can you make sure the remount checks for CIFS are applied to NFS as well? At every backup..

                Having it be more bulletproof would be great!

                @girish do you think there will be a more stable support for NFS in the feature?

                1 Reply Last reply
                2
                • O Offline
                  O Offline
                  opensourced
                  wrote on last edited by
                  #27

                  I am now slowly running into a storage limitation issue with the current settings. Also the performance of the current setting is really poor with 10-20 Mb/s considering that i would have a 10G link available that i cannot use.

                  @girish if i knew that there is some NFS improve scheduled, i could work around untill then. If not, i would need to cope with the current circumstances somehow. I think there would not even much needed.

                  I just need the NFS connector to:

                  • Never write to the root mount in order to prevent full root disk.
                  • Check mount before backup.
                  • If during the backup there is a connection issue, try to remount and continue. Try remount for 10 times with a delay of 10s or so...
                  1 Reply Last reply
                  0
                  • nebulonN Offline
                    nebulonN Offline
                    nebulon
                    Staff
                    wrote on last edited by
                    #28

                    Cloudron should already check if the backup destination is a mount and only starts the backup if it is mounted. This was an issue we had in the past but its fixed since few releases. If this is not what you see maybe there is a bug.

                    The NFS disconnection issue or if a mountpoint otherwise goes bad is indeed still an issue though.

                    1 Reply Last reply
                    0
                    • O Offline
                      O Offline
                      opensourced
                      wrote on last edited by
                      #29

                      Ok, so if i understand correctly, the mount is not automatically remounted after the share was not available for some time?

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

                        The remount does not happen automatically, but the backup logic checks first if the mount is active before starting to copy files.

                        1 Reply Last reply
                        0
                        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