WebFaction
Community site: login faq

I'm getting the following error when I try to run jekyll serve, but the error doesn't happen when I run Jekyll locally:

[my_username@web148 my_username.co.uk]$ jekyll serve
Configuration file: /home/my_username/my_username.co.uk/_config.yml
            Source: /home/my_username/my_username.co.uk
       Destination: /home/my_username/my_username.co.uk/_site
      Generating...   Liquid Exception: Failed to get header. in 2010-04-09-python-and-sqlite.textile
/home/my_username/gems/gems/pygments.rb-0.4.2/lib/pygments/popen.rb:357:in `rescue in get_header'
/home/my_username/gems/gems/pygments.rb-0.4.2/lib/pygments/popen.rb:338:in `get_header'
/home/my_username/gems/gems/pygments.rb-0.4.2/lib/pygments/popen.rb:235:in `block in mentos'
/usr/local/lib/ruby20/ruby/2.0.0/timeout.rb:66:in `timeout'
/home/my_username/gems/gems/pygments.rb-0.4.2/lib/pygments/popen.rb:209:in `mentos'
/home/my_username/gems/gems/pygments.rb-0.4.2/lib/pygments/popen.rb:192:in `highlight'
/home/my_username/gems/gems/jekyll-1.0.0/lib/jekyll/tags/highlight.rb:57:in `render_pygments'
/home/my_username/gems/gems/jekyll-1.0.0/lib/jekyll/tags/highlight.rb:45:in `render'
/home/my_username/gems/gems/liquid-2.5.0/lib/liquid/block.rb:106:in `block in render_all'
/home/my_username/gems/gems/liquid-2.5.0/lib/liquid/block.rb:93:in `each'
/home/my_username/gems/gems/liquid-2.5.0/lib/liquid/block.rb:93:in `render_all'
/home/my_username/gems/gems/liquid-2.5.0/lib/liquid/block.rb:82:in `render'
/home/my_username/gems/gems/liquid-2.5.0/lib/liquid/template.rb:124:in `render'
/home/my_username/gems/gems/liquid-2.5.0/lib/liquid/template.rb:132:in `render!'
/home/my_username/gems/gems/jekyll-1.0.0/lib/jekyll/convertible.rb:77:in `render_liquid'
/home/my_username/gems/gems/jekyll-1.0.0/lib/jekyll/convertible.rb:128:in `do_layout'
/home/my_username/gems/gems/jekyll-1.0.0/lib/jekyll/post.rb:285:in `render'
/home/my_username/gems/gems/jekyll-1.0.0/lib/jekyll/site.rb:230:in `block in render'
/home/my_username/gems/gems/jekyll-1.0.0/lib/jekyll/site.rb:229:in `each'
/home/my_username/gems/gems/jekyll-1.0.0/lib/jekyll/site.rb:229:in `render'
/home/my_username/gems/gems/jekyll-1.0.0/lib/jekyll/site.rb:44:in `process'
/home/my_username/gems/gems/jekyll-1.0.0/lib/jekyll/command.rb:18:in `process_site'
/home/my_username/gems/gems/jekyll-1.0.0/lib/jekyll/commands/build.rb:23:in `build'
/home/my_username/gems/gems/jekyll-1.0.0/lib/jekyll/commands/build.rb:7:in `process'
/home/my_username/gems/gems/jekyll-1.0.0/bin/jekyll:83:in `block (2 levels) in <top (required)>'
/home/my_username/gems/gems/commander-4.1.3/lib/commander/command.rb:180:in `call'
/home/my_username/gems/gems/commander-4.1.3/lib/commander/command.rb:180:in `call'
/home/my_username/gems/gems/commander-4.1.3/lib/commander/command.rb:155:in `run'
/home/my_username/gems/gems/commander-4.1.3/lib/commander/runner.rb:402:in `run_active_command'
/home/my_username/gems/gems/commander-4.1.3/lib/commander/runner.rb:66:in `run!'
/home/my_username/gems/gems/commander-4.1.3/lib/commander/delegates.rb:7:in `run!'
/home/my_username/gems/gems/commander-4.1.3/lib/commander/import.rb:10:in `block in <top (required)>'

Does anyone know how to fix this?

asked 05 Jun '13, 09:21

Sam Starling
647
accept rate: 0%

edited 05 Jun '13, 11:16


perhaps you wrote a post titled: 2010-04-09-python-and-sqlite.textile? The error says it can't find the header information... did you accidentally delete it? I would start there.

permanent link

answered 05 Jun '13, 11:13

monkmartinez
2126
accept rate: 0%

It works fine locally with the exact same gems, so the post itself isn't the problem.

(05 Jun '13, 11:16) Sam Starling

Personally, I would remove that post and see what happens.

(05 Jun '13, 11:29) monkmartinez

I just googled and found this... http://www.wongdev.com/blog/2013/01/16/octopress-on-archlinux/

at the bottom: Liquid Exception: Failed to get header. in 2013-01-16-octopress-on-archlinux.markdown This is caused by Python 3 being unsupported by the pygments.rb gem. The gem calls Python via #!/usr/bin/env python. In Arch Linux, python defaults to Python 3.x and python2 to Python 2.x.

You may need to activate a virtualenv and generate the blog with it.

(05 Jun '13, 11:34) monkmartinez
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×337
×82
×3
×2

question asked: 05 Jun '13, 09:21

question was seen: 4,213 times

last updated: 05 Jun '13, 11:37

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2021 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM