构建容器后一直在重启,更改了配置路径还是,这样以下是日志
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
日志配置文件初始化失败:No such file or directory (os error 2),使用默认日志配置
2026-06-10T00:48:23.070203878+00:00 INFO olink_repository::repository - 使用默认数据库sqlite:///data/db/data.db
2026-06-10T00:48:23.075393519+00:00 INFO olink_repository::repository - Database connected
2026-06-10T00:48:23.082510644+00:00 INFO sea_orm_migration::migrator - Applying all pending migrations
2026-06-10T00:48:23.085348373+00:00 INFO sea_orm_migration::migrator - Applying migration 'm20260607_000003_add_gateway_startup_error'
2026-06-10T00:48:23.085767631+00:00 INFO olink_mijia::db::migration::m20260607_000003_add_gateway_startup_error - 为 mijia_gateway 表添加 extra_info 字段----------
thread 'main' (1) panicked at olink-repository/src/lib.rs:32:36:
数据库初始化失败: Exec(SqlxError(Database(SqliteError { code: 1, message: "duplicate column name: extra_info" })))
stack backtrace:
0: __rustc::rust_begin_unwind
1: core::panicking::panic_fmt
2: core::result::unwrap_failed
3: bin::main::{{closure}}
4: tokio::runtime::park::CachedParkThread::block_on
5: tokio::runtime::context::runtime::enter_runtime
6: tokio::runtime::runtime::Runtime::block_on
7: bin::main
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.