NFS share for mirror setup

Discussion in 'General' started by Erik Damber, May 26, 2020.

  1. Erik Damber

    Erik Damber Member

    Hello again,

    Thanks for all the help so far. I'm trying to setup a NFS share so I can get Lets encrypt to work on a mirror setup. Ive installed nfs-server on the master and client on the slave. I've gotten to this point

    Export list for

    Is the /etc/letsencrypt the only folder needed or do I need acme too? From all the guides out there I can only see that you can share it to something like this: sudo mount /nfs/general
    Doesn't they have to be an exact match? I want to do it like "mount x.x.x.x:/etc/letsencrypt /etc/letsencrypt or am I way off?

  2. Erik Damber

    Erik Damber Member

    Skipped nfs and used gluster. Both /.well-know/acme-challenge and /etc/letsencrypt is on gluster between the two web servers. Still get the same error with Failed authorization procedure. (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization. Is there anyone who has gotten this to work with mirror server setup and Gluster/haproxy? Or is it just an impossible combo maybe
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You can mount same directory on /etc/letsencrypt on multiple hosts, but then all those hosts have identical contents in /etc/letsencrypt. This may or may not work.
    You wrote
    Is this the same error you got in #1? You did not mention any error in your first message.
    NFS uses the same user id based permissions as Unix usually does. So what are the owners and group owners of those files and directories you try to access? Are the NFS mounts done as root or as some particular user? This same thing may apply to glusterfs, I do not know much about that.

Share This Page