WebThingsIO / gateway-docker

Legacy docker image for WebThings Gateway - now moved to main gateway repo at https://github.com/WebThingsIO/gateway
Mozilla Public License 2.0
72 stars 25 forks source link

Failed to generate certificate #26

Closed Kombustor closed 4 years ago

Kombustor commented 5 years ago

I'm using the image with the recommended docker-compose configuration. When trying to register the subdomain, the error "Error issuing certificate. Please try again." appears (but the confirmation email is being sent). The following error is printed to the log:

webthings-gateway    | 2019-11-17 16:32:04.711 INFO   : Sent subscription to registration server
webthings-gateway    | 2019-11-17 16:32:29.900 ERROR  : Failed to generate certificate: Error: Could not resolve URL for API resource: "newAccount"
webthings-gateway    |     at HttpClient.getResourceUrl (/home/node/mozilla-iot/gateway/node_modules/acme-client/src/http.js:132:19)
webthings-gateway    |     at <anonymous>
webthings-gateway    |     at process._tickCallback (internal/process/next_tick.js:189:7)
mrstegeman commented 5 years ago

It seems like your Docker container was not able to do DNS resolution for the Let’s Encrypt server. Is it possible you have something misconfigured in the network settings?