Troubleshooting guide
Fix common build failures, asset issues, and deployment problems.
Build errors
- Run
bundle exec jekyll build --traceto see the full stack trace. - Ensure Ruby headers and build tools are installed (
build-essentialor@development-tools). - Delete
.jekyll-cacheand_sitethen rebuild. - If Bundler versions differ:
gem install bundlerthenbundle update --bundler.
Assets not loading
- Set
urlandbaseurlin_config.ymlwhen hosting under a subpath (e.g., project sites on GitHub Pages). - Confirm
assets/exists in the deployed output and your web server points to_site. - Hard refresh the browser to clear stale caches.
- Source map 404s are harmless—remove
/*# sourceMappingURL=... */comments if you want silence.
Local server issues
- Port conflict:
bundle exec jekyll serve -P 4001. - LiveReload: ensure HTTP (not HTTPS) and no proxy blocks WebSocket connections.
- Drafts hidden: add
--draftsto the serve command.
Deployment problems
- GitHub Pages: check Settings → Pages → Build logs; remove unsupported plugins.
- Docker: ensure the git-sync container has network access to the remote repo (SSH keys or HTTPS creds).
- Custom domain SSL: verify DNS
A/CNAMErecords and reissue certificates on your reverse proxy. - Permissions: web server user must read
_site.
Content & navigation
- Sidebar not highlighting:
nav_idon a doc should match its shelfshelf_id. - Doc missing from shelf:
parent_shelfmust match the shelf’sshelf_id. - Breadcrumbs: make sure the shelf exists and
parent_shelfis set.