【问题标题】:Stackdriver logging agent installation fails on Ubuntu 16.04.5 LTS AWS EC2Stackdriver 日志记录代理安装在 Ubuntu 16.04.5 LTS AWS EC2 上失败
【发布时间】:2019-03-12 16:38:19
【问题描述】:

我正在尝试在运行 Ubuntu 16.04.5 LTS 的 AWS EC2 实例上使用 google-fluentd stackdriver 日志代理,但它失败并出现以下错误。有人可以帮忙吗?

*Job for google-fluentd.service failed because the control process exited with error code. See "systemctl status google-fluentd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript google-fluentd, action "start" failed.
google-fluentd.service - LSB: data collector for Treasure Data
   Loaded: loaded (/etc/init.d/google-fluentd; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2018-10-08 08:18:33 IST; 6ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 7778 ExecStart=/etc/init.d/google-fluentd start (code=exited, status=1/FAILURE)
Oct 08 08:18:33 ip-172-31-23-180 google-fluentd[7778]:         from /opt/google-fluentd/embedded/lib/ruby/gems/2.4.0/gems/fluentd-0.14...red)>'
Oct 08 08:18:33 ip-172-31-23-180 google-fluentd[7778]:         from /opt/google-fluentd/embedded/bin/fluentd:23:in `load'
Oct 08 08:18:33 ip-172-31-23-180 google-fluentd[7778]:         from /opt/google-fluentd/embedded/bin/fluentd:23:in `<top (required)>'
Oct 08 08:18:33 ip-172-31-23-180 google-fluentd[7778]:         from /usr/sbin/google-fluentd:7:in `load'
Oct 08 08:18:33 ip-172-31-23-180 google-fluentd[7778]:         from /usr/sbin/google-fluentd:7:in `<main>'
Oct 08 08:18:33 ip-172-31-23-180 google-fluentd[7778]:  * google-fluentd
Oct 08 08:18:33 ip-172-31-23-180 systemd[1]: google-fluentd.service: Control process exited, code=exited status=1
Oct 08 08:18:33 ip-172-31-23-180 systemd[1]: Failed to start LSB: data collector for Treasure Data.
Oct 08 08:18:33 ip-172-31-23-180 systemd[1]: google-fluentd.service: Unit entered failed state.
Oct 08 08:18:33 ip-172-31-23-180 systemd[1]: google-fluentd.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package google-fluentd (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of google-fluentd-catch-all-config:
 google-fluentd-catch-all-config depends on google-fluentd (>= 1.3.0); however:
  Package google-fluentd is not configured yet.
dpkg: error processing package google-fluentd-catch-all-config (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 google-fluentd
 google-fluentd-catch-all-config
E: Sub-process /usr/bin/dpkg returned an error code (1)*

【问题讨论】:

标签: amazon-ec2 google-cloud-platform fluentd google-cloud-stackdriver


【解决方案1】:

解决了问题。

堆栈驱动程序配置问题中未提及的身份验证配置存在问题。关注link解决问题。

【讨论】:

  • 我有 https://www.googleapis.com/auth/cloud-platform 我还需要添加堆栈驱动程序日志记录吗?
猜你喜欢
  • 2021-03-23
  • 2015-09-25
  • 2020-08-07
  • 2017-02-08
  • 1970-01-01
  • 2011-05-15
  • 1970-01-01
  • 2011-09-16
  • 2021-09-08
相关资源
最近更新 更多