Comments (4)
Hi Mark, thanks for fast response! I'm able to get it running by increasing the timeout to 300s.
from hinode.
Hi finzz, I haven't tried building Hinode within a Docker container myself yet. However, looking at your logs, it seems you're not using the extended version of Hugo.
To reproduce your error, would you mind sharing the full command history? Or even better, share a Docker compose file?
from hinode.
Hello Mark,
Sorry my mistake, I didn't use extended version. But I still can't build it after following the docs.
This is the full commands:
docker run --rm -it -p 8000:8000 ubuntu:jammy bash
apt update
apt install -y curl wget git
cd /root
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && apt-get install -y nodejs
wget https://github.com/gohugoio/hugo/releases/download/v0.111.2/hugo_extended_0.111.2_linux-amd64.deb
dpkg -i hugo_extended_0.111.2_linux-amd64.deb
git clone https://github.com/gethinode/child.git my-hinode-site && cd my-hinode-site
npm install
npm run start -- --port 8000 --debug
Error Logs:
root@58ce63c7bbbb:~/my-hinode-site# npm run start -- --port 8000 --debug
> @gethinode/[email protected] prestart
> npm run clean
> @gethinode/[email protected] clean
> shx rm -rf public resources
> @gethinode/[email protected] start
> hugo server --bind=0.0.0.0 --disableFastRender --port 8000 --debug
Start building sites …
hugo v0.111.3-5d4eb5154e1fed125ca8e9b5a0315c4180dab192+extended linux/amd64 BuildDate=2023-03-12T11:40:50Z VendorInfo=gohugoio
INFO 2023/04/08 00:47:13 syncing static files to /
DEBUG 2023/04/08 00:47:14 Render page About to "/en/about/index.html"
DEBUG 2023/04/08 00:47:14 Render page Bootstrap elements to "/en/blog/bootstrap-elements/index.html"
DEBUG 2023/04/08 00:47:14 Render page Child Theme to "/en/blog/child/index.html"
DEBUG 2023/04/08 00:47:14 Render page First post to "/en/blog/first-post/index.html"
DEBUG 2023/04/08 00:47:14 Render page Fourth post to "/en/blog/fourth-post/index.html"
DEBUG 2023/04/08 00:47:14 Render page Second post to "/en/blog/second-post/index.html"
DEBUG 2023/04/08 00:47:25 found menu: "main", in site config
DEBUG 2023/04/08 00:47:25 found menu: "main", in site config
DEBUG 2023/04/08 00:47:25 found menu: "main", in site config
DEBUG 2023/04/08 00:47:25 found menu: "main", in site config
DEBUG 2023/04/08 00:47:25 found menu: "main", in site config
DEBUG 2023/04/08 00:47:25 found menu: "main", in site config
DEBUG 2023/04/08 00:47:25 found menu: "social", in site config
DEBUG 2023/04/08 00:47:25 found menu: "social", in site config
DEBUG 2023/04/08 00:47:25 found menu: "social", in site config
DEBUG 2023/04/08 00:47:25 found menu: "sample", in site config
DEBUG 2023/04/08 00:47:25 found menu: "sample", in site config
DEBUG 2023/04/08 00:47:25 found menu: "sample", in site config
DEBUG 2023/04/08 00:47:25 found menu: "sample", in site config
DEBUG 2023/04/08 00:48:30 found menu: "main", in site config
DEBUG 2023/04/08 00:48:30 found menu: "main", in site config
DEBUG 2023/04/08 00:48:30 found menu: "main", in site config
DEBUG 2023/04/08 00:48:30 found menu: "main", in site config
DEBUG 2023/04/08 00:48:30 found menu: "main", in site config
DEBUG 2023/04/08 00:48:30 found menu: "main", in site config
DEBUG 2023/04/08 00:47:25 found menu: "social", in site config
DEBUG 2023/04/08 00:47:25 found menu: "social", in site config
DEBUG 2023/04/08 00:47:25 found menu: "social", in site config
DEBUG 2023/04/08 00:47:25 found menu: "sample", in site config
DEBUG 2023/04/08 00:47:25 found menu: "sample", in site config
DEBUG 2023/04/08 00:47:25 found menu: "sample", in site config
DEBUG 2023/04/08 00:47:25 found menu: "sample", in site config
DEBUG 2023/04/08 00:48:30 found menu: "main", in site config
DEBUG 2023/04/08 00:48:30 found menu: "main", in site config
DEBUG 2023/04/08 00:48:30 found menu: "main", in site config
DEBUG 2023/04/08 00:48:30 found menu: "main", in site config
DEBUG 2023/04/08 00:48:30 found menu: "main", in site config
DEBUG 2023/04/08 00:48:30 found menu: "main", in site config
DEBUG 2023/04/08 00:48:30 found menu: "social", in site config
DEBUG 2023/04/08 00:48:30 found menu: "social", in site config
DEBUG 2023/04/08 00:48:30 found menu: "social", in site config
DEBUG 2023/04/08 00:48:30 found menu: "sample", in site config
DEBUG 2023/04/08 00:48:30 found menu: "sample", in site config
DEBUG 2023/04/08 00:48:30 found menu: "sample", in site config
DEBUG 2023/04/08 00:48:30 found menu: "sample", in site config
DEBUG 2023/04/08 00:48:30 Render page Third post to "/en/blog/third-post/index.html"
DEBUG 2023/04/08 00:48:30 Render page Another project to "/en/projects/another-project/index.html"
DEBUG 2023/04/08 00:48:30 Render page Sample project to "/en/projects/sample-project/index.html"
DEBUG 2023/04/08 00:48:30 Render page A Clean Theme for Hugo to "/en/index.html"
DEBUG 2023/04/08 00:48:30 Render page Blog to "/en/blog/index.html"
DEBUG 2023/04/08 00:50:18 Render page Projects to "/en/projects/index.html"
DEBUG 2023/04/08 00:50:18 creating alias: /en/projects/page/1/index.html redirecting to http://localhost:8000/en/projects/
DEBUG 2023/04/08 00:50:18 Render page Tags to "/en/tags/index.html"
DEBUG 2023/04/08 00:50:18 Render page blog to "/en/tags/blog/index.html"
DEBUG 2023/04/08 00:50:18 Render page bootstrap to "/en/tags/bootstrap/index.html"
DEBUG 2023/04/08 00:50:18 Render page css to "/en/tags/css/index.html"
DEBUG 2023/04/08 00:50:18 Render page golang to "/en/tags/golang/index.html"
DEBUG 2023/04/08 00:50:18 Render page html to "/en/tags/html/index.html"
DEBUG 2023/04/08 00:50:18 Render page javascript to "/en/tags/javascript/index.html"
DEBUG 2023/04/08 00:50:18 Render page shortcode to "/en/tags/shortcode/index.html"
DEBUG 2023/04/08 00:50:18 Render page theme to "/en/tags/theme/index.html"
DEBUG 2023/04/08 00:50:30 creating alias: /en/blog/page/1/index.html redirecting to http://localhost:8000/en/blog/
Error: Error building site: failed to render pages: render of "section" failed: execute of template failed: template: _default/list.html:2:8: executing "main" at <partial "assets/section-list.html" (dict "page"
. "section" .Section "home" false "title" .Title "paginate" true)>: error calling partial: partial "assets/section-list.html" timed out after 2m0s. This is most likely due to infinite recursion. If this is jus
t a slow template, you can try to increase the 'timeout' config setting.
Built in 218730 ms
from hinode.
I created the Docker image on my own device using your command history. My device has an Apple M1 processor, so I had to make a few changes. With these changes I was able to start the Hinode site within Docker successfully (build time ~47s).
Looking at your log, it appears a build timeout has occurred. Pending on the performance of your device and the configuration of your Docker engine, your build may take longer than expected. You can adjust the timeout in config/_default/config.toml
. The child theme defaults to 120s
, which may be insufficient for your setup:
timeout = "120s"
I made the following changes on my local device:
1. Change the CPU architecture
wget https://github.com/gohugoio/hugo/releases/download/v0.111.2/hugo_extended_0.111.2_linux-arm64.deb
dpkg -i hugo_extended_0.111.2_linux-arm64.deb
2. Remove the the hugo-bin dev dependency
"hugo-bin": "^0.102.0",
from hinode.
Related Issues (20)
- [BUG] `includeToc: true` does not include a ToC
- [BUG] proper format for the search bar HOT 3
- [BUG] Fix Google Analytics configuration
- [BUG] Automated test not compatible with GHA macOS 14
- npm dependencies conflict in template HOT 9
- Pagination works only in the homepage [BUG] HOT 7
- How I can import the exampleSite content to a clean Hinode installation?
- Add support for native Bootstrap forms
- Make module configurations loosely coupled HOT 3
- [BUG] Support deployment to folder HOT 8
- [BUG] menu items links in navigation bar are incorrect HOT 2
- [BUG] Reduce screen flickering in color mode
- [BUG] Sidebar menu does not support multiple languages HOT 1
- [BUG] Sidebar does not support links to external pages
- [BUG] "Last updated" string is not localized with i18n HOT 2
- Save and get the selected language just as the theme switch HOT 4
- [BUG] Prevent recursion when targeting a local page
- [BUG] Fix use of declarations after nested rules (deprecated in Sass 1.77.7)
- [BUG] Purge page translations from search index (FlexSearch)
- [BUG] Blockquote rendering is missing the Bootstrap class HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hinode.