Open drimmeer opened 6 days ago
Are you trying to receive the files from a remote z/OS ssh implementation? Or from our server implementation?
Do you have any logs from the z/OS machine’s ssh about the packets?
Could you maybe try out the v2
branch? The NewClient
call changes slightly, and doesn’t take any options yet. Though, it definitely won’t need either of the WithConcurrentXY
calls in the future, but I’ll probably need to adjust it to fit the MaxConcurrentRequestsPerFile
design principle for your needs. Right now, it just has a global maximum of in-flight packets, and it’s hardcoded to 64. (YAGNI principle, don’t build a feature until there’s a real-world need.)
If the two implementations differ somehow, that could be a hint into what’s breaking…
Thank you for the response.
Yes, I am trying to receive the files from a remote z/OS ssh implementation.
I managed to capture the sshd log on debug level, on the remote z/OS, and attach it here. The log for receiving files from z/OS to z/OS (which was failed): server.debuglog.receive.part.txt
The log for sending files from z/OS to z/OS (which was successful): server.debuglog.send.part.txt
go: github.com/pkg/sftp@v2: no matching versions for query "v2"
Hi Cassondra , good news!
After I took the master branch, the problem is gone!
Don't know why, but 'go get github.com/pkg/sftp
' got the 1.13.6 version, which doesn't have the z/OS support now! while 'go get github.com/pkg/sftp@master
' got the 1.13.7 version, which has the z/OS support.
So 1.13.7 solved the problem!
Huh, it could be that you already had the v1.13.6
version local, so it just used the cached value. 🤔
Please help! I just realized that when I ran the code on a z/OS to receive a file from another z/OS, it always failed when trying to open the sftpClient, with error message: _sftp: "Bad message" (SSH_FX_BADMESSAGE)
Please note that sending file from z/OS to z/OS is successful; And receiving/sending file between Linux and z/OS is also successful!
I tested this on 4 z/OS machines already...
I am using the 'master' branch, which is v1.13.6
Here is the related code: