Skip to content

Error uploading file: mkstemp(/opt/unit/tmp//req-XXXXXXXX) failed (13: Permission denied) #491

Discussion options

You must be logged in to vote

Thanks for chiming in with some suggestions! For any Nomad users that come across this, I was able to "solve" this by running chmod when the container starts up. I did this by adding this template stanza to the nomad job file for netbox:

      template {
        data = <<EOH
#!/usr/bin/env bash
echo 'Running custom startup script...'
chmod a+w /opt/unit/tmp/
exec /opt/netbox/launch-netbox.sh
EOH
        destination = "local/custom-startup.sh"
        perms = 100
      }

and then in the task > config stanza, I changed the startup command to command = "/custom-startup.sh". This runs the custom script on startup and then runs the Netbox CMD exec /opt/netbox/launch-netbox.sh. This does mean …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by johnnyplaydrums
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants