Skip to content

SFTP connection timeout causing archiving step failure #24

@mmoratille

Description

@mmoratille

Description

When an import process exceeds the SFTP connection timeout duration (in our case, it's 60 minutes), the archiving step fails. This suggests that the session is closed by the server before the file transfer/move operation is completed.

Error log example:

[2026-03-31T05:39:44.267821+02:00] cleverage_process_task.CRITICAL: Expected NET_SFTP_HANDLE or NET_SFTP_STATUS. Got packet type:  [] 
{"process_id":1774923300.703853,"process_code":"order_import","process_context":[],"task_code":"archive_file","task_service":"@CleverAge\\FlysystemProcessBundle\\Task\\FileFetchTask"}

[2026-03-31T05:41:14.358515+02:00] cleverage_process.CRITICAL: Critical process failure {"error":"Unable to list contents for '/', shallow listing\n\n
Reason: Expected NET_SFTP_HANDLE or NET_SFTP_STATUS. Got packet type: "} {"process_id":1774923300.703853,"process_code":"order_import","process_context":[]}

As a temporary workaround, we have increased the server-side SSH timeout settings to maintain the SFTP connection for a longer duration.

Could you see if an update to the ProcessBundle might resolve this issue?

Requirements

  • Documentation updates
    • Reference
    • Changelog
  • Unit tests

Breaking changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions