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
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!
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? we love newbies around here, there are no stupid questions
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
deleting the file
committing and pushing to GitHub
re-creating the file
adding, committing, pushing to GitHub
But then, should I delete all the files with Capital Letter in its name? 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�
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:
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 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 ?