【Github】Github Page push 时报错 Error: Logging at level: debug Configuration file: /github/workspace

某天,在使用github.io发布页面时,并未进行大的改动,push时却突然报错:

Error: Logging at level: debug Configuration file:
/github/workspace/./_config.yml GitHub Pages: github-pages v229 GitHub
Pages: jekyll v3.9.4 Theme: jekyll-theme-primer Theme source:
/usr/local/bundle/gems/jekyll-theme-primer-0.6.0 Requiring:
jekyll-github-metadata Requiring: jekyll-seo-tag Requiring:
jekyll-paginate Requiring: jekyll-sitemap Requiring: jekyll-gist
Requiring: jekyll-feed Requiring: jekyll-redirect-from Requiring:
jekyll-coffeescript Requiring: jekyll-commonmark-ghpages Requiring:
jekyll-github-metadata Requiring: jekyll-relative-links Requiring:
jekyll-optional-front-matter Requiring: jekyll-readme-index Requiring:
jekyll-default-layout Requiring: jekyll-titles-from-headings GitHub
Metadata: Initializing… Source: /github/workspace/. Destination:
/github/workspace/./_site Incremental build: disabled. Enable with
–incremental Generating… EntryFilter: excluded /google_scholar_crawler EntryFilter: excluded /LICENSE EntryFilter:
excluded /Gemfile EntryFilter: excluded /README.md EntryFilter:
excluded /docs EntryFilter: excluded /Gemfile.lock EntryFilter:
excluded /assets/js/plugins EntryFilter: excluded /assets/js/vendor
GitHub Metadata: Generating for xxx/xxx.github.io GitHub Metadata:
Calling @client.pages(“xxx/xxx.github.io”, {}) Generating:
JekyllRedirectFrom::Generator finished in 0.295974655 seconds.
Generating: JekyllOptionalFrontMatter::Generator finished in
6.6334e-05 seconds. Generating: JekyllReadmeIndex::Generator finished in 9.035e-05 seconds. Generating: Jekyll::Paginate::Pagination
finished in 6.242e-06 seconds. Generating: Jekyll::JekyllSitemap
finished in 0.000466416 seconds. Jekyll Feed: Generating feed for
posts Generating: JekyllFeed::Generator finished in 0.000688863
seconds. github-pages 229 | Error: undefined method
`excerpt_separator’ for #<Jekyll::Page @name=“about.md”>

在这里插入图片描述

完整报错信息如下:

Run actions/jekyll-build-pages@v1 /usr/bin/docker run --name
ghcrioactionsjekyllbuildpagesv1010_1f0af3 --label f61661 --workdir
/github/workspace --rm -e “INPUT_SOURCE” -e “INPUT_DESTINATION” -e
“INPUT_FUTURE” -e “INPUT_BUILD_REVISION” -e “INPUT_VERBOSE” -e
“INPUT_TOKEN” -e “HOME” -e “GITHUB_JOB” -e “GITHUB_REF” -e
“GITHUB_SHA” -e “GITHUB_REPOSITORY” -e “GITHUB_REPOSITORY_OWNER” -e
“GITHUB_REPOSITORY_OWNER_ID” -e “GITHUB_RUN_ID” -e “GITHUB_RUN_NUMBER”
-e “GITHUB_RETENTION_DAYS” -e “GITHUB_RUN_ATTEMPT” -e “GITHUB_REPOSITORY_ID” -e “GITHUB_ACTOR_ID” -e “GITHUB_ACTOR” -e
“GITHUB_TRIGGERING_ACTOR” -e “GITHUB_WORKFLOW” -e “GITHUB_HEAD_REF” -e
“GITHUB_BASE_REF” -e “GITHUB_EVENT_NAME” -e “GITHUB_SERVER_URL” -e
“GITHUB_API_URL” -e “GITHUB_GRAPHQL_URL” -e “GITHUB_REF_NAME” -e
“GITHUB_REF_PROTECTED” -e “GITHUB_REF_TYPE” -e “GITHUB_WORKFLOW_REF”
-e “GITHUB_WORKFLOW_SHA” -e “GITHUB_WORKSPACE” -e “GITHUB_ACTION” -e “GITHUB_EVENT_PATH” -e “GITHUB_ACTION_REPOSITORY” -e
“GITHUB_ACTION_REF” -e “GITHUB_PATH” -e “GITHUB_ENV” -e
“GITHUB_STEP_SUMMARY” -e “GITHUB_STATE” -e “GITHUB_OUTPUT” -e
“RUNNER_OS” -e “RUNNER_ARCH” -e “RUNNER_NAME” -e “RUNNER_ENVIRONMENT”
-e “RUNNER_TOOL_CACHE” -e “RUNNER_TEMP” -e “RUNNER_WORKSPACE” -e “ACTIONS_RUNTIME_URL” -e “ACTIONS_RUNTIME_TOKEN” -e
“ACTIONS_CACHE_URL” -e “ACTIONS_ID_TOKEN_REQUEST_URL” -e
“ACTIONS_ID_TOKEN_REQUEST_TOKEN” -e “ACTIONS_RESULTS_URL” -e
GITHUB_ACTIONS=true -e CI=true -v
“/var/run/docker.sock”:“/var/run/docker.sock” -v
“/home/runner/work/_temp/_github_home”:“/github/home” -v
“/home/runner/work/_temp/_github_workflow”:“/github/workflow” -v
“/home/runner/work/_temp/_runner_file_commands”:“/github/file_commands”
-v “/home/runner/work/xxx.github.io/xxx.github.io”:“/github/workspace”
ghcr.io/actions/jekyll-build-pages:v1.0.10 Warning: the running
version of Bundler (2.1.4) is older than the version that created the
lockfile (2.2.19). We suggest you to upgrade to the version that
created the lockfile by running gem install bundler:2.2.19.
Resolving dependencies… The following gems are missing *
concurrent-ruby (1.1.8) * i18n (0.9.5) * minitest (5.14.4) *
thread_safe (0.3.6) * tzinfo (1.2.9) * zeitwerk (2.4.2) *
activesupport (6.0.3.7) * public_suffix (4.0.6) * addressable
(2.8.0) * coffee-script-source (1.11.1) * execjs (2.8.1) *
ruby-enum (0.9.0) * commonmarker (0.17.13) * unf_ext (0.0.7.7) *
dnsruby (1.61.5) * http_parser.rb (0.6.0) * em-websocket (0.5.2) *
ffi (1.15.1) * ethon (0.14.0) * faraday-em_http (1.0.0) *
faraday-em_synchrony (1.0.0) * faraday-excon (1.1.0) *
faraday-net_http (1.0.1) * faraday-net_http_persistent (1.1.0) *
multipart-post (2.1.1) * ruby2_keywords (0.0.4) * faraday (1.4.2) *
gemoji (3.0.1) * sawyer (0.8.2) * octokit (4.21.0) * typhoeus
(1.4.0) * github-pages-health-check (1.17.2) * rb-fsevent (0.11.0)

  • listen (3.5.1) * rexml (3.2.5) * kramdown (2.3.1) * liquid (4.0.3) * rouge (3.26.0) * jekyll (3.9.0) * jekyll-avatar (0.7.0)
  • jekyll-coffeescript (1.1.1) * jekyll-commonmark (1.3.1) * jekyll-commonmark-ghpages (0.1.6) * jekyll-default-layout (0.1.4) *
    jekyll-feed (0.15.1) * jekyll-github-metadata (2.13.0) *
    mini_portile2 (2.8.4) * racc (1.6.0) * nokogiri (1.13.3) *
    html-pipeline (2.14.0) * jekyll-relative-links (0.6.1) * rubyzip
    (2.3.0) * jekyll-seo-tag (2.7.1) * jekyll-theme-architect (0.1.1) *
    jekyll-theme-cayman (0.1.1) * jekyll-theme-dinky (0.1.1) *
    jekyll-theme-hacker (0.1.2) * jekyll-theme-leap-day (0.1.1) *
    jekyll-theme-merlot (0.1.1) * jekyll-theme-midnight (0.1.1) *
    jekyll-theme-minimal (0.1.1) * jekyll-theme-modernist (0.1.1) *
    jekyll-theme-primer (0.5.4) * jekyll-theme-slate (0.1.1) *
    jekyll-theme-tactile (0.1.1) * jekyll-theme-time-machine (0.1.1) *
    jemoji (0.12.0) * unicode-display_width (1.7.0) * github-pages (215)
  • hawkins (2.0.5) Install missing gems with bundle install Warning: The github-pages gem can’t satisfy your Gemfile’s dependencies. If you
    want to use a different Jekyll version or need additional
    dependencies, consider building Jekyll site with GitHub Actions:
    https://jekyllrb.com/docs/continuous-integration/github-actions/ To
    use retry middleware with Faraday v2.0+, install faraday-retry gem
    /usr/local/bundle/gems/jekyll-3.9.4/lib/jekyll/excerpt.rb:135:in
    extract_excerpt': undefined method excerpt_separator’ for
    #<Jekyll::Page @name=“about.md”> (NoMethodError) from /usr/local/bundle/gems/jekyll-3.9.4/lib/jekyll/excerpt.rb:25:in
    initialize' from /usr/local/bundle/gems/jekyll-relative-links-0.7.0/lib/jekyll-relative-links/generator.rb:173:in new’ from
    /usr/local/bundle/gems/jekyll-relative-links-0.7.0/lib/jekyll-relative-links/generator.rb:173:in
    replace_relative_links_excerpt!' from /usr/local/bundle/gems/jekyll-relative-links-0.7.0/lib/jekyll-relative-links/generator.rb:64:in replace_relative_links!’ from
    /usr/local/bundle/gems/jekyll-relative-links-0.7.0/lib/jekyll-relative-links/generator.rb:44:in
    block in generate' from /usr/local/bundle/gems/jekyll-relative-links-0.7.0/lib/jekyll-relative-links/generator.rb:39:in each’ from
    /usr/local/bundle/gems/jekyll-relative-links-0.7.0/lib/jekyll-relative-links/generator.rb:39:in
    generate' from /usr/local/bundle/gems/jekyll-3.9.4/lib/jekyll/site.rb:175:in block
    in generate’ from
    /usr/local/bundle/gems/jekyll-3.9.4/lib/jekyll/site.rb:173:in each' from /usr/local/bundle/gems/jekyll-3.9.4/lib/jekyll/site.rb:173:in generate’ from
    /usr/local/bundle/gems/jekyll-3.9.4/lib/jekyll/site.rb:70:in process' from /usr/local/bundle/gems/jekyll-3.9.4/lib/jekyll/command.rb:28:in process_site’ from
    /usr/local/bundle/gems/jekyll-3.9.4/lib/jekyll/commands/build.rb:65:in
    build' from /usr/local/bundle/gems/jekyll-3.9.4/lib/jekyll/commands/build.rb:36:in process’ from
    /usr/local/bundle/gems/github-pages-229/bin/github-pages:70:in block (3 levels) in <top (required)>' from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in block in execute’ from
    /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in
    each' from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in execute’ from
    /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in
    go' from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary.rb:19:in program’ from
    /usr/local/bundle/gems/github-pages-229/bin/github-pages:6:in <top (required)>' from /usr/local/bundle/bin/github-pages:23:in load’
    from /usr/local/bundle/bin/github-pages:23:in <main>' Error: Logging at level: debug Configuration file: /github/workspace/./_config.yml GitHub Pages: github-pages v229 GitHub Pages: jekyll v3.9.4 Theme: jekyll-theme-primer Theme source: /usr/local/bundle/gems/jekyll-theme-primer-0.6.0 Requiring: jekyll-github-metadata Requiring: jekyll-seo-tag Requiring: jekyll-paginate Requiring: jekyll-sitemap Requiring: jekyll-gist Requiring: jekyll-feed Requiring: jekyll-redirect-from Requiring: jekyll-coffeescript Requiring: jekyll-commonmark-ghpages Requiring: jekyll-github-metadata Requiring: jekyll-relative-links Requiring: jekyll-optional-front-matter Requiring: jekyll-readme-index Requiring: jekyll-default-layout Requiring: jekyll-titles-from-headings GitHub Metadata: Initializing... Source: /github/workspace/. Destination: /github/workspace/./_site Incremental build: disabled. Enable with --incremental Generating... EntryFilter: excluded /google_scholar_crawler EntryFilter: excluded /LICENSE EntryFilter: excluded /Gemfile EntryFilter: excluded /README.md EntryFilter: excluded /docs EntryFilter: excluded /Gemfile.lock EntryFilter: excluded /assets/js/plugins EntryFilter: excluded /assets/js/vendor GitHub Metadata: Generating for xxx/xxx1.github.io GitHub Metadata: Calling @client.pages("xxx/xxx.github.io", {}) Generating: JekyllRedirectFrom::Generator finished in 0.295974655 seconds. Generating: JekyllOptionalFrontMatter::Generator finished in 6.6334e-05 seconds. Generating: JekyllReadmeIndex::Generator finished in 9.035e-05 seconds. Generating: Jekyll::Paginate::Pagination finished in 6.242e-06 seconds. Generating: Jekyll::JekyllSitemap finished in 0.000466416 seconds. Jekyll Feed: Generating feed for posts Generating: JekyllFeed::Generator finished in 0.000688863 seconds. github-pages 229 | Error: undefined method excerpt_separator’ for #<Jekyll::Page @name=“about.md”>

解决办法:
参考:https://stackoverflow.com/questions/77972098/github-jekyll-page-build-keeps-failing

据说是因为GitHub 将 Jekyll 升级到 v3.9.4
所以需要从_pages/目录下面的.md文件的前部,将 excerpt: ... 命令移除

  • _pages/404.md
  • _pages/about.md
  • _pages/non-menu-page.md
  • other custom files that utilise this command
  • 21
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值