Skip to content

[Bug]: [SSH Commands] Step times out after 120 seconds when executing long-running scripts #9072

Closed

Description

@lbracchi

Apache Hop version?

2.19

Java version?

jdk-21.0.11+10

Operating system

Windows

What happened?

Description

When using the SSH Commands step to execute scripts or commands that take longer than 120 seconds to complete or return output, the step fails with a timeout error.

Note that this behavior did not occur in Apache Hop 2.17 using Java jdk-17.0.16+8, making this likely a regression or a newly introduced hardcoded limit in newer versions.

It would be very helpful to either remove/increase this limit or, ideally, make the timeout configurable via the step properties so that long-running remote jobs can execute successfully without failing prematurely.

To Reproduce

Steps to reproduce the behavior:

  • Create a new pipeline in Apache Hop 2.19.

  • Add an SSH Commands step pointing to a reachable remote server.

  • Configure a command or script that sleeps or takes longer than 2 minutes to finish (e.g., sleep 150).

  • Run the pipeline.

  • Observe the error after exactly 120 seconds.

Expected Behavior

The SSH Commands step should wait for the script to finish executing or respect a user-defined timeout setting, behaving as it did in version 2.17.

Issue Priority

Priority: 0

Issue Component

Component: Transforms

Activity

  1. added theissue type on Oct 21, 2026
  2. hansva commented on Oct 21, 2026

    @hansva
    Contributor

    .take-issue

  3. hansva commented on Oct 21, 2026

    @hansva
    Contributor

    There is indeed a hard-coded timeout. I'll make it configurable

  4. added this to the 2.20 milestone on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions