3 weeks ago
Hi,
I encountered an issue while sending a .zip file to the target SFTP. To explain the scenario in brief, I was storing the .zip file in Workato file storage, and from there, attempting to send it to the target SFTP. However, when sending directly, I received the error "connection reset by peer".
As a workaround, I chose to uncompress the file, then compress it again, and send it to the target SFTP. This approach worked, but significantly increased my task consumption.
Is there an alternative method to transfer .zip files directly from the source SFTP to the target SFTP without these additional steps?
Regards,
Dinesh
3 weeks ago - last edited 3 weeks ago
Hi @dinesh_c,
I just need to confirm—are you facing this error only with .zip files, or with other file types as well (like .csv or .json)?
I tested with both .csv and .zip files, and I was able to upload them successfully to the target SFTP folder. Please refer to the screenshots below, and if needed, we can discuss this further.checking whether file exists or not
upload into SFTP
Get ZIP File from File storage
Even I have tried with reading file from one SFTP and loading into another SFTP as well.
3 weeks ago
Hi @rajeshjanapati ,
Thank you for your response. I was experiencing issues specifically with .zip files. These .zip files were created directly on the source server and stored in the file storage for transfer.
In your case, I believe you manually created the file on your local system and then zipped it, correct? If so, that method may work in some cases. However, when the file originates from the source server, I was unable to transfer it successfully.
Please correct me if I’m mistaken.
3 weeks ago
Yes, @dinesh_c, I have created a zip file and uploaded it to file storage from the local system itself. However, I have even tried reading the file from SFTP directly and loading it into another SFTP; in that case, it worked fine for me. Also will you check with a smaller zip file rather than a larger size file once?
3 weeks ago
@rajeshjanapati I have tried with a smaller and larger file size of 2MB and 22MB files. Not sure there is any process involved while compressing the .zip files from a particular server to server.