seaweedfs: Some files are corrupted when I copy from local to weed mount directory and Vice versa.

Describe the bug Files like vides and images corrupted when I copy from lcoal to weed mount dir and vice versa. I encountered this problem in a kubernetes cluster first ,but its reproduceable in host machine ,so I describe the steps out of cluster as blow.

System Setup

  • CentOS Linux release 7.7.1908 (Core)
  • Kernel: Linux 3.10.0-957.el7.x86_64
  • Weed version 30GB 1.70 linux amd64(1.55 also)
  • Fuse: fuse-2.9.2-11.el7.x86_64
  • Weed setup command ./weed server -filer=true -ip="0.0.0.0" -dir=/root/ljh/tmp/vol ./weed mount -filer=localhost:8888 -dir=/root/ljh/tmp/base

Problem After base system setup like above,just do cp opteration from local to mounted dir(/root/ljh/tmp/base).Now md5sum values are different between origin file and that one copyed to filer. If you copy that file from mounted dir to local,the thrid md5sum value generated.The end of the file is truncated if you copy out from mounted dir. I use beyond4compare to get this result.

Expected behavior File keep the same after copy in / out from filer.

Screenshots I use md5sum for file checking.

Additional context I have tested this problem on other machine which booted with Ubuntu and Centos7 ,they work as expected.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 21

Most upvoted comments

Actually you do not need to follow my steps. I was just showing how to make it reproducible.