简体   繁体   English

Google Cloud Source Repository:远程:PERMISSION_DENIED:调用者没有远程权限

[英]Google Cloud Source Repository: remote: PERMISSION_DENIED: The caller does not have permission remote

remote: PERMISSION_DENIED: The caller does not have permission remote: [type.googleapis.com/google.rpc.RequestInfo]远程:PERMISSION_DENIED:调用者没有远程权限:[type.googleapis.com/google.rpc.RequestInfo]

Not able to clone, push the code into google cloud source repository.无法克隆,将代码推送到谷歌云源存储库。 I have given "Project Editor" iam permission.我已授予“项目编辑器”iam 权限。 I have successfully login with "gcloud login" command.我已经使用“gcloud login”命令成功登录。 I also have set the right default project configuration and account configuration using "gcloud config set project" and "gcloud config set account" commands.我还使用“gcloud config set project”和“gcloud config set account”命令设置了正确的默认项目配置和帐户配置。 Please help me with this PERMISSION_DENIED error.请帮我解决这个 PERMISSION_DENIED 错误。

I had the exact same issue and I resolved it by adding a new entry in the.gitcookies file.我遇到了完全相同的问题,我通过在 .gitcookies 文件中添加一个新条目来解决它。

You have to manually generated and stored your Git credentials by login on this page: https://source.developers.google.com/auth/start?scopes=https://www.googleapis.com/auth/cloud-platform&state=您必须通过登录此页面手动生成和存储您的 Git 凭据: https://source.developers.google.com/auth/start?scopes=https://www.googleapis.com/auth/cloud-platform&state=

That will ask you to login with your account and allow Google Cloud Development wants to access your Google Account.这将要求您使用您的帐户登录并允许 Google Cloud Development 希望访问您的 Google 帐户。 Then, you'll have the script you have to run.然后,您将拥有必须运行的脚本。

Hope this helps you as well.希望这对您也有帮助。

For me it was that my free trial had ended and I needed to enable the billing here: https://console.developers.google.com/billing/enable?project=[YOUR_PROJECT_ID]对我来说,我的免费试用已经结束,我需要在这里启用计费: https://console.developers.google.com/billing/enable?project=[YOUR_PROJECT_ID]

For me this happened when I used SSH and connection re-use by a ControlMaster directive.对我来说,这发生在我使用 SSH 并通过ControlMaster指令重用连接时。 It seems like google's git implementation can't handle this.谷歌的 git 实现似乎无法处理这个问题。

For me either of these two worked:对我来说,这两个中的任何一个都有效:

  • close the ssh connection with ssh -O exit... (add your connection)关闭 ssh 连接与ssh -O exit... (添加您的连接)
  • delete the socket from the file system (specified by ControlPath )从文件系统中删除套接字(由ControlPath指定)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 PERMISSION_DENIED:调用者没有权限 - PERMISSION_DENIED: The caller does not have permission GCP:错误:(gcloud.services.enable) PERMISSION_DENIED:调用方在启用 API 时没有权限 - GCP: ERROR: (gcloud.services.enable) PERMISSION_DENIED: The caller does not have permission when enabling API (gcloud.dataflow.flex-template.build) PERMISSION_DENIED:调用者没有权限 - (gcloud.dataflow.flex-template.build) PERMISSION_DENIED: The caller does not have permission functions-framework-nodejs PERMISSION_DENIED:调用者没有权限 - functions-framework-nodejs PERMISSION_DENIED: The caller does not have permission 使用 Google Cloud DataPrep 运行作业时出现问题 - 用户没有 bigquery.jobs.create - PERMISSION_DENIED - Problem to run job with Google Cloud DataPrep - User does not have bigquery.jobs.create - PERMISSION_DENIED 谷歌云视觉 API“PERMISSION_DENIED” - Google Cloud Vision API “PERMISSION_DENIED” 为什么我在部署容器时看到此错误:'ERROR: (gcloud.run.deploy) PERMISSION_DENIED: The caller does not have permission'? - Why am I seeing this error: 'ERROR: (gcloud.run.deploy) PERMISSION_DENIED: The caller does not have permission' while deploying container? Google Cloud Storage Transfer Service 失败并出现 PERMISSION_DENIED 错误 - Google Cloud Storage Transfer Service fails with PERMISSION_DENIED error Google Cloud Pub/Sub 拉取 PERMISSION_DENIED - Google Cloud Pub/Sub Pull PERMISSION_DENIED 尝试在 Cloud Run 中使用 Google Cloud Storage 时调用者没有权限 - The caller does not have permission when attempting to use Google Cloud Storage within Cloud Run
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM