Cleanup failed permission denied
farodin91 opened this issue · comments
Any idea why i see this error?
structor -o farodin91 -r janusgraph \ --force-edit-url \ --rqts-url="https://raw.githubusercontent.com/farodin91/janusgraph/v0.3/requirements.txt" --dockerfile-url="https://raw.githubusercontent.com/farodin91/janusgraph/v0.3/docs.Dockerfile" \ --menu.js-url="https://raw.githubusercontent.com/farodin91/janusgraph/v0.3/docs/theme/structor-menu.js.gotmpl" \ --exp-branch=mkdocs03 --debug
Run Structor command with config : &{Owner:farodin91 RepositoryName:janusgraph Debug:true DockerfileURL:https://raw.githubusercontent.com/farodin91/janusgraph/v0.3/docs.Dockerfile DockerfileName:docs.Dockerfile ExperimentalBranchName:mkdocs03 DockerImageName:doc-site Menu:0xc0000a6940 RequirementsURL:https://raw.githubusercontent.com/farodin91/janusgraph/v0.3/requirements.txt NoCache:false ForceEditionURI:true}
Temp directory: /tmp/structor220378322
Latest tag: 0.3.3
git branch --remotes --list origin\/v*
Generating doc for version mkdocs03
git worktree add /tmp/structor220378322/mkdocs03 origin/mkdocs03
Found mkdocs.yml for building documentation in /tmp/structor220378322/mkdocs03.
Using docs_dir from manifest: /tmp/structor220378322/mkdocs03/docs
Found Dockerfile for building documentation in /tmp/structor220378322/mkdocs03/docs.Dockerfile.
docker build --no-cache=false -t doc-site:mkdocs03 -f /tmp/structor220378322/mkdocs03/docs.Dockerfile /tmp/structor220378322/mkdocs03/
docker run --rm -v /tmp/structor220378322/mkdocs03:/mkdocs doc-site:mkdocs03 mkdocs build
Found mkdocs.yml for building documentation in /tmp/structor220378322/mkdocs03.
Generating doc for version v0.3
git worktree add /tmp/structor220378322/v0.3 origin/v0.3
Found mkdocs.yml for building documentation in /tmp/structor220378322/v0.3.
Using docs_dir from manifest: /tmp/structor220378322/v0.3/docs
Found Dockerfile for building documentation in /tmp/structor220378322/v0.3/docs.Dockerfile.
docker build --no-cache=false -t doc-site:v0.3 -f /tmp/structor220378322/v0.3/docs.Dockerfile /tmp/structor220378322/v0.3/
docker run --rm -v /tmp/structor220378322/v0.3:/mkdocs doc-site:v0.3 mkdocs build
Found mkdocs.yml for building documentation in /tmp/structor220378322/v0.3.
Generating doc for version v0.2
git worktree add /tmp/structor220378322/v0.2 origin/v0.2
Found mkdocs.yml for building documentation in /tmp/structor220378322/v0.2.
Using docs_dir from manifest: /tmp/structor220378322/v0.2/docs
Found Dockerfile for building documentation in /tmp/structor220378322/v0.2/docs.Dockerfile.
docker build --no-cache=false -t doc-site:v0.2 -f /tmp/structor220378322/v0.2/docs.Dockerfile /tmp/structor220378322/v0.2/
docker run --rm -v /tmp/structor220378322/v0.2:/mkdocs doc-site:v0.2 mkdocs build
Found mkdocs.yml for building documentation in /tmp/structor220378322/v0.2.
git worktree prune
Error during cleaning: unlinkat /tmp/structor220378322/mkdocs03/site/images/logos/redhat.png: permission denied
The documentation is generated inside a Docker container then the output content (in the temp folder) is owned by root.
If you are launching structor as a non-root user then strutor cannot clean the output (temp folder).
Note that it's a non-blocking error because it's a tmp folder (with a random name) and the worktree is pruned before trying to remove files.