-
Notifications
You must be signed in to change notification settings - Fork 301
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
acme_tiny valueError in docker #223
Comments
First, do another pull so you get the latest image.
Then check your DNS settings. Make sure all of them are still correct.
Finally, make sure your port 80 of the host machine are open.
Good luck!
…On Thu, 27 Feb 2020 at 4:23 PM jaromrax ***@***.***> wrote:
Hi,
I managed to run httpsportal in docker recently, it was fantastic.
However, now I cannot get it working.
I tried to change the `DOMAINS: '--------.cz -> http://dockerhost:8000,
zato.---------.cz -> http://dockerhost:8001'
to
`DOMAINS: 'www.--------.cz -> http://dockerhost:8000, zato.---------.cz
-> http://dockerhost:8001, grafana.-------------.cz ->
http://dockerhost:3000'
And now it remembers one certificate, Signing skipped for
zato.----------.cz, it expires at 75 days from now., but the others....
(www, grafana) generate errors:
Signing certificates from https://acme-v02.api.letsencrypt.org/directory ...
httpsportal | Parsing account key...
httpsportal | Parsing CSR...
httpsportal | Found domains: www.------------.cz
httpsportal | Getting directory...
httpsportal | ================================================================================
httpsportal | Failed to sign www.-----------.cz, is DNS set up properly?
httpsportal | ================================================================================
httpsportal | Failed to obtain certs for www.------------.cz
later I get this error.
Traceback (most recent call last):
httpsportal | File "/bin/acme_tiny", line 198, in <module>
httpsportal | main(sys.argv[1:])
httpsportal | File "/bin/acme_tiny", line 194, in main
httpsportal | signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca, disable_check=args.disable_check, directory_url=args.directory_url, contact=args.contact)
httpsportal | File "/bin/acme_tiny", line 106, in get_crt
httpsportal | directory, _, _ = _do_request(directory_url, err_msg="Error getting directory")
httpsportal | File "/bin/acme_tiny", line 46, in _do_request
httpsportal | raise ValueError("{0}:\nUrl: {1}\nData: {2}\nResponse Code: {3}\nResponse: {4}".format(err_msg, url, data, code, resp_data))
httpsportal | ValueError: Error getting directory:
httpsportal | Url: https://acme-v02.api.letsencrypt.org/directory
httpsportal | Data: None
httpsportal | Response Code: None
httpsportal | Response: <urlopen error [Errno 99] Cannot assign requested address>
Should I delete all certificates and start over? I played with ufw, with
DNS setting (I removed CNAME line). I use the last docker tag.
thanks for help
Jaromir
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#223?email_source=notifications&email_token=AAD4AZ7CUXT2HP3H64PRJKLRE7LH5A5CNFSM4K45H4MKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IQ2MJSQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD4AZ777MUNCJLSEBHYNQ3RE7LH5ANCNFSM4K45H4MA>
.
|
Thank you for your help. 1/ I deleted containers and images and started from scratch. With this
I get I do I tried to run simple server on ports 80 and 443 and I can see the correct responses from remote pc (with I have found, that RESUME: It works for |
I had a similar issue today, with same error for 1 domain (the other ones aren't expired yet) Maybe the order in DOMAINS: does matter ? |
Could you paste before and after docket-compose? Thanks!
…On Wed, 11 Mar 2020 at 11:34 PM ofthesun9 ***@***.***> wrote:
I had a similar issue today, with same error for 1 domain (the other ones
aren't expired yet)
httpsportal | Failed to sign xx.yyy.net, is DNS set up properly?
the declaration for xx.yyy.net domain was the first item in the DOMAINS:
'......' in the docker-compose.yml.
I put the declaration at the end, and the verification was then
successful....
Maybe the order in DOMAINS: does matter ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#223 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD4AZ3CABUUXV35UMASUYTRHAGVRANCNFSM4K45H4MA>
.
|
before:
After:
|
@ofthesun9 I tried with your configuration. The parsed domain list was correct, there were not difference in terms of the domain names we get. That's hard to explain who changing the order would make things different. Is it possible that the DNS weren't fully populated when you tried the first time? If you go back to |
Yes it is probable that DNS were still propagating some DNS changes when I encountered the error. |
I have a similar problem.
|
Is this working with latest changes? I'm getting the same error on multiple domains... |
@edisinovcic Yes. First check if your DNS is propagated. DNS being not ready is the most common issue. |
It was a DNS issue in the end, propagation took much more than usual. Tnx |
Hi,
I managed to run
httpsportal
in docker recently, it was fantastic. However, now I cannot get it working.I tried to change the `DOMAINS: '--------.cz -> http://dockerhost:8000, zato.---------.cz -> http://dockerhost:8001'
to
`DOMAINS: 'www.--------.cz -> http://dockerhost:8000, zato.---------.cz -> http://dockerhost:8001, grafana.-------------.cz -> http://dockerhost:3000'
And now it remembers one certificate,
Signing skipped for zato.----------.cz, it expires at 75 days from now.
, but the others.... (www, grafana) generate errors:later I get this error.
Should I delete all certificates and start over? I played with
ufw
, with DNS setting (I removed CNAME line). I use thelast
docker tag.thanks for help
Jaromir
The text was updated successfully, but these errors were encountered: