Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syncoid error - failed: 256 at /usr/sbin/syncoid line 817 #681

Closed
peter-held opened this issue Oct 4, 2021 · 2 comments
Closed

syncoid error - failed: 256 at /usr/sbin/syncoid line 817 #681

peter-held opened this issue Oct 4, 2021 · 2 comments

Comments

@peter-held
Copy link

Hi,

after upgrading the operating system from ubuntu 18.04 to ubuntu 20.04 I started to receive this error:

cannot receive: failed to read from stream
CRITICAL ERROR: ssh   -p 11122  -S /tmp/syncoid-replication__@ve1.domain.dom-1633201503 replication__@ve1.domain.dom 'sudo zfs send  -I '"'"'rpool/ROOT/ubuntu'"'"'@'"'"'autosnap_2021-10-02_18:00:05_hourly'"'"' '"'"'rpool/ROOT/ubuntu'"'"'@'"'"'autosnap_2021-10-02_19:00:15_hourly'"'"' | gzip -3 | mbuffer  -q -s 128k -m 16M 2>/dev/null' | mbuffer  -q -s 128k -m 16M 2>/dev/null | zcat  | sudo zfs receive  -s -F 'rpool/backup/ve1.domain.dom/rpool/ROOT/ubuntu' 2>&1 failed: 256 at /usr/sbin/syncoid line 817.

When running with '--debug' the output is:



DEBUG: SSHCMD: ssh   -p 11122 
DEBUG: checking availability of gzip on source...
DEBUG: checking availability of gzip on target...
DEBUG: checking availability of gzip on local machine...
DEBUG: checking availability of mbuffer on source...
DEBUG: checking availability of mbuffer on target...
DEBUG: checking availability of pv on local machine...
DEBUG: checking availability of zfs resume feature on source...
DEBUG: checking availability of zfs resume feature on target...
DEBUG: recursive sync of rpool/ROOT/ubuntu.
DEBUG: getting list of child datasets on rpool/ROOT/ubuntu using ssh   -p 11122  -S /tmp/syncoid-replication__@ve1.domain.dom-1633199703 replication__@ve1.domain.dom sudo zfs list -o name,origin -t filesystem,volume -Hr ''"'"'rpool/ROOT/ubuntu'"'"'' |...
DEBUG: syncing source rpool/ROOT/ubuntu to target rpool/backup/ve1.domain.dom/rpool/ROOT/ubuntu.
DEBUG: getting current value of syncoid:sync on rpool/ROOT/ubuntu...
ssh   -p 11122  -S /tmp/syncoid-replication__@ve1.domain.dom-1633199703 replication__@ve1.domain.dom sudo zfs get -H syncoid:sync ''"'"'rpool/ROOT/ubuntu'"'"''
DEBUG: checking to see if rpool/backup/ve1.domain.dom/rpool/ROOT/ubuntu on  is already in zfs receive using  ps -Ao args= ...
DEBUG: checking to see if target filesystem exists using " sudo zfs get -H name 'rpool/backup/ve1.domain.dom/rpool/ROOT/ubuntu' 2>&1 |"...
DEBUG: getting current value of receive_resume_token on rpool/backup/ve1.domain.dom/rpool/ROOT/ubuntu...
 sudo zfs get -H receive_resume_token 'rpool/backup/ve1.domain.dom/rpool/ROOT/ubuntu'
DEBUG: no receive token found 
DEBUG: getting list of snapshots on rpool/ROOT/ubuntu using ssh   -p 11122  -S /tmp/syncoid-replication__@ve1.domain.dom-1633199703 replication__@ve1.domain.dom sudo zfs get -Hpd 1 -t snapshot guid,creation ''"'"'rpool/ROOT/ubuntu'"'"'' |...
DEBUG: getting list of snapshots on rpool/backup/ve1.domain.dom/rpool/ROOT/ubuntu using  sudo zfs get -Hpd 1 -t snapshot guid,creation 'rpool/backup/ve1.domain.dom/rpool/ROOT/ubuntu' |...
DEBUG: getting current value of -p used on rpool/backup/ve1.domain.dom/rpool/ROOT/ubuntu...
 sudo zfs get -H -p used 'rpool/backup/ve1.domain.dom/rpool/ROOT/ubuntu'
DEBUG: checking to see if rpool/backup/ve1.domain.dom/rpool/ROOT/ubuntu on  is already in zfs receive using  ps -Ao args= ...

Both on source and destination a normal user 'replication__' is used. The commands are allowed in sudo.

The snapshots seems to be fine, they are not missing.

I'm using sanoid-2.1.0. Also with previous version I get the same error but on a different line number.

Any help with this ?

Thanks.

@Darkyere
Copy link

Its a miss match of ZFS userspace tools and kernel module in 5.11.

Have a look here and see if it matches ur case.

Syncing Issue (Possible duplicate of 678 681 - but my setup is different so didt think i should write it there)


Plz. go to this page and vote this is a problem for you too if u read this post.

When using HWE, zfs-kmod and zfs user tools versions must match

@peter-held
Copy link
Author

Yes, this seems to be the problem.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants