ECS:ECSSync 迁移错误:MySQLSyntaxErrorException:“字段列表”中的未知列“source_md5”

Summary: ECSSync 迁移会立即完成,而不会实际迁移任何 Centera 剪辑。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

ECSSync 从 Centera 迁移到 ECS。

ECSSync 迁移会立即完成,无需实际迁移任何 Centera 剪辑。
在 /var/log/ecssync/ecs-sync.log 文件中,显示以下错误:

2020-05-04 03:08:38 WARN [sync-pool-1-t-15] SyncTask:O--!object DNVBT3VHL1NE1e2NMV9CJDMQV5FG41BCFNF5EM0AC0A4KU05821DC failed
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:“字段列表”中的未知列“source_md5”
      在 sun.reflect.GeneratedConstructorAccessor29.newInstance(未知来源)
在 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
... <输出被> 截断。

Cause

导致的错误是由于您使用的数据库表是由以前版本的 ECSSync 创建的。

以下是根据最新过程创建的表的示例,其中不包括此列:

MariaDB [ecs_sync]> 描述 <table_name>;
+-------------------+---------------+------+-----+---------+-------+
|领域 |类型 |空 |键 |默认 |额外 |
+-------------------+---------------+------+-----+---------+-------+
| source_id | varchar(54) |否 |公共研究机构 |空 |      |
|target_id |瓦查尔(54) |是 |    |空 |      |
|is_directory |整数(11) |否 |    |空 |      |
|尺寸 |bigint(20) |是 |    |空 |      |
|时光 |日期时间 |是 |    |空 |      |
|状态 |瓦查尔(32) |否 |穆尔 |空 |      |
|transfer_start |日期时间 |是 |    |空 |      |
|transfer_complete |日期时间 |是 |    |空 |      |
|verify_start |日期时间 |是 |    |空 |      |
|verify_complete |日期时间 |是 |    |空 |      |
|retry_count |整数(11) |是 |    |空 |      |
|error_message |瓦查尔(2048) |是 |    |空 |      |
|is_source_deleted |整数(11) |是 |    |空 |      |
+-------------------+---------------+------+-----+---------+-------+
13 行(0.00 秒)

ECSSync 版本 3.2.9 在数据库表中添加了一列,以跟踪源 MD5 校验和(发行说明中对此进行了说明)。

 

Resolution

升级到此版本后,您必须创建新的数据库表,或者通过在以下命令中执行以下作来添加相应的列 mysql 壳:
 

alter table <table_name> add column source_md5 VARCHAR(32);

该表应类似于以下示例,其中包含附加列:

MariaDB [ecs_sync]> 描述 <table_name>;
+-------------------+---------------+------+-----+---------+-------+
|领域 |类型 |空 |键 |默认 |额外 |
+-------------------+---------------+------+-----+---------+-------+
| source_id | varchar(54) |否 |公共研究机构 |空 |      |
|target_id |瓦查尔(54) |是 |    |空 |      |
|is_directory |整数(11) |否 |    |空 |      |
|尺寸 |bigint(20) |是 |    |空 |      |
|时光 |日期时间 |是 |    |空 |      |
|状态 |瓦查尔(32) |否 |穆尔 |空 |      |
|transfer_start |日期时间 |是 |    |空 |      |
|transfer_complete |日期时间 |是 |    |空 |      |
|verify_start |日期时间 |是 |    |空 |      |
|verify_complete |日期时间 |是 |    |空 |      |
|retry_count |整数(11) |是 |    |空 |      |
|error_message |瓦查尔(2048) |是 |    |空 |      |
|is_source_deleted |整数(11) |是 |    |空 |      |
|source_md5 |瓦查尔(32) |是 |    |空 |      |
+-------------------+---------------+------+-----+---------+-------+
14 行集合(0.00 秒)

MariaDB [ecs_sync]>

 

(其中 <table_name> 是现有表的名称)。

Affected Products

ECS
Article Properties
Article Number: 000081990
Article Type: Solution
Last Modified: 18 Apr 2026
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.