Closed HenryF23 closed 1 month ago
Take a look at the configuration I used in #2432. See if that works for you.
Thanks for your reply. Unfortunately, I got the same error message even using the configuration in https://github.com/alshedivat/al-folio/issues/2432
Everything works perfectly fine using GitHub pages.
7:59:00 PM: ❯ Current directory
7:59:00 PM: /opt/build/repo
7:59:00 PM:
7:59:00 PM: ❯ Config file
7:59:00 PM: No config file was defined: using default values.
7:59:00 PM:
7:59:00 PM: ❯ Context
7:59:00 PM: production
7:59:00 PM:
7:59:00 PM: Build command from Netlify app
7:59:00 PM: ────────────────────────────────────────────────────────────────
7:59:00 PM:
7:59:00 PM: $ sed -i "s/^\(baseurl: \).*$/baseurl:/" _config.yml && bundle exec jekyll build
7:59:01 PM: /opt/build/cache/bundle/ruby/3.2.0/gems/mini_racer-0.15.0/lib/mini_racer.rb:22:in `load': /opt/build/cache/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/mini_racer-0.15.0/mini_racer_extension.so: undefined symbol: __libc_single_threaded (LoadError)
from /opt/build/cache/bundle/ruby/3.2.0/gems/mini_racer-0.15.0/lib/mini_racer.rb:22:in `<top (required)>'
from /opt/buildhome/.rvm/gems/ruby-3.2.2/gems/bundler-2.5.7/lib/bundler/runtime.rb:60:in `require'
from /opt/buildhome/.rvm/gems/ruby-3.2.2/gems/bundler-2.5.7/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
from /opt/buildhome/.rvm/gems/ruby-3.2.2/gems/bundler-2.5.7/lib/bundler/runtime.rb:55:in `each'
from /opt/buildhome/.rvm/gems/ruby-3.2.2/gems/bundler-2.5.7/lib/bundler/runtime.rb:55:in `block in require'
from /opt/buildhome/.rvm/gems/ruby-3.2.2/gems/bundler-2.5.7/lib/bundler/runtime.rb:44:in `each'
from /opt/buildhome/.rvm/gems/ruby-3.2.2/gems/bundler-2.5.7/lib/bundler/runtime.rb:44:in `require'
from /opt/buildhome/.rvm/gems/ruby-3.2.2/gems/bundler-2.5.7/lib/bundler.rb:187:in `require'
from /opt/build/cache/bundle/ruby/3.2.0/gems/jekyll-4.3.4/lib/jekyll/plugin_manager.rb:53:in `require_from_bundler'
from /opt/build/cache/bundle/ruby/3.2.0/gems/jekyll-4.3.4/exe/jekyll:11:in `<top (required)>'
from /opt/build/cache/bundle/ruby/3.2.0/bin/jekyll:25:in `load'
from /opt/build/cache/bundle/ruby/3.2.0/bin/jekyll:25:in `<main>'
from /opt/buildhome/.rvm/gems/ruby-3.2.2/bin/ruby_executable_hooks:22:in `eval'
from /opt/buildhome/.rvm/gems/ruby-3.2.2/bin/ruby_executable_hooks:22:in `<main>'
7:59:01 PM: "build.command" failed
7:59:01 PM: ────────────────────────────────────────────────────────────────
7:59:01 PM:
7:59:01 PM: Error message
7:59:01 PM: Command failed with exit code 1: sed -i "s/^\(baseurl: \).*$/baseurl:/" _config.yml && bundle exec jekyll build (https://ntl.fyi/exit-code-1)
7:59:01 PM:
7:59:01 PM: Error location
7:59:01 PM: In Build command from Netlify app:
7:59:01 PM: sed -i "s/^\(baseurl: \).*$/baseurl:/" _config.yml && bundle exec jekyll build
7:59:01 PM:
7:59:01 PM: Resolved config
7:59:01 PM: build:
7:59:01 PM: command: 'sed -i "s/^\(baseurl: \).*$/baseurl:/" _config.yml && bundle exec jekyll build'
7:59:01 PM: commandOrigin: ui
7:59:01 PM: environment:
7:59:01 PM: - RUBY_VERSION
7:59:01 PM: publish: /opt/build/repo/_site
7:59:01 PM: publishOrigin: ui
7:59:02 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
7:59:02 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
7:59:02 PM: Failing build: Failed to build site
7:59:02 PM: Finished processing build request in 1m1.697s
My build settings are these:
I also have these environment variables set
Hmm, it gives me the same error using the same build settings.
Just realized that I am in fact having the same issue, also here in #2432.
Get the latest updates and try it again. I just removed mini_racer
in #2791.
Everything works smoothly after removing mini_racer. Thanks!
Since you recently set your Netlify, would you mind sending a PR adding this to our CUSTOMIZE.md
?
I have opened PR #2798 to include steps to deploy al-folio on Netlify in CUSTOMIZE.md
.
Have you checked that your issue isn't already filed?
Bug description
Failed to build on Netlify
How to reproduce the bug
Error messages and logs
What operating system are you using?
Linux
Where are you seeing the problem on?
Deployed site
More info
I attempted to deploy the latest version of al-folio on Netlify but encountered the following error:
error: mini_racer_extension.so: undefined symbol: __libc_single_threaded (LoadError)
. I have updated the Gemfile.lock usingbundle update
inside the Docker container. I am unsure if this error is due to Netlify using an older version of the Ubuntu image. Please help, thanks!Build image on Netlify: Ubuntu Focal 20.04 (default, the only available Ubuntu image on Netlify right now)
Netlify Build Configuration