getfider / fider

Open platform to collect and prioritize feedback
https://fider.io
GNU Affero General Public License v3.0
3.02k stars 638 forks source link

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

Open Antonio78318 opened 2 years ago

Antonio78318 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

goenning commented 2 years ago

is this still an issue @Antonio78318 ?

Antonio78318 commented 2 years ago

Yes it's still

goenning commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

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 commented 8 months ago

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.