Skip to content
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

Dependency Installation Fails #1

Open
dVerschaeve opened this issue May 13, 2020 · 2 comments
Open

Dependency Installation Fails #1

dVerschaeve opened this issue May 13, 2020 · 2 comments

Comments

@dVerschaeve
Copy link

Since recent, site builds starts to fail on installing dependencies. The build log generates the following errors:

+ set -e
+ echo 'Starting Jekyll build'
+ chmod -R a+w /github/workspace
+ jekyll build --trace
Starting Jekyll build
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching public_suffix 4.0.5
Errno::EACCES: Permission denied @ rb_file_s_rename -
(/home/jekyll/.gem/ruby/2.7.0/cache/public_suffix-4.0.5.gem,
/usr/gem/cache/public_suffix-4.0.5.gem)
An error occurred while installing public_suffix (4.0.5), and Bundler cannot
continue.
Make sure that `gem install public_suffix -v '4.0.5' --source
'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  jekyll was resolved to 4.0.1, which depends on
    addressable was resolved to 2.7.0, which depends on
      public_suffix

Tested it against two jekyll sites and both give the same Errno:EACCESS error

@nigelbritton
Copy link

I have noticed a similar dependency error:

+ set -e
Starting Jekyll build
+ echo 'Starting Jekyll build'
+ chmod -R a+w /github/workspace
+ jekyll build --trace
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching public_suffix 4.0.3
Errno::EACCES: Permission denied @ rb_file_s_rename -
(/home/jekyll/.gem/ruby/2.7.0/cache/public_suffix-4.0.3.gem,
/usr/gem/cache/public_suffix-4.0.3.gem)
An error occurred while installing public_suffix (4.0.3), and Bundler cannot
continue.
Make sure that `gem install public_suffix -v '4.0.3' --source
'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  jekyll-menus was resolved to 0.6.1, which depends on
    jekyll was resolved to 4.0.0, which depends on
      addressable was resolved to 2.7.0, which depends on
        public_suffix

Updating the jekyll bundle from v4.0.0 to v4.0.1 then returned the dependency error raised by @dVerschaeve.

The last successful build using jekyll-build-action I made was on 30th April 2020; I enclose that log for reference:

+ set -e
+ echo 'Starting Jekyll build'
+ chmod -R a+w /github/workspace
+ jekyll build --trace
Starting Jekyll build
Warning: the running version of Bundler (2.0.2) is older than the version that created the lockfile (2.1.4). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching public_suffix 4.0.3
Installing public_suffix 4.0.3
Fetching addressable 2.7.0
Installing addressable 2.7.0
Using bundler 2.0.2
Fetching colorator 1.1.0
Installing colorator 1.1.0
Fetching concurrent-ruby 1.1.6
Installing concurrent-ruby 1.1.6
Fetching eventmachine 1.2.7
Installing eventmachine 1.2.7 with native extensions
Fetching http_parser.rb 0.6.0
Installing http_parser.rb 0.6.0 with native extensions
Fetching em-websocket 0.5.1
Installing em-websocket 0.5.1
Fetching ffi 1.12.2
Installing ffi 1.12.2 with native extensions
Fetching forwardable-extended 2.6.0
Installing forwardable-extended 2.6.0
Fetching i18n 1.8.2
Installing i18n 1.8.2
Fetching sassc 2.2.1
Installing sassc 2.2.1 with native extensions
Fetching jekyll-sass-converter 2.1.0
Installing jekyll-sass-converter 2.1.0
Fetching rb-fsevent 0.10.3
Installing rb-fsevent 0.10.3
Fetching rb-inotify 0.10.1
Installing rb-inotify 0.10.1
Fetching listen 3.2.1
Installing listen 3.2.1
Fetching jekyll-watch 2.2.1
Installing jekyll-watch 2.2.1
Fetching kramdown 2.1.0
Installing kramdown 2.1.0
Fetching kramdown-parser-gfm 1.1.0
Installing kramdown-parser-gfm 1.1.0
Fetching liquid 4.0.3
Installing liquid 4.0.3
Fetching mercenary 0.3.6
Installing mercenary 0.3.6
Fetching pathutil 0.16.2
Installing pathutil 0.16.2
Fetching rouge 3.15.0
Installing rouge 3.15.0
Fetching safe_yaml 1.0.5
Installing safe_yaml 1.0.5
Fetching unicode-display_width 1.6.1
Installing unicode-display_width 1.6.1
Fetching terminal-table 1.8.0
Installing terminal-table 1.8.0
Fetching jekyll 4.0.0
Installing jekyll 4.0.0
Fetching jekyll-menus 0.6.1
Installing jekyll-menus 0.6.1
Bundle complete! 2 Gemfile dependencies, 28 gems now installed.
Bundled gems are installed into `/usr/local/bundle`
Warning: the running version of Bundler (2.0.2) is older than the version that created the lockfile (2.1.4). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux-musl]
Configuration file: /github/workspace/_config.yml
            Source: /github/workspace
       Destination: /github/workspace/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
                    done in 0.022 seconds.
 Auto-regeneration: disabled. Use --watch to enable.
+ echo 'Completed Jekll build'
Completed Jekll build

As the last successful build I completed flagged a warning with "Bundler (2.0.2)" and now does not, suggests the docker image (https://github.com/envygeeks/jekyll-docker/issues) may have been updated.

Viewing the commits I can see a few updates that confirm this; https://github.com/envygeeks/jekyll-docker/commits/master. Still digging to find out more information.

@nigelbritton
Copy link

Thought I would update and possibly close this issue. Quick shout out to @dVerschaeve who beat me to it, by forking a changing the version requirement in the Dockerfile from jekyll/builder:latest to jekyll/builder:3.

Suggest you clone/fork this repo to make changes and create your own release/tag. However you can test this version fix by changing you workflow file with the following change.

jobs:
  jekyll:
    name: Build and deploy Jekyll site
    runs-on: ubuntu-latest

    steps:
    - name: Checkout
      uses: actions/checkout@v2

    - name: Build
      uses: dVerschaeve/jekyll-build-action@a96f644b84c6ae080f1a4bb0818bf058fd7ea192

    - name: Configure AWS credentials
      uses: aws-actions/configure-aws-credentials@v1
      with:
        aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
        aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
        aws-region: us-east-1

    - name: Sync output to S3
      run: |
        aws s3 sync ./_site/ s3://my-s3-bucket --delete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants