Hugo Blog Deploy Failed - Submodule problem?

Hi I have a Hugo Blog set-up on continous deployment from my GitHub Repo via Netifly.
GitHub Repo: https://github.com/VincentGuilleux/blog
Netifly DNS: vincentguilleux.netlify.app

I changed manually the themes/ananke/layouts/partials/site-footer.html & themes/ananke/layouts/partials/site-navigation.html so maybe the problem comes from here (just change of plain HTML for example for footer). I tried to search for similar issues but I don’t really understand what is going on so if anybody can help me, thanks in advance!

I have the following error message:
2:18:06 PM: Build ready to start

2:18:07 PM: build-image version: ca811f47d4c1cbd1812d1eb6ecb0c977e86d1a1d

2:18:07 PM: build-image tag: v3.3.20

2:18:07 PM: buildbot version: 78b5536ab4f742c26705d3e953381b9cde6e22ef

2:18:07 PM: Fetching cached dependencies

2:18:08 PM: Starting to download cache of 238.8MB

2:18:09 PM: Finished downloading cache in 1.399152424s

2:18:09 PM: Starting to extract cache

2:18:17 PM: Finished extracting cache in 8.214203957s

2:18:17 PM: Finished fetching cache in 9.761246773s

2:18:17 PM: Starting to prepare the repo for build

2:18:18 PM: Preparing Git Reference refs/heads/master

2:18:19 PM: Error fetching branch: https://github.com/VincentGuilleux/blog refs/heads/master

2:18:19 PM: Failing build: Failed to prepare repo

2:18:19 PM: Failed during stage ‘preparing repo’: exit status 1

2:18:19 PM: Finished processing build request in 11.766145549s

I tried to Clear Cache and Deploy Site but it does not work either:
2:19:41 PM: Build ready to start

2:19:42 PM: build-image version: ca811f47d4c1cbd1812d1eb6ecb0c977e86d1a1d

2:19:42 PM: build-image tag: v3.3.20

2:19:42 PM: buildbot version: 78b5536ab4f742c26705d3e953381b9cde6e22ef

2:19:43 PM: Fetching cached dependencies

2:19:43 PM: Starting to download cache of 254.7KB

2:19:43 PM: Finished downloading cache in 70.543819ms

2:19:43 PM: Starting to extract cache

2:19:43 PM: Failed to fetch cache, continuing with build

2:19:43 PM: Starting to prepare the repo for build

2:19:43 PM: No cached dependencies found. Cloning fresh repo

2:19:43 PM: git clone https://github.com/VincentGuilleux/blog

2:19:44 PM: Preparing Git Reference refs/heads/master

2:19:46 PM: Error checking out submodules: Submodule ‘themes/ananke’ (https://github.com/budparr/gohugo-theme-ananke.git) registered for path ‘themes/ananke’
Cloning into ‘/opt/build/repo/themes/ananke’…
fatal: remote error: upload-pack: not our ref dd0ca823d46ff223580b19abfa4234f6ef904023
fatal: the remote end hung up unexpectedly
Fetched in submodule path ‘themes/ananke’, but it did not contain dd0ca823d46ff223580b19abfa4234f6ef904023. Direct fetching of that commit failed.

2:19:46 PM: Failing build: Failed to prepare repo

2:19:46 PM: Failed during stage ‘preparing repo’: Error checking out submodules: Submodule ‘themes/ananke’ (https://github.com/budparr/gohugo-theme-ananke.git) registered for path ‘themes/ananke’
Cloning into ‘/opt/build/repo/themes/ananke’…
fatal: remote error: upload-pack: not our ref dd0ca823d46ff223580b19abfa4234f6ef904023
fatal: the remote end hung up unexpectedly
Fetched in submodule path ‘themes/ananke’, but it did not contain dd0ca823d46ff223580b19abfa4234f6ef904023. Direct fetching of that commit failed.
: exit status 1

2:19:46 PM: Finished processing build request in 3.244861031s

Found a solution, so this post can be closed (don’t know if I can do it myself).

1 Like