Context: Production master@HEAD
Deployment Type: Deployment with Git
Last Broken Deploy URL: Netlify App
Last Successful Deploy URL: Netlify App
Site name: ovolosash.netlify.app
Custom domain: https://www.ovolosash.com
My site is built with the Hugo SSG and its repository hosted on Gitlab. I have two themes added to my site repository as git submodules. They were added using the SSH protocol (my workflow preference) rather than the HTTPS protocol. One theme is being used with my production branch (master) and the other with a staging branch with the intention that it will eventually be merged into master.
Deploys from either branch are not working. Below is the latest deploy log for the staging branch-deploy. The logs suggest I don’t have sufficient access rights but I naturally don’t have the access rights to the theme repositories since I’m not the author or a maintainer. Both are public repositories hosted on Github.
9:53:26 AM: build-image version: 0143b4617dd9b5b3faed2aefa29c54a846e69aae (focal)
9:53:26 AM: buildbot version: 0143b4617dd9b5b3faed2aefa29c54a846e69aae
9:53:26 AM: Building without cache
9:53:26 AM: Starting to prepare the repo for build
9:53:27 AM: No cached dependencies found. Cloning fresh repo
9:53:27 AM: git clone --filter=blob:none git@gitlab.com:doolio/ovolosash
9:53:27 AM: Preparing Git Reference refs/heads/staging
9:53:30 AM: Failed during stage "preparing repo": Error checking out submodules: Submodule "themes/dot-org-hugo-theme" (git@github.com:cncf/dot-org-hugo-theme.git) registered for path "themes/dot-org-hugo-theme"
Submodule "themes/hugo-creative-theme" (git@github.com:digitalcraftsman/hugo-creative-theme.git) registered for path "themes/hugo-creative-theme"
Cloning into "/opt/build/repo/themes/dot-org-hugo-theme"...
Warning: Permanently added "github.com" (ECDSA) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of "git@github.com:cncf/dot-org-hugo-theme.git" into submodule path "/opt/build/repo/themes/dot-org-hugo-theme" failed
Failed to clone "themes/dot-org-hugo-theme". Retry scheduled
Cloning into "/opt/build/repo/themes/hugo-creative-theme"...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of "git@github.com:digitalcraftsman/hugo-creative-theme.git" into submodule path "/opt/build/repo/themes/hugo-creative-theme" failed
Failed to clone "themes/hugo-creative-theme". Retry scheduled
Cloning into "/opt/build/repo/themes/dot-org-hugo-theme"...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of "git@github.com:cncf/dot-org-hugo-theme.git" into submodule path "/opt/build/repo/themes/dot-org-hugo-theme" failed
Failed to clone "themes/dot-org-hugo-theme" a second time, aborting
: exit status 1: Submodule "themes/dot-org-hugo-theme" (git@github.com:cncf/dot-org-hugo-theme.git) registered for path "themes/dot-org-hugo-theme"
Submodule "themes/hugo-creative-theme" (git@github.com:digitalcraftsman/hugo-creative-theme.git) registered for path "themes/hugo-creative-theme"
Cloning into "/opt/build/repo/themes/dot-org-hugo-theme"...
Warning: Permanently added "github.com" (ECDSA) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of "git@github.com:cncf/dot-org-hugo-theme.git" into submodule path "/opt/build/repo/themes/dot-org-hugo-theme" failed
Failed to clone "themes/dot-org-hugo-theme". Retry scheduled
Cloning into "/opt/build/repo/themes/hugo-creative-theme"...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of "git@github.com:digitalcraftsman/hugo-creative-theme.git" into submodule path "/opt/build/repo/themes/hugo-creative-theme" failed
Failed to clone "themes/hugo-creative-theme". Retry scheduled
Cloning into "/opt/build/repo/themes/dot-org-hugo-theme"...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of "git@github.com:cncf/dot-org-hugo-theme.git" into submodule path "/opt/build/repo/themes/dot-org-hugo-theme" failed
Failed to clone "themes/dot-org-hugo-theme" a second time, aborting
: exit status 1
9:53:30 AM: Error checking out submodules: Submodule "themes/dot-org-hugo-theme" (git@github.com:cncf/dot-org-hugo-theme.git) registered for path "themes/dot-org-hugo-theme"
Submodule "themes/hugo-creative-theme" (git@github.com:digitalcraftsman/hugo-creative-theme.git) registered for path "themes/hugo-creative-theme"
Cloning into "/opt/build/repo/themes/dot-org-hugo-theme"...
Warning: Permanently added "github.com" (ECDSA) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of "git@github.com:cncf/dot-org-hugo-theme.git" into submodule path "/opt/build/repo/themes/dot-org-hugo-theme" failed
Failed to clone "themes/dot-org-hugo-theme". Retry scheduled
Cloning into "/opt/build/repo/themes/hugo-creative-theme"...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of "git@github.com:digitalcraftsman/hugo-creative-theme.git" into submodule path "/opt/build/repo/themes/hugo-creative-theme" failed
Failed to clone "themes/hugo-creative-theme". Retry scheduled
Cloning into "/opt/build/repo/themes/dot-org-hugo-theme"...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of "git@github.com:cncf/dot-org-hugo-theme.git" into submodule path "/opt/build/repo/themes/dot-org-hugo-theme" failed
Failed to clone "themes/dot-org-hugo-theme" a second time, aborting
: exit status 1
9:53:30 AM: Failing build: Failed to prepare repo
9:53:31 AM: Finished processing build request in 4.863s
My .gitmodules
file at the root of my repository:
[submodule "themes/hugo-creative-theme"]
path = themes/hugo-creative-theme
url = git@github.com:digitalcraftsman/hugo-creative-theme.git
[submodule "themes/dot-org-hugo-theme"]
path = themes/dot-org-hugo-theme
url = git@github.com:cncf/dot-org-hugo-theme.git
The relevant sections from my .git/config
file:
[submodule "themes/hugo-creative-theme"]
url = git@github.com:digitalcraftsman/hugo-creative-theme.git
active = true
[submodule "themes/dot-org-hugo-theme"]
url = git@github.com:cncf/dot-org-hugo-theme.git
active = true
My /themes/
and .git/modules/themes/
directories are populated with both themes as you would expect.
At first the issue seemed isolated to my branch-deploy but following the advise given by a netlify support engineer here on another (similar) topic I re-linked my site to my netlify account. The result of this was deploys now fail also on my production branch . Thanks for your time.