bundle update.bundle exec jekyll build.github-pages : 84 $ bundle exec jekyll serve
Configuration file: C:/Users/Bruce/Documents/Github/blog/_config.yml
Source: C:/Users/Bruce/Documents/Github/blog
Destination: C:/Users/Bruce/Documents/Github/blog/_site
Incremental build: disabled. Enable with --incremental
Generating...
Liquid Exception: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed in _includes/head.html, included in _layouts/default.html
jekyll 3.1.6 | Error: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
I want to use the latest version ,but I encountered the new problem. I've tried the ways I known and even searched the stackoverflow. I appreciate it if you can give me some instructions. Thanks in advance!
Perhaps this thread will be helpful. I don't think the error is theme related.
Thanks a lot! :blush:
Also got this too on Windows 10. The other thread doesn't help.
I've tried changing https to http in _config.yml > url but doesn't help.
bundle exec jekyll serve always has this error. bundle exec jekyll build sometimes passes, so it means there are more things serve does that can make it fail later, but if something fails build then it's an earlier phase.
What's different with https://github.com/jekyll/jekyll/issues/3985, is that here jekyll or bundle exec jekyll works fine, also bundle exec jekyll doctor and bundle exec jekyll clean.
Most likely this: https://github.com/jekyll/jekyll-gist/issues/30
Tried https://gist.github.com/fnichol/867550 but didn't work.
Tried commenting jekyll-gist in _config.yml but didn't work.
@ceefour Looks to be related to the jekyll-gist gem. Please file an issue upstream as I don't control that gem.
@mmistakes as I mentioned before Tried commenting jekyll-gist in _config.yml but didn't work.
So it's probably a similar root cause , that still happens without jekyll-gist.
@ceefour That said the issue isn't theme related. It's something with either your Ruby environment, the Jekyll gem, one of its dependencies, or a combination of these. You'll have to look for help there.
Only other thing I can think of is you're using github-pages gem in Gemfile, which autoloads the Jekyll Gist gem regardless if you comment it out or not. Try replacing with gem "jekyll", then bundle update, then bundle exec jekyll serve.
Other than that I can't really offer any other advice or help. You're better off hoping someone from the core Jekyll team or one of its plugin maintainers comes up with a fix. Windows and Jekyll are known to have issues. Well rather Ruby and Windows,
@ceefour Maybe you can try delete the https://github.com/mmistakes/minimal-mistakes/blob/master/_includes/seo.html#L7 . It worked fine on my site https://github.com/BZRLC/bzrlc.github.io/blob/master/_includes/seo.html#L7 . Just a advice, don't know if it work on your site.
@BruceZhaoR You're a genius! That line is the culprit:
{% assign seo_url = seo_url | default: site.github.url %}
Curiously, I don't see any mention of github.url in _config.yml. Probably a bug?
So indeed this is theme-specific. But my question is why the error message is so confusing (Liquid's fault I guess)? Had it pointed directly to that file and line number, it'd have made debugging so much easier.
Not a bug @ceefour, that's related to the github-metadata plugin. I was going to suggest it but your issue seemed more tied to jekyll-gist so I didn't. When you push your site to GitHub it uses that plugin to automatically set site.github.url for you.
You'll get all kinds of other Liquid errors if you don't properly configure it to. That's why I suggested you switch from using the GitHub Pages gem to vanilla gem "jekyll" in the Gemfile as it won't use the GitHub Metadata plugin.
Usually all you need to do is add repository: username/repo-name to your _config.yml and the error will go away.
Give that plugin docs a read over. It tells you how to set things up so it properly authenticates. If that doesn't work you might have encountered a bug and if so file an issue with them.
Wait, so the best practice is to use gem "jekyll" instead of github-pages gem ? This seems contradictive with the minimal-mistakes defaults _and_ what GitHub itself suggests.
BTW I did have repository: username/repo-name in my _config.yml from the start.
Commenting github-pages gem and using just jekyll, bundle update successful, but bundle exec jekyll serve gave me:
C:\Users\ceefour\git\matagaruda.github.io>bundle exec jekyll serve
Configuration file: C:/Users/ceefour/git/matagaruda.github.io/_config.yml
Configuration file: C:/Users/ceefour/git/matagaruda.github.io/_config.yml
Dependency Error: Yikes! It looks like you don't have jekyll-paginate or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jekyll-paginate' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
jekyll 3.3.0 | Error: jekyll-paginate
(Note: I do use GitHub Pages, but want to preview on localhost)
It depends on where you're hosting. If you hosting with GitHub Pages then you'll want to use gem "github-pages" as it uses versions of Jekyll and its dependencies that mirror how GH Pages..
If you're self hosting then use gem "jekyll" as it gives you the more recent version.
I don't know all the intricacies of how github-metadata works, but I know i've come across all kinds of similar authentication errors if things are configured correctly on Windows. Like I said usually setting repository is enough, but there are some other options you may need to do.
Reach out to the maintainers of that repo for further help. Entirely possible you hit a legit bug. I can't say either way as I have no involvement with that gem/plugin.
@ceefour If you switch to gem "jekyll" you'll need to add all the gems/plugins to your Gemfile. github-pages has jekyll-paginate, jekyll-sitemap, jemoji, etc. as dependencies so they come along for the ride. Otherwise you'll get those errors (which tells you exactly how to solve the problem).
This is all documented.
The GitHub Pages gem installs additional dependencies that may need to be added to your Gemfile if you decide to remove the gem "github-pages".
ref: https://mmistakes.github.io/minimal-mistakes/docs/installation/
Your Gemfile should look like this when using vanilla Jekyll:
source "https://rubygems.org"
gem "jekyll"
gem "wdm", "~> 0.1.0" if Gem.win_platform?
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-paginate"
gem "jekyll-sitemap"
gem "jekyll-gist"
gem "jekyll-feed"
gem " jemoji"
end
Thanks @mmistakes , that works. And I see no more SSL errors even with the original seo.html .....
Most helpful comment
@ceefour If you switch to
gem "jekyll"you'll need to add all the gems/plugins to yourGemfile.github-pageshasjekyll-paginate,jekyll-sitemap,jemoji, etc. as dependencies so they come along for the ride. Otherwise you'll get those errors (which tells you exactly how to solve the problem).This is all documented.
Your
Gemfileshould look like this when using vanilla Jekyll: