Trouble accessing over SSH since 1.5.2 update

All your general support questions for OpenZFS on OS X.

Trouble accessing over SSH since 1.5.2 update

Postby jmerrifield » Mon May 30, 2016 10:43 am

Hi

Since upgrading to 1.5.2 I'm experiencing an error when using zfs over an SSH connection:
Code: Select all
$ ssh jon@jon-macmini zfs list
internal error: Unknown error: -22


The following works:
Code: Select all
ssh jon@jon-macmini.local "bash -l -c \"zpool list\""


When trying to send a dataset over SSH the errors are different (the backup destination definitely exists on the target machine):
Code: Select all
$ zfs send -i tank/mydata@2016-03-16 tank/mydata@2016-05-19 | ssh jon@jon-macmini.local zfs receive -uF tank/mydata
cannot receive incremental stream: destination 'tank/mydata' does not exist
warning: cannot send 'tank/mydata@2016-05-19': signal received


Code: Select all
$ zfs send -i tank/mydata@2016-03-16 tank/mydata@2016-05-19 | ssh jon@jon-macmini.local "bash -l -c \"zfs receive -uF tank/mydata\""
cannot receive incremental stream: permission denied
warning: cannot send 'tank/mydata@2016-05-19': signal received


Sending and receiving machines are both running OS X 10.11.5 and O3X v1.5.2

Any ideas? Thanks!
jmerrifield
 
Posts: 2
Joined: Mon May 30, 2016 10:32 am

Re: Trouble accessing over SSH since 1.5.2 update

Postby lundman » Mon May 30, 2016 6:37 pm

Could it be you have more than one 'zfs' command, as in, one in /usr/bin, and one in /usr/local/bin ?
User avatar
lundman
 
Posts: 1337
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Trouble accessing over SSH since 1.5.2 update

Postby jmerrifield » Thu Jun 02, 2016 8:54 am

Good call! Yes, that's exactly what was happening. I have a copy that works in /usr/local/bin and a copy that doesn't work in /usr/sbin. The path that my SSH commands were seeing did not include /usr/local/bin so they never could have found the working version.

I was able to get it working by adding this to .bashrc:

Code: Select all
export PATH="/usr/local/bin:$PATH"


Do you know if O3X suddenly started installing binaries to a different location? I can't actually remove the version in /usr/sbin but suspect I might have to boot into recovery mode and disable SIP.

Thanks for the assistance!
jmerrifield
 
Posts: 2
Joined: Mon May 30, 2016 10:32 am

Re: Trouble accessing over SSH since 1.5.2 update

Postby incumbent » Thu Jun 02, 2016 9:36 am

At some point it moved to /usr/local and /Library which would be required for interoperability with SIP as you noted. I noticed it a while back with switching to HEAD from release (and then back again).

Disabling SIP will let you remove the old stuff in /usr, I wonder if the 1.5.2 installation package would have done that for you if it could?
incumbent
 
Posts: 40
Joined: Mon Apr 25, 2016 8:52 am


Return to General Help

Who is online

Users browsing this forum: No registered users and 50 guests