Description
Nomad version
Nomad v1.10.1
BuildDate 2025-05-13T07:40:43Z
Revision 3431f13
Operating system and Environment details
AlmaLinux 9.6
Nomad 1.10.1 installed from pre-built binaries
Issue
Since I upgraded my clients to AlmaLinux to 9.6 (which included an upgrade of git from 2.43.5 to 2.47.1, not sure if related), my tasks using git::https artifacts fail
mai 22 12:03:30 ct-w-1 nomad[6260]: | prestart hook "artifacts" failed: failed to download artifact "git::https://git.acme.local/nomad/grafana-provisioning//grafana/dashboards/Cluster": getter subprocess failed: exit status 1: failed to download artifact: error downloading 'https://git.acme.local/nomad/grafana-provisioning': /usr/bin/git exited with 128: Cloning into '/opt/nomad/data/alloc/1141a775-b06f-cc8b-fcd7-6ea951964db1/grafana/tmp/getter3937778360/temp'...
mai 22 12:03:30 ct-w-1 nomad[6260]: | warning: templates not found in /usr/share/git-core/templates
mai 22 12:03:30 ct-w-1 nomad[6260]: | error: unable to get random bytes for temporary file: Permission denied
mai 22 12:03:30 ct-w-1 nomad[6260]: | error: unable to get random bytes for temporary file: Permission denied
mai 22 12:03:30 ct-w-1 nomad[6260]: | fatal: Unable to create temporary file '/opt/nomad/data/alloc/1141a775-b06f-cc8b-fcd7-6ea951964db1/grafana/tmp/getter3937778360/temp/.git/objects/pack/tmp_pack_XXXXXX': Permission denied
mai 22 12:03:30 ct-w-1 nomad[6260]: | fatal: fetch-pack: invalid index-pack output
The exact same job worked nicely with Nomad 1.10.1 on AlmaLinux 9.5.
This looks like Bug #16899 (which is closed and locked, so I open a new one)
Reproduction steps
Try to run a job, with a task using a git::https artifact
Expected Result
Artifacts should be downloaded
Actual Result
Artifacts fail to be downloaded, task fails
Job file (if appropriate)
Here's a sample job which reproduce the error
job "test" {
group "test" {
network {
mode = "bridge"
}
task "test" {
driver = "docker"
config {
image = "busybox"
command = "sleep"
args = ["infinity"]
}
artifact {
source = "git::https://git.lapiole.org/nomad/grafana-provisioning//grafana/dashboards/Monitoring"
destination = "local/provisioning/dashboards/Monitoring"
}
resources {
cpu = 10
memory = 10
}
}
}
}
Not sure if a change in git itself could now prevent it from working. Artifacts using simple https source are working, only git::https are affected (well, maybe other git sources too, I haven't tried)
Metadata
Metadata
Assignees
Type
Projects
Status