Hugo compilation stage stuck in "Start building sites ..."

2024-06-20
1 min read

Possible cause

Lock file not released

This is one of the situations I encountered, during Hugo Server continuous running, if you change Hugo project configuration file (config.yaml, config.toml, etc.), and then attempt to run Hugo after that, Hugo will keep waiting for Hugo Server releasing the .hugo_build.lock file before the compile phase, causing it to get stuck.

The solution

  1. Interrupt the Hugo Server process;
  2. If the .hugo_build.lock file still exists, delete it manually.