这是一个与谷歌云存储服务相关的问题;特别是关于Google Cloud Shell和无法启动它。过去一周运行良好。但是今天,大约 3 小时前,当我访问:
...然后点击Products & Services(侧边菜单,左上角),然后选择Storage(在 STORAGE services 下),然后点击Activate Google Cloud Shell,它说:
正在连接:正在配置您的 Google Cloud Shell 机器...
...然后是以下消息:
暂时超出服务使用限制。稍后尝试连接。如果您认为这是一个错误,请通过反馈报告。关闭
该消息明确指出超出限制......但我一直在做的是:
gsutil -lhr gs://some-bucket/my-dir/** | tail -10
Run Code Online (Sandbox Code Playgroud)
和
watch -n 25 'gsutil -lhr gs://some-bucket/my-dir/** | tail -10'
Run Code Online (Sandbox Code Playgroud)
我让watch命令运行(顺便说一句:这个操作会产生成本吗?)。
我正在上传大约 205 GB 的播客档案 (MP3),我需要保留这些档案以进行研究。到目前为止,我已经使用以下方法传输了 89.9 GB 的数据:
gsutil -m cp -r my-dir gs://some-bucket
Run Code Online (Sandbox Code Playgroud)
...来自我的笔记本电脑(遗憾的是,目前是 Win 10 Pro)。我无法访问 Linux 机器来获得一个 …
google-cloud-storage google-cloud-platform google-cloud-shell
GCP 终于发布了托管 Jupyter 笔记本。我希望能够通过连接到笔记本电脑在本地进行交互。IE。我使用 PyCharm 通过传递其 URL 和令牌参数来连接到外部配置的 jupyter notebbok 服务器。
问题也适用于 AWS Sagemaker 笔记本。
amazon-web-services google-cloud-platform google-cloud-ml amazon-sagemaker gcp-ai-platform-notebook
免责声明: https: //console.cloud.google.com/support/community引导至此处。谷歌的文档太可怕了,所以如果我没有被低估到 dev/null 的深度,就试一试吧
\n\n出于迫在眉睫的需要,我正在将一个监控 Gmail 帐户的私人应用程序迁移到 OAuth 2,作为此过程的一部分,有必要创建一个OAuth 同意屏幕。由于此应用程序仅在内部使用,因此为应用程序类型选择“内部”是最有意义的 - 描述如下:
\n\n\n\n\n只有您组织中拥有 Google 帐户的用户才能授予对此应用请求的范围的访问权限。
\n
此项目的用户包括两个“所有者”\xe2\x80\x94(本人使用我的个人 Gmail 帐户)和\n另一位属于公司 G Suite 帐户的员工。
\n\n我的问题是谁有资格成为“我的组织中的用户”?这是基于项目业主吗?我的非 G-Suite 帐户(该项目的所有者)是否符合资格?G Suite 帐户中包含一名成员是否会自动关联其他员工帐户?是否可以在任何地方实际查看这些用户或直接管理他们?
\n\n我实际上想添加另外几个帐户,但仍保持应用程序的私密性,但我对 Google 如何确定哪些 Gmail 帐户能够授权该应用程序感到困惑。
\n\n更新:澄清一下,当我以与项目所有者位于同一域的 G Suite 成员身份登录并访问同意页面时,一切都很好。但是,我们在同一个 G Suite 帐户中管理了位于不同域下的其他成员,对于这些成员,我收到以下消息:
\n\n\n\n\n错误 403: org_internal \n 此客户端仅限于其组织内的用户。
\n
此外,我什至无法使用我自己的电子邮件(应用程序的创建者和所有者)授予访问权限。我想知道如何添加自己和其他 G Suite 成员,以便能够在不公开该应用程序的情况下授予对该应用程序的访问权限。下面建议我将它们(或其域)添加到 Google Cloud IAM,但我不清楚如何使其正常工作。我自己的电子邮件确实已存在于 IAM 中且具有“所有者”角色,显然这不满足要求。
\ngoogle-oauth google-cloud-platform google-iam google-cloud-iam google-workspace
我正在为我的博客和工作网站使用 cloud run,我真的很喜欢它。我已经根据 google 教程通过容器化部署了 python API 和 Vue/Nuxt 应用程序。我不明白的一件事是为什么前面不需要 NGINX。
# Use the official lightweight Node.js 12 image.
# https://hub.docker.com/_/node
FROM node:12-slim
# Create and change to the app directory.
WORKDIR /usr/src/app
# Copy application dependency manifests to the container image.
# A wildcard is used to ensure both package.json AND package-lock.json are copied.
# Copying this separately prevents re-running npm install on every code change.
COPY package*.json ./
# Install production dependencies.
RUN npm install --only=production
# Copy …Run Code Online (Sandbox Code Playgroud) 我正在启动一个新的 Firestore 数据库,实际上我不知道哪个 GCP 资源位置适合我在埃及的目标受众。任何帮助将不胜感激。
提前致谢。
在 GCP 中,当创建资源高于免费套餐限制的虚拟机时,不会收到通知。通知中出现以下模式的错误消息。那么,Google云平台虚拟机允许的最大资源是多少呢?
创建 VM 实例“instance-2”及其启动磁盘“instance-2”超出配额“C2_CPUS”。限制:asia-south1 区域为 0.0。
我正在尝试使用 Google Cloud SDK 将容器推送到 Windows 10 上的 Google Cloud 容器注册表或 Google Cloud Artifact 注册表。我从这两个服务中收到类似的权限错误,但我似乎无法弄清楚原因。对于容器注册表,在推送时我得到:
> docker push us.gcr.io/{PROJECT}/{PATH}/{CONTAINER}:{TAG}
unauthorized: You don't have the needed permissions to perform this operation,
and you may have invalid credentials. To authenticate your request, follow the
steps in: https://cloud.google.com/container-registry/docs/advanced-authentication
Run Code Online (Sandbox Code Playgroud)
对于工件注册表,在推送时我得到:
> docker push northamerica-northeast1-docker.pkg.dev/{PROJECT}/{REPOSITORY}/{CONTAINER}:{TAG}
denied: Permission "artifactregistry.repositories.downloadArtifacts" denied on resource
"projects/opallabs/locations/northamerica-northeast1/repositories/domar" (or it may not exist)
Run Code Online (Sandbox Code Playgroud)
我跑过gcloud init几次gcloud auth configure-docker。gcloud我可以毫无问题地从命令行创建和编辑 Google Cloud 资源。我是 Google Cloud 项目的所有者,但为了安全起见,我为自己分配了存储管理员、Artifact 注册表管理员、Artifact 注册表存储库管理员。但是,当我 …
我有一个这样的数据结构:
我正在设置一个云函数来根据特定事件更改所有帖子(子集合)文档,为此我使用collectionGroup查询:
我是这样设置的:
exports.changeIsVisibleFieldAfterDay = functions.pubsub
.schedule("every 2 minutes").onRun((context) => {
const querySnapshot = db.collectionGroup("Posts")
.where("isVisible", "==", true).get();
querySnapshot.forEach((doc) => {
console.log(doc.data());
});
});
Run Code Online (Sandbox Code Playgroud)
在Firebase Log我收到以下错误:
TypeError: querySnapshot.forEach is not a function
Run Code Online (Sandbox Code Playgroud)
网上搜索发现Firebase SDK版本可能有问题,但我的是最新的,我package.json在这里附上文件:
{
"name": "functions",
"description": "Cloud Functions for Firebase",
"scripts": {
"lint": "eslint .",
"serve": "firebase emulators:start --only functions",
"shell": "firebase functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
},
"engines": …Run Code Online (Sandbox Code Playgroud) javascript firebase google-cloud-platform google-cloud-functions google-cloud-firestore
我正在尝试在 zsh shell (Arch Linux) 中使用此行来部署 Google Cloud HTTP 函数:
gcloud functions deploy testing --runtime python38 --trigger-http --allow-unauthenticated
Run Code Online (Sandbox Code Playgroud)
当函数只有[main.py]时:
def testing(request):
print("yes")
return 'finished', 200
Run Code Online (Sandbox Code Playgroud)
这是它给出的错误:
错误:
获取存储源时出错:generic::unknown:重试预算耗尽(3 次尝试):获取 gcs 源:从 gcs 解压源:源获取容器以非零状态退出:1
然而,有趣的是,我拥有的其他谷歌云功能(一些是 HTTP 触发,一些是云存储触发)部署得很好。我认为唯一可能的问题是云函数数量限制(?也许??)
请帮帮我