Cannot deploy anvil app on Google Cloud - Unable to obtain ACME certificate for domains

I’m trying to deploy my anvil app to GCP following this guide.
I followed all the steps until the last command and I have this error:

Anvil websocket open
[INFO  anvil.executors.downlink] Downlink client connected with spec {:runtime "python3-full", :session_id "5EeOnPA
5esKrOSDq1iag"}
Downlink authenticated OK
INFO[2021-08-09T07:40:52Z] Register...                                   providerName=letsEncrypt.acme
ERRO[2021-08-09T07:40:58Z] Unable to obtain ACME certificate for domains "prim-app.com" : unable to generate a cert
ificate for the domains [prim-app.com]: acme: Error -> One or more domains had a problem:
[prim-app.com] acme: error: 400 :: urn:ietf:params:acme:error:dns :: No valid IP addresses found for prim-app.com, 
url:   providerName=letsEncrypt.acme

I gave my DNS an IP address so I’m not sure what went wrong :frowning: This is my DNS. I also couldnt find a way to add ACME certificate for my domain

1 Like

So I needed to use the External IP from the VM instance, which was not clear to me from the document. It’s fixed now :slight_smile:

1 Like