Skip to content

CLI 无法恢复桌面端生成的 schema 27 快照(Remote database schema is too new) #576

Done

Description

@PeakVision0814

Describe the bug / 问题描述

无法通过 WebDAV 将最新版桌面端上传的数据包同步/恢复到 CLI 版,CLI 会拒绝加载并提示远端数据库版本过新(schema 27),而当前 CLI 仅支持到 schema 26。

Environment / 环境信息

  • Desktop (上传端): CC Switch 桌面端最新版 v4.0.38
  • CLI (恢复端): cc-switch-cli v5.11.4
  • 同步方式: WebDAV
  • 操作系统: Windows与Linux

Steps to Reproduce / 复现步骤

  1. 在最新版 CC Switch 桌面端配置好数据,并通过 WebDAV 上传本地快照。
  2. 在另一台设备(或同一设备)上打开 cc-switch-cli。
  3. 进入 配置 → 云同步 → WebDAV 同步。
  4. 选择 从远端恢复。
  5. 恢复失败,界面显示红色错误提示。

Actual Behavior / 实际现象

CLI 界面报错,无法完成恢复:

X WebDAV 下载失败: 远端数据库版本过新 (27),当前应用仅支持 26,请先升级应用后再同步 (Remote database schema is too new (27); this app supports up to 26. Upgrade before syncing.)

Analysis / 问题分析

CLI 的 v5.11.4 发布说明中已明确提到“databases newer than schema 26, including upstream development schema 27, are still rejected”。桌面端最新版似乎已经开始使用 schema 27(或其开发版生成了 schema 27 的快照),导致 CLI 的 WebDAV 恢复通道被阻断。这是跨端 schema 版本不匹配导致的兼容性问题,并非用户操作错误。

Expected Behavior / 期望行为

希望 CLI 后续版本能够像之前适配 schema 21/22/23-26 那样,增加对上游 schema 27 的兼容支持,使得桌面端与 CLI 之间的 WebDAV 数据包可以正常互相同步与恢复。

Workaround / 临时规避方案(可选)

目前暂时只能通过以下方式规避:

  1. 将 CLI 升级到支持 schema 27 的未来版本(一旦发布)。
  2. 或在桌面端导出时,暂时避免使用会生成 schema 27 的版本/功能(如果可行)。

Additional Context / 补充信息

image

Activity

  1. SaladDay commented on Nov 24, 2026

    @SaladDay
    Owner

    Fixed in #578, will ship in the next release. Thanks for the detailed report!

  2. kelvkhiu commented on Nov 28, 2026

    @kelvkhiu

    need to update db to version 28 now

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