jekyll: Avoid mk_dir permission error in jekyll 4 on azure build pipeline/docker
I solved my issue but guessed someone may search for it or you may change something anyway for jekyll4, I dont know?!
I upgraded my blog (src) to jekyll 4 pre alpha 1 and run into issues in the build pipeline of azure devops:
/usr/local/lib/ruby/2.6.0/fileutils.rb:239:in `mkdir’: Permission denied @ dir_s_mkdir - /srv/jekyll/.jekyll-cache (Errno::EACCES)
It uses the jekyll/builder docker image to build the actual site. Long story short, adding an empty directory “.jekyll-cache” to my blog source solved the issue.
For reference, here is my currently working azure-pipelines.yml
not sure, what could be done or what the real issue is here?!
My Environment
Software | Version(s) |
---|---|
Operating System | docker: jekyll/builder |
jekyll |
4.0.pre.alpha1 |
github-pages |
no |
my gemfile.lock
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 4
- Comments: 15 (5 by maintainers)
Commits related to this issue
- Add support for Jekyll 4.0 https://github.com/jekyll/jekyll/issues/7591 was failing builds that use Jekyll 4.0, as Github Actions use a lot of the same infrastructure as Azure Pipelines (so much so t... — committed to David-Byrne/jekyll-diff-action by David-Byrne 4 years ago
- keep cache, build directories, fix https://github.com/jekyll/jekyll/issues/7591 — committed to s-chizhik/audax.dp.ua by s-chizhik 4 years ago
- keep cache, build directories, fix https://github.com/jekyll/jekyll/issues/7591 — committed to s-chizhik/audax.dp.ua by s-chizhik 4 years ago
- keep cache, build directories, fix https://github.com/jekyll/jekyll/issues/7591 — committed to s-chizhik/audax.dp.ua by s-chizhik 4 years ago
- keep cache, build directories, fix https://github.com/jekyll/jekyll/issues/7591 — committed to s-chizhik/audax.dp.ua by s-chizhik 4 years ago
- adding .jekyll-cache dir from https://github.com/jekyll/jekyll/issues/7591 — committed to dougli1sqrd/eric-off-the-rails by deleted user 4 years ago
- fix: correct jekyll/jekyll#7591 — committed to josegonzalez/josediazgonzalez.com by josegonzalez 4 years ago
- Merge pull request #244 from technologiestiftung/renovate/jekyll-4.x chore(deps): update dependency jekyll to v4 Docker action issues resolved via https://github.com/jekyll/jekyll/issues/7591 — committed to technologiestiftung/lab-site by dnsos 4 years ago
- Ensure jekyll-cache folder exists There is an open issue[1] in Jekyll 4 where if the cache folder does not exist, the entire build will fail if it cannot create it lazily. [1]: https://github.com/je... — committed to kpireporter/kpireporter.com by diurnalist 4 years ago
Just received this error using
jekyll/builder:latest
via Github Actions CI.Running
mkdir .jekyll-cache _site
before the docker jekyll command resolved this issue for me.The issue seems to be still open.
Just in case anyone looking for a dirty workaround, here is my docker-compose.yml with binding current directory to the faulty /srv/jekyll :
Dear fabsenet , using jekyll/jekyll in a SVN (I know we’re on GIT here) post commit hook on the “mkdir /srv/jekyll/.jekyll-cache (Errno::EACCES)”-bug did cost a lot of time with no remedy in sight. You probably saved the project. Thanks a lot Albrecht