||Initializing build environment. This may take up to a few minutes to complete
||Success: Finished initializing build environment
||Failed: an internal error occurred
The repo seems fine to me, the error says nothing.
I cant find any place on how to log more details or reach out to CF
Since about this error ("
Failed: an internal error occurred") there are a lot of threads already existing, I would recommend reading them first and check if one of these cases also apply to you:
- Cloudflare pages Failed: an internal error occurred
- Cloudflare Pages: "Failed: an internal error occurred"
- Pages fails to build: internal error while cloning repository
Thanks for linking those articles, i already checked them.
- checked build options (work local)
- checked permission on git (are OK)
- cant open ticket as sug. in the first thread
the error msg really needs to be refined.
my glass ball not working well today…
Many of the Pages devs hang out on Discord and might be able to track down the problem:
That’s true, TBH. This error does not give any insights or hints about where the error originates from. I already states this in another thread. Also we in the community can not help you on this since we do not have any access to any log etc.
I can try to tag @ncano here and hope he is availabe, or just join the discord server like @sdayman recommended.
thanks, will try to reach one @sdayman
thanks too @M4rt1n
LOL is it me or is Github down.
… that could be a cause
Hahah down for me aswell. Anyway the problem with the imprecise error still exists.
Yep GitHub is having a few issues right now. This should be unrelated though so the most common cause for this issue is a submodule (usually a private one). Please have a look if that’s what may be causing this. You can just remove the module part and have the files in the repo to solve that (not ideal we know, we’re working on it)
If you’re still having issues, please provide me with the deployment ID (the UUID in the URL (
/pages/view/<project>/<deployment-uuid> - that deployment UUID). I can then have a look and see where the issue lies
Sorry about this, we’re working on better messaging!
Hey @Walshy - thanks for commenting!
Indeed, the issue was a Git-Submodule.
Workaround: copy the actual content of the required “sub-repo” into your repo.
However another issue appears: Hugo version 0.54.0 is used for the build. Current Version is 0.92.1., alot of things are not supported with the older version used.
Good news: the logs are working at that stage of the build!
Great to hear you got that solved. The default version is indeed quite old but we need to keep it for compatibility purposes. You can change the version with the
HUGO_VERSION environment variable
Once its up and running, the performance feels so much better than the alternate serice-providers!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.