juicedata / juicesync

A tool to move your data between any clouds or regions.
Apache License 2.0
591 stars 56 forks source link

Failed to launch workers while sync data from a S3Compatible storage to another #134

Closed younger8586 closed 1 year ago

younger8586 commented 1 year ago

What happened: (1) exe. command: juicesync --worker 192.168.12.14 --threads 50 --no-https s3:/ABCD:EFGH@juice./test/ s3:/ABCD:EFGH@juice./test1/ (2) results: 2022/12/13 22:33:59.297285 juicefs[3272093] : Syncing from s3://juice/test/ to s3://juice/test3/ [sync.go:619] 2022/12/13 22:33:59.900130 juicefs[3272093] : Listen at 192.168.12.10:46817 [cluster.go:195] 2022/12/13 22:34:00.103541 juicefs[3272093] : launch a worker on 192.168.12.14 [cluster.go:270] Scanned objects count: 0 / 2000 [--------------------------------------------------------------] 0 % 0s Copied objects count: 0 0.00/s ⠧
Scanned objects count: 8547 / 8547 [==============================================================] done
Copied objects count: 8547 26.54/s
Copied objects bytes: 375.96 GiB (403679646720 Bytes) 1.17 GiB/s
Checked objects bytes: 0.00 b (0 Bytes) 0.00 b/s
Deleted objects count: 0 0.00/s
Skipped objects count: 0 0.00/s
Failed objects count: 0 0.00/s
2022/12/13 22:39:21.331453 juicefs[3272093] : Found: 8547, copied: 8547 (375.96 GiB), checked: 0 B, deleted: 0, skipped: 0, failed: 0 [sync.go:892]

There are some 'juicesync' threads on 192.168.12.10, but no 'juicesync' threads on 192.168.12.14。

The worker does not work。

What you expected to happen: distributed sync

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?

Environment:

younger8586 commented 1 year ago

If parameter --verbose is added in command, 'juicesync' threads can run on these nodes (workers)。

zhijian-pro commented 1 year ago

It seems that you are using the juicesync repo. We recommend juicefs sync for now. Can you try juicefs sync to see if this problem also exists? juicefs sync doc: https://juicefs.com/docs/community/guide/sync/

younger8586 commented 1 year ago

It seems that you are using the juicesync repo. We recommend juicefs sync for now. Can you try juicefs sync to see if this problem also exists? juicefs sync doc: https://juicefs.com/docs/community/guide/sync/

yeah, juicefs sync is ok, no problem. The bug should be only in juicesync.