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

sshfs on macOS High Sierra (10.13) #421

Closed
iphoneintosh opened this issue Sep 26, 2017 · 8 comments
Closed

sshfs on macOS High Sierra (10.13) #421

iphoneintosh opened this issue Sep 26, 2017 · 8 comments

Comments

@iphoneintosh
Copy link

Mounting a directory with sshfs in macOS High Sierra (10.13) on an APFS File System and opening that directory in Finder results in the following error: LSOpenURLsWithRole() failed with error 5 for the file PATH TO DIR.

However, navigating via terminal in that mounted directory still works. Just cannot open the mounted directory in Finder.

@devavret
Copy link

devavret commented Oct 7, 2017

Can you check that the path where you're mounting has no illegal character. I had the exact same issue. In my case, I was mounting in a folder that was inside a hidden folder (/Users/deva/.sshfs/folder1) and renaming .sshfs to sshfs fixed it.

@iphoneintosh
Copy link
Author

Mounting a directory via sshfs on macOS High Sierra (17A405) now works without any problems. Don't really know what happened but issue seems to be fixed now. Thanks for your advise. But it now works even with illegal characters, so mounting in a .sshfs directory should work now.

@svalgaard
Copy link

I had the exact same issue and no illegal characters involved. Reboot did not help.
Reinstalling sshfs from macports made it work again.

@hasibahmed
Copy link

For me, reinstalling osxfuse and sshfs didn't do it, required a reboot too.

@hasibahmed
Copy link

Hi, this is back again, reinstalling osxfuse / rebooting didn't help. Any ideas ?

@aristako
Copy link

aristako commented Jun 1, 2018

Throwback, but one of the options specified here made the problem go away for me. Good luck!

@cameron-simpson
Copy link

cameron-simpson commented Nov 30, 2018

I have just spent some time with this error "LSOpenURLsWithRole() failed with error 5", and have devised a workaround for my particular case. I'm working on a Python implemented filesystem via llfuse and osxfuse behind that.

I've been opening the mounted filesystem with "open /path/to/mountpoint" and getting the cited error message.

The Finder does a getxattr of "com.apple.FinderInfo"; returning an empty attribute value or raising OS error ENOATTR causes the error message. My horrible workaround for now is that if the requested attribute is not present and the attribute name is "com.apple.FinderInfo", return the errno ENOTSUP, indicating that extended attributes are not supported (a lie!).

That has been sufficient to get MacOS file dialogues working again for me.

@cameron-simpson
Copy link

... and now I'm back to the same error message. So this is not a fix or workaround :-(

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

6 participants