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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved permissions issue with fsmetadata.json

    Support
    backups rsync restore
    3
    6
    252
    Loading More Posts
    • 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.
    • robi
      robi last edited by girish

      While looking at ~yellowtent/boxdata I noticed:
      -rw-r--r-- 1 root root 118 Oct 15 13:00 fsmetadata.json

      Crosschecking another older Cloudron this isn't owned by root.
      Bug in new version?

      Life of Advanced Technology

      1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff last edited by

        Indeed this should be owned by yellowtent user. Was this Cloudron restored or so from a backup?

        1 Reply Last reply Reply Quote 0
        • robi
          robi last edited by robi

          Negative.
          New install to 5.6.2 and upgraded to 5.6.3

          Life of Advanced Technology

          1 Reply Last reply Reply Quote 0
          • girish
            girish Staff last edited by

            The permission is fine, I think it changed in 5.5 when we fixed the backup job to be systemd based. I guess you are seeing this with rsync backups? The file is created by a root process.

            robi 1 Reply Last reply Reply Quote 0
            • robi
              robi @girish last edited by

              @girish it's set to local .tgz

              every other Cloudron box I check has yellowtent as owner.

              Could it be something pre-mail config vs post mail config?

              Life of Advanced Technology

              girish 1 Reply Last reply Reply Quote 0
              • girish
                girish Staff @robi last edited by

                @robi The fsmetadata.json is only used in rsync backups. It's used to keep track of empty directories and 'x' bit of files when using rsync mode. We do this because object storage services (like s3, gcs and friends) cannot track this since they are not a filesystem but an object store.

                This is not needed in tgz because tgz format can encode this information inside the tarball.

                In essence, fsmetadata.json is usually owned by root. If it's owned by yellowtent, it's probably because maybe you restored the Cloudron in the past or something. The restore logic changes the permission of all files to yellowtent after downloading so that restore can continue as non-root user.

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post
                Powered by NodeBB