-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Nomad version
nomad 1.9.5
nomad 1.8.4
Operating system and Environment details
Centos 10 Stream
Issue
Problems downloading artifacts from git repositories. The git client cannot access some directories when downloading artifacts.
This is evident on Linux operating systems with a 6 kernel on which the landlock kernel module is enabled. I was able to solve this problem by disabling it through the download menu.
Reproduction steps
Expected Result
Actual Result
Job file (if appropriate)
artifact { source = "git::https://nomad:***@***/infra/nomad-templates.git?ref=master" destination = "$${NOMAD_TASK_DIR}/templates" options { depth = 1 } }
Nomad Server logs (if appropriate)
Nomad Client logs (if appropriate)
Failed Artifact Download: failed to download artifact "git::https://nomad:@***/infra/nomad-templates.git": getter subprocess failed: exit status 1: failed to download artifact: error downloading 'https://nomad:redacted@***/infra/nomad-templates.git': /usr/bin/git exited with 128: Cloning into '/var/nomad/alloc/724e4df7-b08e-dc5e-8a21-6fa77b2299cf/nginx/local/templates'... warning: templates not found in /usr/share/git-core/templates error: unable to get random bytes for temporary file: Permission denied error: unable to get random bytes for temporary file: Permission denied fatal: Unable to create temporary file '/var/nomad/alloc/724e4df7-b08e-dc5e-8a21-6fa77b2299cf/nginx/local/templates/.git/objects/pack/tmp_pack_XXXXXX': Permission denied fatal: fetch-pack: invalid index-pack output
Metadata
Metadata
Assignees
Labels
Type
Projects
Status