[root@localhost MaxKB-v1-to-v2-migrator-1.0.1]# docker restart maxkb
maxkb
[root@localhost MaxKB-v1-to-v2-migrator-1.0.1]# bash export_v1_data.sh maxkb
=== MaxKB v1 数据导出脚本 ===
[信息] 使用指定的容器: maxkb
[确认] 目标容器: maxkb
[步骤1] 复制迁移工具到v1容器…
Successfully copied 173kB to maxkb:/opt/maxkb/app/v1-to-v2-migrator
[完成] 迁移工具复制完成
[步骤2] 在v1容器中导出数据…
导出应用: 100%|██████████| 5/5 [00:00<00:00]
导出应用工作流历史版本: 100%|██████████| 2/2 [00:00<00:00]
导出应用Apikey: 0%| | 0/0 [00:00<?]
导出应用访问限制配置: 100%|██████████| 5/5 [00:00<00:00]
导出应用客户端信息: 100%|██████████| 208/208 [00:00<00:00]
导出对话日志: 100%|██████████| 97/97 [00:00<00:00]
导出对话日志记录: 100%|██████████| 143/143 [00:00<00:00]
导出应用与知识库的关联关系: 100%|██████████| 19/19 [00:00<00:00]
导出知识库: 100%|██████████| 9/9 [00:00<00:00]
导出文档: 100%|██████████| 438/438 [00:00<00:00]
导出段落: 100%|██████████| 7283/7283 [00:00<00:00]
导出问题: 100%|██████████| 11377/11377 [00:00<00:00]
导出问题段落关联关系: 100%|██████████| 11456/11456 [00:00<00:00]
导出文件: 0%| | 0/0 [00:00<?]
导出图片: 0%| | 0/398 [00:00<?]
Traceback (most recent call last):
File “/opt/maxkb/app/v1-to-v2-migrator/migrate.py”, line 42, in
export()
File “/opt/maxkb/app/v1-to-v2-migrator/exporter/init.py”, line 34, in export
knowledge_export()
File “/opt/maxkb/app/v1-to-v2-migrator/exporter/knowledge_export.py”, line 126, in export
page(QuerySet(Image), 10, image_export, “image”, “导出图片”)
File “/opt/maxkb/app/v1-to-v2-migrator/commons/util.py”, line 92, in page
handler(data_list, source_name, current_page)
File “/opt/maxkb/app/v1-to-v2-migrator/exporter/knowledge_export.py”, line 99, in image_export
save_batch_file(batch_data, source_name, current_page)
File “/opt/maxkb/app/v1-to-v2-migrator/commons/util.py”, line 150, in save_batch_file
pickle.dump(data_list, f)
TypeError: cannot pickle memoryview objects
[错误] 数据导出失败