Skip to content

When I use fastGet times error: sftp: Can not skip back in messages #1434

Closed
@StrongerLph

Description

When I use this tool library to back up files from a shared directory on a remote server to a locally specified directory, this error occurs:

Error: fastGet->sftp: Can not skip back in messages. Remote: \OUT\Euroclear - R20 - ALL (LUNCH) - 04Dec2024-063007.TXT Local: C:\Report\SFTP_Automation\R20\Euroclear - R20 - ALL (LUNCH) - 04Dec2024-063007.TXT

I have no way to provide a reproducible environment because this is a production environment issue, of course, most of the time it works fine, only occasionally this error occurs. I'm not sure what caused the problem, I tried Googling the topic but found no useful answers. Has anyone encountered the same problem and solved it?

ssh2-sftp-client: v10.0.3
ssh2: v1.15.0
node: v18+

Activity

mscdex

mscdex commented on Dec 16, 2024

@mscdex
Owner

Probably a buggy/incomplete SFTP implementation on the remote side. For that server you'd probably have to use something like createReadStream() instead of fastGet() so that it always reads sequentially instead of possibly out-of-order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      When I use fastGet times error: sftp: Can not skip back in messages · Issue #1434 · mscdex/ssh2