Hugo works locally but it crashes when triggered as post-receive hook

That did it!

I had other tags though, legacy from a WP import: <!--:es--> etc. Removing them fixed the issue.

Thanks a lot!