Metadata
- Source
- INFRA-222
- Type
- Bug
- Priority
- Major
- Status
- Closed
- Resolution
- Fixed
- Assignee
- Alan Harnum
- Reporter
- Simon Bates
- Created
2018-10-10T13:18:30.726-0400 - Updated
2018-10-11T12:08:51.120-0400 - Versions
- N/A
- Fixed Versions
- N/A
- Component
- N/A
Description
The Hackathon page on the Inclusive Cities site is being rendered incorrectly. The page is being rendered, and contains the common page structure (header, title, footer, UIO), but its content is missing.
- Rendered page: https://cities.inclusivedesign.ca/ideas/hackathon/
- Page source: https://github.com/inclusive-design/website-cities/blob/master/content/ideas/hackathon/index.md
The CI build is using version 0.47.1 of Hugo:
I've not been able to reproduce the issue yet. The page renders as expected in the following scenarios:
- Hugo 0.47.1 on Windows
- Hugo 0.47.1 on Ubuntu Linux under WSL, with website content on Windows NTFS filesystem
- Hugo 0.47.1 on Ubuntu Linux under WSL, with website content on WSL filesystem
Comments
-
Simon Bates commented
2018-10-10T13:27:10.952-0400 No errors are reported by Hugo in CI.
For example, see:
-
Alan Harnum commented
2018-10-11T12:02:44.336-0400 This turned out to be the following issue:
- a number of large images were being resized by Hugo on some pages
- Hugo has a timeout setting for rendering a page (10 seconds by default) that was being exceeded in the resource-restricted container environment, but not in desktop environments
- Hugo also only uses WARN rather than ERROR when this happens, so pages end up empty
- Hugo also only reports WARN when run in verbose mode, and the build container wasn't doing this
These changes were made:
- Timeout was increased in the Hugo config file: https://github.com/inclusive-design/website-cities/blob/master/config.toml#L4
- Hugo build container configured to run in verbose mode: https://github.com/idi-ops/docker-hugo/blob/master/Dockerfile#L12
The site is now rendering correctly.