Giter Site home page Giter Site logo

Comments (4)

finzzz avatar finzzz commented on August 9, 2024 1

Hi Mark, thanks for fast response! I'm able to get it running by increasing the timeout to 300s.

from hinode.

markdumay avatar markdumay commented on August 9, 2024

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.

finzzz avatar finzzz commented on August 9, 2024

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.

markdumay avatar markdumay commented on August 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.