fider icon indicating copy to clipboard operation
fider copied to clipboard

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

Open Antonio78318 opened this issue 3 years ago • 8 comments

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!

Antonio78318 avatar Feb 11 '22 08:02 Antonio78318

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.

goenning avatar Mar 14 '22 19:03 goenning

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

Antonio78318 avatar Mar 15 '22 03:03 Antonio78318

is this still an issue @Antonio78318 ?

goenning avatar May 11 '22 20:05 goenning

Yes it's still

Antonio78318 avatar May 12 '22 04:05 Antonio78318

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

goenning avatar May 12 '22 08:05 goenning

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

juanludlf avatar Sep 19 '22 08:09 juanludlf

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.

nathan815 avatar Nov 21 '22 06:11 nathan815

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.

ryanleewilliams avatar Mar 16 '24 21:03 ryanleewilliams