Closed ribsies closed 5 years ago
I have since been led to believe that it is related to permissions. My nginx container seems to not have access to anything.
Not sure how to fix that.
I'm using these containers on a QNAP NAS.
My nginx container seems to not have access to anything.
By this do you mean that the volumes are correctly mounted inside the container but with no read permission, or are the volume not even correctly mounted ?
Sorry I misspoke. What I meant was it can't read anything in the html through the sub domain. Meaning I get this error when trying to access the test item in acme-challenge
2019/02/11 00:59:32 [crit] 38#38: *85 stat() "/usr/share/nginx/html/.well-known/acme-challenge/hello-world" failed (13: Permission denied), client: 76.103.132.118, server: sub.mydomain.com, request: "GET /.well-known/acme-challenge/hello-world HTTP/1.1", host: "sub.mydomain.com"
As far as I can tell, all of the volumes are mounting fine.
Your /share/nginx/html
host folder might have permissions that prevents the container's nginx process from reading files inside it. Try using a docker named volume instead of a bind mount.
I'd personally advise to avoid bind mount whenever possible as they more often than not lead to permission issues.
No update from issue's creator for > 4 months, closing.
I know this is closed, but I could imagine, that I had the same Problem like ribsies. It cost me some time, but I find out that there is a problem with permissions on QNAP Container Station if you have the "Windows ACL Support" Option enabled. If you disable this option everything works like it should.
Alright so I have hit the end of my capabilities to fix this issue.
I am getting the
ERROR:simp_le:1446: CA marked some of the authorizations as invalid
error when attempting to create certs for my proxies.I believe I have narrowed it down to not being able to have access to the acme-challenge path.
I am using the basic 2 container setup with no changes. My full docker-config looks like this
I have gone through the troubleshooting here multiple times and as far as I can tell, everything is good.
The only part that is failing is at the end with the test acme-challenge.
When I
curl http://yourdomain.tld/.well-known/acme-challenge/hello-world
I get a 404.I have absolutely no idea how to fix this. I've been at it a few days.
Any ideas?
Here is my error log