Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ershiyi21 opened this issue May 30, 2024 · 0 comments

Comments

@ershiyi21
Copy link

ershiyi21 commented May 30, 2024

阿里云服务器,不管是后台重启还是强制重启,均出现该问题。
重启后,容器无法启动或无限重启,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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant