Skip to content

云厂商后台断电重启 vps, vocechat docker日期无法正常启动运行 #11

Description

@ershiyi21

阿里云服务器,不管是后台重启还是强制重启,均出现该问题。
重启后,容器无法启动或无限重启,docker日志
更新:
- 安装好不进行任何设置,docker restart vocechat-server,正常重启
- 然后创建了一个机器人,设置了webhook与key,然后创建一个频道,拉入机器人,docker restart vocechat-server无法启动
- 国内外服务器均稳定复现,机器人设置key后重启失败
多次测试后发现,机器人key的命名不能设置为数字,比如123或者756256666等纯数字,不然重启就会报以下日志错误

2024-05-30T08:24:06.096017Z  INFO vocechat_server: load configuration file. current_dir=/home/vocechat-server path=config/config.toml
[src/main.rs:251:9] config.clone() = Config {
    webclient: WebClientConfig {
        url: Some(
            "https://s.voce.chat/web_client/v0.4.x",
        ),
    },
    system: SystemConfig {
        data_dir: "./data",
        token_expiry_seconds: 300,
        refresh_token_expiry_seconds: 604800,
        magic_token_expiry_seconds: 900,
        upload_avatar_limit: 524288,
        send_image_limit: 2097152,
        upload_timeout_seconds: 300,
        file_expiry_days: 90,
        max_favorite_archives: 100,
    },
    network: NetworkConfig {
        domain: [],
        bind: "0.0.0.0:3000",
        tls: None,
        frontend_url: "",
    },
    template: TemplatesConfig {
        register_by_email: Some(
            TemplateConfig {
                subject: "Register code",
                file: "templates/register_by_email.html",
            },
        ),
        login_by_email: Some(
            TemplateConfig {
                subject: "Your sign-in link for Vocechat",
                file: "templates/login_by_email.html",
            },
        ),
    },
    users: [],
}
2024-05-30T08:24:06.110633Z  INFO vocechat_server::server: open sqlite db. dsn="sqlite:./data/db/db.sqlite"
2024-05-30T08:24:06.142045Z  INFO vocechat_server::server: open message db. path="./data/msg"
2024-05-30T08:24:06.273582Z ERROR vocechat_server: failed to create server. error=error occurred while decoding column 1: mismatched types; Rust type `alloc::string::String` (as SQL type `TEXT`) is not compatible with SQL type `INTEGER`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions