-
Notifications
You must be signed in to change notification settings - Fork 4
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
SFTP server requires re-authentication during rsync #4
Comments
The real issue is that sshfs crashes with "sshfs(45716,0x100381000) malloc: *** error for object 0x10041da90: pointer being freed was not allocated" I would like to understand why it crashes. Is there any repro case for the issue? I just mounted sshfs locally with the same flags as you and copied a few large files (~100Mb each) - everything looks fine fo me. I think I saw something similar to your crash message during early stages of "simple-lock" development. But that issue has been fixed already. I wonder if you use development version of fuse4x. If so - please try the latest development build http://dl.dropbox.com/u/3842605/Fuse4X-0.10.0-beta.dmg BTW there is no reason to abandon MacFusion.app. Fuse4X (the binary package) works perfectly fine with MacFusion. |
Thanks. I wanted to make sure the underlying structure was working properly before I used I gui to mediate the mounting. I saw the tricks for linking sshfs in MacFuse. I tried the version you indicated, rebooted, and I'm still getting the issue. I don't see the error you indicated. If I am watching the process and type my password in, it reconnects and I can restart the rsync, but it invariably fails before completing. The total directory size is only 34mb, which seems pretty small. I will say that the throughput, before crashing, seems much faster than the old MacFuse. Is there anything additional I can send? |
It is in the middle of the debug log you provided. So what you are doing? Could you please provide sequence of commands you are running (no need for usernames/real server names). Are you mounting sshfs and then sync the mounted folder with a local folder? If so then you do not need to mount sshfs - rsync works perfectly fine over ssh. sshfs should not crash in any case though and it should be fixed. |
OK, I see it in the old log, but not in the logs created since updating fuse4x. I can't do rsync directly against the server in question as I don't have full secure shell access, only SFTP. Because the old MacFuse/MacFusion.app was able to work around that limitation, I had hopes I'd be able to leverage fuse4x/sshfs in the same way. You're guess is correct. I'm trying to mount the remote server, and then perform rsync activity between the remote system and a local copy. My commands: sshfs [email protected]:/directory/path ~/localmount -o auto_cache,reconnect,defer_permissions,noappledouble,auto_xattr,debug rsync -rtPv --exclude-from=/myexclude.txt ~/localcopy/ ~/remotecopy/ rsync show error:
sshfs shows:
Is there anything else I can send |
Could you please show me output of 'sysctl vfs.generic.fuse4x' when sshfs is running? Also could you please run sshfs in a single-thread mode (add "-s" parameter) and show me its output - I want to see what is the first failed command. After that try to run sshfs with bigger iosize (e.g. iosize=1048576) - this will reduce number of write operations to sshfs. |
Results of sysctl vfs.generic.fuse4x
Running in single thread output: rdavies3@RogOMac:~>sshfs USER@server:/dir ~/mycms -s -o auto_cache,reconnect,defer_permissions,noappledouble,auto_xattr,debug |
The log is not complete - it seems it is cut in the middle. Feel free to send the log to my personal mailbox == anatol dot pomozov at gmail |
I am a recent convert from MacFuse/ MacFusion.app to Fuse4x/sshfs. I have an SFTP server which used to mount just fine with the old regime, and it worked (usually) just fine with rsync file syncing. I'm mounting with:
sshfs [email protected]:/directory/path ~/localmount -o auto_cache,reconnect,defer_permissions,noappledouble,auto_xattr,debug
The mount is fine, and I'm able to copy individual, small files without issue. With larger files, or with rsync, everything starts out fine, but then I start getting:
unique: 0, opcode: LOOKUP (1), nodeid: 4, insize: 59
LOOKUP /myuser/sql/asu_wf_app_pkg.sql
getattr /myuser/sql/asu_wf_app_pkg.sql
remote host has disconnected
write: Bad file descriptor
write: Bad file descriptor
unique: 0, error: -5 (Input/output error), outsize: 16
sshfs(45716,0x100381000) malloc: *** error for object 0x10041da90: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
unique: 0, opcode: LOOKUP (1), nodeid: 4, insize: 55
LOOKUP /myuser/sql/asu_wf_ptr.sql
getattr /myuser/sql/asu_wf_ptr.sql
This FTP site is for use only by customers of HostingCompanyRUs. All transactions are logged. If you disagree with this policy, please log off now. Warning: Unauthorized access to this computer system is prohibited and is subject to crimnal and civil penalties.Authenticated with partial success.
Authenticated with partial success.
[email protected]'s password: Abort trap
me@MyMac:~>
Permission denied, please try again.
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Permission denied ().
Public key authentication isn't supported on this server. Is there something I can do to reduce the re-authentication issue?
The text was updated successfully, but these errors were encountered: