Skip to content

Failed Artifact Download: "https://itm.group.net/nexus/..../sign.sh": readdirent /opt/nomad/data/alloc/... #27626

@Janr2

Description

@Janr2

Nomad version

Nomad v1.11.2
BuildDate 2026-02-11T19:01:47Z
Revision f876384

Used first on 3rd March 2026.

Operating system and Environment details

NAME="SLES"
VERSION="15-SP7"
VERSION_ID="15.7"
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP7"
ID="sles"
ID_LIKE="suse"

Issue

On Nomad start:

nomad job run -check-index 0 pulp3_ltnomad01.nomad

Failed Artifact Download: failed to download artifact "https://itm-ci.bmwgroup.net/nexus/repository/linux-site/pulp/vault_collection_sign.sh": readdirent /opt/nomad/data/alloc/6f295eaa-e0e3-7cea-299e-8141b49703b6/artifact-2028326594/artifact: not a directory

Reproduction steps

  artifact {
    mode        = "file"
    source      = "${var.nexus}/vault_collection_sign.sh"
    destination = "${NOMAD_ALLOC_DIR}/vault_collection_sign.sh"
    headers {
      X-NuGet-ApiKey = "${var.NuGetKey}"
    }
  }

Expected Result

Download artifact, like in:
Nomad v1.11.1
BuildDate 2025-12-09T20:10:56Z
Revision 5b76eb0

Actual Result

2026-03-03T18:42:45.551+0100 [TRACE] client.alloc_runner.task_runner: finished prestart hooks: alloc_id=aa4230e6-606f-7315-9959-e550ce6022e5 task=worker_app end="2026-03-03 18:42:45.551944323 +0100 CET m=+8384.153299903" duration=354.072136ms
2026-03-03T18:42:45.551+0100 [ERROR] client.alloc_runner.task_runner: prestart failed: alloc_id=aa4230e6-606f-7315-9959-e550ce6022e5 task=worker_app error="prestart hook \"artifacts\" failed: failed to download artifact \"https://itm-ci.bmwgroup.net/nexus/repository/linux-site/pulp/vault_collection_sign.sh\": readdirent /opt/nomad/data/alloc/aa4230e6-606f-7315-9959-e550ce6022e5/artifact-930294087/artifact: not a directory"

Job file (if appropriate)

Nomad Server logs (if appropriate)

Nomad Client logs (if appropriate)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions