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--!物件 DNVBT3VHL1NE1e2NMV9CJDMQV5FG41BCFNF5EM0AC0A4KU05821DC 失敗
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 | 瓦爾查爾(54) |否 |普瑞 |空 |      |
|target_id |瓦爾查爾(54) |是 |    |空 |      |
|is_directory |國際(11) |否 |    |空 |      |
|尺寸 |比金特(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 | 瓦爾查爾(54) |否 |普瑞 |空 |      |
|target_id |瓦爾查爾(54) |是 |    |空 |      |
|is_directory |國際(11) |否 |    |空 |      |
|尺寸 |比金特(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.