This page shows you how to resolve issues with Secure Source Manager.
Error message when creating a repository
The following error appears when you try to create a repository:
There was an error while loading /repo/create. Try refreshing the page.
This issue occurs when:
- The Secure Source Manager API isn't enabled in your project.
- You don't have the Repo Admin role on your project or permissions to create repositories in the Secure Source Manager instance.
To resolve this issue:
- Enable the Secure Source Manager API in your project.
- Ask your administrator to grant you the following roles:
- Repo Admin (
roles/securesourcemanager.repoAdmin
) role on your project. - Instance Accessor (
roles/securesourcemanager.instanceAccessor
) on the Secure Source Manager instance. - Instance Repository Creator
(
roles/securesourcemanager.instanceRepositoryCreator
) on the Secure Source Manager instance.
- Repo Admin (
See Access control with IAM for more details.
Error message when cloning a repository on a Mac
The following error appears when you try to clone a repository:
git: 'credential-gcloud.sh' is not a git command. See 'git --help'. fatal: Authentication failed for [repo-url]
This issue occurs when:
- gcloud CLI is installed using Homebrew or other non-standard installation.
git-credential-gcloud.sh
is not added to your PATH.
To resolve this issue:
- Run
source $HOMEBREW_PREFIX/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc
Check that
git-credential-gcloud.sh
is in your path by running the following command:which git-credential-gcloud.sh
Git HTTPS requests fail with permission denied or unauthorized error
When Git commands are attempted over HTTPS, a permission denied or unauthorized error message is given.
This issue occurs when one of the following occurs:
- The global Git config file is missing the Secure Source Manager authentication helper.
- Git's built-in credential store is being used instead of calling the Secure Source Manager authentication helper to get a fresh credential.
- A system credential helper is being used instead of calling the Secure Source Manager authentication helper to get a fresh credential.
To resolve this issue:
Run the following command to determine the contents of your global Git config.
git config --list | grep credential
If you see any line similar to
*credential*.helper=store
on macOS, orcredential.helper = manager
on Windows OS, then remove those lines, and then re-authenticate usinggcloud auth login
before trying the Git command again.If the response doesn't include
credential.https://*.*.sourcemanager.dev.helper=gcloud.sh
on macOS or Linux, orcredential.https://*.*.sourcemanager.dev.helper=gcloud.cmd
on Windows, then add the Secure Source Manager authentication helper to your global Git config:Linux
To add the Secure Source Manager authentication helper to your global Git config, run the following command:
git config --global credential.'https://*.*.sourcemanager.dev'.helper gcloud.sh
Validate that the authentication helper line is added to your global Git config by running the following command:
git config --list | grep credential
The output should include
credential.https://*.*.sourcemanager.dev.helper=gcloud.sh
.Authenticate by running
gcloud auth login
.Run a Git command to test the authentication.
Windows
To add the Secure Source Manager authentication helper to your global Git config, run the following command:
git config --global credential.https://*.*.sourcemanager.dev.helper gcloud.cmd
Validate that the authentication helper line is added to your global Git config by running the following command:
git config --list | grep credential
The output should include
credential.https://*.*.sourcemanager.dev.helper=gcloud.cmd
.Authenticate by running
gcloud auth login
.Run a Git command to test the authentication.
Project not showing up in web interface product selector
When using the Secure Source Manager web interface product selector, your project doesn't appear.
This issue occurs when you have multiple login credentials for Secure Source Manager.
To resolve this issue:
Clear your cookies by appending the following to your Secure Source Manager instance URL:
/_oauth/consent
For example, if your instance URL is
https://my-instance-098765432123.us-central1.sourcemanager.dev/
, enterhttps://my-instance-098765432123.us-central1.sourcemanager.dev/_oauth/consent
into your browser address bar and then sign in with the correct credentials.
Triggers file doesn't trigger builds
If builds aren't triggered as expected after submitting your triggers file, you might have one of the following problems:
- The triggers file isn't in the default branch. To resolve this, move your triggers file to your default branch.
- The triggers file has an invalid format. This error is indicated by a banner
in the repository page that reads
Build triggers configuration error: ...
. To fix this, read the Triggers file schema. When the triggers file configuration is correct, the banner in the repository page readsValid build triggers configuration
.
Build triggers configuration error
After submitting your triggers.yaml
file to your Secure Source Manager
repository you get the following error displayed in a banner:
Build cannot be created.
This issue occurs for the following reasons:
- The Cloud Build configuration file has invalid options.
- The Cloud Build configuration file has an invalid format.
- The Secure Source Manager service account doesn't have the required permissions to use the user-specified Cloud Build service account.
To fix this issue:
- Make sure you're following the correct Triggers file schema.
- Make sure that the Secure Source Manager service account and the Cloud Build service account have sufficient permissions. To view the required permissions, see Required service account roles.
Build fails during execution
If a build is triggered successfully, but fails during execution, the associated commit has a Failure commit status.
To troubleshoot a failed build, in the repository page, next to the failed commit status, click Details.
The Cloud Build execution log opens. For more information on troubleshooting builds in Cloud Build, see Troubleshooting build errors.