Seemingly without changes on. my side, the jekyll deployment started publishing posts from the template samples. I’m using minima, and I"m seeing these posts: “My Example Post”, “Super Short Article”, etc, from the template https://github.com/jekyll/minima/tree/master/_posts published on my web site, intermingled with my posts from the GitHub repository.
When I’m doing jekyll serve locally – this does not happen. It appears some misconfiguration somewhere in Cloudflare pipeline
I have even tried to add those template pages to my _posts, and explicity hide them by adding published: false to the front matter – but no dice. It seems they are overwritten by the ones from the template by the pipeline.
Can someone who manages the pipeline please take a look? Attaching full log – but there does not seem to be anything actionable.
20:46:43.742 Cloning repository...
20:46:45.319 From https://github.com/[edited]
20:46:45.320 * branch cbb913039684d8a8b836a9bf81e918099ae2cfca -> FETCH_HEAD
20:46:45.320
20:46:45.520 HEAD is now at cbb9130 workarund cloudflare including templates posts in the final blog
20:46:45.520
20:46:45.633
20:46:45.663 Success: Finished cloning repository files
20:46:46.336 Installing dependencies
20:46:46.345 Python version set to 2.7
20:46:49.751 v12.18.0 is already installed.
20:46:51.279 Now using node v12.18.0 (npm v6.14.4)
20:46:51.466 Started restoring cached build plugins
20:46:51.480 Finished restoring cached build plugins
20:46:51.963 Attempting ruby version 2.7.1, read from environment
20:46:53.607 Using /opt/buildhome/.rvm/gems/ruby-2.7.1
20:46:54.264 Using bundler version 2.4.10 from Gemfile.lock
20:47:10.986 Successfully installed bundler-2.4.10
20:47:10.987 1 gem installed
20:47:11.034 Using PHP version 5.6
20:47:11.035 Started restoring cached ruby gems
20:47:11.054 Finished restoring cached ruby gems
20:47:11.055 Installing gem bundle
20:47:11.418 [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 --local path '/opt/buildhome/cache/bundle'`, and stop using this flag
20:47:11.584 [DEPRECATED] The --binstubs option will be removed in favor of `bundle binstubs --all`
20:47:14.474 Fetching gem metadata from https://rubygems.org/.........
20:47:14.495 Resolving dependencies...
20:47:14.732 Fetching concurrent-ruby 1.2.2
20:47:14.732 Fetching minitest 5.18.1
20:47:14.732 Fetching thread_safe 0.3.6
20:47:14.733 Fetching zeitwerk 2.6.9
20:47:14.822 Installing zeitwerk 2.6.9
20:47:14.844 Installing thread_safe 0.3.6
20:47:14.873 Installing minitest 5.18.1
20:47:14.910 Installing concurrent-ruby 1.2.2
20:47:14.957 Fetching public_suffix 4.0.7
20:47:15.050 Installing public_suffix 4.0.7
20:47:15.078 Using bundler 2.4.10
20:47:15.101 Fetching coffee-script-source 1.11.1
20:47:15.280 Fetching execjs 2.8.1
20:47:15.290 Installing coffee-script-source 1.11.1
20:47:15.355 Fetching colorator 1.1.0
20:47:15.375 Installing execjs 2.8.1
20:47:15.384 Fetching unf_ext 0.0.8.2
20:47:15.452 Installing colorator 1.1.0
20:47:15.491 Fetching eventmachine 1.2.7
20:47:15.524 Fetching http_parser.rb 0.8.0
20:47:15.526 Installing unf_ext 0.0.8.2 with native extensions
20:47:15.659 Installing http_parser.rb 0.8.0 with native extensions
20:47:15.664 Installing eventmachine 1.2.7 with native extensions
20:47:18.969 Fetching ffi 1.15.5
20:47:19.162 Installing ffi 1.15.5 with native extensions
20:47:39.635 Fetching faraday-net_http 3.0.2
20:47:39.689 Installing faraday-net_http 3.0.2
20:47:48.972 Fetching ruby2_keywords 0.0.5
20:47:49.024 Installing ruby2_keywords 0.0.5
20:47:50.432 Fetching forwardable-extended 2.6.0
20:47:50.433 Fetching gemoji 3.0.1
20:47:50.433 Fetching rb-fsevent 0.11.2
20:47:50.447 Fetching rexml 3.2.5
20:47:50.495 Installing forwardable-extended 2.6.0
20:47:50.539 Installing gemoji 3.0.1
20:47:50.541 Fetching liquid 4.0.3
20:47:50.549 Installing rexml 3.2.5
20:47:50.551 Installing rb-fsevent 0.11.2
20:47:50.648 Installing liquid 4.0.3
20:47:50.771 Fetching mercenary 0.3.6
20:47:50.814 Fetching rouge 3.26.0
20:47:50.866 Installing mercenary 0.3.6
20:47:51.068 Installing rouge 3.26.0
20:47:51.126 Fetching safe_yaml 1.0.5
20:47:51.136 Fetching racc 1.7.1
20:47:51.241 Installing safe_yaml 1.0.5
20:47:51.274 Installing racc 1.7.1 with native extensions
20:47:51.555 Fetching jekyll-paginate 1.1.0
20:47:51.652 Installing jekyll-paginate 1.1.0
20:47:53.000 Fetching rubyzip 2.3.2
20:47:53.004 Fetching jekyll-swiss 1.0.0
20:47:53.006 Fetching unicode-display_width 1.8.0
20:47:53.024 Fetching tzinfo 1.2.11
20:47:53.060 Installing unicode-display_width 1.8.0
20:47:53.071 Installing rubyzip 2.3.2
20:47:53.072 Installing jekyll-swiss 1.0.0
20:47:53.130 Fetching addressable 2.8.4
20:47:53.154 Installing tzinfo 1.2.11
20:47:53.226 Installing addressable 2.8.4
20:47:53.253 Fetching coffee-script 2.4.1
20:47:53.328 Fetching i18n 0.9.5
20:47:53.347 Installing coffee-script 2.4.1
20:47:53.393 Fetching unf 0.1.4
20:47:53.395 Fetching ethon 0.16.0
20:47:53.425 Installing i18n 0.9.5
20:47:53.485 Installing ethon 0.16.0
20:47:53.525 Installing unf 0.1.4
20:47:53.653 Fetching faraday 2.7.10
20:47:53.738 Fetching rb-inotify 0.10.1
20:47:53.763 Installing faraday 2.7.10
20:47:53.830 Installing rb-inotify 0.10.1
20:47:53.927 Fetching em-websocket 0.5.3
20:47:53.964 Fetching pathutil 0.16.2
20:47:53.998 Installing em-websocket 0.5.3
20:47:54.172 Installing pathutil 0.16.2
20:47:54.187 Fetching kramdown 2.3.1
20:47:54.229 Fetching nokogiri 1.15.3 (x86_64-linux)
20:47:54.300 Installing kramdown 2.3.1
20:47:54.318 Fetching terminal-table 1.8.0
20:47:54.403 Installing terminal-table 1.8.0
20:47:54.447 Fetching jekyll-coffeescript 1.1.1
20:47:54.517 Installing jekyll-coffeescript 1.1.1
20:47:54.524 Fetching simpleidn 0.2.1
20:47:54.572 Fetching activesupport 6.0.6.1
20:47:54.638 Installing simpleidn 0.2.1
20:47:54.733 Installing activesupport 6.0.6.1
20:47:54.755 Fetching ruby-enum 0.9.0
20:47:54.883 Installing ruby-enum 0.9.0
20:47:55.125 Installing nokogiri 1.15.3 (x86_64-linux)
20:47:55.230 Fetching sass-listen 4.0.0
20:47:55.326 Installing sass-listen 4.0.0
20:47:55.554 Fetching listen 3.8.0
20:47:55.631 Installing listen 3.8.0
20:47:55.910 Fetching typhoeus 1.4.0
20:47:56.006 Installing typhoeus 1.4.0
20:47:56.180 Fetching sawyer 0.9.2
20:47:56.266 Installing sawyer 0.9.2
20:47:56.388 Fetching dnsruby 1.70.0
20:47:56.491 Fetching commonmarker 0.17.13
20:47:56.558 Installing dnsruby 1.70.0
20:47:56.604 Installing commonmarker 0.17.13 with native extensions
20:47:57.193 Fetching sass 3.7.4
20:47:57.366 Installing sass 3.7.4
20:48:07.570 Fetching jekyll-watch 2.2.1
20:48:07.584 Fetching octokit 4.25.1
20:48:07.591 Fetching html-pipeline 2.14.3
20:48:07.594 Fetching kramdown-parser-gfm 1.1.0
20:48:07.653 Installing kramdown-parser-gfm 1.1.0
20:48:07.659 Installing jekyll-watch 2.2.1
20:48:07.703 Installing html-pipeline 2.14.3
20:48:07.705 Fetching jekyll-sass-converter 1.5.2
20:48:07.709 Installing octokit 4.25.1
20:48:07.793 Installing jekyll-sass-converter 1.5.2
20:48:07.850 Fetching jekyll 3.9.0
20:48:07.942 Installing jekyll 3.9.0
20:48:08.230 Fetching github-pages-health-check 1.17.2
20:48:08.230 Fetching jekyll-gist 1.5.0
20:48:08.301 Installing github-pages-health-check 1.17.2
20:48:08.304 Installing jekyll-gist 1.5.0
20:48:08.441 Fetching jekyll-default-layout 0.1.4
20:48:08.441 Fetching jekyll-avatar 0.7.0
20:48:08.441 Fetching jekyll-commonmark 1.3.1
20:48:08.484 Fetching jekyll-feed 0.15.1
20:48:08.511 Installing jekyll-commonmark 1.3.1
20:48:08.517 Installing jekyll-avatar 0.7.0
20:48:08.526 Installing jekyll-default-layout 0.1.4
20:48:08.567 Installing jekyll-feed 0.15.1
20:48:08.572 Fetching jekyll-github-metadata 2.13.0
20:48:08.632 Fetching jekyll-mentions 1.6.0
20:48:08.635 Fetching jekyll-optional-front-matter 0.3.2
20:48:08.644 Installing jekyll-github-metadata 2.13.0
20:48:08.660 Fetching jekyll-readme-index 0.3.0
20:48:08.694 Fetching jekyll-redirect-from 0.16.0
20:48:08.701 Installing jekyll-optional-front-matter 0.3.2
20:48:08.713 Installing jekyll-mentions 1.6.0
20:48:08.721 Installing jekyll-readme-index 0.3.0
20:48:08.737 Fetching jekyll-relative-links 0.6.1
20:48:08.755 Fetching jekyll-remote-theme 0.4.3
20:48:08.758 Fetching jekyll-seo-tag 2.7.1
20:48:08.759 Installing jekyll-redirect-from 0.16.0
20:48:08.805 Installing jekyll-relative-links 0.6.1
20:48:08.812 Installing jekyll-remote-theme 0.4.3
20:48:08.841 Installing jekyll-seo-tag 2.7.1
20:48:08.861 Fetching jekyll-sitemap 1.4.0
20:48:08.878 Fetching jekyll-titles-from-headings 0.5.3
20:48:08.934 Fetching jemoji 0.12.0
20:48:08.941 Installing jekyll-sitemap 1.4.0
20:48:08.948 Installing jekyll-titles-from-headings 0.5.3
20:48:08.996 Fetching jekyll-commonmark-ghpages 0.1.6
20:48:09.003 Fetching jekyll-theme-architect 0.1.1
20:48:09.010 Installing jemoji 0.12.0
20:48:09.044 Fetching jekyll-theme-cayman 0.1.1
20:48:09.075 Installing jekyll-commonmark-ghpages 0.1.6
20:48:09.104 Installing jekyll-theme-architect 0.1.1
20:48:09.106 Installing jekyll-theme-cayman 0.1.1
20:48:09.154 Fetching jekyll-theme-dinky 0.1.1
20:48:09.185 Fetching jekyll-theme-hacker 0.1.2
20:48:09.217 Fetching jekyll-theme-leap-day 0.1.1
20:48:09.236 Installing jekyll-theme-dinky 0.1.1
20:48:09.245 Fetching jekyll-theme-merlot 0.1.1
20:48:09.259 Installing jekyll-theme-hacker 0.1.2
20:48:09.287 Fetching jekyll-theme-midnight 0.1.1
20:48:09.310 Fetching jekyll-theme-minimal 0.1.1
20:48:09.349 Installing jekyll-theme-leap-day 0.1.1
20:48:09.357 Installing jekyll-theme-merlot 0.1.1
20:48:09.585 Installing jekyll-theme-minimal 0.1.1
20:48:09.631 Installing jekyll-theme-midnight 0.1.1
20:48:09.773 Fetching jekyll-theme-modernist 0.1.1
20:48:09.785 Fetching jekyll-theme-primer 0.5.4
20:48:09.840 Fetching jekyll-theme-slate 0.1.1
20:48:09.845 Installing jekyll-theme-modernist 0.1.1
20:48:09.856 Installing jekyll-theme-primer 0.5.4
20:48:09.919 Installing jekyll-theme-slate 0.1.1
20:48:09.924 Fetching jekyll-theme-tactile 0.1.1
20:48:09.951 Fetching jekyll-theme-time-machine 0.1.1
20:48:10.002 Fetching minima 2.5.1
20:48:10.008 Installing jekyll-theme-tactile 0.1.1
20:48:10.037 Installing jekyll-theme-time-machine 0.1.1
20:48:10.077 Installing minima 2.5.1
20:48:10.159 Fetching github-pages 215
20:48:10.214 Installing github-pages 215
20:48:10.246 Bundle complete! 3 Gemfile dependencies, 91 gems now installed.
20:48:10.246 Bundled gems are installed into `/opt/buildhome/cache/bundle`
20:48:10.246 Post-install message from dnsruby:
20:48:10.246 Installing dnsruby...
20:48:10.246 For issues and source code: https://github.com/alexdalitz/dnsruby
20:48:10.246 For general discussion (please tell us how you use dnsruby): https://groups.google.com/forum/#!forum/dnsruby
20:48:10.247 Post-install message from sass:
20:48:10.247
20:48:10.247 Ruby Sass has reached end-of-life and should no longer be used.
20:48:10.247
20:48:10.247 * If you use Sass as a command-line tool, we recommend using Dart Sass, the new
20:48:10.247 primary implementation: https://sass-lang.com/install
20:48:10.247
20:48:10.247 * If you use Sass as a plug-in for a Ruby web framework, we recommend using the
20:48:10.247 sassc gem: https://github.com/sass/sassc-ruby#readme
20:48:10.248
20:48:10.248 * For more details, please refer to the Sass blog:
20:48:10.248 https://sass-lang.com/blog/posts/7828841
20:48:10.248
20:48:10.248 Post-install message from html-pipeline:
20:48:10.248 -------------------------------------------------
20:48:10.248 Thank you for installing html-pipeline!
20:48:10.248 You must bundle Filter gem dependencies.
20:48:10.248 See html-pipeline README.md for more details.
20:48:10.249 https://github.com/jch/html-pipeline#dependencies
20:48:10.249 -------------------------------------------------
20:48:10.249 Post-install message from rubyzip:
20:48:10.249 RubyZip 3.0 is coming!
20:48:10.249 **********************
20:48:10.249
20:48:10.249 The public API of some Rubyzip classes has been modernized to use named
20:48:10.249 parameters for optional arguments. Please check your usage of the
20:48:10.250 following classes:
20:48:10.250 * `Zip::File`
20:48:10.250 * `Zip::Entry`
20:48:10.250 * `Zip::InputStream`
20:48:10.251 * `Zip::OutputStream`
20:48:10.251
20:48:10.251 Please ensure that your Gemfiles and .gemspecs are suitably restrictive
20:48:10.251 to avoid an unexpected breakage when 3.0 is released (e.g. ~> 2.3.0).
20:48:10.251 See https://github.com/rubyzip/rubyzip for details. The Changelog also
20:48:10.251 lists other enhancements and bugfixes that have been implemented since
20:48:10.251 version 2.3.0.
20:48:10.302 Gem bundle installed
20:48:10.603 5.2.5 is already installed.
20:48:10.627 Using Swift version 5.2.5
20:48:10.629 Installing Hugo 0.54.0
20:48:11.603 Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z
20:48:11.608 Started restoring cached go cache
20:48:11.628 Finished restoring cached go cache
20:48:11.743 go version go1.14.4 linux/amd64
20:48:11.763 go version go1.14.4 linux/amd64
20:48:11.770 Installing missing commands
20:48:11.770 Verify run directory
20:48:11.770 Executing user command: jekyll build
20:48:13.199 Configuration file: /opt/buildhome/repo/_config.yml
20:48:13.441 To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
20:48:14.047 Source: /opt/buildhome/repo
20:48:14.047 Destination: /opt/buildhome/repo/_site
20:48:14.047 Incremental build: disabled. Enable with --incremental
20:48:14.047 Generating...
20:48:14.051 Remote Theme: Using theme jekyll/minima
20:48:14.443 Jekyll Feed: Generating feed for posts
20:48:16.072 done in 2.026 seconds.
20:48:16.073 Auto-regeneration: disabled. Use --watch to enable.
20:48:16.104 Finished
20:48:16.105 Note: No functions dir at /functions found. Skipping.
20:48:16.105 Validating asset output directory
20:48:16.770 Deploying your site to Cloudflare's global network...
20:48:19.073 Uploading... (65/104)
20:48:19.678 Uploading... (78/104)
20:48:19.827 Uploading... (91/104)
20:48:20.012 Uploading... (104/104)
20:48:20.012 ✨ Success! Uploaded 39 files (65 already uploaded) (1.62 sec)
20:48:20.012
20:48:20.375 ✨ Upload complete!
20:48:22.231 Success: Assets published!
20:48:22.953 Success: Your site was deployed!
I needed to phone a friend on this, so not certain if this is helpful
This could be arising from difference between your local Jekyll environment and the one on Cloudflare Pages. If these example posts are inside the minima gem, they could be copied into your output during the build process.
Here are some steps you can try to resolve the issue:
It’s possible that these extra posts come from the _posts folder in the Jekyll theme, so try to exclude this folder in your _config.yml file.
exclude:
- minima/_posts
Another method you can try is to override the minima’s _posts directory. To do that, create a _posts directory in your repository and shift all your posts there.
If none of these methods work, you can switch back to a previous version of Jekyll or the theme you are using and see if the problem persists.
You can check the build logs in Cloudflare Pages dashboard under the specific project to see if any errors popped up there during the build.
It seems the opposite is happening – posts in my _posts directory are overwritten by the ones from the theme. I’ve copied posts from the theme, edited content, pushed – and the original posts from the theme showed up when served from Cloudflare.
Maybe that’s the problem – the order of copying stuff is wrong? I can’t reproduce this on my end, and don’t have visibility into Cloudflare pipeline other than that log – which does not show what is copied where.
None of that should have changed --the jekyll version Cloudflare is using is pretty old, and the rest of the stuff is from gemfile.lock that hasn’t updated for a while either.
I just created a new post recently, and pushed; and then noticed the issue.
(For now I’ve changed target from arrogantrabbit.pages.dev to arrogantrabbit.github.io, so that I still benefit from Cloudflare CDN but gihub compiles jekyll, until this is fixed)