Jekyll crashes when time information not parsed #649

Closed
raybesiga opened this Issue Sep 29, 2012 · 18 comments

6 participants

@raybesiga

I am having an issue with my jekyll site. I switched computers to a Mac a while ago and updated my gems. When I run jekyll --server, I get the following error:

/Users/raybesiga/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.0/lib/bundler/runtime.rb:197: warning: Insecure world writable dir /Users/raybesiga/Documents/Sites/raybesiga.github.com/. in PATH, mode 040777
Configuration from /Users/raybesiga/Documents/Sites/raybesiga.github.com/_config.yml
/Users/raybesiga/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/time.rb:267:in `parse': no time information in "" (ArgumentError)
    from /Users/raybesiga/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.6.2/lib/jekyll/site.rb:31:in `reset'
    from /Users/raybesiga/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.6.2/lib/jekyll/site.rb:26:in `initialize'
    from /Users/raybesiga/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.6.2/bin/jekyll:124:in `new'
    from /Users/raybesiga/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.6.2/bin/jekyll:124:in `<top (required)>'
    from /Users/raybesiga/.rvm/gems/ruby-1.9.3-p194/bin/jekyll:19:in `load'
    from /Users/raybesiga/.rvm/gems/ruby-1.9.3-p194/bin/jekyll:19:in `<main>'
    from /Users/raybesiga/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
    from /Users/raybesiga/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'

How can I go about resolving this issue?

@baldowl

Since Ruby 1.9.2, you need at least Jekyll 0.7.0.

@raybesiga

Thanks @baldowl the tip worked great. However, for some reason, the update brings up an error with my assets. The details are below:

/Users/raybesiga/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.0/lib/bundler/runtime.rb:197: warning: Insecure world writable dir /Users/raybesiga/Documents/Sites/raybesiga.github.com/. in PATH, mode 040777
Configuration from /Users/raybesiga/Documents/Sites/raybesiga.github.com/_config.yml
Auto-regenerating enabled: /Users/raybesiga/Documents/Sites/raybesiga.github.com -> /Users/raybesiga/Documents/Sites/raybesiga.github.com/_site
[2012-09-30 20:29:40] regeneration: 83 files changed
[2012-09-30 20:29:40] INFO  WEBrick 1.3.1
[2012-09-30 20:29:40] INFO  ruby 1.9.3 (2012-04-20) [x86_64-darwin11.4.2]
[2012-09-30 20:29:40] INFO  WEBrick::HTTPServer#start: pid=37884 port=4000
localhost - - [30/Sep/2012:20:30:03 EAT] "GET / HTTP/1.1" 200 8224
- -> /
[2012-09-30 20:30:04] ERROR `/true/bootstrap/css/bootstrap.min.css' not found.
[2012-09-30 20:30:04] ERROR `/true/css/style.css' not found.
localhost - - [30/Sep/2012:20:30:04 EAT] "GET /true/bootstrap/css/bootstrap.min.css HTTP/1.1" 404 306
http://localhost:4000/ -> /true/bootstrap/css/bootstrap.min.css
localhost - - [30/Sep/2012:20:30:04 EAT] "GET /true/css/style.css?body=1 HTTP/1.1" 404 288
http://localhost:4000/ -> /true/css/style.css?body=1
[2012-09-30 20:30:05] ERROR `/favicon.ico' not found.
localhost - - [30/Sep/2012:20:30:05 EAT] "GET /favicon.ico HTTP/1.1" 404 281

Why are the asset files not being loaded?

@mattr-
Jekyll member

Jekyll thinks it can find all your assets at localhost:4000/true. I would like to help you with this more. Can you provide a distilled test case? It would need to include your _config.yml, your assets, and perhaps a post or two.

@raybesiga

You can find my repo at https://github.com/raybesiga/raybesiga.github.com. Do you need me to send you a copy? It is a private repo

@mattr-
Jekyll member

If you don't mind sending me a copy, that would be great. My email address is in my GitHub profile. Thanks!

@raybesiga

Sent you an email

@parkr
Jekyll member

Was this resolved, @raybesiga and @mattr-?

@mattr-
Jekyll member
@parkr
Jekyll member

@mattr- Ok. Can you commit to this repo? I'd be happy to help you go through the issues and merge pull requests as they come in if ya like.

@parkr
Jekyll member

@mattr- And congrats on the new job!

@mattr-
Jekyll member
@parkr
Jekyll member

Same. I've sent him 4. Maybe @tombell?

@parkr
Jekyll member

Please submit a PR if this is still a problem.

@parkr parkr closed this Mar 19, 2013
@freecates

Just after doing some image uploading throught prose editor into my site and a pull to my local version, jekyll has started with:

Generating... /usr/lib/ruby/1.9.1/time.rb:267:in `parse': no time information in "{}" (ArgumentError)
    from /var/lib/gems/1.9.1/gems/jekyll-1.1.2/lib/jekyll/post.rb:63:in `initialize'
    from /var/lib/gems/1.9.1/gems/jekyll-1.1.2/lib/jekyll/site.rb:170:in `new'
    from /var/lib/gems/1.9.1/gems/jekyll-1.1.2/lib/jekyll/site.rb:170:in `block in read_posts'
    from /var/lib/gems/1.9.1/gems/jekyll-1.1.2/lib/jekyll/site.rb:168:in `each'
    from /var/lib/gems/1.9.1/gems/jekyll-1.1.2/lib/jekyll/site.rb:168:in `read_posts'
    from /var/lib/gems/1.9.1/gems/jekyll-1.1.2/lib/jekyll/site.rb:140:in `read_directories'
    from /var/lib/gems/1.9.1/gems/jekyll-1.1.2/lib/jekyll/site.rb:110:in `read'
    from /var/lib/gems/1.9.1/gems/jekyll-1.1.2/lib/jekyll/site.rb:42:in `process'
    from /var/lib/gems/1.9.1/gems/jekyll-1.1.2/lib/jekyll/command.rb:18:in `process_site'
    from /var/lib/gems/1.9.1/gems/jekyll-1.1.2/lib/jekyll/commands/build.rb:23:in `build'
    from /var/lib/gems/1.9.1/gems/jekyll-1.1.2/lib/jekyll/commands/build.rb:7:in `process'
    from /var/lib/gems/1.9.1/gems/jekyll-1.1.2/bin/jekyll:96:in `block (2 levels) in <top (required)>'
    from /var/lib/gems/1.9.1/gems/commander-4.1.5/lib/commander/command.rb:180:in `call'
    from /var/lib/gems/1.9.1/gems/commander-4.1.5/lib/commander/command.rb:180:in `call'
    from /var/lib/gems/1.9.1/gems/commander-4.1.5/lib/commander/command.rb:155:in `run'
    from /var/lib/gems/1.9.1/gems/commander-4.1.5/lib/commander/runner.rb:402:in `run_active_command'
    from /var/lib/gems/1.9.1/gems/commander-4.1.5/lib/commander/runner.rb:78:in `run!'
    from /var/lib/gems/1.9.1/gems/commander-4.1.5/lib/commander/delegates.rb:11:in `run!'
    from /var/lib/gems/1.9.1/gems/commander-4.1.5/lib/commander/import.rb:10:in `block in <top (required)>'
@parkr
Jekyll member

Are there any posts with {} as their dates?

@freecates

@parkr You're right! I don't know how but editing a post with prose.io (uploading an image with drag a drog) has changed its date from the right one to {}.

Thanks.

@parkr
Jekyll member

No problem!

@benstill

I've just had the same issue - after editing a file with Prose the date changes to blank. To clarify- this isn't the date in the file name, but inside the content file. Changing it to a date has fixed it

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment