module.mysql.google_sql_database_instance.replicas[0]: Modifying... [id=db-mysql-bib-production-1-replica-1] 2022-06-24T10:54:36.146+0700 [INFO] Starting apply for module.mysql.google_sql_database_instance.replicas[0] 2022-06-24T10:54:36.148+0700 [DEBUG] module.mysql.google_sql_database_instance.replicas[0]: applying the planned Update change 2022-06-24T10:54:36.152+0700 [INFO] provider.terraform-provider-google_v4.26.0_x5: 2022/06/24 10:54:36 [DEBUG] Locking "google-sql-database-instance-bukainvestasi-production-sgoh-db-mysql-bib-production-1": timestamp=2022-06-24T10:54:36.152+0700 2022-06-24T10:54:36.152+0700 [INFO] provider.terraform-provider-google_v4.26.0_x5: 2022/06/24 10:54:36 [DEBUG] Locked "google-sql-database-instance-bukainvestasi-production-sgoh-db-mysql-bib-production-1": timestamp=2022-06-24T10:54:36.152+0700 2022-06-24T10:54:36.152+0700 [INFO] provider.terraform-provider-google_v4.26.0_x5: 2022/06/24 10:54:36 [DEBUG] Waiting for state to become: [success]: timestamp=2022-06-24T10:54:36.152+0700 2022-06-24T10:54:36.152+0700 [INFO] provider.terraform-provider-google_v4.26.0_x5: 2022/06/24 10:54:36 [INFO] Instantiating Google SqlAdmin client for path https://sqladmin.googleapis.com/: timestamp=2022-06-24T10:54:36.152+0700 2022-06-24T10:54:36.153+0700 [INFO] provider.terraform-provider-google_v4.26.0_x5: 2022/06/24 10:54:36 [DEBUG] Retry Transport: starting RoundTrip retry loop: timestamp=2022-06-24T10:54:36.153+0700 2022-06-24T10:54:36.153+0700 [INFO] provider.terraform-provider-google_v4.26.0_x5: 2022/06/24 10:54:36 [DEBUG] Retry Transport: request attempt 0: timestamp=2022-06-24T10:54:36.153+0700 2022-06-24T10:54:36.153+0700 [INFO] provider.terraform-provider-google_v4.26.0_x5: 2022/06/24 10:54:36 [DEBUG] Google API Request Details: ---[ REQUEST ]--------------------------------------- PUT /sql/v1beta4/projects/bukainvestasi-production-sgoh/instances/db-mysql-bib-production-1-replica-1?alt=json&prettyPrint=false HTTP/1.1 Host: sqladmin.googleapis.com User-Agent: google-api-go-client/0.5 Terraform/1.1.7 (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google/dev Content-Length: 774 Content-Type: application/json X-Goog-Api-Client: gl-go/1.16.14 gdcl/0.82.0 Accept-Encoding: gzip { "settings": { "activationPolicy": "ALWAYS", "availabilityType": "ZONAL", "backupConfiguration": { "backupRetentionSettings": { "retainedBackups": 7, "retentionUnit": "COUNT" }, "binaryLogEnabled": true, "enabled": false, "pointInTimeRecoveryEnabled": false, "startTime": "14:00", "transactionLogRetentionDays": 7 }, "dataDiskSizeGb": "40", "dataDiskType": "PD_SSD", "databaseFlags": [ { "name": "long_query_time", "value": "1" } ], "ipConfiguration": { "ipv4Enabled": false, "privateNetwork": "projects/infra-network-production-3tcj/global/networks/bib-prod", "requireSsl": false }, "locationPreference": { "zone": "asia-southeast2-a" }, "pricingPlan": "PER_USE", "settingsVersion": "8", "storageAutoResize": true, "tier": "db-n1-standard-4", "userLabels": { "apps": "bukainvestasi", "env": "production", "squad": "inves", "tribe": "inves" } } } -----------------------------------------------------: timestamp=2022-06-24T10:54:36.153+0700 2022-06-24T10:54:36.623+0700 [INFO] provider.terraform-provider-google_v4.26.0_x5: 2022/06/24 10:54:36 [DEBUG] Google API Response Details: ---[ RESPONSE ]-------------------------------------- HTTP/2.0 400 Bad Request Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43" Cache-Control: private Content-Type: application/json; charset=UTF-8 Date: Fri, 24 Jun 2022 03:54:38 GMT Server: ESF Vary: Origin Vary: X-Origin Vary: Referer X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-Xss-Protection: 0 { "error": { "code": 400, "message": "Invalid request: Binary log must be disabled when backup is disabled or the instance must be a replica instance with a MySQL 5.7 or above version.", "errors": [ { "message": "Invalid request: Binary log must be disabled when backup is disabled or the instance must be a replica instance with a MySQL 5.7 or above version.", "domain": "global", "reason": "invalid" } ] } } -----------------------------------------------------: timestamp=2022-06-24T10:54:36.622+0700 2022-06-24T10:54:36.624+0700 [INFO] provider.terraform-provider-google_v4.26.0_x5: 2022/06/24 10:54:36 [DEBUG] Retry Transport: Stopping retries, last request failed with non-retryable error: googleapi: got HTTP response code 400 with body: HTTP/2.0 400 Bad Request Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43" Cache-Control: private Content-Type: application/json; charset=UTF-8 Date: Fri, 24 Jun 2022 03:54:38 GMT Server: ESF Vary: Origin Vary: X-Origin Vary: Referer X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-Xss-Protection: 0 { "error": { "code": 400, "message": "Invalid request: Binary log must be disabled when backup is disabled or the instance must be a replica instance with a MySQL 5.7 or above version.", "errors": [ { "message": "Invalid request: Binary log must be disabled when backup is disabled or the instance must be a replica instance with a MySQL 5.7 or above version.", "domain": "global", "reason": "invalid" } ] } }: timestamp=2022-06-24T10:54:36.623+0700 2022-06-24T10:54:36.627+0700 [INFO] provider.terraform-provider-google_v4.26.0_x5: 2022/06/24 10:54:36 [DEBUG] Retry Transport: Returning after 1 attempts: timestamp=2022-06-24T10:54:36.623+0700 2022-06-24T10:54:36.627+0700 [INFO] provider.terraform-provider-google_v4.26.0_x5: 2022/06/24 10:54:36 [DEBUG] Unlocking "google-sql-database-instance-bukainvestasi-production-sgoh-db-mysql-bib-production-1": timestamp=2022-06-24T10:54:36.623+0700 2022-06-24T10:54:36.627+0700 [INFO] provider.terraform-provider-google_v4.26.0_x5: 2022/06/24 10:54:36 [DEBUG] Unlocked "google-sql-database-instance-bukainvestasi-production-sgoh-db-mysql-bib-production-1": timestamp=2022-06-24T10:54:36.623+0700 2022-06-24T10:54:36.633+0700 [ERROR] vertex "module.mysql.google_sql_database_instance.replicas[0]" error: Error, failed to update instance settings for : googleapi: Error 400: Invalid request: Binary log must be disabled when backup is disabled or the instance must be a replica instance with a MySQL 5.7 or above version., invalid ╷ │ Error: Error, failed to update instance settings for : googleapi: Error 400: Invalid request: Binary log must be disabled when backup is disabled or the instance must be a replica instance with a MySQL 5.7 or above version., invalid │ │ with module.mysql.google_sql_database_instance.replicas[0], │ on ../../../../modules/google-cloud-sql/mysql/read_replica.tf line 39, in resource "google_sql_database_instance" "replicas": │ 39: resource "google_sql_database_instance" "replicas" { │ ╵ 2022-06-24T10:54:36.683+0700 [DEBUG] provider.terraform-provider-google_v4.26.0_x5: 2022/06/24 10:54:36 [DEBUG] [core] [Server #1 ListenSocket #2] ListenSocket deleted 2022-06-24T10:54:36.683+0700 [DEBUG] provider.terraform-provider-google_v4.26.0_x5: 2022/06/24 10:54:36 [DEBUG] [transport] transport: http2Server.HandleStreams failed to read frame: read unix /var/folders/2t/0hmlfgdd4076nksy3l34cw0c0000gn/T/plugin317012083->: use of closed network connection 2022-06-24T10:54:36.683+0700 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing" 2022-06-24T10:54:36.686+0700 [DEBUG] provider: plugin process exited: path=/Users/atanthowiz/bukalapak/buka20/infra-c/infrastructure/products/bukainvestasi/environments/production/bukainvestasi-backend/.terraform/providers/registry.terraform.io/hashicorp/google/4.26.0/darwin_arm64/terraform-provider-google_v4.26.0_x5 pid=1892 2022-06-24T10:54:36.686+0700 [DEBUG] provider: plugin exited 2022/06/24 10:54:36 gotf: failed running in context bukainvestasi/production/bukainvestasi-backend exit status 1