New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using artifact stanza errors with relative paths require a module with a pwd #8969
Comments
Hi @jasonmccallister! Thanks for opening this issue! The artifact stanza definitely has some documentation issues; we're punting to the
Big time agree with you here. We have some work underway to improve this but as you can imagine that's a bit of a lift. Ok, onto the issue at hand. You definitely shouldn't need to mount a Docker volume to make I looked up the error message you got and it only shows up for the "file" URL detector: Interestingly, there's a comment in the source that points to just this form of URL: |
The behavior for this has been improved in #9671 and we've provided some new documentation for the file system layout here: https://www.nomadproject.io/docs/internals/filesystem I'm going to close this issue but please feel free to open a new one if you encounter new issues. |
Hello! My artifact configuration is: artifact {
source = "git::https://bitbucket.org:***/***.git"
destination = "${NOMAD_TASK_DIR}/repo"
options {
sshkey = "***"
depth = 1
}
} |
Hi @undying! That should be working on any version of Nomad after 1.0.2. Can you open a new issue with the complete jobspec, Nomad version, and any debug logs? |
I got this error with version 1.0.3 from deb repository. |
The client logs around the time the task is placed. |
Link to the new issue. |
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. |
Nomad version
Nomad v0.12.5
Operating system and Environment details
Issue
I'm new to Nomad and I believe this is more of a documentation issue and wanted to put this somewhere other people can find easily. I spent way too much time trying to resolve this and it was a little bit of a burden to getting started with Nomad.
When using the artifact stanza to clone a Git repository, I was getting the error
relative paths require a module with a pwd
. It took quite a long time and digging to find out how the artifact stanza really worked as well as how to resolve the error.Reproduction steps
Create a Job file with an artifact and using the docker exec driver. See the missing
Job file (that causes the error)
Since it was unclear how the artifact and paths works for the task, the jobs were failing with
relative paths require a module with a pwd
which really did not say anything that would help me resolve the issue. I even scoured the documentation on the go-getter repository.The real issue is that I was not mounting the local directory into the container (I was going step by step to examine the process and filesystem). To resolve the issue I needed to mount the directory using the docker
config.volume
stanza and the job completed successfully.Job file (that resolves the error)
I know Nomad is new and this is not an attempt to bash the product, just an illumination on the confusion on how jobs/documentation might need an extra set of eyes from the perspective of someone new to Nomad. More specifically, I think there should be example job files for lots of popular application stacks to make it easier to get started.
The text was updated successfully, but these errors were encountered: