Skip to content

syncup总是发生MD5 hash比对不一致错误 #711

@george-world

Description

@george-world

Discussed in #710

Originally posted by george-world January 11, 2025
各位前辈大拿

我用以下代码同步wordpress的备份文件,但是总是发生MD5比对错误,是因为上传的文件太大了吗?有什么解决方法?

python 代码片段

        # Perform the sync operation
        result = self.bypy.syncup(self.local_dir, self.remote_dir, deleteremote=True)

代码全文
baidupan_util.py.txt
baidupan_sync.py.txt

执行方式
pipenv run python3 baidupan_sync.py wp-content/updraft/ /updraft_tapioca_com_cn

系统环境

$ cat /etc/os-release
NAME="Alibaba Cloud Linux"
VERSION="3 (OpenAnolis Edition)"
ID="alinux"
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="3"
VARIANT="OpenAnolis Edition"
VARIANT_ID="openanolis"
ALINUX_MINOR_ID="2104"
ALINUX_UPDATE_ID="10"
PLATFORM_ID="platform:al8"
PRETTY_NAME="Alibaba Cloud Linux 3.2104 U10 (OpenAnolis Edition)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"

$ pipenv run python3 --version
Python 3.12.0

错误对象上传文件

-rw-r--r-- 1 www www  29M Jan  9 18:27 backup_2025-01-09-1901_testtest_0b4b03972af9-themes.zip
-rw-r--r-- 1 www www  29M Jan  9 18:26 backup_2025-01-09-1901_testtest_0b4b03972af9-uploads.zip
-rw-r--r-- 1 www www  25M Jan  9 21:52 backup_2025-01-09-2152_wwwtesttestcomcn_825a20bccffb-themes.zip
-rw-r--r-- 1 www www  26M Jan  9 21:52 backup_2025-01-09-2152_wwwtesttestcomcn_825a20bccffb-uploads.zip
-rw-r--r-- 1 www www  25M Jan 10 15:40 backup_2025-01-10-1539_wwwtesttestcomcn_377ae4b6d3e2-themes.zip
-rw-r--r-- 1 www www  26M Jan 10 15:40 backup_2025-01-10-1539_wwwtesttestcomcn_377ae4b6d3e2-uploads.zip

log片段

Deletion request '247770017445518689' OK
Use 'list' command to confirm
Combining the following MD5 slices:
83c93365ac45e743b139196840b80f97
61c7812ebe793a174285c1168dc90f7f
<I> [16:23:36] Local and remote file hash DOESN'T match
<E> [16:23:36] '/www/wwwroot/testtest.com.cn/wp-content/updraft/backup_2025-01-09-1901_testtest_0b4b03972af9-uploads.zip' =C=> '/apps/bypy/updraft_testtest_com_cn/backup_2025-01-09-1901_testtest_0b4b03972af9-uploads.zip' FAILED.

log全文
20250111.log
另一次log全文
20250111_另一次.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions