I’m trying to deploy a project on cloudflare pages but it fails to clone the git repo
Here’s the build log:
> Initializing build environment. This may take up to a few minutes to complete
> Success: Finished initializing build environment
> Cloning repository...
> Failed: an internal error occurred
Please help, very keen to understand how I can fix this.
Do you have any files exceeding 25MB? If you join the Discord it would be easier to help and if any of the team are around they could also look into it. The invite is: https://discord.gg/cloudflaredev
I’ve had this occasionally happen despite not having files exceeding 25mb. Usually clears for me with another commit causing a new attempt. I noticed if you ask it to retry it simply rebuilds your production branch…not exactly helpful when it fails on a non-production branch.
It was due to the ROOT
i was migrating from GitLab pages
and I tried to set the root directory to something /top-level
setting Root directory: / back to / seemed to resolve the issue
not sure why that would cause it to fail.
If you use hugo and you encounter this problem, it may be because you don’t add theme/xxx as a submodule. The documentation on cloudflare pages previously had the error.
Do you have any submodules? If so, that’ll very likely be why. If you just remove the submodule but keep the files, it should work fine! If you continue to have issues and your repo is open source, please provide the link