Skip to content

Troubleshooting Local Build

Brian Deutsch edited this page Aug 17, 2021 · 2 revisions

Error downloading Modules

For the error fatal: could not read Username for 'https://github.com': terminal prompts disabled, then you will need to update your local .gitconfig as follows.

In your local documentation (or working project) directory, add a .gitconfig file containing:

[url "[email protected]:"]
  insteadOf = git://github

Then, run the following in your terminal: git config --global url."[email protected]:".insteadOf "https://github.com/"

Try running the local dev server again using yarn start.

RE: https://gist.github.com/Kovrinic/ea5e7123ab5c97d451804ea222ecd78a

Render of page failed / Error calling partial / Partial not found

If you encounter a build error beginning with render of "page" failed, and ending with error calling partial: partial "announcement_banner" not found, this typically indicates a caching issue with Hugo Modules. Please try the following commands:

hugo mod clean

A message reading (in part): hugo: cleaned module cache for "github.com/DataDog/websites-modules" indicates the caching issue should be resolved. At this point, you should be able to yarn run start to rebuild the Docs site.

If you are still experiencing issues at any point, please reach out in #websites