You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please make a note that I tried providing the absolute path for mkdir but don't work either. Right now I am running everything as root to rule out any permission issue.
Mind if you provide result of nomad alloc status <alloc-id> as well?
The "errors" in the log files are red herring and expected when task completed. The alloc status command should who the actual status of command and whether we failed it.
There are potentially few issues that masks the issue here:
As you noted, mkdir -p /opt/zookeeper/config may require running root as nobody, the default user may not have write access to /opt or /.
With exec driver, the command runs in an ephemeral chroot environment. So the directory created in the chroot environment will not be visible on the host path or other tasks after the task completes.
If the task job is not a batch one, the task exiting is interpreted as a failure and nomad will restart the task.
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Nomad version
v0.9.1
Operating system and Environment details
Photon OS
Issue
I am trying to create a directory using
exec
driver and it result into cryptic error message.Snippet from Nomad Job:
Please make a note that I tried providing the absolute path for
mkdir
but don't work either. Right now I am running everything as root to rule out any permission issue.Nomad Client logs (if appropriate)
Logs from executor.out
The text was updated successfully, but these errors were encountered: