Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

got error: error parsing: invalid character 'r' looking for beginning of value #103

Closed
Elmo33 opened this issue Oct 16, 2024 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@Elmo33
Copy link
Collaborator

Elmo33 commented Oct 16, 2024

unable to destroy the environment due to this error:

altinitycloud_env_aws.this: Still destroying... [id=altinity-byoc-smoke-e4526560-8, 4m50s elapsed]
altinitycloud_env_aws.this: Still destroying... [id=altinity-byoc-smoke-e4526560-8, 5m0s elapsed]
╷
│ Error: Client Error
│ 
│ Unable to read env altinity-byoc-smoke-e4526560-8, got error: error parsing: invalid character 'r' looking for beginning of value
╵

it happened in the middle of the destroy progress.

terraform file:

terraform {
  required_providers {
    altinitycloud = {
      source = "altinity/altinitycloud"
      version = "0.2.8"
    }
  }
}

provider "aws" {
  region = "us-west-2"
}

provider "altinitycloud" {
  api_url = "https://anywhere.dev.altinity.cloud"
}

resource "altinitycloud_env_certificate" "this" {
  env_name = "altinity-byoc-smoke-e4526560-8"
}

module "altinitycloud_connect_aws" {
  source = "altinity/connect-aws/altinitycloud"
  pem = altinitycloud_env_certificate.this.pem
  url = "https://anywhere.dev.altinity.cloud"
}

resource "altinitycloud_env_aws" "this" {
  name = "altinity-byoc-smoke-e4526560-8"
  cidr = "10.1.0.0/21"
  region = "us-west-2"
  aws_account_id = "260067921775"
  zones = ["us-west-2a", "us-west-2b"]
  load_balancers = {"public": {"enabled": true}}
  node_groups = [{"name": "m5.large", "node_type": "m5.large", "capacity_per_zone": 10, "reservations": ["SYSTEM", "CLICKHOUSE", "ZOOKEEPER"]}, {"name": "m5.xlarge", "node_type": "m5.xlarge", "capacity_per_zone": 10, "reservations": ["CLICKHOUSE"]}]
  cloud_connect = true
  force_destroy = true
  force_destroy_clusters = true
  depends_on = [module.altinitycloud_connect_aws]
}

@Elmo33 Elmo33 added the bug Something isn't working label Oct 16, 2024
@Elmo33
Copy link
Collaborator Author

Elmo33 commented Jan 9, 2025

image
got the same error yesterday Jan 07,2025 17:15:26 (github time)

@ianaya89
Copy link
Member

ianaya89 commented Jan 9, 2025

This error is related to DEV API being unavailable during a new deployment.

@ianaya89 ianaya89 closed this as completed Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants