明道云 版本 6.5.5. A 服务器中通过 ## dump 方式 备份 xxx.tar.gz. 将备份文件复制到 B 服务器中。以教程的方式执行恢复操作。当执行到步骤
- 创建 bucket
source /entrypoint.sh && fileInit &
时,报错
root@4908f901f565:/# source /entrypoint.sh && fileInit &
[3] 2410
root@4908f901f565:/# + mkdir -p /init/file/tmp/
+ tar -zxf /init/file/init/file_init.tar.gz -C /init/file/tmp/
tar (child): /init/file/init/file_init.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
+ rm -rf /init/file/tmp/data/.minio.sys
+ mc config host add file http://sc:9000 mdstorage eBxExGQJNhGosgv5FQJiVNqH
mc: <ERROR> Unable to initialize new alias from the provided credentials. Get "http://sc:9000/probe-bsign-afzqydmld3d1xd6p42p9qzjy3q1551/?location=": dial tcp 127.0.0.1:9000: connect: connection refused.
+ mc config host add file http://sc:9010 mdstorage eBxExGQJNhGosgv5FQJiVNqH
Added `file` successfully.
+ mc mb file/mdmedia file/mdoc file/mdpic file/mdpub
mc: <ERROR> Unable to make bucket `file/mdmedia`. Your previous request to create the named bucket succeeded and you already own it.
mc: <ERROR> Unable to make bucket `file/mdoc`. Your previous request to create the named bucket succeeded and you already own it.
mc: <ERROR> Unable to make bucket `file/mdpic`. Your previous request to create the named bucket succeeded and you already own it.
mc: <ERROR> Unable to make bucket `file/mdpub`. Your previous request to create the named bucket succeeded and you already own it.
++ mc find file/mdpic/ProjectLogo --name favicon.png
+ '[' -n file/mdpic/ProjectLogo/favicon.png ']'
+ rm -f /init/file/tmp/data/mdpic/ProjectLogo/favicon.png
+ mc cp --recursive /init/file/tmp/data/ file/
mc: <ERROR> Unable to prepare URL for copying. Unable to guess the type of copy operation.
+ rm -rf /init/file/tmp/
+ set +x
经过排查, 发现是脚本 entrypoint.sh 中 tar -zxf /init/file/init/file_init.tar.gz -C /init/file/tmp/ 这一行报错。 此时检查 docker 文件 发现没有文件 init/file/init/file_init.tar.gz; 最终忽略此处错误继续后续操作。发现 B 服务器中,并没有 A 服务器中所建的应用。但是账号登录方面与 A 服务器同步了。