【发布时间】:2019-11-06 20:37:44
【问题描述】:
所以我试图让 Logging 代理在 google 实例上运行,但是当它运行时,以下错误不断发生,并且日志没有被发送到 Stackdriver
#0 failed to flush the buffer, and hit limit for retries. dropping all chunks in the buffer queue. retry_times=3 records=100181 error_class=GRPC::Unavailable error="14:DNS resolution failed"
运行授权范围产生
https://www.googleapis.com/auth/devstorage.read_only
https://www.googleapis.com/auth/logging.write
https://www.googleapis.com/auth/monitoring.write
【问题讨论】:
-
这感觉更像是 DNS 失败了。您能否验证操作系统中的网络设置?您是否为 VM 使用自定义映像?它以前工作正常,还是新实例?您是否尝试过手动重新启动日志记录代理?这是link 解释如何重新启动日志记录代理,适用于 Linux 和 Windows
标签: google-cloud-stackdriver google-cloud-logging