Home
Support Forums

Deploy failed (Jekyll site)

Hi all!

I just tried to build a new Jekyll site from a (private) Github repository of mine and it failed. I don’t really understand the log.
The same happened actually on another site I am building and I am sure my ruby/bundle/etc. situation is just a mess.
Sorry, I am still an amateur and would love to learn. I would appreciate any help! Thank you in advance.

  • Some details on my build setting :arrow_heading_down:
    (There is no website link yet as the very first deploy already failed)
    Build command: bundle exec jekyll build
    Publish directory: _site
    Builds: Active

  • And here is a my build log (screenshot below) :arrow_heading_down:
    9:24:21 PM: Build ready to start
    9:24:23 PM: build-image version: 2cee85eb7f808bf3b6e87378c5307f9411f0a332
    9:24:23 PM: build-image tag: v3.8.0
    9:24:23 PM: buildbot version: d9a660540b05c414edfc0246347871ef0e3afee9
    9:24:23 PM: Fetching cached dependencies
    9:24:23 PM: Failed to fetch cache, continuing with build
    9:24:23 PM: Starting to prepare the repo for build
    9:24:24 PM: No cached dependencies found. Cloning fresh repo
    9:24:24 PM: git clone https://github.com/vito-lattarulo/template-Claire_Smith
    9:24:26 PM: Preparing Git Reference refs/heads/main
    9:24:26 PM: Parsing package.json dependencies
    9:24:27 PM: Starting build script
    9:24:27 PM: Installing dependencies
    9:24:27 PM: Python version set to 2.7
    9:24:28 PM: v12.18.0 is already installed.
    9:24:29 PM: Now using node v12.18.0 (npm v6.14.4)
    9:24:29 PM: Started restoring cached build plugins
    9:24:29 PM: Finished restoring cached build plugins
    9:24:29 PM: Attempting ruby version 2.7.2, read from environment
    9:24:30 PM: Using ruby version 2.7.2
    9:24:30 PM: Using bundler version 2.2.20 from Gemfile.lock
    9:24:30 PM: Using PHP version 5.6
    9:24:30 PM: Started restoring cached ruby gems
    9:24:30 PM: Finished restoring cached ruby gems
    9:24:30 PM: Installing gem bundle
    9:24:31 PM: [DEPRECATED] The --path flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set --local path '/opt/build/cache/bundle', and stop using this flag
    9:24:31 PM: [DEPRECATED] The --binstubs option will be removed in favor of bundle binstubs --all
    9:24:32 PM: Fetching gem metadata from https://rubygems.org/
    9:24:33 PM: Fetching gem metadata from https://rubygems.org/
    9:24:33 PM: Using bundler 2.2.20
    9:24:33 PM: Fetching public_suffix 4.0.6
    9:24:33 PM: Fetching execjs 2.8.1
    9:24:33 PM: Fetching colorator 1.1.0
    9:24:33 PM: Fetching concurrent-ruby 1.1.9
    9:24:33 PM: Fetching eventmachine 1.2.7
    9:24:33 PM: Fetching http_parser.rb 0.6.0
    9:24:33 PM: Fetching ffi 1.15.3
    9:24:33 PM: Fetching forwardable-extended 2.6.0
    9:24:33 PM: Installing colorator 1.1.0
    9:24:33 PM: Installing forwardable-extended 2.6.0
    9:24:33 PM: Installing execjs 2.8.1
    9:24:33 PM: Installing public_suffix 4.0.6
    9:24:33 PM: Installing http_parser.rb 0.6.0 with native extensions
    9:24:33 PM: Installing eventmachine 1.2.7 with native extensions
    9:24:33 PM: Installing concurrent-ruby 1.1.9
    9:24:34 PM: Installing ffi 1.15.3 with native extensions
    9:24:55 PM: Fetching rexml 3.2.5
    9:24:55 PM: Fetching rb-fsevent 0.11.0
    9:24:55 PM: Fetching mercenary 0.3.6
    9:24:55 PM: Fetching liquid 4.0.3
    9:24:55 PM: Installing mercenary 0.3.6
    9:24:55 PM: Installing rb-fsevent 0.11.0
    9:24:55 PM: Installing rexml 3.2.5
    9:24:55 PM: Installing liquid 4.0.3
    9:24:56 PM: Fetching rouge 3.26.0
    9:24:56 PM: Fetching safe_yaml 1.0.5
    9:24:56 PM: Fetching unicode-display_width 1.7.0
    9:24:56 PM: Fetching addressable 2.7.0
    9:24:56 PM: Fetching autoprefixer-rails 9.8.6.5
    9:24:56 PM: Fetching pathutil 0.16.2
    9:24:56 PM: Fetching i18n 1.8.10
    9:24:56 PM: Installing unicode-display_width 1.7.0
    9:24:56 PM: Fetching sassc 2.4.0
    9:24:56 PM: Installing safe_yaml 1.0.5
    9:24:56 PM: Installing pathutil 0.16.2
    9:24:56 PM: Installing i18n 1.8.10
    9:24:56 PM: Installing autoprefixer-rails 9.8.6.5
    9:24:56 PM: Installing addressable 2.7.0
    9:24:56 PM: Installing rouge 3.26.0
    9:24:56 PM: Fetching rb-inotify 0.10.1
    9:24:56 PM: Installing sassc 2.4.0 with native extensions
    9:24:56 PM: Fetching kramdown 2.3.1
    9:24:57 PM: Installing rb-inotify 0.10.1
    9:24:57 PM: Fetching em-websocket 0.5.2
    9:24:57 PM: Fetching terminal-table 1.8.0
    9:24:57 PM: Installing em-websocket 0.5.2
    9:24:57 PM: Installing kramdown 2.3.1
    9:24:57 PM: Installing terminal-table 1.8.0
    9:24:57 PM: Fetching jekyll-autoprefixer 1.0.2
    9:24:57 PM: Installing jekyll-autoprefixer 1.0.2
    9:24:57 PM: Fetching listen 3.5.1
    9:24:57 PM: Installing listen 3.5.1
    9:24:57 PM: Fetching jekyll-watch 2.2.1
    9:24:57 PM: Installing jekyll-watch 2.2.1
    9:27:50 PM: Fetching kramdown-parser-gfm 1.1.0
    9:27:50 PM: Fetching jekyll-sass-converter 2.1.0
    9:27:50 PM: Installing kramdown-parser-gfm 1.1.0
    9:27:50 PM: Installing jekyll-sass-converter 2.1.0
    9:27:50 PM: Fetching jekyll 4.0.1
    9:27:50 PM: Installing jekyll 4.0.1
    9:27:51 PM: Fetching jekyll-feed 0.15.1
    9:27:51 PM: Fetching jekyll-sitemap 1.4.0
    9:27:51 PM: Fetching jekyll-seo-tag 2.7.1
    9:27:51 PM: Installing jekyll-feed 0.15.1
    9:27:51 PM: Installing jekyll-seo-tag 2.7.1
    9:27:51 PM: Installing jekyll-sitemap 1.4.0
    9:27:51 PM: Fetching minima 2.5.1
    9:27:51 PM: Installing minima 2.5.1
    9:27:51 PM: Bundle complete! 8 Gemfile dependencies, 35 gems now installed.
    9:27:51 PM: Bundled gems are installed into /opt/build/cache/bundle
    9:27:51 PM: Post-install message from jekyll:
    9:27:51 PM: -------------------------------------------------------------------------------------
    9:27:51 PM: Jekyll 4.0 comes with some major changes, notably:
    9:27:51 PM: * Our link tag now comes with the relative_url filter incorporated into it.
    9:27:51 PM: You should no longer prepend {{ site.baseurl }} to {% link foo.md %}
    9:27:51 PM: For further details: Incorporate `relative_url` filter in `link` tag by ashmaroli · Pull Request #6727 · jekyll/jekyll · GitHub
    9:27:51 PM: * Our post_url tag now comes with the relative_url filter incorporated into it.
    9:27:51 PM: You shouldn’t prepend {{ site.baseurl }} to {% post_url 2019-03-27-hello %} For further details: Incorporate `relative_url` within `post_url` tag by ashmaroli · Pull Request #7589 · jekyll/jekyll · GitHub
    9:27:51 PM: * Support for deprecated configuration options has been removed. We will no longer
    9:27:51 PM: output a warning and gracefully assign their values to the newer counterparts
    9:27:51 PM: internally.
    9:27:51 PM: -------------------------------------------------------------------------------------
    9:27:51 PM: Gem bundle installed
    9:27:51 PM: Started restoring cached go cache
    9:27:51 PM: Finished restoring cached go cache
    9:27:51 PM: go version go1.14.4 linux/amd64
    9:27:51 PM: go version go1.14.4 linux/amd64
    9:27:51 PM: Installing missing commands
    9:27:51 PM: Verify run directory
    9:27:52 PM: ​
    9:27:52 PM: ────────────────────────────────────────────────────────────────
    9:27:52 PM: Netlify Build
    9:27:52 PM: ────────────────────────────────────────────────────────────────
    9:27:52 PM: ​
    9:27:52 PM: ❯ Version
    9:27:52 PM: @netlify/build 15.11.2
    9:27:52 PM: ​
    9:27:52 PM: ❯ Flags
    9:27:52 PM: deployId: 60ef39e5a45a8b009f5d8f62
    9:27:52 PM: ​
    9:27:52 PM: ❯ Current directory
    9:27:52 PM: /opt/build/repo
    9:27:52 PM: ​
    9:27:52 PM: ❯ Config file
    9:27:52 PM: No config file was defined: using default values.
    9:27:52 PM: ​
    9:27:52 PM: ❯ Context
    9:27:52 PM: production
    9:27:52 PM: ​
    9:27:52 PM: ────────────────────────────────────────────────────────────────
    9:27:52 PM: 1. Build command from Netlify app
    9:27:52 PM: ────────────────────────────────────────────────────────────────
    9:27:52 PM: ​
    9:27:52 PM: $ bundle exec jekyll build
    9:27:52 PM: Configuration file: /opt/build/repo/_config.yml
    9:27:52 PM: Source: /opt/build/repo
    9:27:52 PM: Destination: /opt/build/repo/_site
    9:27:52 PM: Incremental build: enabled
    9:27:52 PM: Generating…
    9:27:53 PM: ------------------------------------------------
    9:27:53 PM: Jekyll 4.0.1 Please append --trace to the build command
    9:27:53 PM: for any additional information or backtrace.
    9:27:53 PM: ------------------------------------------------
    9:27:53 PM: eval (eval at ((execjs):1:213), :1:10): TypeError: Cannot read property ‘version’ of undefined (ExecJS::ProgramError)
    9:27:53 PM: from (execjs):1:213
    9:27:53 PM: from (execjs):19:14
    9:27:53 PM: from (execjs):1:40
    9:27:53 PM: from Object. ((execjs):1:58)
    9:27:53 PM: from Module._compile (internal/modules/cjs/loader.js:1138:30)
    9:27:53 PM: from Object.Module._extensions…js (internal/modules/cjs/loader.js:1158:10)
    9:27:53 PM: from Module.load (internal/modules/cjs/loader.js:986:32)
    9:27:53 PM: from Function.Module._load (internal/modules/cjs/loader.js:879:14)
    9:27:53 PM: from Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    9:27:53 PM: from /opt/build/cache/bundle/ruby/2.7.0/gems/execjs-2.8.1/lib/execjs/external_runtime.rb:39:in exec' from /opt/build/cache/bundle/ruby/2.7.0/gems/execjs-2.8.1/lib/execjs/external_runtime.rb:21:in eval’ from /opt/build/cache/bundle/ruby/2.7.0/gems/execjs-2.8.1/lib/execjs/runtime.rb:64:in eval' from /opt/build/cache/bundle/ruby/2.7.0/gems/autoprefixer-rails-9.8.6.5/lib/autoprefixer-rails/processor.rb:170:in runtime’ from /opt/build/cache/bundle/ruby/2.7.0/gems/autoprefixer-rails-9.8.6.5/lib/autoprefixer-rails/processor.rb:53:in process' from /opt/build/cache/bundle/ruby/2.7.0/gems/autoprefixer-rails-9.8.6.5/lib/autoprefixer-rails.rb:16:in process’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-autoprefixer-1.0.2/lib/jekyll/autoprefixer/autoprefixer.rb:27:in block (2 levels) in process' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-autoprefixer-1.0.2/lib/jekyll/autoprefixer/autoprefixer.rb:23:in open’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-autoprefixer-1.0.2/lib/jekyll/autoprefixer/autoprefixer.rb:23:in block in process' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-autoprefixer-1.0.2/lib/jekyll/autoprefixer/autoprefixer.rb:20:in each’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-autoprefixer-1.0.2/lib/jekyll/autoprefixer/autoprefixer.rb:20:in process' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-autoprefixer-1.0.2/lib/jekyll-autoprefixer.rb:24:in block in <top (required)>’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/hooks.rb:102:in block in trigger' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/hooks.rb:101:in each’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/hooks.rb:101:in trigger' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/site.rb:222:in write’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/site.rb:78:in process' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/command.rb:28:in process_site’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/commands/build.rb:65:in build' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/commands/build.rb:36:in process’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/command.rb:89:in block in process_with_graceful_fail' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/command.rb:89:in each’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/command.rb:89:in process_with_graceful_fail' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/lib/jekyll/commands/build.rb:18:in block (2 levels) in init_with_program’ from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in block in execute' from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in each’ from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in execute' from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in go’ from /opt/build/cache/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in program' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-4.0.1/exe/jekyll:15:in <top (required)>’ from /opt/build/cache/bundle/ruby/2.7.0/bin/jekyll:23:in load' from /opt/build/cache/bundle/ruby/2.7.0/bin/jekyll:23:in ’ from /opt/build/cache/bundle/ruby/2.7.0/bin/ruby_executable_hooks:24:in eval' from /opt/build/cache/bundle/ruby/2.7.0/bin/ruby_executable_hooks:24:in '​
    9:27:53 PM: ────────────────────────────────────────────────────────────────
    9:27:53 PM: “build.command” failed
    9:27:53 PM: ────────────────────────────────────────────────────────────────
    9:27:53 PM: ​
    9:27:53 PM: Error message
    9:27:53 PM: Command failed with exit code 1: bundle exec jekyll build
    9:27:53 PM: ​
    9:27:53 PM: Error location
    9:27:53 PM: In Build command from Netlify app:
    9:27:53 PM: bundle exec jekyll build
    9:27:53 PM: ​
    9:27:53 PM: Resolved config
    9:27:53 PM: build:
    9:27:53 PM: command: bundle exec jekyll build
    9:27:53 PM: commandOrigin: ui
    9:27:53 PM: publish: /opt/build/repo/_site
    9:27:53 PM: publishOrigin: ui
    9:27:53 PM: Caching artifacts
    9:27:53 PM: Started saving ruby gems
    9:27:53 PM: Finished saving ruby gems
    9:27:53 PM: Started saving build plugins
    9:27:53 PM: Finished saving build plugins
    9:27:53 PM: Started saving pip cache
    9:27:53 PM: Finished saving pip cache
    9:27:53 PM: Started saving emacs cask dependencies
    9:27:53 PM: Finished saving emacs cask dependencies
    9:27:53 PM: Started saving maven dependencies
    9:27:53 PM: Finished saving maven dependencies
    9:27:53 PM: Started saving boot dependencies
    9:27:53 PM: Finished saving boot dependencies
    9:27:53 PM: Started saving rust rustup cache
    9:27:53 PM: Finished saving rust rustup cache
    9:27:53 PM: Started saving go dependencies
    9:27:53 PM: Finished saving go dependencies
    9:27:56 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
    9:27:56 PM: Creating deploy upload records
    9:27:56 PM: Failing build: Failed to build site
    9:27:56 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2
    9:27:56 PM: Finished processing build request in 3m33.018686573s

Based on this line:

…this discussion might help:

1 Like


Vito

1m

Thank you for your reply.
I read the whole thread and I believe I understood that the problem might be the jekyll-autoprefixer plugin.
I just removed it and the deploy worked again.
Thanks a lot!

1 Like