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
  • Brite
  • 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

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Rsync backup integrity fails for one Nextcloud and Jellyfin.

Rsync backup integrity fails for one Nextcloud and Jellyfin.

Scheduled Pinned Locked Moved Unsolved Support
backupbackupsrsyncintegrity
23 Posts 4 Posters 2.0k Views 3 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.
  • jamesJ
    jamesJ
    james
    Staff
    wrote on last edited by
    #13

    Hello @jdaviescoates
    The ooc tool is called this way https://docs.cloudron.io/packages/nextcloud#running-occ-tool

    sudo -u www-data php -f /app/code/occ $COMMAND
    
    jdaviescoatesJ 1 Reply Last reply
    0
    • jamesJ james

      Hello @jdaviescoates
      The ooc tool is called this way https://docs.cloudron.io/packages/nextcloud#running-occ-tool

      sudo -u www-data php -f /app/code/occ $COMMAND
      
      jdaviescoatesJ
      jdaviescoatesJ
      jdaviescoates
      Super Fan
      wrote on last edited by
      #14

      @james said:

      Hello @jdaviescoates
      The ooc tool is called this way https://docs.cloudron.io/packages/nextcloud#running-occ-tool

      sudo -u www-data php -f /app/code/occ $COMMAND
      

      Thanks, that worked.

      I use Cloudron with Gandi & Hetzner

      1 Reply Last reply
      0
      • girishG girish has marked this topic as solved on
      • jdaviescoatesJ
        jdaviescoatesJ
        jdaviescoates
        Super Fan
        wrote last edited by jdaviescoates
        #15

        @staff I've now got to the bottom of this with the help of Claude (who also wrote most of this post).

        It looks like potentially a genuine post-Cloudron-migration rsync backup bug rather than anything to do with files changing during the backup.

        Summary

        My rsync backups of Nextcloud and Jellyfin fail the integrity check every single night. Tarball backups of the same apps always pass. On 9.2 the error is:

        Failed to verify 2026-09-22-000001-401/app_office.domain.coop_v5.8.8: Cannot read properties of undefined (reading 'size')
        

        The backup task itself reports no errors.

        What I found

        I compared a full file listing of each app's live data with the corresponding folder in the rsync backup on my Hetzner Storage Box (mounted via SSHFS).

        Jellyfin: the backup holds 2,983 files that no longer exist on the server. These are old People and artist metadata images plus an old plugin folder (plugins/SSO Authentication_4.0.0.4). Deleted files are never removed from the backup. Going the other way, 18 files that have existed on the server since 15 March have never been uploaded.

        Nextcloud: the backup holds 416 files that no longer exist on the server, mostly JS and CSS from old versions of Nextcloud apps. More seriously, real user files are missing. 21 of the 28 files in one of my folders are not in the backup, along with 5 files in another folder. They have been on the server for months.

        So the rsync backup is both keeping deleted files and missing files that exist. My tarballs contain everything, so nothing is lost, but the rsync backups could not be relied on for a restore.

        The likely cause

        I did a full Cloudron migration onto a new server freshly built on 13 March (Cloudron installed that evening). The files that never uploaded, in both apps, have modification times in the early hours of 15 March, many at exactly 02:11. After the migration, the new server carried on backing up to the same rsync folder the old server had used.

        My guess is that the new server's record of what it had already uploaded never matched what was actually on the Storage Box. Files it thinks are uploaded are skipped every night, and files left over from the old server are never deleted because it doesn't know about them. That would explain why it fails every time, only in rsync format, and only for these apps.

        In April, on 9.1.5, the same problem showed up as a file count mismatch (284,709 found vs 285,450 expected). On 9.2 the checker seems to hit the mismatch and crash instead.

        Questions

        1. How does the rsync format track what has already been uploaded, and is there a safe way to force a full resync for specific apps?
        2. Should a migration onto an existing rsync target reset or rebuild that state?
        3. Could the integrity checker list the missing or unexpected files instead of throwing? It would have made this much quicker to diagnose.

        In the meantime I'm planning to add a fresh rsync target in an empty folder, check it passes, and then remove the old one.

        I use Cloudron with Gandi & Hetzner

        1 Reply Last reply
        1
        • jdaviescoatesJ jdaviescoates marked this topic as a regular topic
        • jdaviescoatesJ jdaviescoates marked this topic as a question
        • jamesJ
          jamesJ
          james
          Staff
          wrote last edited by
          #16

          Hello @jdaviescoates
          Interesting finding.
          I did not try to reproduce this yet, but this already reads like it could be hard to reproduce.

          Maybe you could do a test if possible.
          If you add a new storage site, that is also rsync and a hetzner storage box and create a fresh backup maybe this issue does not exist on the new backup site then.

          Since you have already indentified single files that are not deleted and not uploaded it might be good to share this information with us so we can have a look on your system to see what is actually happening.
          If that is possible, please write a mail to support@cloudron.io with the details and enable remote support on your Cloudron server.

          jdaviescoatesJ 1 Reply Last reply
          0
          • jamesJ james

            Hello @jdaviescoates
            Interesting finding.
            I did not try to reproduce this yet, but this already reads like it could be hard to reproduce.

            Maybe you could do a test if possible.
            If you add a new storage site, that is also rsync and a hetzner storage box and create a fresh backup maybe this issue does not exist on the new backup site then.

            Since you have already indentified single files that are not deleted and not uploaded it might be good to share this information with us so we can have a look on your system to see what is actually happening.
            If that is possible, please write a mail to support@cloudron.io with the details and enable remote support on your Cloudron server.

            jdaviescoatesJ
            jdaviescoatesJ
            jdaviescoates
            Super Fan
            wrote last edited by
            #17

            @james said:

            Maybe you could do a test if possible.
            If you add a new storage site, that is also rsync and a hetzner storage box and create a fresh backup maybe this issue does not exist on the new backup site then.

            That's what I'm doing at present... will report back once it finishes and I've done the integrity check...

            I use Cloudron with Gandi & Hetzner

            jdaviescoatesJ 1 Reply Last reply
            1
            • jdaviescoatesJ jdaviescoates

              @james said:

              Maybe you could do a test if possible.
              If you add a new storage site, that is also rsync and a hetzner storage box and create a fresh backup maybe this issue does not exist on the new backup site then.

              That's what I'm doing at present... will report back once it finishes and I've done the integrity check...

              jdaviescoatesJ
              jdaviescoatesJ
              jdaviescoates
              Super Fan
              wrote last edited by
              #18

              jdaviescoates said:

              That's what I'm doing at present... will report back once it finishes and I've done the integrity check...

              Well, it failed again. But it wasn't the persistently failing instances of Nextcloud and Jellyfin this time, but the mail server instead. So, progress!

              I use Cloudron with Gandi & Hetzner

              1 Reply Last reply
              0
              • girishG
                girishG
                girish
                Staff
                wrote last edited by
                #19

                It's possible that rsync backups from the past (before we introduced integrity checks) are not backed up properly or are missing integrity information. If you can do a full backup from scratch (like you did for nc,jellyfin) and if it's reproducible, then that would be a sure bug.

                jdaviescoatesJ 1 Reply Last reply
                0
                • girishG girish

                  It's possible that rsync backups from the past (before we introduced integrity checks) are not backed up properly or are missing integrity information. If you can do a full backup from scratch (like you did for nc,jellyfin) and if it's reproducible, then that would be a sure bug.

                  jdaviescoatesJ
                  jdaviescoatesJ
                  jdaviescoates
                  Super Fan
                  wrote last edited by jdaviescoates
                  #20

                  @girish I think it was just the mismatch caused by migrating the server that led to NC and JF persistently failing. My guess is mail will be ok next time too... and that that may well have been caused just by how long it took to do this new full rsync backup and integrity check

                  I use Cloudron with Gandi & Hetzner

                  jdaviescoatesJ 1 Reply Last reply
                  0
                  • jdaviescoatesJ jdaviescoates

                    @girish I think it was just the mismatch caused by migrating the server that led to NC and JF persistently failing. My guess is mail will be ok next time too... and that that may well have been caused just by how long it took to do this new full rsync backup and integrity check

                    jdaviescoatesJ
                    jdaviescoatesJ
                    jdaviescoates
                    Super Fan
                    wrote last edited by
                    #21

                    jdaviescoates said:

                    My guess is mail will be ok next time too

                    Yep, the most recent rsync back-up into the new folder (rather than the same folder as the rsync backups were going into before the server migration) worked fine too and now I have rsync backups that pass the integrity check - finally! 🙂

                    So it seems clear the issue was some file changes that happening during the full Cloudron server migration got rsync confused.

                    I use Cloudron with Gandi & Hetzner

                    jdaviescoatesJ 1 Reply Last reply
                    1
                    • jdaviescoatesJ jdaviescoates

                      jdaviescoates said:

                      My guess is mail will be ok next time too

                      Yep, the most recent rsync back-up into the new folder (rather than the same folder as the rsync backups were going into before the server migration) worked fine too and now I have rsync backups that pass the integrity check - finally! 🙂

                      So it seems clear the issue was some file changes that happening during the full Cloudron server migration got rsync confused.

                      jdaviescoatesJ
                      jdaviescoatesJ
                      jdaviescoates
                      Super Fan
                      wrote last edited by
                      #22

                      jdaviescoates said:

                      Yep, the most recent rsync back-up into the new folder (rather than the same folder as the rsync backups were going into before the server migration) worked fine too and now I have rsync backups that pass the integrity check - finally! 🙂

                      So it seems clear the issue was some file changes that happening during the full Cloudron server migration got rsync confused.

                      Think I may have spoken too soon. Every rsync back since the one that passed the integrity check has failed it again 😞

                      Screenshot from 2026-10-04 13-30-28.png

                      It's always the Jellyfin app that fails. Plus once also the Mail server again.

                      I use Cloudron with Gandi & Hetzner

                      1 Reply Last reply
                      0
                      • jdaviescoatesJ
                        jdaviescoatesJ
                        jdaviescoates
                        Super Fan
                        wrote last edited by
                        #23

                        Update: Now on Cloudron 10.1.5.

                        The fresh rsync target fixed Nextcloud, but Jellyfin kept failing the integrity check with the same error. I've now tracked that down too, and it isn't just a migration problem.

                        The new target was created on 24 September, well after the migration. Comparing a full file listing of Jellyfin's live data with its latest rsync backup:

                        • 1,017 files exist only in the backup (about 18% of the 5,698 files in it)
                        • 0 files exist only on the server

                        So nothing is missing, but the backup is full of stale leftovers. All of them are folder.jpg images from data/jellyfin/data/metadata/People/<name>/ folders that no longer exist on the server. Those will mostly be from me correcting metadata Jellyfin had matched wrongly and removing the bad entries, i.e. ordinary use of the app. Before that, there was also a stale plugins/LDAP Authentication/ folder, last modified in the snapshot on 5 October, which no longer exists on the server (only LDAP Authentication_23.0.0.0 and _24.0.0.0 do).

                        Oddly, it isn't every deletion. Yesterday I deleted Jellyfin's whole metadata/artists folder (about 42,000 files) and removed the Music library in Jellyfin, which deleted most of metadata/library. Those deletions were correctly reflected in the backup. But these People folders and the LDAP folder were never removed from the snapshot. They get carried into every new backup via the hardlink copy, and since they aren't in the backup's manifest, the integrity checker crashes on them. The backup task itself reports no errors.

                        This matches what I saw on the old target, where an old plugin folder (plugins/SSO Authentication_4.0.0.4) and thousands of old People and artist images were also left behind. So the migration explained Nextcloud, but this looks like a separate, ongoing bug.

                        Confirmed: after deleting the stale LDAP folder and the 1,017 stale files from the snapshot, the next Jellyfin backup passed the integrity check for the first time.

                        So two separate issues:

                        1. Folders deleted from an app's data are sometimes never removed from the rsync snapshot, so they linger in every backup.
                        2. The integrity checker crashes on files that aren't in the manifest ("Cannot read properties of undefined (reading 'size')") rather than listing them, which made this much harder to diagnose.

                        I use Cloudron with Gandi & Hetzner

                        1 Reply Last reply
                        0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        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