pages-gem icon indicating copy to clipboard operation
pages-gem copied to clipboard

Regeneration fails without network access

Open jpouellet opened this issue 9 years ago • 3 comments

Before submitting an issue, please be sure to

This issue affects

  • [ ] The site generated by GitHub Pages
  • [X] Building sites locally

What did you do (e.g., steps to reproduce)

bundle exec jekyll serve without network connectivity.

What did you expect to happen?

The page to regenerate when local changes are made on disk.

What happened instead?

The page initially generates and serves fine, but on regeneration I get:

% bundle exec jekyll serve       
Configuration file: /home/user/qubesos.github.io/_config.yml
Configuration file: /home/user/qubesos.github.io/_config.yml
            Source: /home/user/qubesos.github.io
       Destination: /home/user/qubesos.github.io/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
                    done in 9.53 seconds.
 Auto-regeneration: enabled for '/home/user/qubesos.github.io'
Configuration file: /home/user/qubesos.github.io/_config.yml
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.
      Regenerating: 1 file(s) changed at 2016-12-11 08:05:11    GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data.
   GitHub Metadata: Failed to open TCP connection to api.github.com:443 (No route to host - connect(2) for "api.github.com" port 443)
   GitHub Metadata: Failed to open TCP connection to api.github.com:443 (No route to host - connect(2) for "api.github.com" port 443)
   GitHub Metadata: Failed to open TCP connection to api.github.com:443 (No route to host - connect(2) for "api.github.com" port 443)
   GitHub Metadata: Failed to open TCP connection to api.github.com:443 (No route to host - connect(2) for "api.github.com" port 443)
   GitHub Metadata: Failed to open TCP connection to api.github.com:443 (No route to host - connect(2) for "api.github.com" port 443)
...

indefinitely

Additional information

I am trying to do build and serve the page locally without requiring network access.

The above error comes from the jekyll-github-metadata plugin, but the site does not use any {{ site.github.* }} whatsoever, so it would be nice to be able to simply disable that plugin somehow if not required or desired.

  • Link to the live site (if applicable):

    • https://www.qubes-os.org/
  • Link to the source repo (if applicable):

    • https://github.com/QubesOS/qubesos.github.io

jpouellet avatar Dec 11 '16 08:12 jpouellet

@parkr if this is new, do you think it may be related to URL logic? Shouldn't it fall back?

benbalter avatar Dec 12 '16 18:12 benbalter

I realized since reporting this that it does proceed and stop erroring eventually, but it takes a while (20 timeouts or so), which is a lot of waiting.

jpouellet avatar Dec 13 '16 06:12 jpouellet

Working on this over in https://github.com/jekyll/github-metadata/issues/90.

parkr avatar Jan 24 '17 17:01 parkr