Hi,
1. Caddy version (caddy version
):
v2.4.3
2. How I run Caddy:
- We have 5 servers running behind an AWS network load balancer.
- They share the same storage using AWS EFS.
- Every server has the same Caddyfile but he doesn’t locate it in the shared storage (EFS). Just in the local storage of the server.
a. System environment:
Ubuntu 20.04.2 LTS (GNU/Linux 5.8.0-1041-aws x86_64)
Simple install without Docker
b. Command:
Auto Caddy services are running in the background
d. My complete Caddyfile or JSON config:
{
#debug
storage file_system {
root /mnt/efs/caddy_data
}
log HHHH {
output file /var/caddy_log/requests.log {
roll_size 200mb
roll_keep 3
roll_keep_for 24h
}
level WARN
}
# TLS Options
email HHHH @ HHHH .com
on_demand_tls {
ask https://www. HHHH .com/isDomainValid.php
}
}
https://
tls {
on_demand
issuer acme {
email HHHH @ HHHH .com
}
issuer zerossl HHHH {
email HHHH @ HHHH .com
}
}
reverse_proxy 76.223. HHHH . HHHH {
header_down -proxy-cache
}
3. The problem I’m having:
I saw in my logs that when Caddy tried to save the certificate he get from Let’sEncrypt it get this error:
Feb 08 17:01:57 ip-172-30-3-253 caddy[481]: {"level":"error","ts":1644339717.556735,"logger":"tls.obtain","msg":"will retry","error":"[test20. myDomain .com] Obtain: saving assets: mkdir /mnt/efs/caddy/certificates/acme-v02.api.letsencrypt.org-directory/test20. myDomain .com: permission denied","attempt":1,"retrying_in":60,"elapsed":0.715147592,"max_duration":2592000}
ZeroSSL folder is working and doesn’t send any error.
- Can I run something that I will make sure I’m right and Caddy has an issue with this folder?
- What do I need to run to make sure Caddy user will have full permission on my folders?
Thank you.