Skip to content
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

ERROR [WEB] acme/autocert: server name component count invalid #1055

Open
Antonio78318 opened this issue Feb 11, 2022 · 8 comments
Open

ERROR [WEB] acme/autocert: server name component count invalid #1055

Antonio78318 opened this issue Feb 11, 2022 · 8 comments

Comments

@Antonio78318
Copy link

Hello

I built fider self-hosted on docker environment, it works well.
But when I use "docker-compose logs app" to see logs,
I found it shows "server name component count invalid"
errors
How can I fix this error?
Is that error related to "EMAIL_MAILGUN_DOMAIN"? Cos I use that in Sandbox domains.
And is necessary to fill "EMAIL_MAILGUN_API"? Thank you!

@goenning
Copy link
Member

Seems like someone is trying to navigate to your site with an invalid host name. Are you running on the latest version? There has been some improvements around this area that might resolve this.

@Antonio78318
Copy link
Author

Im running on image: getfider/fider:stable :)

@goenning
Copy link
Member

is this still an issue @Antonio78318 ?

@Antonio78318
Copy link
Author

Yes it's still

@goenning
Copy link
Member

Try using getfider/fider:main, it probably won't solve it, but at least it'll give you the hostname that is causing that error

@juanludlf
Copy link

Hi, I'm getting the same errors:

fider-app-1  | ERROR [2022-09-19T07:57:38Z] [WEB] Error Trace:
fider-app-1  | - failed to get certificate for 96.48.53.105 (app/pkg/web/ssl.go:164)
fider-app-1  | - 400 urn:ietf:params:acme:error:rejectedIdentifier: Error creating new order :: Cannot issue for "96.48.53.105": The ACME server can not issue a certificate for an IP address
fider-app-1  | ERROR [2022-09-19T08:08:24Z] [WEB] Error Trace:
fider-app-1  | - failed to get certificate for localhost (app/pkg/web/ssl.go:164)
fider-app-1  | - acme/autocert: server name component count invalid

However, the web container is working fine and the certificate has been generated successfully. I checked the BASE_URL variable and it is set correctly (with scheme https://subdomain.mydomain.com).
Any clues on what I'm doing wrong? Thank you

@nathan815
Copy link

nathan815 commented Nov 21, 2022

Having this issue as well on latest getfider/fider:main. It seems to be because the container healthcheck ./fider ping makes a request to localhost.

ERROR [2022-11-21T06:23:17Z] [WEB] Error Trace:
- failed to get certificate for localhost (app/pkg/web/ssl.go:164)
- acme/autocert: server name component count invalid

Container is unhealthy due to failing healthcheck:
image

The Fider app is working otherwise though.

@ryanleewilliams
Copy link

Has there been any update on this? I'm getting the same error in the logs, even though the certificate has been created and everything appears to be working properly, otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants