You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
File upload to Akamai NetStorage causes error "SSH_FX_BAD_MESSAGE" #4015
Connecting to Akamai NetStorage (Akamai Storage in the cloud) via SSH. Can login and browse files successfully. When I drap and drop a file from the Finder in to cyberduck, the upload process connects and then errors out with the following
Bad message (SSH_FX_BAD_MESSAGE: A badly formatted packet or other SFTP protocol incompatibility was detected.).
No information is available in the trace window
Note that I can upload correctly on same machine to same host using Filezilla
I have written an email to [ccare@akamai.com] about this.
Anyway I can help out ? I dig cyberduck and this is a feature I could really use.
I tried checking out the code but couldn't figure out anyway to debug the Java stuff which seems to be the interesting part.
I did manage to upload a file with a simple project that uses Ganymed, so it doesn't seem to be broken in there.
Anyway I can help out ? I dig cyberduck and this is a feature I could really use.
I tried checking out the code but couldn't figure out anyway to debug the Java stuff which seems to be the interesting part.
I did manage to upload a file with a simple project that uses Ganymed, so it doesn't seem to be broken in there.
That is interesting. How does your setup of Ganymed differ from what you can find in [source:trunk/source/ch/cyberduck/core/sftp/SFTPSession.java SFTPSession]?
That is interesting. How does your setup of Ganymed differ from what you can find in [source:trunk/source/ch/cyberduck/core/sftp/SFTPSession.java SFTPSession]?
Hard to say, my code is only about 10 lines long. All it does is create a connection, do public key auth then create a client and call put() on that client. Is there anyway I can debug the Java code / Instantiate SFTP Session without too much hassle ? There seems to be a buch of dependencies on preferences and so on.
To debug Cyberduck, build it as usual but copy the file Info.plist.debug to build/Release/Cyberduck.app/Contents/Info.plist. You can then attach the Java remote debugger to port 5005`.
So enabling logging only got me an "Upload failed" trace, but debugging got me a bit further (?).
The problem seems to happen in SFTPv3Client.java here.
The code expects a type of SSH_FXP_HANDLE but is getting a value of 101, so SSH_FXP_STATUS. I don't know about the protocol so this doesn't help me. Maybe you have an idea / tip ?
In the meanwhile I'll try to see how that execution differs from my lightweight test.
It seems that my test only uses SCPClient and never SFTPv3Client, the latter seems to be a more complex implementation (and experimental according to the javadoc).
Found the problem! This is it.
The remote file is created with read/write permissions (0x3), and akamai apparently only allows write. So If I replace that with 0x2 for write-only, I can upload fine.
My guess is you don't need read-write anyway, if you're creating/truncating a file, why would you read it ?
Can we incorporate a fix for the next release ? That'd be great.
Found the problem! This is it.
The remote file is created with read/write permissions (0x3), and akamai apparently only allows write. So If I replace that with 0x2 for write-only, I can upload fine.
My guess is you don't need read-write anyway, if you're creating/truncating a file, why would you read it ?
Can we incorporate a fix for the next release ? That'd be great.
I am hesitant to change this as it might break compatiblity with other servers.
Activity
cyberduck commentedon Jan 6, 2010
Same issue here, can't upload to akamai over sftp
cyberduck commentedon Jan 7, 2010
I would need a test account at Akamai to debug this issue.
cyberduck commentedon Jan 7, 2010
I can take care of this
cyberduck commentedon Jan 8, 2010
Replying to [comment:4 graeme@…]:
I have written an email to [ccare@akamai.com] about this.
cyberduck commentedon Jan 19, 2010
Replying to [comment:5 dkocher]:
cyberduck commentedon Jan 19, 2010
Replying to [comment:6 paul167@…]:
That is interesting. How does your setup of Ganymed differ from what you can find in [source:trunk/source/ch/cyberduck/core/sftp/SFTPSession.java SFTPSession]?
cyberduck commentedon Jan 22, 2010
Replying to [comment:7 dkocher]:
cyberduck commentedon Jan 22, 2010
Before trying to debug it might also help to look closer at the log. Using defaults in Terminal.app set the logging level of Cyberduck to
debug:cyberduck commentedon Jan 22, 2010
To debug Cyberduck, build it as usual but copy the file
Info.plist.debugtobuild/Release/Cyberduck.app/Contents/Info.plist. You can then attach the Java remote debugger to port5005`.cyberduck commentedon Jan 28, 2010
So enabling logging only got me an "Upload failed" trace, but debugging got me a bit further (?).
The problem seems to happen in SFTPv3Client.java here.
The code expects a type of SSH_FXP_HANDLE but is getting a value of 101, so SSH_FXP_STATUS. I don't know about the protocol so this doesn't help me. Maybe you have an idea / tip ?
In the meanwhile I'll try to see how that execution differs from my lightweight test.
cyberduck commentedon Jan 28, 2010
It seems that my test only uses SCPClient and never SFTPv3Client, the latter seems to be a more complex implementation (and experimental according to the javadoc).
cyberduck commentedon Jan 28, 2010
Found the problem! This is it.
The remote file is created with read/write permissions (0x3), and akamai apparently only allows write. So If I replace that with 0x2 for write-only, I can upload fine.
My guess is you don't need read-write anyway, if you're creating/truncating a file, why would you read it ?
Can we incorporate a fix for the next release ? That'd be great.
cyberduck commentedon Jan 28, 2010
Replying to [comment:13 paul167@…]:
I am hesitant to change this as it might break compatiblity with other servers.
cyberduck commentedon Jan 28, 2010
Any chance we could beta test this? Or find a different way to incorporate this like a bookmark option ?
cyberduck commentedon Jul 23, 2010
In 3b0432f. Please test with the snapshot build available later today at (http://update.cyberduck.ch/nightly/).
cyberduck commentedon Jul 25, 2010
Replying to [comment:16 dkocher]:
Yep works.