Error fetching remote repo

Jenkins version: 2.426.3
I have an error when running jenkin job, this error happens occasionally, it usually happens when I push a new commit, jenkins automatically runs then it will report this error, however if I press build job it is normal. I have already set up the credential

Caused by: hudson.plugins.git.GitException: Command “git fetch --tags --force --progress – git@bitbucket.org:crmvn/dyno_base_workflows.git +refs/heads/:refs/remotes/origin/” returned status code 1:

I saw this in log

Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to Airflow Node

More details about the failure are provided immediately after that message. Those details will help you diagnose and resolve the issue. If you haven’t already resolved the issue, then those additional details will help others that may be willing to help you.

My full logs errors

Generic Cause
Obtained Jenkinsfile from git .git
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Airflow Node in /home/khanh6b/workspace/dyno_base_workflows
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
The recommended git tool is: NONE
using credential 6715f2d9-1349-43ab-a44a-01dde157c1d5
Fetching changes from the remote Git repository

git rev-parse --resolve-git-dir /home/khanh6b/workspace/dyno_base_workflows/.git # timeout=10
git config remote.origin.url .git # timeout=10
Fetching upstream changes from .git
git --version # timeout=10
git --version # ‘git version 2.34.1’
using GIT_SSH to set credentials
Verifying host key using known hosts file
git fetch --tags --force --progress – +refs/heads/:refs/remotes/origin/ # timeout=10
ERROR: Error fetching remote repo ‘origin’
hudson.plugins.git.GitException: Failed to fetch from
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1241)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1305)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: hudson.plugins.git.GitException: Command “git fetch --tags --force --progress – dyno_base_workflows.git +refs/heads/:refs/remotes/origin/” returned status code 1:
stdout:
stderr:
a07e1a2…325e14c controller → origin/controller
Fetching submodule dags/junsport_sync_airtable
Unauthorized
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Unauthorized
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Errors during submodule fetch:
junsport_sync_airtable
junsport_sync_airtable

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2842)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2185)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:635)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:170)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:161)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:377)
at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to Airflow Node
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1787)
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
at hudson.remoting.Channel.call(Channel.java:1003)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:153)
at jdk.internal.reflect.GeneratedMethodAccessor613.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:138)
at com.sun.proxy.$Proxy139.execute(Unknown Source)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:997)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1241)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1305)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)

That message might indicate that one or more submodules are defined in your private git repository that use a different protocol than the repository where the submiodules are defined. The git client plugin assumes that submodules use the same protocol (either HTTPS or SSH) as the parent repository. If the parent repository uses HTTPS and one of the submodules uses SSH, then the git client plugin cannot provide the credentials to satisfy both the parent repository and the submodule.

Check the URL’s of the submodules to confirm that they use the same protocol as the URL of the parent repository.

i use the same protocol for all submodules.

[submodule “dyno_ekyc_compress”]
path = dags/dyno_ekyc_compress
url = git@xxxxxx/dyno_ekyc_compress.git
[submodule “junsport_sync_airtable”]
path = dags/junsport_sync_airtable
url = git@xxxxxxx/junsport_sync_airtable.git
[submodule “dyno_datalake_dags”]
path = dags/dyno_datalake_dags
url = git@xxxxx/dyno_datalake_dags.git
Exception occurred when i push new commit after period of time, but when i click build button then build success.