Hey, <@U04S8PLJWMT> I have created new source and...
# ask-ai
d
Hey, @kapa.ai I have created new source and faced this
Copy code
2025-08-19 09:00:32,612 [main]	INFO	i.a.d.c.DatabaseAvailabilityCheck$DefaultImpls(check):82 - Database available.
2025-08-19 09:00:32,635 [main]	INFO	o.f.c.i.l.s.Slf4jLog(info):41 - Database: jdbc:postgresql://airbyte-psql.cluster-cf4ky4hkghym.eu-west-2.rds.amazonaws.com:5432/airbyte (PostgreSQL 16.9)
2025-08-19 09:00:32,688 [main]	INFO	i.a.d.c.DatabaseMigrationCheck$DefaultImpls(check):80 - Current database migration version 1.1.0.004.
2025-08-19 09:00:32,692 [main]	INFO	i.a.d.c.DatabaseMigrationCheck$DefaultImpls(check):81 - Minimum Flyway version required 0.29.15.001.
2025-08-19 09:00:32,693 [main]	INFO	i.a.d.c.DatabaseMigrationCheck$DefaultImpls(check):96 - Verified that database has been migrated to the required minimum version 0.29.15.001.
2025-08-19 09:00:32,698 [main]	INFO	i.m.r.Micronaut(start):101 - Startup completed in 17853ms. Server Running: http://airbyte-v2-server-77cc57677f-7grb5:8001
2025-08-19 09:03:04,391 [io-executor-thread-2]	ERROR	i.a.c.s.e.h.KnownExceptionHandler(handle):34 - Known Exception: class KnownExceptionInfo {
    message: Failed to access database. Check the server logs for more information
    exceptionClassName: io.airbyte.commons.server.errors.ConflictException
    exceptionStack: [io.airbyte.commons.server.errors.ConflictException: Failed to access database. Check the server logs for more information, 	at io.airbyte.server.apis.ApiHelper.execute(ApiHelper.kt:45), 	at io.airbyte.server.apis.controllers.SourceApiController.listSourcesForWorkspace(SourceApiController.kt:132), 	at io.airbyte.server.apis.controllers.$SourceApiController$Definition$Exec.dispatch(Unknown Source), 	at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invokeUnsafe(AbstractExecutableMethodsDefinition.java:461), 	at io.micronaut.context.DefaultBeanContext$BeanContextUnsafeExecutionHandle.invokeUnsafe(DefaultBeanContext.java:4419), 	at io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:272), 	at io.micronaut.web.router.DefaultUriRouteMatch.execute(DefaultUriRouteMatch.java:38), at io.micronaut.http.server.RouteExecutor.executeRouteAndConvertBody(RouteExecutor.java:493), 	at io.micronaut.http.server.RouteExecutor.lambda$callRoute$5(RouteExecutor.java:470), 	at io.micronaut.core.execution.ExecutionFlow.lambda$async$0(ExecutionFlow.java:92), 	at io.micronaut.core.propagation.PropagatedContext.lambda$wrap$3(PropagatedContext.java:211), 	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)]
    rootCauseExceptionClassName: null
    rootCauseExceptionStack: []
    details: null
}
k
The error message you’re seeing, “Failed to access database. Check the server logs for more information” with a ConflictException, is a general error indicating that Airbyte is unable to interact with the configured PostgreSQL database. Based on similar issues in the knowledge sources, here are some possible causes and troubleshooting steps: 1. Database Connectivity and Permissions - Ensure that the Airbyte instance can reach the PostgreSQL database at the specified host and port. - Verify that the database user configured for Airbyte has the necessary permissions on the database, including SELECT, INSERT, UPDATE, and DELETE, as well as any required schema privileges. 2. Database Schema and Migration Version - Your logs show that the database migration version and minimum Flyway version checks have passed, which is good. - However, if the database schema is out of sync or missing required tables/columns, Airbyte may fail to access it. Double-check that the database was not manually altered or partially migrated. 3. Database Version Compatibility - There have been issues reported when the PostgreSQL version is not compatible with the jOOQ library version used by Airbyte. While your log shows PostgreSQL 16.9, make sure this version is supported by your Airbyte deployment. Some users have encountered warnings or errors when the database version is newer or older than what Airbyte expects, especially after upgrades or migrations. Check for any version mismatch warnings in your logs, as seen in other reports ([example](https://github.com/airbytehq/airbyte/issues/54150)). 4. Workspace or Configuration Issues - If you recently restarted Airbyte or changed the database, ensure that the webapp or any connected clients are restarted as well. There have been cases where a mismatch in workspace UUIDs between the webapp and the Airbyte backend database caused similar errors. Restarting the webapp can resolve foreign key or workspace-related issues ([see this discussion](https://discuss.airbyte.io/t/1902)). 5. Check for Detailed Errors in Logs - The error message suggests checking the server logs for more information. Look for any stack traces or SQL errors that might indicate a more specific problem, such as a failed query, permission denied, or schema mismatch. If you have recently changed your database configuration, upgraded Airbyte, or restored from a backup, double-check all related settings and ensure that the Airbyte instance and its webapp are fully synchronized with the current database state. If these steps do not resolve the issue, please provide any additional error messages or context from the server logs for more targeted troubleshooting.
d
@kapa.ai what was changed, that only airbyte services restarted on eks nodes, cuz was nodes refresh.
k
A message from kapa.ai
Based on the knowledge sources provided, there is no explicit information detailing a specific change in Airbyte or its deployment configuration that would cause only Airbyte services to restart on EKS nodes after a node refresh. However, it is common Kubernetes behavior that when nodes are refreshed (due to maintenance, upgrades, or autoscaling), all pods scheduled on those nodes—including Airbyte services—are terminated and rescheduled on other available nodes. There is no indication in the sources that Airbyte has a custom mechanism or configuration that would cause only its services to restart, nor is there mention of a change in Airbyte that would alter this standard Kubernetes behavior. If you are observing that only Airbyte services are restarting and not other workloads, this could be due to specific node affinity, taints, tolerations, or resource constraints, but such details are not covered in the provided documentation. If you need to ensure persistence or minimize disruption during node refreshes, consider reviewing your Kubernetes deployment strategies, such as using StatefulSets with persistent volumes and proper PVC retention policies, as discussed in the community forums. But again, the knowledge sources do not mention a recent change in Airbyte itself that would affect restart behavior during EKS node refreshes[Forum: Use StatefulSet instead of Deployment for some pods?](https://discuss.airbyte.io/t/1216). If you have more specific logs or configuration details, please share them for a more targeted analysis.