XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    NFS Remote encryption problem

    Scheduled Pinned Locked Moved Backup
    32 Posts 3 Posters 3.9k Views 3 Watching
    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.
    • D Offline
      djingo @djingo
      last edited by djingo

      I am now also seeing the "Trying to add data in unsupported state" problem,

      see this thread: https://xcp-ng.org/forum/post/84594

      That did never occur when the remote used for this backup was not encrypted.

      1 Reply Last reply Reply Quote 0
      • stephane-m-devS Offline
        stephane-m-dev Vates 🪐 XO Team @djingo
        last edited by

        @djingo said in NFS Remote encryption problem:

        "message": "ENOENT: no such file or directory, open '/run/xo-server/mounts/e782c43e-2ac7-472c-...etc.../metadata.json'"

        Hi,

        Can you see if the specified path and file exist?

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          djingo @stephane-m-dev
          last edited by

          @stephane-m-dev the path exists but it was empty.

          stephane-m-devS 2 Replies Last reply Reply Quote 0
          • stephane-m-devS Offline
            stephane-m-dev Vates 🪐 XO Team @djingo
            last edited by

            @djingo said in NFS Remote encryption problem:

            @stephane-m-dev the path exists but it was empty.

            The problem doesn't happen on our enterprise NFS server with encryption.

            But I tested on a freshly installed personal NFS server, and I get the same error as you if I use encryption.

            We are investigating and will keep you informed.

            1 Reply Last reply Reply Quote 0
            • stephane-m-devS Offline
              stephane-m-dev Vates 🪐 XO Team @djingo
              last edited by stephane-m-dev

              @djingo

              It seems the problem happens when the directory shared contains non-hidden files.
              Can you try to add a NFS remote with encryption on an new empty directory, and let us know if it works?

              This is not specified, but the encrypted remote must not contain encrypted and unencrypted file, as they may conflict.
              We should add this information.

              D 1 Reply Last reply Reply Quote 1
              • D Offline
                djingo @stephane-m-dev
                last edited by djingo

                @stephane-m-dev the folder was positively empty, I explicitly removed all files before adding it as remote. Have you read what I wrote about different share types in unRAID?

                stephane-m-devS 1 Reply Last reply Reply Quote 0
                • stephane-m-devS Offline
                  stephane-m-dev Vates 🪐 XO Team @djingo
                  last edited by

                  @djingo Do you have any error logs on the unraid server side?

                  D 1 Reply Last reply Reply Quote 0
                  • D Offline
                    djingo @stephane-m-dev
                    last edited by

                    @stephane-m-dev i checked, there was nothing

                    stephane-m-devS 1 Reply Last reply Reply Quote 0
                    • stephane-m-devS Offline
                      stephane-m-dev Vates 🪐 XO Team @djingo
                      last edited by

                      @djingo Can you share your NFS config file (/etc/exports) ?

                      D 1 Reply Last reply Reply Quote 0
                      • D Offline
                        djingo @stephane-m-dev
                        last edited by djingo

                        @stephane-m-dev

                        the disk share (there the error occurs):
                        "/mnt/disk3" -fsid=87,async,no_subtree_check 192.168.100.0/24(sec=sys,rw,no_root_squash,insecure) *(sec=sys,ro,insecure,anongid=100,anonuid=99,all_squash)

                        the user share (here it works):
                        "/mnt/user/backup" -fsid=91,async,no_subtree_check 192.168.100.0/24(sec=sys,rw,no_root_squash,insecure) *(sec=sys,ro,insecure,anongid=100,anonuid=99,all_squash)

                        please also do not overlook the other problem with the full backup mode when encryption is used: "Trying to add data in unsupported state" (see above)

                        stephane-m-devS 1 Reply Last reply Reply Quote 0
                        • stephane-m-devS Offline
                          stephane-m-dev Vates 🪐 XO Team @djingo
                          last edited by

                          @djingo said in NFS Remote encryption problem:

                          "/mnt/disk3" -fsid=87,async,no_subtree_check 192.168.100.0/24(sec=sys,rw,no_root_squash,insecure) *(sec=sys,ro,insecure,anongid=100,anonuid=99,all_squash)

                          Thank you.
                          By reusing the same NFS config that fails on your server, I unfortunately could not reproduce the problem.
                          The only case where I saw the same error was when the shared directory already contained files, but you told me that was not your case.

                          We will work on improving error handling to better identify NFS server-specific problems.

                          D 1 Reply Last reply Reply Quote 0
                          • olivierlambertO Offline
                            olivierlambert Vates 🪐 Co-Founder CEO
                            last edited by

                            Maybe some hidden files? (eg be sure to display all files even hidden ones)

                            stephane-m-devS D 2 Replies Last reply Reply Quote 0
                            • stephane-m-devS Offline
                              stephane-m-dev Vates 🪐 XO Team @olivierlambert
                              last edited by

                              @olivierlambert No, in the code we only check for non-hidden files, and @djingo checked that the directory was totally empty.

                              1 Reply Last reply Reply Quote 1
                              • D Offline
                                djingo @olivierlambert
                                last edited by

                                @olivierlambert ls -halF - nothing was there

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  djingo @stephane-m-dev
                                  last edited by

                                  @stephane-m-dev well, have you tried this on an unraid server with a disk share? if not, you are still missing my point.

                                  stephane-m-devS 1 Reply Last reply Reply Quote 0
                                  • stephane-m-devS Offline
                                    stephane-m-dev Vates 🪐 XO Team @djingo
                                    last edited by

                                    @djingo As said before, we will work on improving error handling to better identify specific issues with some users' NFS servers.

                                    Unfortunately, we cannot reproduce the exact configuration of each user.

                                    D 1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      djingo @stephane-m-dev
                                      last edited by djingo

                                      @stephane-m-dev understood. My suggestion regarding the different behavior (does not work with disk share, does work with user share) on unraid would be to put this in a "tip" in the documentation section about setting up Remotes.

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post