<@U04S8PLJWMT> how this is required to work? ```T...
# ask-ai
d
@kapa.ai how this is required to work?
Copy code
TEMPORAL_HOST
INTERNAL_API_HOST
WEBAPP_URL
k
The environment variables
TEMPORAL_HOST
,
INTERNAL_API_HOST
, and
WEBAPP_URL
are required for Airbyte services to function correctly: - TEMPORAL_HOST: Specifies the URL (including port) where Temporal is hosted. Airbyte services use this to communicate with Temporal for workflow orchestration. - INTERNAL_API_HOST: Specifies the URL (including port) where the Airbyte Server is hosted. This is used internally by Airbyte services to communicate with the server. - WEBAPP_URL: Specifies the URL (including port) where the Airbyte Webapp is hosted. This is used by Airbyte services and can be set to your custom domain to change the Airbyte instance URL provided in notifications. All three variables must be set with the correct URLs (including ports) so that Airbyte components can communicate with each other and function as expected. If these are misconfigured or missing, Airbyte services may not be able to connect, leading to errors or failures in operation. You can set
WEBAPP_URL
to your custom domain if you want notifications to reference your specific Airbyte instance URL [Configuring Airbyte - Airbyte Services](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#airbyte-services).
d
what if they hosted in k8s. @kapa.ai
k
A message from kapa.ai
If Airbyte is hosted in Kubernetes (K8s), you still need to set the environment variables
TEMPORAL_HOST
,
INTERNAL_API_HOST
, and
WEBAPP_URL
with the correct service URLs and ports. In a typical K8s deployment, these variables should point to the internal Kubernetes service names and ports for each component. For example, you might set: -
TEMPORAL_HOST=airbyte-temporal-svc:7233
-
INTERNAL_API_HOST=airbyte-server-svc:8001
-
WEBAPP_URL=airbyte-webapp-svc:80
These values correspond to the Kubernetes service names and their respective ports, allowing Airbyte components to communicate with each other within the cluster. The documentation and community discussions confirm that these variables are required and should include the port, even in Kubernetes environments [Configuring Airbyte - Airbyte Services](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#airbyte-services) [Forum: Issue Airbyte on GKE without internet](https://discuss.airbyte.io/t/763). If you use an ingress or a custom domain, you may set
WEBAPP_URL
(and potentially
INTERNAL_API_HOST
) to your ingress URL or domain, but they must always resolve to the correct Airbyte services inside your cluster. Misconfiguration can lead to connectivity issues between Airbyte components.
d
WEBAPP_URL will be public, where is others is internal services. @kapa.ai should I include schema?
k
A message from kapa.ai
Yes, you should include the schema (e.g.,
http://
or
https://
) in the value for
WEBAPP_URL
, as it defines the full URL where the Airbyte Webapp is accessible. This is especially important since
WEBAPP_URL
is used for notifications and external access, and should match your public ingress or domain, including the schema and port if necessary. For the internal services (
TEMPORAL_HOST
and
INTERNAL_API_HOST
), the documentation states to "include the port" but does not explicitly mention the schema. In Kubernetes, these are typically set as service names with ports (e.g.,
airbyte-server-svc:8001
), and the schema is usually not required or used for internal service discovery [Configuring Airbyte - Airbyte Services](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#airbyte-services). So: - WEBAPP_URL: Include schema (e.g.,
https://airbyte.example.com
) - INTERNAL_API_HOST and TEMPORAL_HOST: Use service name and port (e.g.,
airbyte-server-svc:8001
), schema is not required. If you need to match your ingress URL, ensure
WEBAPP_URL
matches the public address, including schema [Configuring Ingress](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#configuring-ingress).
d
Why then @kapa.ai workload-launcher pod won't start
Copy code
2025-08-20 13:21:34,547 [scheduled-executor-thread-3]	ERROR	i.m.s.TaskExceptionHandler(handleCreationFailure):44 - Error creating scheduled task for bean [DataplaneIdentityService] Cannot resolve beans until the context is running
io.micronaut.context.exceptions.BeanContextException: Cannot resolve beans until the context is running
	at io.micronaut.context.DefaultBeanContext.assertContextState(DefaultBeanContext.java:2774)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2987)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2762)
	at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1781)
	at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:855)
	at io.micronaut.scheduling.processor.ScheduledMethodProcessor.lambda$scheduleTask$2(ScheduledMethodProcessor.java:152)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

2025-08-20 13:21:35,275 [scheduled-executor-thread-2]	INFO	i.a.w.l.PodSweeper(sweepPods):56 - Starting pod sweeper cycle in namespace [airbyte]...
2025-08-20 13:21:35,278 [scheduled-executor-thread-2]	INFO	i.a.w.l.PodSweeper(sweepPods):67 - Will sweep Succeeded pods older than 2025-08-20T13:11:35.275Z (UTC).
2025-08-20 13:21:35,279 [scheduled-executor-thread-2]	INFO	i.a.w.l.PodSweeper(sweepPods):70 - Will sweep unsuccessful pods older than 2025-08-20T11:21:35.275Z (UTC).
2025-08-20 13:21:36,010 [main]	INFO	i.a.f.ConfigFileClient(<init>):150 - path /flags does not exist, will return default flag values
2025-08-20 13:21:36,321 [main]	ERROR	i.m.r.Micronaut(handleStartupException):362 - Error starting Micronaut server: Failed to initialize data-plane
java.lang.RuntimeException: Failed to initialize data-plane
	at io.airbyte.workload.launcher.authn.DataplaneIdentityService.initialize(DataplaneIdentityService.kt:56)
	at io.airbyte.workload.launcher.StartupApplicationEventListener.onApplicationEvent(StartupApplicationEventListener.kt:34)
	at io.airbyte.workload.launcher.StartupApplicationEventListener.onApplicationEvent(StartupApplicationEventListener.kt:20)
	at io.micronaut.context.event.ApplicationEventPublisherFactory.notifyEventListeners(ApplicationEventPublisherFactory.java:266)
	at io.micronaut.context.event.ApplicationEventPublisherFactory$2.publishEvent(ApplicationEventPublisherFactory.java:226)
	at io.micronaut.http.server.netty.discovery.NettyServiceDiscovery.onStart(NettyServiceDiscovery.java:54)
	at io.micronaut.http.server.netty.discovery.$NettyServiceDiscovery$Definition$Exec.dispatch(Unknown Source)
	at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invoke(AbstractExecutableMethodsDefinition.java:456)
	at io.micronaut.context.DefaultBeanContext$BeanExecutionHandle.invoke(DefaultBeanContext.java:3987)
	at io.micronaut.aop.chain.AdapterIntroduction.intercept(AdapterIntroduction.java:91)
	at io.micronaut.aop.chain.MethodInterceptorChain.proceed(MethodInterceptorChain.java:143)
	at io.micronaut.http.server.netty.discovery.NettyServiceDiscovery$ApplicationEventListener$onStart1$Intercepted.onApplicationEvent(Unknown Source)
	at io.micronaut.context.event.ApplicationEventPublisherFactory.notifyEventListeners(ApplicationEventPublisherFactory.java:266)
	at io.micronaut.context.event.ApplicationEventPublisherFactory$2.publishEvent(ApplicationEventPublisherFactory.java:226)
	at io.micronaut.http.server.netty.NettyHttpServer.fireStartupEvents(NettyHttpServer.java:720)
	at io.micronaut.http.server.netty.NettyHttpServer.start(NettyHttpServer.java:330)
	at io.micronaut.http.server.netty.NettyHttpServer.start(NettyHttpServer.java:124)
	at io.micronaut.runtime.Micronaut.start(Micronaut.java:81)
	at io.airbyte.workload.launcher.ApplicationKt.main(Application.kt:10)
Caused by: java.lang.IllegalStateException: baseUrl is invalid.
	at io.airbyte.api.client.generated.DataplaneApi.initializeDataplaneWithHttpInfo(DataplaneApi.kt:1991)
	at io.airbyte.api.client.generated.DataplaneApi.initializeDataplane(DataplaneApi.kt:364)
	at io.airbyte.workload.launcher.authn.DataplaneIdentityService.initialize(DataplaneIdentityService.kt:41)
	... 18 common frames omitted
k
A message from kapa.ai
The error message in your workload-launcher pod:
Copy code
Caused by: java.lang.IllegalStateException: baseUrl is invalid.  at io.airbyte.api.client.generated.DataplaneApi.initializeDataplaneWithHttpInfo(DataplaneApi.kt:1991)
indicates that the workload-launcher is failing to start because the
baseUrl
it is trying to use is invalid. This is typically related to the configuration of environment variables such as
INTERNAL_API_HOST
or other service URLs that Airbyte components use to communicate internally. From the knowledge sources, this exact error (
baseUrl is invalid
) has been observed when the
INTERNAL_API_HOST
or similar service URLs are not set correctly, especially after upgrades or changes in deployment. The value must include the correct service name and port, and in Kubernetes, it should point to the internal service (e.g.,
airbyte-server-svc:8001
) [Configuring Airbyte - Airbyte Services](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#airbyte-services) [Github Issue #38854](https://github.com/airbytehq/airbyte/issues/38854). Key points to check: - Ensure that
INTERNAL_API_HOST
is set to the correct internal service name and port for your Airbyte server in Kubernetes. - Do not include a schema (like
http://
) for internal service variables; just use
service-name:port
. - Make sure all required environment variables are set and match your actual service names in the cluster. If these are misconfigured, the workload-launcher will not be able to resolve the correct endpoint, resulting in the "baseUrl is invalid" error and preventing the pod from starting. If you have recently upgraded or changed your deployment method (e.g., Helm vs. Kustomize), double-check that your environment variables are consistent and correct for your current setup [Github Issue #38854](https://github.com/airbytehq/airbyte/issues/38854). If you need more specific troubleshooting, please provide the values you are using for
INTERNAL_API_HOST
and other related environment variables.
d
@kapa.ai validate this env from your side?
Copy code
k get configmap airbyte-v2-airbyte-env -o yaml |grep HOST
  AIRBYTE_API_HOST: http://localhost:8001/api/public
  AIRBYTE_SERVER_HOST: airbyte-v2-airbyte-server-svc.airbyte:8001
  CONNECTOR_BUILDER_API_HOST: airbyte-v2-airbyte-connector-builder-server-svc.airbyte:80
  CONNECTOR_BUILDER_SERVER_API_HOST: http://airbyte-v2-airbyte-connector-builder-server-svc.airbyte:80
  DATABASE_HOST: airbyte-psql.cluster-cf4ky4hkghym.eu-west-2.rds.amazonaws.com
  DD_AGENT_HOST: ""
  INTERNAL_API_HOST: http://airbyte-v2-airbyte-server-svc.airbyte:8001
  KEYCLOAK_DATABASE_HOST: airbyte-db-svc.airbyte.svc.cluster.local
  KEYCLOAK_HOST: airbyte.int.carmoola.tech
  KEYCLOAK_HOSTNAME_URL: https://airbyte.int.carmoola.tech/auth
  KEYCLOAK_INTERNAL_HOST: localhost
  POSTGRES_TLS_DISABLE_HOST_VERIFICATION: "true"
  SQL_TLS_DISABLE_HOST_VERIFICATION: "true"
  STATSD_HOST: ""
  TEMPORAL_CLOUD_HOST: ""
  TEMPORAL_HOST: airbyte-v2-temporal:7233
  WEBAPP_POSTHOG_HOST: ""
  WORKLOAD_API_HOST: http://airbyte-v2-workload-api-server-svc.airbyte:8001
k get configmap airbyte-v2-airbyte-env -o yaml |grep URL
  AI_ASSIST_URL_BASE: ""
  AIRBYTE_URL: https://airbyte.int.carmoola.tech
  API_URL: /api/v1
  DATABASE_URL: jdbc:postgresql://airbyte-psql.cluster-cf4ky4hkghym.eu-west-2.rds.amazonaws.com:5432/airbyte
  DD_INTEGRATION_HTTPURLCONNECTION_ENABLED: "false"
  DD_INTEGRATION_URLCONNECTION_ENABLED: "false"
  ENTERPRISE_SOURCE_STUBS_URL: https://connectors.airbyte.com/files/resources/connector_stubs/v1/connector_stubs.json
  KEYCLOAK_DATABASE_URL: jdbc:postgresql://airbyte-db-svc.airbyte.svc.cluster.local:5432/db-airbyte?currentSchema=keycloak
  KEYCLOAK_HOSTNAME_URL: https://airbyte.int.carmoola.tech/auth
  WEBAPP_SONAR_API_URL: ""
  WEBAPP_URL: https://airbyte.int.carmoola.tech
Before adding
Copy code
WEBAPP_URL: "https://airbyte.${zone_name}"
    TEMPORAL_HOST: "airbyte-v2-temporal:7233"
    INTERNAL_API_HOST: "airbyte-v2-airbyte-server-svc:8001"
all worked well.
k
A message from kapa.ai
Based on the environment variables you provided and the official Airbyte documentation, here’s a validation and review: ### 1. WEBAPP_URL - Your value:
WEBAPP_URL: https://airbyte.int.carmoola.tech
- Expected: Should include the schema (
http://
or
https://
) and point to your public Airbyte webapp URL. - Status: ✅ Correct, as per documentation. _Reference: "Defines the url the Airbyte Webapp is hosted at. Please include the port."_[source](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#airbyte-services) ### 2. TEMPORAL_HOST - Your value:
TEMPORAL_HOST: airbyte-v2-temporal:7233
- Expected: Should be the internal K8s service name and port, no schema required. - Status: ✅ Correct, as per documentation. _Reference: "Defines the url where Temporal is hosted at. Please include the port."_[source](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#airbyte-services) ### 3. INTERNAL_API_HOST - Your value:
INTERNAL_API_HOST: http://airbyte-v2-airbyte-server-svc.airbyte:8001
- Expected: Should be the internal K8s service name and port, without schema (i.e.,
airbyte-v2-airbyte-server-svc:8001
). - Status: ⚠️ Not correct. The documentation and community examples show that the schema should not be included for internal service hosts in Kubernetes. _Reference: "Defines the url where the Airbyte Server is hosted at. Please include the port."_[source](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#airbyte-services) Community examples and troubleshooting also confirm this ([see forum](https://discuss.airbyte.io/t/763)). --- ### Summary Table | Variable | Your Value | Expected Format | Status | |--------------------|--------------------------------------------------------|----------------------------------------|----------| | WEBAPP_URL |
https://airbyte.int.carmoola.tech
|
https://your.domain.com[:port]
| ✅ | | TEMPORAL_HOST |
airbyte-v2-temporal:7233
|
service-name:port
| ✅ | | INTERNAL_API_HOST |
http://airbyte-v2-airbyte-server-svc.airbyte:8001
|
service-name:port
(no schema) | ⚠️ | --- ### Action Required - Remove the schema (
http://
) from
INTERNAL_API_HOST
. Change:
Copy code
INTERNAL_API_HOST: http://airbyte-v2-airbyte-server-svc.airbyte:8001
To:
Copy code
INTERNAL_API_HOST: airbyte-v2-airbyte-server-svc:8001
This change should resolve issues related to "baseUrl is invalid" and allow your workload-launcher pod to start correctly, as the internal Airbyte components expect the service name and port only, not a full URL with schema, for internal communication in Kubernetes. If you continue to experience issues after this correction, please provide the updated logs for further troubleshooting.
d
But as you can see, I haven't added schema, it was svc. @kapa.ai helmchart doing that.
k
A message from kapa.ai
Thank you for clarifying that you did not manually add the schema (
http://
) to
INTERNAL_API_HOST
, and that the Helm chart is injecting it. Based on the official Airbyte documentation and migration guides, for Kubernetes deployments, the expected value for
INTERNAL_API_HOST
is the service name and port (e.g.,
airbyte-v2-airbyte-server-svc:8001
), without a schema. This is consistent across multiple Airbyte operator guides and Helm chart migration documents, which all specify the format as
service-name:port
and do not mention including a schema for internal service communication [Configuring Airbyte - Airbyte Services](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#airbyte-services) [Upgrade to Helm chart V2](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file). If the Helm chart is automatically adding a schema (e.g.,
http://airbyte-v2-airbyte-server-svc.airbyte:8001
), this is not aligned with the documented requirements and may be the cause of the
baseUrl is invalid
error you are seeing. This is also supported by user reports and GitHub issues, where adding a schema to
INTERNAL_API_HOST
led to failures, and removing it resolved the issue [Github Issue #38854](https://github.com/airbytehq/airbyte/issues/38854). In summary: - The knowledge sources indicate that
INTERNAL_API_HOST
should be set as
service-name:port
(no schema) in Kubernetes. - If the Helm chart is adding a schema, this is likely a misconfiguration or a bug in the chart. - You should ensure that the value for
INTERNAL_API_HOST
does not include
http://
or
https://
. If you are unable to control this behavior in the Helm chart, you may want to check your
values.yaml
and Helm chart version, or raise an issue with the Airbyte Helm chart maintainers, as this is not the expected or documented behavior.