-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When enabling DEBUG mode, the logs for the acme.sh are still sent to /dev/null #918
Comments
Hi. Do you have a sample of the extra log information that goes to the The fact that the log file and the stdin / stderr log contains different information would be very awkward. |
@buchdag, I can help with that extra log info, thanks to a related issue: Initial startup of a new Tomcat container fails, but I'll use our
We see this every time we add a new site -- but haven't yet found a solution other than brute-force (regenerating all certs just to get things working). Therefore, I've taken @luilegeant's above suggestion to change Log into our container: Use Confirm the change & backup with
Show the actual change with
Activate the change by Trigger the error again (creating a new site / TC container in our case). Confirm that the new log-file is used with Log back into the container, then view that new log file with
NOW UNDO THIS LOGGING CHANGE! This is very important, so you don't fill up the limited disk space available -- either remove and recreate the container, or log back into the container, and overwrite the modified file with the backup with This logging is clearly far more output than would be sensible to write to the container normally, so it makes lots of sense to send it to /dev/null -- but during debugging, just writing it to that file instead would save folks from having to take these steps to be able to see the actual problem (note that the actual log output for our error is very promising; I'll add another comment with that if it seems useful as I dig further into it). And I agree with @luilegeant that logging that extra output from acme.sh where Many thanks for this great tool! |
Sorry to bump, but could this potentially be reconsidered please? This log info is rather more critical when using DNS-01 challenges, as without it users will have no idea why their DNS challenges are failing. |
Trying to figure out why Let's Encrypt (LE) was refusing to give me a new certificate, I wanted to enable logging & using LE stagging environment.
Bug description
When adding the env var
DEBUG=1
to the container being proxied, some extra logging is provided by the acme-companion container. BUT, this still doesn't enable logging for the acme.sh errors.See: letsencrypt-service L134
On line 135, it does enable extra logging for the acme-companion's code...
acme-companion image version
image pulled from hub.docker.com:
nginxproxy/acme-companion:2.1.2
nginx-proxy's Docker configuration
My reverse proxy is composed of:
rendered nginx configuration
Not important for this report.
Containers logs
That's the issue, it says read the extra logging by acme.sh at
/dev/null
🤪My workaround
In the acme-companion container, I edited the
app/letsencrypt_service
file at line 134 with an amazing log file path; then i retrigered the generation of config & certificate request and got some extra log information.Wished change
That the log path if DEBUG is true to be set a bit like it is at line 180 of letsencrypt-service.
Last but not least
Thank you for this amazing project !
The text was updated successfully, but these errors were encountered: