Bug 256367 - hugo: timed out initializing value
Summary: hugo: timed out initializing value
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Documentation (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Danilo G. Baio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-02 06:03 UTC by Wolfram Schneider
Modified: 2021-06-10 23:32 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfram Schneider freebsd_committer 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 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 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 2021-06-10 23:32:40 UTC
Seems this issue is not happening anymore.