Deployed on k8s using helm chart version 0.41.0. W...
# replication-troubleshooting
b
Deployed on k8s using helm chart version 0.41.0. Webapp pod is looping in back-off restarting showing the following error:
[emerg] 1#1: host not found in upstream "$CONNECTOR_BUILDER_API_HOST" in /etc/nginx/conf.d/default.conf:6
How do I get past this error? I’ve tried several other helm chart versions which show other errors. If there a stable helm chart version that I can use?
x
hi,Check if CONNECTOR_BUILDER_API_HOST exists in k8s configmap
k
try to use latest helm chart version, this one is outdated. If you need to specify different airbyte version you can do that by
Copy code
--set global.image.tag=airbyte_version
b
CONNECTOR_BUILDER_API_HOST is not in the config map. @Kyryl Skobylko which version of AirByte should I specify? Is there one that is considered stable.
k
In a few word, helm chart version and airbyte version is completely separate entities, so if we have chart with version 0.44.2 it doesn’t mean that this chart will use airbyte with version 0.44.2
As for time being 0.442-0.44.3 is safe to be used
b
I will try helm chart 0.44.3 and let it install whatever version of AirByte is the default for that chart, yes?
As in:
helm install -f nonprod-values.yaml nonprod-airbyte airbyte/airbyte --debug --version 0.44.3
k
+
After that you can set whatever version of aribyte you need using the sample I sent above
b
@Kyryl Skobylko I used your sample to attempt to deploy 0.41.0, 0.40.30, and 0.40.25. My command lines included this kind of thing:
--version 0.44.3 --set global.image.tag=0.41.0
In all 3 cases, temporal server just keeps crashing:
Copy code
nonprod-airbyte-airbyte-bootloader                          0/1     Completed   0             77s
nonprod-airbyte-connector-builder-server-6b579f4cdb-wvhr8   1/1     Running     0             54s
nonprod-airbyte-cron-69dd4f76c6-zwzp8                       1/1     Running     0             54s
nonprod-airbyte-pod-sweeper-pod-sweeper-5488986596-8km4m    1/1     Running     0             54s
nonprod-airbyte-server-587d75bc5c-b9l4s                     0/1     Running     0             54s
nonprod-airbyte-temporal-5554d9566f-lqxkw                   0/1     Error       3 (34s ago)   54s
nonprod-airbyte-webapp-c685fc69-bz9h6                       0/1     Running     0             54s
nonprod-airbyte-worker-669b6f8484-gj9n6                     1/1     Running     0             54s
k
Can you share logs of temporal pod
b
Copy code
+ CASSANDRA_CERT_KEY=
+ CASSANDRA_CA=
+ CASSANDRA_REPLICATION_FACTOR=1
+ DBNAME=temporal
+ VISIBILITY_DBNAME=temporal_visibility
+ DB_PORT=5432
+ MYSQL_SEEDS=
+ MYSQL_USER=
+ MYSQL_PWD=
+ MYSQL_TX_ISOLATION_COMPAT=false
+ POSTGRES_SEEDS=airbyte-db-svc
+ POSTGRES_USER=airbyte
+ POSTGRES_PWD=airbyte
+ ENABLE_ES=false
+ ES_SCHEME=http
+ ES_SEEDS=
+ ES_PORT=9200
+ ES_USER=
+ ES_PWD=
+ ES_VERSION=v7
+ ES_VIS_INDEX=temporal_visibility_v1_dev
+ ES_SCHEMA_SETUP_TIMEOUT_IN_SECONDS=0
+ TEMPORAL_CLI_ADDRESS=10.101.14.182:7233
+ SKIP_DEFAULT_NAMESPACE_CREATION=false
+ DEFAULT_NAMESPACE=default
+ DEFAULT_NAMESPACE_RETENTION=1
+ SKIP_ADD_CUSTOM_SEARCH_ATTRIBUTES=false
+ '[' false '!=' true ']'
+ validate_db_env
+ '[' postgresql == mysql ']'
+ '[' postgresql == postgresql ']'
+ '[' -z airbyte-db-svc ']'
+ wait_for_db
+ '[' postgresql == mysql ']'
+ '[' postgresql == postgresql ']'
+ wait_for_postgres
+ nc -z airbyte-db-svc 5432
PostgreSQL started.
Setup PostgreSQL schema.
+ echo 'PostgreSQL started.'
+ setup_schema
+ '[' postgresql == mysql ']'
+ '[' postgresql == postgresql ']'
+ echo 'Setup PostgreSQL schema.'
+ setup_postgres_schema
+ SCHEMA_DIR=/etc/temporal/schema/postgresql/v96/temporal/versioned
+ '[' temporal '!=' airbyte ']'
+ temporal-sql-tool --plugin postgres --ep airbyte-db-svc -u airbyte -p 5432 create --db temporal
2023-03-03T16:20:09.162Z	ERROR	Unable to create SQL database.	{"error": "pq: database \"temporal\" already exists", "logging-call-at": "handler.go:97"}
2023/03/03 16:20:09 Loading config; env=docker,zone=,configDir=config
2023/03/03 16:20:09 Loading config files=[config/docker.yaml]
{"level":"info","ts":"2023-03-03T16:20:09.191Z","msg":"Updated dynamic config","logging-call-at":"file_based_client.go:143"}
{"level":"info","ts":"2023-03-03T16:20:09.191Z","msg":"Starting server for services","value":["history","matching","frontend","worker"],"logging-call-at":"server.go:123"}
Unable to start server. Error: sql schema version compatibility check failed: version mismatch for keyspace/database: "temporal". Expected version: 1.6 cannot be greater than Actual version: 1.4
This is using 0.40.25
k
Are you trying to deploy it on EKS by any means?
b
yes
k
Fargate?
b
no
k
kubectl get stateful set
kubectl describe statefulset airbyte-db
b
Copy code
kubectl -n duploservices-nonprod-tool get statefulset
NAME            READY   AGE
airbyte-db      1/1     14m
airbyte-minio   1/1     14m
jenkins         1/1     11h
Copy code
kubectl -n duploservices-nonprod-tool describe statefulset airbyte-db
Name:               airbyte-db
Namespace:          duploservices-nonprod-tool
CreationTimestamp:  Fri, 03 Mar 2023 11:08:56 -0500
Selector:           app.kubernetes.io/instance=nonprod-airbyte,app.kubernetes.io/name=nonprod-airbyte-db
Labels:             app.kubernetes.io/instance=nonprod-airbyte
                    app.kubernetes.io/managed-by=Helm
                    app.kubernetes.io/name=nonprod-airbyte-db
                    app.kubernetes.io/version=0.41.0
                    helm.sh/chart=airbyte-0.44.3
Annotations:        helm.sh/hook: pre-install,pre-upgrade
                    helm.sh/hook-weight: -1
Replicas:           1 desired | 1 total
Update Strategy:    RollingUpdate
  Partition:        0
Pods Status:        1 Running / 0 Waiting / 0 Succeeded / 0 Failed
Pod Template:
  Labels:  app.kubernetes.io/instance=nonprod-airbyte
           app.kubernetes.io/name=nonprod-airbyte-db
  Containers:
   airbyte-db-container:
    Image:      airbyte/db:0.40.25
    Port:       5432/TCP
    Host Port:  0/TCP
    Environment:
      POSTGRES_DB:        db-airbyte
      POSTGRES_PASSWORD:  airbyte
      POSTGRES_USER:      airbyte
      PGDATA:             /var/lib/postgresql/data/pgdata
    Mounts:
      /var/lib/postgresql/data from airbyte-volume-db (rw)
  Volumes:  <none>
Volume Claims:
  Name:          airbyte-volume-db
  StorageClass:
  Labels:        <none>
  Annotations:   <none>
  Capacity:      500Mi
  Access Modes:  [ReadWriteOnce]
Events:
  Type    Reason            Age   From                    Message
  ----    ------            ----  ----                    -------
  Normal  SuccessfulCreate  15m   statefulset-controller  create Pod airbyte-db-0 in StatefulSet airbyte-db successful
k
Hmm strange, can you try to delete the temporal pod and see what will happen?
@Marcos Marx (Airbyte) ⬆️
Copy code
2023-03-03T16:20:09.162Z	ERROR	Unable to create SQL database.	{"error": "pq: database \"temporal\" already exists", "logging-call-at": "handler.go:97"}
2023/03/03 16:20:09 Loading config; env=docker,zone=,configDir=config
2023/03/03 16:20:09 Loading config files=[config/docker.yaml]
{"level":"info","ts":"2023-03-03T16:20:09.191Z","msg":"Updated dynamic config","logging-call-at":"file_based_client.go:143"}
{"level":"info","ts":"2023-03-03T16:20:09.191Z","msg":"Starting server for services","value":["history","matching","frontend","worker"],"logging-call-at":"server.go:123"}
Unable to start server. Error: sql schema version compatibility check failed: version mismatch for keyspace/database: "temporal". Expected version: 1.6 cannot be greater than Actual version: 1.4
b
Restart of temporal pod respawned and showed the same error
I am willing to delete and redeploy using a newer airbyte version. The logs are from 0.40.25. I can try 0.40.30 or 0.41.0. Those resulted in temporal errors but I didn’t look at the logs.
k
Are you trying to upgrade an existing deployment or it was an fresh one?
b
Fresh install. I had installed AirByte in November. This whole thing started because I wanted to upgrade, the upgrade failed, so I deleted and am trying to reinstall.
Note that
helm delete
left several things still running / configured. I did my best to clean up manually before trying the install.
k
so if you want completely to reinstall airbyte you need to delete airbyte-db and airbyte-minio statefulsets since it’ll be left after
helm delete
b
Yes, I did that.
k
You also need to drop pvc(persistent volume claims)
b
I also killed the bootloader pod, deleted the persistent volume claims, and a couple of other things.
k
Oh, I see and it still led to this error with temporal?
b
Yes
I’m going to delete, make sure I clean up everything, and try again. can you recommend which version of AirByte I should try?
k
you can try the latest one, just install it using
Copy code
helm install -n %namespace% %release_name% airbyte/airbyte
before doing so do
helm repo update
b
I will do these things. Thank you.
I found a couple of PVC for airbyyte from another namespace that I had tried earlier in the week. I deleted them.
✅ 1
Okay. The install completed and the pods are running. Whew.
k
I do wonder why upgrade fail, let’s create an issue on github so it can be reviewed
b
Okay. Thank you for your help. Creating a new source failed the connection to Snowflake. That should be a different slack thread.