Jekyll site won't build: Error: No such file or directory @ rb_sysopen

Hi! I am also having the same problem.
From my VSCODE which was connected to my git repository, I did bundle exec jekyll build and I got that error, so I also did CI= npm run build in my terminal within the VSCODE. But I am still getting the build error. Here is my error log. Can anybody help me on this?

11:26:13 AM: Build ready to start
11:26:15 AM: build-image version: d84c79427e8f83c1ba17bcdd7b3fe38059376b68
11:26:15 AM: build-image tag: v3.6.1
11:26:15 AM: buildbot version: e9929dc9a5baca8ca6218c9fd265aedbdf1a7681
11:26:15 AM: Fetching cached dependencies
11:26:15 AM: Starting to download cache of 126.9MB
11:26:16 AM: Finished downloading cache in 1.2129654s
11:26:16 AM: Starting to extract cache
11:26:21 AM: Finished extracting cache in 4.733383006s
11:26:21 AM: Finished fetching cache in 6.048442639s
11:26:21 AM: Starting to prepare the repo for build
11:26:22 AM: Preparing Git Reference refs/heads/master
11:26:35 AM: Different publish path detected, going to use the one specified in the Netlify configuration file: β€˜_site’ versus β€˜_site/’ in the Netlify UI
11:26:35 AM: Starting build script
11:26:35 AM: Installing dependencies
11:26:35 AM: Python version set to 2.7
11:26:36 AM: Started restoring cached node version
11:26:39 AM: Finished restoring cached node version
11:26:40 AM: v12.18.0 is already installed.
11:26:40 AM: Now using node v12.18.0 (npm v6.14.4)
11:26:40 AM: Started restoring cached build plugins
11:26:40 AM: Finished restoring cached build plugins
11:26:41 AM: Attempting ruby version 2.7.1, read from environment
11:26:42 AM: Using ruby version 2.7.1
11:26:42 AM: Using bundler version 2.1.2 from Gemfile.lock
11:26:44 AM: Successfully installed bundler-2.1.2
11:26:44 AM: 1 gem installed
11:26:44 AM: Using PHP version 5.6
11:26:44 AM: Started restoring cached ruby gems
11:26:44 AM: Finished restoring cached ruby gems
11:26:44 AM: Started restoring cached node modules
11:26:44 AM: Finished restoring cached node modules
11:26:44 AM: Installing NPM modules using NPM version 6.14.4
11:27:00 AM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
11:27:00 AM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {β€œos”:β€œdarwin”,β€œarch”:β€œany”} (current: {β€œos”:β€œlinux”,β€œarch”:β€œx64”})
11:27:00 AM: added 93 packages from 48 contributors, removed 52 packages, updated 264 packages and audited 1033 packages in 15.148s
11:27:01 AM: 51 packages are looking for funding
11:27:01 AM: run npm fund for details
11:27:01 AM: found 1 low severity vulnerability
11:27:01 AM: run npm audit fix to fix them, or npm audit for details
11:27:01 AM: NPM modules installed
11:27:01 AM: Started restoring cached go cache
11:27:01 AM: Finished restoring cached go cache
11:27:01 AM: go version go1.14.4 linux/amd64
11:27:01 AM: go version go1.14.4 linux/amd64
11:27:01 AM: Installing missing commands
11:27:01 AM: Verify run directory
11:27:03 AM: ​
11:27:03 AM: ────────────────────────────────────────────────────────────────
11:27:03 AM: Netlify Build
11:27:03 AM: ────────────────────────────────────────────────────────────────
11:27:03 AM: ​
11:27:03 AM: ❯ Version
11:27:03 AM: @netlify/build 8.2.0
11:27:03 AM: ​
11:27:03 AM: ❯ Flags
11:27:03 AM: deployId: 600fee45d32530cbc10dc081
11:27:03 AM: mode: buildbot
11:27:03 AM: ​
11:27:03 AM: ❯ Current directory
11:27:03 AM: /opt/build/repo
11:27:03 AM: ​
11:27:03 AM: ❯ Config file
11:27:03 AM: No config file was defined: using default values.
11:27:03 AM: ​
11:27:03 AM: ❯ Context
11:27:03 AM: production
11:27:03 AM: ​
11:27:03 AM: ────────────────────────────────────────────────────────────────
11:27:03 AM: 1. Build command from Netlify app
11:27:03 AM: ────────────────────────────────────────────────────────────────
11:27:03 AM: ​
11:27:03 AM: $ jekyll build
11:27:04 AM: Configuration file: /opt/build/repo/_config.yml
11:27:04 AM: Source: /opt/build/repo
11:27:04 AM: Destination: /opt/build/repo/_site
11:27:04 AM: Incremental build: disabled. Enable with --incremental
11:27:04 AM: Generating…
11:27:04 AM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
11:27:04 AM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
11:27:04 AM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
11:27:04 AM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
11:27:04 AM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
11:27:04 AM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
11:27:04 AM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
11:27:04 AM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
11:27:04 AM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
11:27:04 AM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
11:27:04 AM: jekyll 3.8.5 | Error: No such file or directory @ rb_sysopen - /opt/build/repo/bin/gulp
11:27:04 AM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/utils.rb:146:in initialize': No such file or directory @ rb_sysopen - /opt/build/repo/bin/gulp (Errno::ENOENT) from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/utils.rb:146:in open’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/utils.rb:146:in has_yaml_header?' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:46:in block in read_directories’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:45:in select' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:45:in read_directories’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:80:in block in retrieve_dirs' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:76:in each’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:76:in retrieve_dirs' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:51:in read_directories’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:16:in read' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/site.rb:164:in read’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/site.rb:69:in process' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/command.rb:28:in process_site’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/commands/build.rb:65:in build' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/commands/build.rb:36:in process’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/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-3.8.5/exe/jekyll:15:in <top (required)>' from /opt/build/cache/binstubs/jekyll:29:in load’ from /opt/build/cache/binstubs/jekyll:29:in `'​
11:27:04 AM: ────────────────────────────────────────────────────────────────
11:27:04 AM: β€œbuild.command” failed
11:27:04 AM: ────────────────────────────────────────────────────────────────
11:27:04 AM: ​
11:27:04 AM: Error message
11:27:04 AM: Command failed with exit code 1: jekyll build
11:27:04 AM: ​
11:27:04 AM: Error location
11:27:04 AM: In Build command from Netlify app:
11:27:04 AM: jekyll build
11:27:04 AM: ​
11:27:04 AM: Resolved config
11:27:04 AM: build:
11:27:04 AM: command: jekyll build
11:27:04 AM: commandOrigin: ui
11:27:04 AM: publish: /opt/build/repo/_site
11:27:04 AM: Caching artifacts
11:27:04 AM: Started saving ruby gems
11:27:04 AM: Finished saving ruby gems
11:27:04 AM: Started saving bower components
11:27:04 AM: Finished saving bower components
11:27:04 AM: Started saving node modules
11:27:04 AM: Finished saving node modules
11:27:04 AM: Started saving build plugins
11:27:04 AM: Finished saving build plugins
11:27:04 AM: Started saving pip cache
11:27:05 AM: Finished saving pip cache
11:27:05 AM: Started saving emacs cask dependencies
11:27:05 AM: Finished saving emacs cask dependencies
11:27:05 AM: Started saving maven dependencies
11:27:05 AM: Finished saving maven dependencies
11:27:05 AM: Started saving boot dependencies
11:27:05 AM: Finished saving boot dependencies
11:27:05 AM: Started saving rust rustup cache
11:27:05 AM: Finished saving rust rustup cache
11:27:05 AM: Started saving go dependencies
11:27:05 AM: Finished saving go dependencies
11:27:05 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
11:27:05 AM: Failing build: Failed to build site
11:27:05 AM: Failed during stage β€˜building site’: Build script returned non-zero exit code: 2
11:27:05 AM: Finished processing build request in 49.870283824s

hi there, this may be a different problem. can you start here?

This Support Guide contains a ton of useful debugging tips that can likely help you solve your problem :slight_smile:

We also recommend trying to search the forums with the build error you encountered - it’s likely your question was already asked by someone else!

If you are still having problems, please provide as much information as you can on what you have already tried, what your build settings are, your package.json, etc. Thanks!

hi, Perry.

My package.json looks like this.

  "name": "barber-jekyll",
  "description": "Barber is a blog theme for Jekyll built by Thomas Vaeth at Samesies using HTML, Sass, and JavaScript.",
  "demo": "http://barber.samesies.io",
  "version": "1.0.0",
  "scripts": {
    "start": "bundle exec jekyll serve",
    "build": "bundle exec jekyll build",
    "deploy": "gulp build && bundle exec jekyll build && s3-website deploy _site",
    "gulp": "gulp"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/juliajoo/youngdesign.git"
  },
  "bugs": "https://github.com/samesies/barber-jekyll/issues",
  "keywords": [
    "barber",
    "jekyll",
    "blog",
    "theme"
  ],
  "dependencies": {
    "aos": "^2.3.4",
    "jquery": "^3.5.0",
    "salvattore": "^1.0.9"
  },
  "devDependencies": {
    "@babel/core": "^7.4.5",
    "@babel/preset-env": "^7.4.5",
    "babelify": "^10.0.0",
    "browserify": "^16.2.3",
    "eslint": "^5.16.0",
    "gulp": "^4.0.2",
    "gulp-autoprefixer": "^6.1.0",
    "gulp-clean-css": "^4.2.0",
    "gulp-eslint": "^5.0.0",
    "gulp-rename": "^1.4.0",
    "gulp-sass": "^4.0.2",
    "gulp-stylelint": "^9.0.0",
    "gulp-uglify": "^3.0.2",
    "gulp-zip": "^5.0.0",
    "s3-website": "^3.3.0",
    "stylelint": "^10.1.0",
    "stylelint-config-recommended": "^2.2.0",
    "stylelint-config-standard": "^18.3.0",
    "vinyl-buffer": "^1.0.1",
    "vinyl-source-stream": "^2.0.0"
  },
  "license": "MIT"
}

you don’t have jekyll listed as a dependency, so therefore it isn’t accessible when you try and run the jekyll command. It’ll need to get added to your package.json as a dev dependency so it is available at build time.

Oh, thank you for this!!
But I am quite confused and curious how this happened. Because so far I could run bundle exec jekyll serve or bundle exec jekyll build to check the website on localhost and to git push and send it to the netlify. If jekyll is not included in the dependencies of package.json, so far how could I do these tasks? I’m not a professional developer so your comment would be very much appreciated.

only the dependencies listed in the dependencies (runtime) or devDependencies (build time) are available, and if your project needs jekyll, which it does, then it needs to be listed there.

it works on local most likely because you downloaded jekyll and installed it globally at some point, so it is always available, but as you are building fresh on netlify, we won’t know what toolling you need unless you explicitly tell us (by listing it in the package.json)

does this help make things clearer? :netlisparkles: we love newbies around here, there are no stupid questions :slight_smile:

1 Like

Thank you very much!
As you adviced, I added jekyll into my package.json so now I see it in my dependencies.
β€œdependencies”: {
β€œaos”: β€œ^2.3.4”,
β€œjekyll”: β€œ^3.0.0-beta1”,
β€œjquery”: β€œ^3.5.0”,
β€œsalvattore”: β€œ^1.0.9”
},

However, I am still getting the same exit code:1 jekyll build in my deploy log. Do you know what is the problem…?

8:27:21 PM: Build ready to start
8:27:23 PM: build-image version: d84c79427e8f83c1ba17bcdd7b3fe38059376b68
8:27:23 PM: build-image tag: v3.6.1
8:27:23 PM: buildbot version: 44655717ddf0e7bd7f856f5b1154254de54b1d80
8:27:23 PM: Building without cache
8:27:23 PM: Starting to prepare the repo for build
8:27:23 PM: No cached dependencies found. Cloning fresh repo
8:27:23 PM: git clone GitHub - juliajoo/youngdesign: I’m Jooyoung, a UX designer and researcher from South Korea. Born and raised in Seoul, I have been creating user-centric interfaces and experiences. Holding flexible yet critical attitude toward new technologies, I am interested in involving actual users into the design process.
8:27:32 PM: Preparing Git Reference refs/heads/master
8:27:34 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: β€˜_site’ versus β€˜_site/’ in the Netlify UI
8:27:34 PM: Starting build script
8:27:34 PM: Installing dependencies
8:27:34 PM: Python version set to 2.7
8:27:35 PM: v12.18.0 is already installed.
8:27:36 PM: Now using node v12.18.0 (npm v6.14.4)
8:27:36 PM: Started restoring cached build plugins
8:27:36 PM: Finished restoring cached build plugins
8:27:36 PM: Attempting ruby version 2.7.1, read from environment
8:27:37 PM: Using ruby version 2.7.1
8:27:37 PM: Using bundler version 2.1.2 from Gemfile.lock
8:27:39 PM: Successfully installed bundler-2.1.2
8:27:39 PM: 1 gem installed
8:27:39 PM: Using PHP version 5.6
8:27:39 PM: Started restoring cached ruby gems
8:27:39 PM: Finished restoring cached ruby gems
8:27:39 PM: Installing gem bundle
8:27:39 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 path '/opt/build/cache/bundle', and stop using this flag
8:27:39 PM: [DEPRECATED] The --binstubs option will be removed in favor of bundle binstubs
8:27:41 PM: Fetching gem metadata from https://rubygems.org/…
8:27:41 PM: Fetching public_suffix 3.0.3
8:27:41 PM: Installing public_suffix 3.0.3
8:27:42 PM: Fetching addressable 2.6.0
8:27:42 PM: Installing addressable 2.6.0
8:27:42 PM: Using bundler 2.1.2
8:27:42 PM: Fetching colorator 1.1.0
8:27:42 PM: Installing colorator 1.1.0
8:27:42 PM: Fetching concurrent-ruby 1.1.4
8:27:42 PM: Installing concurrent-ruby 1.1.4
8:27:42 PM: Fetching eventmachine 1.2.7
8:27:42 PM: Installing eventmachine 1.2.7 with native extensions
8:27:57 PM: Fetching http_parser.rb 0.6.0
8:27:57 PM: Installing http_parser.rb 0.6.0 with native extensions
8:27:58 PM: Fetching em-websocket 0.5.1
8:27:58 PM: Installing em-websocket 0.5.1
8:27:58 PM: Fetching ffi 1.10.0
8:27:58 PM: Installing ffi 1.10.0 with native extensions
8:28:07 PM: Fetching forwardable-extended 2.6.0
8:28:07 PM: Installing forwardable-extended 2.6.0
8:28:07 PM: Fetching i18n 0.9.5
8:28:07 PM: Installing i18n 0.9.5
8:28:07 PM: Fetching rb-fsevent 0.10.3
8:28:07 PM: Installing rb-fsevent 0.10.3
8:28:07 PM: Fetching rb-inotify 0.10.0
8:28:07 PM: Installing rb-inotify 0.10.0
8:28:07 PM: Fetching sass-listen 4.0.0
8:28:07 PM: Installing sass-listen 4.0.0
8:28:07 PM: Fetching sass 3.7.3
8:28:07 PM: Installing sass 3.7.3
8:28:08 PM: Fetching jekyll-sass-converter 1.5.2
8:28:08 PM: Installing jekyll-sass-converter 1.5.2
8:28:08 PM: Fetching ruby_dep 1.5.0
8:28:08 PM: Installing ruby_dep 1.5.0
8:28:08 PM: Fetching listen 3.1.5
8:28:08 PM: Installing listen 3.1.5
8:28:08 PM: Fetching jekyll-watch 2.1.2
8:28:08 PM: Installing jekyll-watch 2.1.2
8:28:08 PM: Fetching kramdown 1.17.0
8:28:08 PM: Installing kramdown 1.17.0
8:28:09 PM: Fetching liquid 4.0.1
8:28:09 PM: Installing liquid 4.0.1
8:28:09 PM: Fetching mercenary 0.3.6
8:28:09 PM: Installing mercenary 0.3.6
8:28:09 PM: Fetching pathutil 0.16.2
8:28:09 PM: Installing pathutil 0.16.2
8:28:09 PM: Fetching rouge 3.3.0
8:28:09 PM: Installing rouge 3.3.0
8:28:09 PM: Fetching safe_yaml 1.0.5
8:28:09 PM: Installing safe_yaml 1.0.5
8:28:09 PM: Fetching jekyll 3.8.5
8:28:09 PM: Installing jekyll 3.8.5
8:28:09 PM: Fetching jekyll-paginate-v2 2.0.0
8:28:10 PM: Installing jekyll-paginate-v2 2.0.0
8:28:10 PM: Fetching jekyll-sitemap 1.2.0
8:28:10 PM: Installing jekyll-sitemap 1.2.0
8:28:10 PM: Bundle complete! 4 Gemfile dependencies, 28 gems now installed.
8:28:10 PM: Bundled gems are installed into /opt/build/cache/bundle
8:28:10 PM: Post-install message from sass:
8:28:10 PM: Ruby Sass is deprecated and will be unmaintained as of 26 March 2019.
8:28:10 PM: * If you use Sass as a command-line tool, we recommend using Dart Sass, the new
8:28:10 PM: primary implementation: Sass: Install Sass
8:28:10 PM: * If you use Sass as a plug-in for a Ruby web framework, we recommend using the
8:28:10 PM: sassc gem: GitHub - sass/sassc-ruby: Use libsass with Ruby!
8:28:10 PM: * For more details, please refer to the Sass blog:
8:28:10 PM: Ruby Sass is Deprecated Β« Sass Blog
8:28:10 PM: Gem bundle installed
8:28:10 PM: Started restoring cached node modules
8:28:10 PM: Finished restoring cached node modules
8:28:10 PM: Installing NPM modules using NPM version 6.14.4
8:28:26 PM: > node-sass@4.14.1 install /opt/build/repo/node_modules/node-sass
8:28:26 PM: > node scripts/install.js
8:28:27 PM: Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.1/linux-x64-72_binding.node
8:28:28 PM: Download complete
8:28:28 PM: Binary saved to /opt/build/repo/node_modules/node-sass/vendor/linux-x64-72/binding.node
8:28:28 PM: Caching binary to /opt/buildhome/.npm/node-sass/4.14.1/linux-x64-72_binding.node
8:28:28 PM: > node-sass@4.14.1 postinstall /opt/build/repo/node_modules/node-sass
8:28:28 PM: > node scripts/build.js
8:28:29 PM: Binary found at /opt/build/repo/node_modules/node-sass/vendor/linux-x64-72/binding.node
8:28:29 PM: Testing binary
8:28:29 PM: Binary is fine
8:28:29 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
8:28:29 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {β€œos”:β€œdarwin”,β€œarch”:β€œany”} (current: {β€œos”:β€œlinux”,β€œarch”:β€œx64”})
8:28:29 PM: added 1031 packages from 631 contributors and audited 1034 packages in 18.723s
8:28:30 PM: 51 packages are looking for funding
8:28:30 PM: run npm fund for details
8:28:30 PM: found 1 low severity vulnerability
8:28:30 PM: run npm audit fix to fix them, or npm audit for details
8:28:30 PM: NPM modules installed
8:28:30 PM: Started restoring cached go cache
8:28:30 PM: Finished restoring cached go cache
8:28:30 PM: go version go1.14.4 linux/amd64
8:28:30 PM: go version go1.14.4 linux/amd64
8:28:30 PM: Installing missing commands
8:28:30 PM: Verify run directory
8:28:32 PM: ​
8:28:32 PM: ────────────────────────────────────────────────────────────────
8:28:32 PM: Netlify Build
8:28:32 PM: ────────────────────────────────────────────────────────────────
8:28:32 PM: ​
8:28:32 PM: ❯ Version
8:28:32 PM: @netlify/build 8.3.0
8:28:32 PM: ​
8:28:32 PM: ❯ Flags
8:28:32 PM: deployId: 60106d19d29e6c1865bf347b
8:28:32 PM: mode: buildbot
8:28:32 PM: ​
8:28:32 PM: ❯ Current directory
8:28:32 PM: /opt/build/repo
8:28:32 PM: ​
8:28:32 PM: ❯ Config file
8:28:32 PM: No config file was defined: using default values.
8:28:32 PM: ​
8:28:32 PM: ❯ Context
8:28:32 PM: production
8:28:32 PM: ​
8:28:32 PM: ────────────────────────────────────────────────────────────────
8:28:32 PM: 1. Build command from Netlify app
8:28:32 PM: ────────────────────────────────────────────────────────────────
8:28:32 PM: ​
8:28:32 PM: $ jekyll build
8:28:32 PM: Configuration file: /opt/build/repo/_config.yml
8:28:32 PM: Source: /opt/build/repo
8:28:32 PM: Destination: /opt/build/repo/_site
8:28:32 PM: Incremental build: disabled. Enable with --incremental
8:28:32 PM: Generating…
8:28:32 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
8:28:32 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
8:28:32 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
8:28:32 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
8:28:32 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
8:28:32 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
8:28:32 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
8:28:32 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
8:28:32 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
8:28:32 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
8:28:32 PM: jekyll 3.8.5 | Error: No such file or directory @ rb_sysopen - /opt/build/repo/bin/gulp
8:28:32 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/utils.rb:146:in initialize': No such file or directory @ rb_sysopen - /opt/build/repo/bin/gulp (Errno::ENOENT) from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/utils.rb:146:in open’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/utils.rb:146:in has_yaml_header?' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:46:in block in read_directories’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:45:in select' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:45:in read_directories’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:80:in block in retrieve_dirs' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:76:in each’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:76:in retrieve_dirs' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:51:in read_directories’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:16:in read' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/site.rb:164:in read’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/site.rb:69:in process' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/command.rb:28:in process_site’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/commands/build.rb:65:in build' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/commands/build.rb:36:in process’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/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-3.8.5/exe/jekyll:15:in <top (required)>' from /opt/build/cache/binstubs/jekyll:29:in load’ from /opt/build/cache/binstubs/jekyll:29:in `'​
8:28:32 PM: ────────────────────────────────────────────────────────────────
8:28:32 PM: β€œbuild.command” failed
8:28:32 PM: ────────────────────────────────────────────────────────────────
8:28:32 PM: ​
8:28:32 PM: Error message
8:28:32 PM: Command failed with exit code 1: jekyll build
8:28:32 PM: ​
8:28:32 PM: Error location
8:28:32 PM: In Build command from Netlify app:
8:28:32 PM: jekyll build
8:28:32 PM: ​
8:28:32 PM: Resolved config
8:28:32 PM: build:
8:28:32 PM: command: jekyll build
8:28:32 PM: commandOrigin: ui
8:28:32 PM: publish: /opt/build/repo/_site
8:28:33 PM: Caching artifacts
8:28:33 PM: Started saving ruby gems
8:28:33 PM: Finished saving ruby gems
8:28:33 PM: Started saving bower components
8:28:33 PM: Finished saving bower components
8:28:33 PM: Started saving node modules
8:28:33 PM: Finished saving node modules
8:28:33 PM: Started saving build plugins
8:28:33 PM: Finished saving build plugins
8:28:33 PM: Started saving pip cache
8:28:33 PM: Finished saving pip cache
8:28:33 PM: Started saving emacs cask dependencies
8:28:33 PM: Finished saving emacs cask dependencies
8:28:33 PM: Started saving maven dependencies
8:28:33 PM: Finished saving maven dependencies
8:28:33 PM: Started saving boot dependencies
8:28:33 PM: Finished saving boot dependencies
8:28:33 PM: Started saving rust rustup cache
8:28:33 PM: Finished saving rust rustup cache
8:28:33 PM: Started saving go dependencies
8:28:33 PM: Finished saving go dependencies
8:28:35 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
8:28:35 PM: Failing build: Failed to build site
8:28:35 PM: Failed during stage β€˜building site’: Build script returned non-zero exit code: 2
8:28:35 PM: Finished processing build request in 1m12.605667635s

It needs to be a dev dependency, so move it in your package.json from depencies to devDependencies, so that it is available at build time, and then, try β€œclear cache and redeploy”, so that we actually re-read through the package.json and do the needful. You are committing and pushing this file to your git repo provider after editing it, right?

Yes! That is correct. I manually moved β€œjekyll”: β€œ^3.0.0-beta1”, from "dependencies" to "devDependencies". But unfortunately, I am still getting the same exit code 1.
I am following the link that you posted ([Support Guide] Frequently encountered problems during builds) slowly, but still can’t figure out what is the problem… ;_( Can the problem caused by the package-lock.json file?

Hi Perry,
I ended up reading your post in other page: [Support Guide] Netlify app builds locally but fails on deploy (case sensitivity). Do you think this could be the problem why my repository is failing to deploy?
(Meanwhile I tried changing the build command to CI='' jekyll build β†’ did not work.)
In your post, you mention, these 4 steps

  1. deleting the file
  2. committing and pushing to GitHub
  3. re-creating the file
  4. adding, committing, pushing to GitHub

But then, should I delete all the files with Capital Letter in its name? :scream: Should I delete all the files like Gemfile, IMG-05.jpg, Roboto-Regular.eot, and etc from the folders and re add them to the directory…?

you don’t have to rename the files if both the way you are referencing the file:

<img src="/somepath/One.jpg"> and the file name: One.jpg are the same.

But this, for example, would work locally but not on our servers:

<img src="/SomePath/One.jpg">

also wouldn’t work:

<img src="/somepath/one.jpg">

also wouldn’t work:

<img src="/somepath/One.JPG">

it has to be consistent and always the same. The reason why we generally recommend all lowercase everything is that it is easy to standardize.

I can’t really say if this is the source of your problem, can you post your latest failing build log and your full package.json pls?

Hi Perry,

Here is the failing building log of mine:

11:37:12 PM: Build ready to start
11:37:14 PM: build-image version: d84c79427e8f83c1ba17bcdd7b3fe38059376b68
11:37:14 PM: build-image tag: v3.6.1
11:37:14 PM: buildbot version: 44655717ddf0e7bd7f856f5b1154254de54b1d80
11:37:14 PM: Building without cache
11:37:14 PM: Starting to prepare the repo for build
11:37:14 PM: No cached dependencies found. Cloning fresh repo
11:37:14 PM: git clone GitHub - juliajoo/youngdesign: I’m Jooyoung, a UX designer and researcher from South Korea. Born and raised in Seoul, I have been creating user-centric interfaces and experiences. Holding flexible yet critical attitude toward new technologies, I am interested in involving actual users into the design process.
11:37:23 PM: Preparing Git Reference refs/heads/master
11:37:26 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: β€˜_site’ versus β€˜_site/’ in the Netlify UI
11:37:27 PM: Starting build script
11:37:27 PM: Installing dependencies
11:37:27 PM: Python version set to 2.7
11:37:28 PM: v12.18.0 is already installed.
11:37:28 PM: Now using node v12.18.0 (npm v6.14.4)
11:37:28 PM: Started restoring cached build plugins
11:37:28 PM: Finished restoring cached build plugins
11:37:29 PM: Attempting ruby version 2.7.1, read from environment
11:37:30 PM: Using ruby version 2.7.1
11:37:30 PM: Using bundler version 2.1.2 from Gemfile.lock
11:37:31 PM: Successfully installed bundler-2.1.2
11:37:31 PM: 1 gem installed
11:37:31 PM: Using PHP version 5.6
11:37:31 PM: Started restoring cached ruby gems
11:37:31 PM: Finished restoring cached ruby gems
11:37:31 PM: Installing gem bundle
11:37: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 path '/opt/build/cache/bundle', and stop using this flag
11:37:31 PM: [DEPRECATED] The --binstubs option will be removed in favor of bundle binstubs
11:37:33 PM: Fetching gem metadata from https://rubygems.org/…
11:37:33 PM: Fetching public_suffix 3.0.3
11:37:34 PM: Installing public_suffix 3.0.3
11:37:34 PM: Fetching addressable 2.6.0
11:37:34 PM: Installing addressable 2.6.0
11:37:34 PM: Using bundler 2.1.2
11:37:34 PM: Fetching colorator 1.1.0
11:37:34 PM: Installing colorator 1.1.0
11:37:34 PM: Fetching concurrent-ruby 1.1.4
11:37:34 PM: Installing concurrent-ruby 1.1.4
11:37:34 PM: Fetching eventmachine 1.2.7
11:37:34 PM: Installing eventmachine 1.2.7 with native extensions
11:37:48 PM: Fetching http_parser.rb 0.6.0
11:37:48 PM: Installing http_parser.rb 0.6.0 with native extensions
11:37:49 PM: Fetching em-websocket 0.5.1
11:37:49 PM: Installing em-websocket 0.5.1
11:37:49 PM: Fetching ffi 1.10.0
11:37:50 PM: Installing ffi 1.10.0 with native extensions
11:37:58 PM: Fetching forwardable-extended 2.6.0
11:37:59 PM: Installing forwardable-extended 2.6.0
11:37:59 PM: Fetching i18n 0.9.5
11:37:59 PM: Installing i18n 0.9.5
11:37:59 PM: Fetching rb-fsevent 0.10.3
11:37:59 PM: Installing rb-fsevent 0.10.3
11:37:59 PM: Fetching rb-inotify 0.10.0
11:37:59 PM: Installing rb-inotify 0.10.0
11:37:59 PM: Fetching sass-listen 4.0.0
11:37:59 PM: Installing sass-listen 4.0.0
11:37:59 PM: Fetching sass 3.7.3
11:37:59 PM: Installing sass 3.7.3
11:37:59 PM: Fetching jekyll-sass-converter 1.5.2
11:37:59 PM: Installing jekyll-sass-converter 1.5.2
11:37:59 PM: Fetching ruby_dep 1.5.0
11:37:59 PM: Installing ruby_dep 1.5.0
11:37:59 PM: Fetching listen 3.1.5
11:38:00 PM: Installing listen 3.1.5
11:38:00 PM: Fetching jekyll-watch 2.1.2
11:38:00 PM: Installing jekyll-watch 2.1.2
11:38:00 PM: Fetching kramdown 1.17.0
11:38:00 PM: Installing kramdown 1.17.0
11:38:00 PM: Fetching liquid 4.0.1
11:38:00 PM: Installing liquid 4.0.1
11:38:00 PM: Fetching mercenary 0.3.6
11:38:00 PM: Installing mercenary 0.3.6
11:38:00 PM: Fetching pathutil 0.16.2
11:38:00 PM: Installing pathutil 0.16.2
11:38:00 PM: Fetching rouge 3.3.0
11:38:01 PM: Installing rouge 3.3.0
11:38:01 PM: Fetching safe_yaml 1.0.5
11:38:01 PM: Installing safe_yaml 1.0.5
11:38:01 PM: Fetching jekyll 3.8.5
11:38:01 PM: Installing jekyll 3.8.5
11:38:01 PM: Fetching jekyll-paginate-v2 2.0.0
11:38:01 PM: Installing jekyll-paginate-v2 2.0.0
11:38:01 PM: Fetching jekyll-sitemap 1.2.0
11:38:01 PM: Installing jekyll-sitemap 1.2.0
11:38:01 PM: Bundle complete! 4 Gemfile dependencies, 28 gems now installed.
11:38:01 PM: Bundled gems are installed into /opt/build/cache/bundle
11:38:01 PM: Post-install message from sass:
11:38:01 PM: Ruby Sass is deprecated and will be unmaintained as of 26 March 2019.
11:38:01 PM: * If you use Sass as a command-line tool, we recommend using Dart Sass, the new
11:38:01 PM: primary implementation: Sass: Install Sass
11:38:01 PM: * If you use Sass as a plug-in for a Ruby web framework, we recommend using the
11:38:01 PM: sassc gem: GitHub - sass/sassc-ruby: Use libsass with Ruby!
11:38:01 PM: * For more details, please refer to the Sass blog:
11:38:01 PM: Logdown - Site Maintenance
11:38:01 PM: Gem bundle installed
11:38:01 PM: Started restoring cached node modules
11:38:01 PM: Finished restoring cached node modules
11:38:02 PM: Installing NPM modules using NPM version 6.14.4
11:38:18 PM: > node-sass@4.14.1 install /opt/build/repo/node_modules/node-sass
11:38:18 PM: > node scripts/install.js
11:38:19 PM: Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.1/linux-x64-72_binding.node
11:38:19 PM: Download complete
11:38:19 PM: Binary saved to /opt/build/repo/node_modules/node-sass/vendor/linux-x64-72/binding.node
11:38:19 PM: Caching binary to /opt/buildhome/.npm/node-sass/4.14.1/linux-x64-72_binding.node
11:38:20 PM: > node-sass@4.14.1 postinstall /opt/build/repo/node_modules/node-sass
11:38:20 PM: > node scripts/build.js
11:38:20 PM: Binary found at /opt/build/repo/node_modules/node-sass/vendor/linux-x64-72/binding.node
11:38:20 PM: Testing binary
11:38:20 PM: Binary is fine
11:38:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
11:38:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {β€œos”:β€œdarwin”,β€œarch”:β€œany”} (current: {β€œos”:β€œlinux”,β€œarch”:β€œx64”})
11:38:21 PM: added 1043 packages from 596 contributors and audited 1046 packages in 18.648s
11:38:22 PM: 65 packages are looking for funding
11:38:22 PM: run npm fund for details
11:38:22 PM: found 0 vulnerabilities
11:38:22 PM: NPM modules installed
11:38:22 PM: Started restoring cached go cache
11:38:22 PM: Finished restoring cached go cache
11:38:22 PM: go version go1.14.4 linux/amd64
11:38:22 PM: go version go1.14.4 linux/amd64
11:38:22 PM: Installing missing commands
11:38:22 PM: Verify run directory
11:38:24 PM: ​
11:38:24 PM: ────────────────────────────────────────────────────────────────
11:38:24 PM: Netlify Build
11:38:24 PM: ────────────────────────────────────────────────────────────────
11:38:24 PM: ​
11:38:24 PM: ❯ Version
11:38:24 PM: @netlify/build 8.3.0
11:38:24 PM: ​
11:38:24 PM: ❯ Flags
11:38:24 PM: deployId: 601099984e99461743d7e0a4
11:38:24 PM: mode: buildbot
11:38:24 PM: ​
11:38:24 PM: ❯ Current directory
11:38:24 PM: /opt/build/repo
11:38:24 PM: ​
11:38:24 PM: ❯ Config file
11:38:24 PM: No config file was defined: using default values.
11:38:24 PM: ​
11:38:24 PM: ❯ Context
11:38:24 PM: production
11:38:24 PM: ​
11:38:24 PM: ────────────────────────────────────────────────────────────────
11:38:24 PM: 1. Build command from Netlify app
11:38:24 PM: ────────────────────────────────────────────────────────────────
11:38:24 PM: ​
11:38:24 PM: $ CI= jekyll build
11:38:25 PM: Configuration file: /opt/build/repo/_config.yml
11:38:25 PM: Source: /opt/build/repo
11:38:25 PM: Destination: /opt/build/repo/_site
11:38:25 PM: Incremental build: disabled. Enable with --incremental
11:38:25 PM: Generating…
11:38:25 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
11:38:25 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
11:38:25 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
11:38:25 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
11:38:25 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
11:38:25 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
11:38:25 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
11:38:25 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
11:38:25 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
11:38:25 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
11:38:25 PM: jekyll 3.8.5 | Error: No such file or directory @ rb_sysopen - /opt/build/repo/bin/gulp
11:38:25 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/utils.rb:146:in initialize': No such file or directory @ rb_sysopen - /opt/build/repo/bin/gulp (Errno::ENOENT) 11:38:25 PM: from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/utils.rb:146:in open’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/utils.rb:146:in has_yaml_header?' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:46:in block in read_directories’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:45:in select' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:45:in read_directories’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:80:in block in retrieve_dirs' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:76:in each’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:76:in retrieve_dirs' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:51:in read_directories’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/reader.rb:16:in read' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/site.rb:164:in read’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/site.rb:69:in process' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/command.rb:28:in process_site’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/commands/build.rb:65:in build' from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/lib/jekyll/commands/build.rb:36:in process’ from /opt/build/cache/bundle/ruby/2.7.0/gems/jekyll-3.8.5/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-3.8.5/exe/jekyll:15:in <top (required)>' from /opt/build/cache/binstubs/jekyll:29:in load’ from /opt/build/cache/binstubs/jekyll:29:in `'​
11:38:25 PM: ────────────────────────────────────────────────────────────────
11:38:25 PM: β€œbuild.command” failed
11:38:25 PM: ────────────────────────────────────────────────────────────────
11:38:25 PM: ​
11:38:25 PM: Error message
11:38:25 PM: Command failed with exit code 1: CI= jekyll build
11:38:25 PM: ​
11:38:25 PM: Error location
11:38:25 PM: In Build command from Netlify app:
11:38:25 PM: CI= jekyll build
11:38:25 PM: ​
11:38:25 PM: Resolved config
11:38:25 PM: build:
11:38:25 PM: command: CI= jekyll build
11:38:25 PM: commandOrigin: ui
11:38:25 PM: publish: /opt/build/repo/_site
11:38:25 PM: Caching artifacts
11:38:25 PM: Started saving ruby gems
11:38:25 PM: Finished saving ruby gems
11:38:25 PM: Started saving bower components
11:38:25 PM: Finished saving bower components
11:38:25 PM: Started saving node modules
11:38:25 PM: Finished saving node modules
11:38:25 PM: Started saving build plugins
11:38:25 PM: Finished saving build plugins
11:38:25 PM: Started saving pip cache
11:38:25 PM: Finished saving pip cache
11:38:25 PM: Started saving emacs cask dependencies
11:38:25 PM: Finished saving emacs cask dependencies
11:38:25 PM: Started saving maven dependencies
11:38:25 PM: Finished saving maven dependencies
11:38:25 PM: Started saving boot dependencies
11:38:25 PM: Finished saving boot dependencies
11:38:25 PM: Started saving rust rustup cache
11:38:25 PM: Finished saving rust rustup cache
11:38:25 PM: Started saving go dependencies
11:38:25 PM: Finished saving go dependencies
11:38:28 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
11:38:28 PM: Failing build: Failed to build site
11:38:28 PM: Failed during stage β€˜building site’: Build script returned non-zero exit code: 2
11:38:28 PM: Finished processing build request in 1m14.464302554s

And this is my package.json file:

{
β€œname”: β€œbarber-jekyll”,
β€œdescription”: β€œBarber is a blog theme for Jekyll built by Thomas Vaeth at Samesies using HTML, Sass, and JavaScript.”,
β€œdemo”: β€œhttp://barber.samesies.io”,
β€œversion”: β€œ1.0.0”,
β€œscripts”: {
β€œstart”: β€œbundle exec jekyll serve”,
β€œbuild”: β€œbundle exec jekyll build”,
β€œdeploy”: β€œgulp build && bundle exec jekyll build && s3-website deploy _site”,
β€œgulp”: β€œgulp”
},
β€œauthor”: {
β€œname”: β€œJooyoung Park”,
β€œemail”: β€œpark.joo.young@protonmail.com”,
β€œurl”: β€œhttps://www.joooyoungpark.com/”
},
β€œrepository”: {
β€œtype”: β€œgit”,
β€œurl”: β€œGitHub - juliajoo/youngdesign: I’m Jooyoung, a UX designer and researcher from South Korea. Born and raised in Seoul, I have been creating user-centric interfaces and experiences. Holding flexible yet critical attitude toward new technologies, I am interested in involving actual users into the design process.”
},
β€œbugs”: β€œIssues Β· samesies/barber-jekyll Β· GitHub”,
β€œkeywords”: [
β€œbarber”,
β€œjekyll”,
β€œblog”,
β€œtheme”
],
β€œdependencies”: {
β€œaos”: β€œ^2.3.4”,
β€œjquery”: β€œ^3.5.0”,
β€œsalvattore”: β€œ^1.0.9”
},
β€œdevDependencies”: {
β€œ@babel/core”: β€œ^7.4.5”,
β€œ@babel/preset-env”: β€œ^7.4.5”,
β€œbabelify”: β€œ^10.0.0”,
β€œbrowserify”: β€œ^16.2.3”,
β€œeslint”: β€œ^5.16.0”,
β€œgulp”: β€œ^4.0.2”,
β€œgulp-autoprefixer”: β€œ^6.1.0”,
β€œgulp-clean-css”: β€œ^4.2.0”,
β€œgulp-eslint”: β€œ^5.0.0”,
β€œgulp-rename”: β€œ^1.4.0”,
β€œgulp-sass”: β€œ^4.0.2”,
β€œgulp-stylelint”: β€œ^9.0.0”,
β€œgulp-uglify”: β€œ^3.0.2”,
β€œgulp-zip”: β€œ^5.0.0”,
β€œjekyll”: β€œ^3.0.0-beta1”,
β€œs3-website”: β€œ^3.3.0”,
β€œstylelint”: β€œ^13.9.0”,
β€œstylelint-config-recommended”: β€œ^2.2.0”,
β€œstylelint-config-standard”: β€œ^18.3.0”,
β€œvinyl-buffer”: β€œ^1.0.1”,
β€œvinyl-source-stream”: β€œ^2.0.0”
},
β€œlicense”: β€œMIT”
}

Hey there,
Which version of Ruby are you running locally that works? You’re using 2.7.1 on Netlify. If you’re running a different version locally, can you please set a RUBY_VERSION environment variable on Netlify to match? Here are our docs on doing that:

I’ve also moved this to its own thread since the other one was getting super long!

Okay, thanks to your advice, my website is deploying locally in my git repository. However, when I download its fresh clone and run it locally, it would give me these errors. (I am currently troubleshooting step by step because I keep getting above deploy errors over and over again…) Do you have any idea what is happening and what can I do to resolve it?

Jjoo@bagjuyeonguimbp youngdesign-master % bundle exec jekyll serve
Configuration file: /Users/Jjoo/Downloads/youngdesign-master/_config.yml
        Source: /Users/Jjoo/Downloads/youngdesign-master
   Destination: /Users/Jjoo/Downloads/youngdesign-master/_site
 Incremental build: disabled. Enable with --incremental
  Generating... 
/Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
/Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
/Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
/Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
/Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/convertible.rb:41: warning: Using the last argument as keyword parameters is deprecated
/Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
/Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
/Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
/Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
/Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/document.rb:449: warning: Using the last argument as keyword parameters is deprecated
jekyll 3.8.5 | Error:  No such file or directory @ rb_sysopen - /Users/Jjoo/Downloads/youngdesign-master/bin/gulp
Traceback (most recent call last):
    42: from /Users/Jjoo/.rubies/ruby-2.7.2/bin/bundle:23:in `<main>'
    41: from /Users/Jjoo/.rubies/ruby-2.7.2/bin/bundle:23:in `load'
    40: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/exe/bundle:37:in `<top (required)>'
    39: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/site_ruby/2.7.0/bundler/friendly_errors.rb:130:in `with_friendly_errors'
    38: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.2.7/exe/bundle:49:in `block in <top (required)>'
    37: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/site_ruby/2.7.0/bundler/cli.rb:24:in `start'
    36: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/site_ruby/2.7.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
    35: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/site_ruby/2.7.0/bundler/cli.rb:30:in `dispatch'
    34: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/site_ruby/2.7.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
    33: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/site_ruby/2.7.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
    32: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/site_ruby/2.7.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
    31: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/site_ruby/2.7.0/bundler/cli.rb:494:in `exec'
    30: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/site_ruby/2.7.0/bundler/cli/exec.rb:28:in `run'
    29: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/site_ruby/2.7.0/bundler/cli/exec.rb:63:in `kernel_load'
    28: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/site_ruby/2.7.0/bundler/cli/exec.rb:63:in `load'
    27: from /Users/Jjoo/.gem/ruby/2.7.2/bin/jekyll:23:in `<top (required)>'
    26: from /Users/Jjoo/.gem/ruby/2.7.2/bin/jekyll:23:in `load'
    25: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/exe/jekyll:15:in `<top (required)>'
    24: from /Users/Jjoo/.gem/ruby/2.7.2/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
    23: from /Users/Jjoo/.gem/ruby/2.7.2/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
    22: from /Users/Jjoo/.gem/ruby/2.7.2/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
    21: from /Users/Jjoo/.gem/ruby/2.7.2/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
    20: from /Users/Jjoo/.gem/ruby/2.7.2/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
    19: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/commands/serve.rb:75:in `block (2 levels) in init_with_program'
    18: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/commands/serve.rb:93:in `start'
    17: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/commands/serve.rb:93:in `each'
    16: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/commands/serve.rb:93:in `block in start'
    15: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/commands/build.rb:36:in `process'
    14: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/commands/build.rb:65:in `build'
    13: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/command.rb:28:in `process_site'
    12: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/site.rb:69:in `process'
    11: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/site.rb:164:in `read'
    10: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/reader.rb:16:in `read'
     9: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/reader.rb:51:in `read_directories'
     8: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/reader.rb:76:in `retrieve_dirs'
     7: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/reader.rb:76:in `each'
     6: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/reader.rb:80:in `block in retrieve_dirs'
     5: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/reader.rb:45:in `read_directories'
     4: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/reader.rb:45:in `select'
     3: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/reader.rb:46:in `block in read_directories'
     2: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/utils.rb:146:in `has_yaml_header?'
     1: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/utils.rb:146:in `open'
/Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-3.8.5/lib/jekyll/utils.rb:146:in `initialize': No such file or directory @ rb_sysopen - /Users/Jjoo/Downloads/youngdesign-master/bin/gulp (Errno::ENOENT)
Jjoo@bagjuyeonguimbp youngdesign-master % ruby -v
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin19]
Jjoo@bagjuyeonguimbp youngdesign-master % gulp -v
nodenv: node: command not found

The `node' command exists in these Node versions:
  14.15.4

Jjoo@bagjuyeonguimbp youngdesign-master % jekyll -v
Traceback (most recent call last):
    10: from /Users/Jjoo/.gem/ruby/2.7.2/bin/jekyll:23:in `<main>'
     9: from /Users/Jjoo/.gem/ruby/2.7.2/bin/jekyll:23:in `load'
     8: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-4.2.0/exe/jekyll:11:in `<top (required)>'
     7: from /Users/Jjoo/.gem/ruby/2.7.2/gems/jekyll-4.2.0/lib/jekyll/plugin_manager.rb:52:in `require_from_bundler'
     6: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/site_ruby/2.7.0/bundler.rb:148:in `setup'
     5: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:26:in `setup'
     4: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:26:in `map'
     3: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/site_ruby/2.7.0/bundler/spec_set.rb:149:in `each'
     2: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/site_ruby/2.7.0/bundler/spec_set.rb:149:in `each'
     1: from /Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:31:in `block in setup'
/Users/Jjoo/.rubies/ruby-2.7.2/lib/ruby/site_ruby/2.7.0/bundler/runtime.rb:302:in `check_for_activated_spec!': You have already activated public_suffix 4.0.6, but your Gemfile requires public_suffix 3.0.3. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)

Hey @jooy,
It seems like there are a lot of problems with this repository :frowning: I think many of the issues are related to deprecated packages and mismatched versions, and if you are running into these issues locally as well, that suggests that the problem goes deeper than just building on Netlify. Would you be willing to try deploying a newer Jekyll template from Jekyll | Jamstack ?