Can't redeploy Database

I’m trying to redeploy a database but it’s failing. Here’s the detail:

  • Type: MongoDB
  • Mode: Container
  • Version: 4.4

I’m can’t see any relevant in the logs. I also tried to redeploy it.

1
PRE_CHECK
23 Mar, 15:58:50:47
development
🏁 Deployment request f0050c5b-c1f8-46f6-8bab-a6ab18dbf4f1-793-1679597928 for stage 1 `DATABASE DEFAULT` has been sent to the engine
2
PRE_CHECK
23 Mar, 15:58:50:47
development
⏳ Your deployment is 1 in the Queue
3
START
23 Mar, 15:58:51:65
development
🚀 Qovery Engine starts to execute the deployment
4
DEPLOYED_ERROR
23 Mar, 15:58:52:65
development
5
TERMINATED
23 Mar, 15:58:52:65
development
Qovery Engine has terminated the deployment

Link to the DB:
https://console.qovery.com/organization/806c370f-580f-4f8d-a436-ae1c23b9848b/project/97d1c346-b22b-4a9c-b54c-295eda79e386/environment/f0050c5b-c1f8-46f6-8bab-a6ab18dbf4f1/database/eeaafb19-3bea-4b50-be4e-3ab835e95213/general

Actually I’m seeing the following error on the cluster console:

Unknown error while performing Terraform command (terraform apply -no-color -auto-approve tf_plan), here is the error:
Error: error creating EKS Node Group (qovery-zb8507aad:qovery-20230324022836663900000001): InvalidRequestException: Your requested instance type (c5ad.large) is not supported in your requested Availability Zone (us-east-2c). Please retry your request by not specifying an Availability Zone or choosing us-east-2a, us-east-2b.
{
RespMetadata: {
StatusCode: 400,
RequestID: “228ead44-e644-4c72-ad2b-1d6733e94407”
},
Message_: “Your requested instance type (c5ad.large) is not supported in your requested Availability Zone (us-east-2c). Please retry your request by not specifying an Availability Zone or choosing us-east-2a, us-east-2b.”
}
with aws_eks_node_group.eks_cluster_workers_1,
on eks-workers-nodes.tf line 22, in resource “aws_eks_node_group” “eks_cluster_workers_1”:
22: resource “aws_eks_node_group” “eks_cluster_workers_1” {

Actually that instance type is only available on us-east-2a, us-east-2b.

Hi @donaldinostroza ,

First of all, I think your database and cluster errors are unrelated. Let me respond to both separately.

Cluster

CreateError - Unknown error while performing Terraform command (`terraform apply -no-color -auto-approve tf_plan`), here is the error:

Error: error creating EKS Node Group (qovery-zb8507aad:qovery-20230324030252624800000001): InvalidRequestException: Your requested instance type (c5ad.large) is not supported in your requested Availability Zone (us-east-2c). Please retry your request by not specifying an Availability Zone or choosing us-east-2a, us-east-2b.
{
  RespMetadata: {
    StatusCode: 400,
    RequestID: "eadb92ff-1d49-4064-af73-b2b869cd8e81"
  },
  Message_: "Your requested instance type (c5ad.large) is not supported in your requested Availability Zone (us-east-2c). Please retry your request by not specifying an Availability Zone or choosing us-east-2a, us-east-2b."
}

  with aws_eks_node_group.eks_cluster_workers_1,
  on eks-workers-nodes.tf line 22, in resource "aws_eks_node_group" "eks_cluster_workers_1":
  22: resource "aws_eks_node_group" "eks_cluster_workers_1" {

This error means you tried to update your cluster with a new instance type c5ad.large unsupported in the AZ us-east-2c. I will notify my team about this because the AZ us-east-2a and us-east-2b seem to support this instance type. cc @Pierre_Mavro @a_carrano

In the meantime, can you try to choose another equivalent instance type?

Database

I am forwarding your error to one of our engineers because it seems that your development environment skips the deployment request for an unknown, apparent reason on my side.

Hi Romaric, thank you for your reply. I followed your advice and changed the instances to c5d.large and it’s working now. Also the problem with the databases is fixed. It seemed it was trying to create a new instance to deploy the DB (or any instance).

Again, thank you for your help.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.