-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
Description
If I run a script in crontab using blocksync with --workers it always fails:
Traceback (most recent call last):
File "/root/bin/blocksync.py", line 415, in <module>
sync(i, srcdev, dsthost, dstdev, options)
File "/root/bin/blocksync.py", line 318, in sync
p_in.write(DIFF)
IOError: [Errno 32] Broken pipe
Traceback (most recent call last):
File "/root/bin/blocksync.py", line 431, in <module>
os.kill(pid, signal.SIGTERM)
OSError: [Errno 3] No such process
Environment:
- Ubuntu 16.04 LTS Server
- Using kpartx to create a block device from an image file
- Command:
/root/bin/blocksync.py '--extraparams=-p 2222' --cipher=aes256-ctr --blocksize=4194304 --workers=2 --script=/root/bin/blocksync.py /dev/loop1 root@example.com /srv/libvirt_images/myserver.root.img