Troubleshooting & Common Issues
Deployment Issues
Section titled âDeployment IssuesâChanges Not Showing
Section titled âChanges Not ShowingâIf your updates arenât appearing on the live site:
- Go to your repositoryâs Actions tab.
- Check for a yellow circle (in progress) or red cross (failed).
- Click a failed run to see the error log.
- Go to the Deploys tab in your Netlify dashboard.
- Check the status of the latest deploy.
- Click a failed deploy to view the build log.
Sometimes your browser caches the old version.
- Force Refresh:
Cmd+Shift+R(Mac) orCtrl+F5(Windows/Linux) - Incognito: Open the site in a private window.
Common Cause: Invalid YAML. Paste your config into a YAML Validator to check for syntax errors.
Hugo Errors
Section titled âHugo Errorsâfailed to resolve output format
Section titled âfailed to resolve output formatâCause: Hugoâs module cache is corrupted.
-
Clear Cache (Recommended) Run this command to clear the module cache:
Terminal window hugo mod clean --all -
Manual Delete (If above fails) Delete the
hugo_cachefolder manually.- Mac/Linux:
$TMPDIR/hugo_cache/ - Windows:
%TMP%\hugo_cache\
- Mac/Linux:
Cause: Missing Module Output
If you disabled a module (like Netlify) but left its outputs in hugo.yaml (e.g., headers, redirects), Hugo will fail. Remove the unused outputs from your configuration.
file "not found" or "failed to extract"
Section titled âfile "not found" or "failed to extract"âThis usually means Hugo canât download or find the required modules.
# Try clearing cache and updating moduleshugo mod cleanhugo mod get -u ./...hugo serverGo executable not found
Section titled âGo executable not foundâHugoBlox requires Hugo Extended, which depends on Go.
- Ensure Go is installed.
- Ensure you are using Hugo Extended version.
TOCSS failed to transform
Section titled âTOCSS failed to transformâYou are likely using the standard version of Hugo. You must install Hugo Extended. View Installation Guide
failed to unmarshal YAML
Section titled âfailed to unmarshal YAMLâYou have a syntax error in a Front Matter or Config file. The error message usually provides a line number.
- Check indentation (YAML is strict about spaces).
- Ensure strings with special characters are quoted.
Runtime Issues
Section titled âRuntime IssuesâContent Not in Chronological Order
Section titled âContent Not in Chronological OrderâHugo requires a valid date format.
- Correct:
date: 2023-12-25 - Incorrect:
date: 12/25/2023
Random Rendering Behavior
Section titled âRandom Rendering BehaviorâHugo is multi-threaded, which can sometimes cause race conditions on complex sites. Try running in single-worker mode:
HUGO_NUMWORKERMULTIPLIER=1 hugo serverfailed to download modules... not a git repository
Section titled âfailed to download modules... not a git repositoryâ- Check your internet connection.
- If you are in China, configure a Go Proxy.