Closed jvstme closed 4 months ago
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Still relevant
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale. Please reopen the issue if it is still relevant.
Steps to reproduce
dstack server
with ZeroSSL configured as the CA for dstack-gateway. See this comment.*.$DOMAIN
, but instead of pointing it to the gateway's IP address point it to an IP address of some other machine that is down. As if you redeployed the gateway, but forgot to change the DNS record.Try running any service with dstack
Expected behaviour
The CLI shows an error saying that dstack-gateway failed to issue a certificate for the service's domain and suggests the user to make sure the DNS A record points to the domain.
Actual behaviour
After 30 seconds the CLI shows an unclear error message.
The server logs don't have anything relevant.
dstack version
0.17.0
Server logs
No response
Additional information
What happens is:
/api/registry/{project}/services/register
This behavior depends on the CA. E.g. with Let's Encrypt certbot exits quickly and the error is passed to dstack server and then to the CLI.
I suggest we fix this by adding a timeout to certbot runs and passing a clear error message to the CLI if the timeout is reached.