Skip to content

[Bug]: run_detached.sh script is ran as a binary by SSHComputingElement #8715

Description

@natthan-pigoux

Search before creating an issue

  • I have searched existing issues and confirmed this is not a duplicate

Bug Description

A recent change: b5aef3f#diff-1a8a0bb18751d0c812c7fb5666e61d3da3ee6f2247ed631c5218048f7bb93c76L108 has introduce a bug while running pilots on a SSHComputingElement.

While updating DIRAC version from 9.1.9 to 9.1.15, I got in SiteDirector logs:

2026-07-23T15:40:01,728629Z WorkloadManagement/SiteDirector/WorkloadManagement/SiteDirector [139734252766784] ERROR: Failed submission to queue Queue dirac-ce_normal:
Failed job submission: [Errno 8] Exec format error: '/home/dirac/run_detached.sh'

Indeed, since the run_detached.sh script does not contain a shebang, removing shell=True from subprocess Popen seems to execute the script as a binary not as a shell script and returns a [Errno 8] Exec format error:

Steps to Reproduce

No response

Expected Behavior

No response

Actual Behavior

No response

Environment

No response

Relevant Log Output

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions