Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error when running _scripts/container-jekyll #725

@deadmeu

Description

@deadmeu

I'm trying to run an instance of the website in an EndeavourOS VM but am getting the following error:

[test@test cockpit-project.github.io]$ _scripts/container-create
## Creating website container...
STEP 1/2: FROM ghcr.io/github/pages-gem
Trying to pull ghcr.io/github/pages-gem:latest...
Getting image source signatures
Copying blob f12c0bb1b56e skipped: already exists
Copying blob 7bb465c29149 skipped: already exists
Copying blob 49b40be4436e skipped: already exists
Copying blob c558fac597f8 skipped: already exists
Copying blob d13bbd9d0903 skipped: already exists
Copying blob 3624f0415588 skipped: already exists
Copying blob 1aec4714ae57 skipped: already exists
Copying blob 2b9b41aaa3c5 skipped: already exists
Copying blob 0abfbb302d12 skipped: already exists
Copying blob 5dd011617356 skipped: already exists
Copying blob 6409e148743c skipped: already exists
Copying blob 95eaf8e4f682 skipped: already exists
Copying blob 5d3f8fce2cd4 skipped: already exists
Copying blob 3cfb8ed124d4 skipped: already exists
Copying blob 7b1dcf51c52a skipped: already exists
Copying blob b46f0b255d80 skipped: already exists
Copying blob c2eb13e07edc skipped: already exists
Copying config 0fd5994aba done   |
Writing manifest to image destination
STEP 2/2: RUN bundle config path /src/site/.gem
--> Using cache a1ee55dc16a49a02f30aef26fc3a2b99e2cd03250e3d052ecb888bd17f367a14
COMMIT cockpit-website
--> a1ee55dc16a4
Successfully tagged localhost/cockpit-website:latest
a1ee55dc16a49a02f30aef26fc3a2b99e2cd03250e3d052ecb888bd17f367a14
Bundle complete! 4 Gemfile dependencies, 96 gems now installed.
Bundled gems are installed into `./.gem`
## Done!
## Run _scripts/container-jekyll
[test@test cockpit-project.github.io]$ _scripts/container-jekyll
/src/site/.gem/ruby/3.3.0/gems/jekyll-3.9.3/lib/jekyll.rb:28: warning: csv was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add csv to your Gemfile or gemspec. Also contact author of jekyll-3.9.3 to add csv into its gemspec.
jekyll 3.9.3 | Error:  undefined method `[]' for nil
/usr/local/lib/ruby/3.3.0/logger.rb:384:in `level': undefined method `[]' for nil (NoMethodError)

    @level_override[Fiber.current] || @level
                   ^^^^^^^^^^^^^^^
        from /src/site/.gem/ruby/3.3.0/gems/jekyll-3.9.3/lib/jekyll/log_adapter.rb:43:in `adjust_verbosity'
        from /src/site/.gem/ruby/3.3.0/gems/jekyll-3.9.3/lib/jekyll/configuration.rb:157:in `config_files'
        from /src/site/.gem/ruby/3.3.0/gems/jekyll-3.9.3/lib/jekyll.rb:113:in `configuration'
        from /src/site/.gem/ruby/3.3.0/gems/jekyll-3.9.3/lib/jekyll/command.rb:43:in `configuration_from_options'
        from /src/site/.gem/ruby/3.3.0/gems/jekyll-3.9.3/lib/jekyll/commands/serve.rb:89:in `start'
        from /src/site/.gem/ruby/3.3.0/gems/jekyll-3.9.3/lib/jekyll/commands/serve.rb:75:in `block (2 levels) in init_with_program'
        from /src/site/.gem/ruby/3.3.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
        from /src/site/.gem/ruby/3.3.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
        from /src/site/.gem/ruby/3.3.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
        from /src/site/.gem/ruby/3.3.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
        from /src/site/.gem/ruby/3.3.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
        from /src/site/.gem/ruby/3.3.0/gems/jekyll-3.9.3/exe/jekyll:15:in `<top (required)>'
        from /src/site/.gem/ruby/3.3.0/bin/jekyll:25:in `load'
        from /src/site/.gem/ruby/3.3.0/bin/jekyll:25:in `<top (required)>'
        from /usr/local/lib/ruby/3.3.0/bundler/cli/exec.rb:58:in `load'
        from /usr/local/lib/ruby/3.3.0/bundler/cli/exec.rb:58:in `kernel_load'
        from /usr/local/lib/ruby/3.3.0/bundler/cli/exec.rb:23:in `run'
        from /usr/local/lib/ruby/3.3.0/bundler/cli.rb:451:in `exec'
        from /usr/local/lib/ruby/3.3.0/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
        from /usr/local/lib/ruby/3.3.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
        from /usr/local/lib/ruby/3.3.0/bundler/vendor/thor/lib/thor.rb:527:in `dispatch'
        from /usr/local/lib/ruby/3.3.0/bundler/cli.rb:34:in `dispatch'
        from /usr/local/lib/ruby/3.3.0/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
        from /usr/local/lib/ruby/3.3.0/bundler/cli.rb:28:in `start'
        from /usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/exe/bundle:28:in `block in <top (required)>'
        from /usr/local/lib/ruby/3.3.0/bundler/friendly_errors.rb:117:in `with_friendly_errors'
        from /usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.3/exe/bundle:20:in `<top (required)>'
        from /usr/local/bin/bundle:25:in `load'
        from /usr/local/bin/bundle:25:in `<main>'

It may be due to a configuration error on my part but I'm not sure.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

detriment

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions