envygeeks / jekyll-docker

⛴ Docker images, and CI builders for Jekyll.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New version jekyll-3.9.2 build with dir_s_mkdir - /srv/jekyll/

minhtran1309 opened this issue · comments

Hi, Thank for the docker,

It has been working really amazing for the last few week until today. I try to deploy the website locally and it has the issue with this error message:

ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux-musl]
Configuration file: /srv/jekyll/_config.yml
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
            Source: /srv/jekyll
       Destination: /srv/jekyll/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
       Jekyll Feed: Generating feed for posts
         AutoPages: Disabled/Not configured in site.config.
        Pagination: Disabled in site.config.
   GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data.
jekyll 3.9.2 | Error:  File exists @ dir_s_mkdir - /srv/jekyll/_site/404.html

I tried to trace the root of the issue and it turned out that.

/usr/local/lib/ruby/2.6.0/fileutils.rb:239:in `mkdir': File exists @ dir_s_mkdir - /srv/jekyll/_site/404.html

I did my homework and found some similar cases with ruby and jekyll. The suggestion was to lock the jekyll-paginate-v2 to 2.0.0.
Followed that and it still did fix my issue>

Now I totally lost, don't know if it's ruby or the jekyll newly build issue.

Here is my Gemfile

source "https://rubygems.org"

# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
#     bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
# gem install faraday_middleware-request-retry
gem "github-pages", group: :jekyll_plugins

# If you want to use Jekyll native, uncomment the line below.
# To upgrade, run `bundle update`.

# gem "jekyll"

gem "wdm", "~> 0.1.0" if Gem.win_platform?

# If you have any plugins, put them here!
group :jekyll_plugins do
  # gem "jekyll-archives"
  gem "jekyll-feed"
  gem 'jekyll-sitemap'
  gem 'hawkins'
  gem 'jekyll-paginate-v2', '2.0.0'
  # gem 'faraday_middleware-request-retry'
end

Very appreciate any help.