Bug 256367

Summary: hugo: timed out initializing value
Product: Documentation Reporter: Wolfram Schneider <wosch>
Component: Books & ArticlesAssignee: Danilo G. Baio <dbaio>
Status: Closed FIXED    
Severity: Affects Some People CC: dbaio
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Wolfram Schneider freebsd_committer freebsd_triage 2021-06-02 06:03:56 UTC
I'm getting emails from our CI system about a hugo timeouts:

Error: Error building site: "/workspace/doc/website/content/en/google6bb24ed0b804d5e9.html:1:1": timed out initializing value. You may have a circular loop in a shortcode, or your site may have resources that take longer to build than the `timeout` limit in your Hugo config file.
*** [build] Error code 255

I saw this myself on a slow machine (universe13a).

Apparently, we run into a (default 10 sec?) timeout and under high I/O load we hit the limit, and the build stops. We should increase the timeout value.
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-06-05 01:27:36 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/doc/commit/?id=3cb477eaad92143493e65da8a33c01794d8577b4

commit 3cb477eaad92143493e65da8a33c01794d8577b4
Author:     Danilo G. Baio <dbaio@FreeBSD.org>
AuthorDate: 2021-06-05 01:20:15 +0000
Commit:     Danilo G. Baio <dbaio@FreeBSD.org>
CommitDate: 2021-06-05 01:20:15 +0000

    website: Move google-site-verification to the static dir

    There are many build failures with timeout on our ci, with the following
    message:

    Error: Error building site:
    "/workspace/doc/website/content/en/google96eb5b100ed66487.html:1:1":
    timed out initializing value. You may have a circular loop in a
    shortcode, or your site may have resources that take longer to build
    than the `timeout` limit in your Hugo config file.  *** [build] Error
    code 255

    This is an attempt to fix that without increasing timeout, this way Hugo
    won't handle these files anymore.

    Structure before:
      $ find website/public/ | grep google
      website/public/google96eb5b100ed66487
      website/public/google96eb5b100ed66487/index.html
      website/public/google6bb24ed0b804d5e9
      website/public/google6bb24ed0b804d5e9/index.html

    After:
      $ find website/public/ | grep google
      website/public/google6bb24ed0b804d5e9.html
      website/public/google96eb5b100ed66487.html

    PR:             256367
    Reported by:    wosch

 website/{content/en => static}/google6bb24ed0b804d5e9.html | 0
 website/{content/en => static}/google96eb5b100ed66487.html | 0
 2 files changed, 0 insertions(+), 0 deletions(-)
Comment 2 Danilo G. Baio freebsd_committer freebsd_triage 2021-06-05 01:31:28 UTC
I'll keep this PR open for now and investigate if that happens again.
Comment 3 Danilo G. Baio freebsd_committer freebsd_triage 2021-06-10 23:32:40 UTC
Seems this issue is not happening anymore.