V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
lin002
V2EX  ›  问与答

tidb cloud 的数据库部署 vaultwarden 密码服务

  •  
  •   lin002 · 8 天前 · 594 次点击

    有大佬部署成功过吗。我链接了 tidbcloud 的数据库,报错: /--------------------------------------------------------------------
    | Starting Vaultwarden | | Version 1.33.2 | |--------------------------------------------------------------------| | This is an unofficial Bitwarden implementation, DO NOT use the | | official channels to report bugs/features, regardless of client. | | Send usage/configuration questions or feature requests to: | | https://github.com/dani-garcia/vaultwarden/discussions or | | https://vaultwarden.discourse.group/ | | Report suspected bugs/issues in the software itself at: | | https://github.com/dani-garcia/vaultwarden/issues/new | --------------------------------------------------------------------/

    [2025-03-22 11:37:22.713][panic][ERROR] thread 'main' panicked at 'Error running migrations: QueryError(DieselMigrationName { name: "2022-03-02-210038_update_devices_primary_key", version: MigrationVersion("20220302210038") }, DatabaseError(Unknown, "Unsupported drop primary key when the table is using clustered index"))': src/db/mod.rs:473 0: vaultwarden::init_logging::{{closure}} 1: std::panicking::rust_panic_with_hook 2: std::panicking::begin_panic_handler::{{closure}} 3: std::sys::backtrace::__rust_end_short_backtrace 4: rust_begin_unwind 5: core::panicking::panic_fmt 6: core::result::unwrap_failed 7: vaultwarden::db::DbPool::from_config 8: vaultwarden::main::{{closure}} 9: vaultwarden::main 10: std::sys::backtrace::__rust_begin_short_backtrace 11: main 12: <unknown> 13: __libc_start_main 14: _start

    从日志看,这个错误发生在 Vaultwarden 试图修改 devices 表的主键时,而 TiDB 不支持在使用聚簇索引的表上删除主键。

    2 条回复    2025-03-23 10:40:52 +08:00
    lin002
        1
    lin002  
    OP
       8 天前
    tidbcloud 是免费提供数据库的商家,
    Serverless
    High available elastic clusters with freeforever option.
    5GiB Storage free forever
    50M Request Units free each monthVector Search for Gen-Al apps (Beta)
    IDAEngine
        2
    IDAEngine  
       7 天前
    TiDB 不支持 vaultwarden 这种操作
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3488 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 19ms · UTC 00:51 · PVG 08:51 · LAX 17:51 · JFK 20:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.