我有一个使用 firebase-admin sdk 的 NodeJS Firebase 功能。自去年以来一直运行良好。在过去 2 周内,日志中开始显示以下错误:
Credential implementation provided to initializeApp() via the "credential" property failed to fetch a valid Google OAuth2 access token with the following error: "Error fetching access token: 404 page not found
"firebase-admin": "^7.3.0"难道是我使用的版本有问题?
有没有人遇到过同样的问题,您能提供一些可能的原因吗?
firebase google-oauth google-cloud-platform google-cloud-functions firebase-admin
我是 Terraform 的新手,到目前为止已经设法在 Azure 上启动并运行了一个基本的 VM(加上资源管理器修整)。我想到的下一个任务是让 Terraform 将文件从我的本地机器复制到新创建的实例中。理想情况下,我追求的是每次运行 apply 命令时都会复制文件的解决方案。
我觉得我已经很接近了,但到目前为止,一旦我申请,我只会收到无尽的“仍在创建...”声明(文件为 0kb,因此在几分钟后放弃是安全的)。
到目前为止,这就是我所得到的(基于此代码):https : //stackoverflow.com/a/37866044/4941009
网络
resource "azurerm_public_ip" "pub-ip" {
name = "PublicIp"
location = "${var.location}"
resource_group_name = "${azurerm_resource_group.rg.name}"
public_ip_address_allocation = "Dynamic"
domain_name_label = "${var.hostname}"
}
Run Code Online (Sandbox Code Playgroud)
虚拟机
resource "azurerm_virtual_machine" "vm" {
name = "${var.hostname}"
location = "${var.location}"
resource_group_name = "${azurerm_resource_group.rg.name}"
vm_size = "${var.vm_size}"
network_interface_ids = ["${azurerm_network_interface.nic.id}"]
storage_image_reference {
publisher = "${var.image_publisher}"
offer = "${var.image_offer}"
sku = "${var.image_sku}"
version = "${var.image_version}"
}
storage_os_disk {
name = "${var.hostname}osdisk1"
vhd_uri = "${azurerm_storage_account.stor.primary_blob_endpoint}${azurerm_storage_container.cont.name}/${var.hostname}osdisk.vhd" …Run Code Online (Sandbox Code Playgroud) 在 Kubernetes 上运行 Spark 应用程序有两种方法。
k8s://主URL 结合使用。在 Kubernetes 上运行 1000 多个 Spark 工作负载的生产环境中,我该如何选择?
使用火花操作员有什么优点和缺点?
我正在尝试访问 GCP Secrets 上的机密,但收到以下错误:
in get_total_results "api_key": get_credentials("somekey").get("somekey within key"), File
"/helper.py", line 153, in get_credentials response = client.access_secret_version(request={"name": resource_name})
File "/usr/local/lib/python3.8/site-packages/google/cloud/secretmanager_v1/services/secret_manager_service/client.py",
line 1136, in access_secret_version response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
File "/usr/local/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py", line 145, in __call__
return wrapped_func(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/google/api_core/retry.py", line 285, in retry_wrapped_func return retry_target( File "/usr/local/lib/python3.8/site-packages/google/api_core/retry.py",
line 188, in retry_target return target() File "/usr/local/lib/python3.8/site-packages/google/api_core/grpc_helpers.py",
line 69, in error_remapped_callable six.raise_from(exceptions.from_grpc_error(exc), exc) File "<string>",
line 3, in raise_from google.api_core.exceptions.PermissionDenied:
403 Request had insufficient authentication scopes.
Run Code Online (Sandbox Code Playgroud)
代码相当简单:-
def …Run Code Online (Sandbox Code Playgroud) python kubernetes google-kubernetes-engine google-cloud-functions google-secret-manager
我在这里使用 Go SDK @ cloud.google.com/go/firestore GoDoc来调用 Firestore。它在 App Engine 上运行得很好,但我最近向 Cloud Run 添加了一项新服务。此新服务调用旧服务使用的相同代码,但该代码(适用于 App Engine)在 Cloud Run 上引发错误:rpc error: code = InvalidArgument desc = Invalid resource field value in the request
引发错误的特定代码行是:
snap, err := client.Collection(queryable.CollectionName()).Doc(queryable.GetFirestoreID()).Get(ctx)
if err != nil {
return fmt.Errorf("couldn't read document with id: %v error: %w", queryable.GetFirestoreID(), err)
}
Run Code Online (Sandbox Code Playgroud)
其中 queryable 是一个接口,而 CollectionName() 返回一个常量字符串,因此不可能是问题(此外,如果这是问题,它将返回不同的错误)。
我用更多文本包装错误消息,因此完整的错误消息可以让您了解堆栈:DoTaxDog: allDB.UpdateData: firestoreCRUD.ReadSchema: error in Firestore's ReadSchema: couldn't read document with id: AGPFiyoJdMAmurVNqHYxvKHEb error: rpc error: code = InvalidArgument …
google-cloud-platform google-cloud-firestore google-cloud-run
我目前正在使用具有 3 个目标虚拟机的非托管 TCP 负载均衡器,为了提供快速响应,只要健康数量不是 3 个虚拟机中的 3 个,我就需要一个警报系统
有没有办法通过电子邮件、slack 或 GCP 中的 pagerduty 获取有关此问题的警报?
google-cloud-platform google-cloud-monitoring google-cloud-error-reporting google-cloud-load-balancer
kubernetes ×2
apache-spark ×1
azure ×1
firebase ×1
google-cloud-error-reporting ×1
google-oauth ×1
java ×1
python ×1
terraform ×1