tomjoht / documentation-theme-jekyll

A Jekyll-based theme designed for documentation and help systems. See the link for detailed instructions on setting up and configuring everything.

Home Page:http://idratherbewriting.com/documentation-theme-jekyll/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Errno::EACCES: Permission denied @ rb_file_s_rename -

rodolfoap opened this issue · comments

Just reporting this FYI. I don't know ruby at all, it seems that at the time I'm reporting this the jekyll/builder docker image was updated 17 hours ago, so it seems that the problem below is caused by such update. Using FROM jekyll/builder:3 and FROM jekyll/jekyll:3 fixes the issue for me.

Steps to reproduce:

$ git clone ... & cd documentation-theme-jekyll
$ docker-compose build
Building server
Step 1/10 : FROM jekyll/builder
 ---> 1cadb9406f49
Step 2/10 : WORKDIR /tmp
 ---> Using cache
 ---> 94e81d234dcb
Step 3/10 : ADD Gemfile /tmp/
 ---> Using cache
 ---> 2921bab1371e
Step 4/10 : ADD Gemfile.lock /tmp/
 ---> Using cache
 ---> 0f2a4ead235a
Step 5/10 : RUN bundle install
 ---> Running in d2ad6c42e879
Fetching gem metadata from https://rubygems.org/.........
Fetching concurrent-ruby 1.1.5
Errno::EACCES: Permission denied @ rb_file_s_rename -
(/home/jekyll/.gem/ruby/2.7.0/cache/concurrent-ruby-1.1.5.gem,
/usr/gem/cache/concurrent-ruby-1.1.5.gem)
An error occurred while installing concurrent-ruby (1.1.5), and Bundler cannot
continue.
Make sure that `gem install concurrent-ruby -v '1.1.5' --source
'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  github-pages was resolved to 198, which depends on
    jekyll-mentions was resolved to 1.4.1, which depends on
      html-pipeline was resolved to 2.11.0, which depends on
        activesupport was resolved to 4.2.11.1, which depends on
          i18n was resolved to 0.9.5, which depends on
            concurrent-ruby
ERROR: Service 'server' failed to build: The command '/bin/sh -c bundle install' returned a non-zero code: 5
$ 

Same issue here, and same solution.