sunyuan0827
2022-08-04 16:24
采纳率: 50%
浏览 69

airbyte本地编译报错

问题遇到的现象和发生背景

airbyte本地编译时,启动报错

问题相关代码,请勿粘贴截图

应该是跟flyway有关系

运行结果及报错内容
> Task :airbyte-server:ServerApp.main()
2022-08-04 08:09:44 INFO i.a.c.EnvConfigs(getEnvOrDefault):968 - Using default value for environment variable CONFIG_DATABASE_USER: 'airbyte'
2022-08-04 08:09:44 INFO i.a.c.EnvConfigs(getEnvOrDefault):968 - Using default value for environment variable CONFIG_DATABASE_PASSWORD: '*****'
2022-08-04 08:09:44 INFO i.a.c.EnvConfigs(getEnvOrDefault):968 - Using default value for environment variable CONFIG_DATABASE_URL: 'jdbc:postgresql://localhost:5432/airbyte'
2022-08-04 08:09:44 INFO c.z.h.HikariDataSource(<init>):80 - HikariPool-1 - Starting...
2022-08-04 08:09:44 INFO c.z.h.HikariDataSource(<init>):82 - HikariPool-1 - Start completed.
2022-08-04 08:09:44 INFO c.z.h.HikariDataSource(<init>):80 - HikariPool-2 - Starting...
2022-08-04 08:09:44 INFO c.z.h.HikariDataSource(<init>):82 - HikariPool-2 - Start completed.
2022-08-04 08:09:45 WARN c.n.s.JsonMetaSchema(newValidator):338 - Unknown keyword existingJavaType - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword
2022-08-04 08:09:45 INFO i.a.c.EnvConfigs(getEnvOrDefault):968 - Using default value for environment variable WORKER_ENVIRONMENT: 'DOCKER'
2022-08-04 08:09:45 INFO i.a.s.ServerApp(getServer):163 - Checking databases..
2022-08-04 08:09:45 INFO i.a.s.ServerApp(assertDatabasesReady):139 - Checking configs database flyway migration version..
2022-08-04 08:09:45 INFO i.a.c.EnvConfigs(getEnvOrDefault):968 - Using default value for environment variable CONFIGS_DATABASE_INITIALIZATION_TIMEOUT_MS: '60000'
2022-08-04 08:09:45 WARN i.a.d.c.DatabaseAvailabilityCheck(check):38 - Waiting for database to become available...
2022-08-04 08:09:45 INFO i.a.d.c.DatabaseAvailabilityCheck(lambda$isDatabaseConnected$1):75 - Testing airbyte configs database connection...
2022-08-04 08:09:45 INFO i.a.d.c.DatabaseAvailabilityCheck(check):57 - Database available.
2022-08-04 08:09:45 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-08-04 08:09:45 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Database: jdbc:postgresql://localhost:5432/airbyte (PostgreSQL 13.7)
2022-08-04 08:09:46 INFO i.a.d.c.DatabaseMigrationCheck(check):46 - Current database migration version 0.
2022-08-04 08:09:46 INFO i.a.d.c.DatabaseMigrationCheck(check):47 - Minimum Flyway version required 0.35.15.001.
2022-08-04 08:09:52 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-08-04 08:09:58 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-08-04 08:10:04 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-08-04 08:10:10 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-08-04 08:10:16 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-08-04 08:10:22 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-08-04 08:10:28 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-08-04 08:10:34 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-08-04 08:10:40 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-08-04 08:10:46 INFO o.f.c.i.l.s.Slf4jLog(info):49 - Flyway Community Edition 7.14.0 by Redgate
2022-08-04 08:10:46 ERROR i.a.s.ServerApp(main):291 - Server failed
io.airbyte.db.check.DatabaseCheckException: Timeout while waiting for database to fulfill minimum flyway migration version..
    at io.airbyte.db.check.DatabaseMigrationCheck.check(DatabaseMigrationCheck.java:51) ~[io.linketime-airbyte.airbyte-db-db-lib-0.39.39-alpha.jar:?]
    at io.airbyte.server.ServerApp.assertDatabasesReady(ServerApp.java:143) ~[main/:?]
    at io.airbyte.server.ServerApp.getServer(ServerApp.java:164) ~[main/:?]
    at io.airbyte.server.ServerApp.main(ServerApp.java:288) [main/:?]
2022-08-04 08:10:46 INFO c.z.h.HikariDataSource(close):350 - HikariPool-1 - Shutdown initiated...
2022-08-04 08:10:46 INFO c.z.h.HikariDataSource(close):352 - HikariPool-1 - Shutdown completed.
2022-08-04 08:10:46 INFO c.z.h.HikariDataSource(close):350 - HikariPool-2 - Shutdown initiated...
2022-08-04 08:10:46 INFO c.z.h.HikariDataSource(close):352 - HikariPool-2 - Shutdown completed.

> Task :airbyte-server:ServerApp.main() FAILED

Execution failed for task ':airbyte-server:ServerApp.main()'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk-18.0.2.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.




我的解答思路和尝试过的方法

数据库里目前是空的,应该跟flyway有关系,对flyway不是太了解,会自己把数据库脚本加载到数据库?

我想要达到的结果

airbyte能正常启动,且能访问

4条回答 默认 最新

相关推荐 更多相似问题