amazon-web-services - 在 Ubuntu 17.10 ( artful ) 上,Amazon Web Services awslogs代理 setup.py 不工作

  显示原文与译文双语对照的内容
65 5

这在 ubuntu 16.04上很不错,但在 17.10上却不行

+ curl https://s3.amazonaws.com/aws-cloudwatch/downloads/latest/awslogs-agent-setup.py -O
 % Total % Received % Xferd Average Speed Time Time Time Current
 Dload Upload Total Spent Left Speed
^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0^M100 56093 100 56093 0 0 56093 0 0:00:01 --:--:-- 0:00:01 98929
+ chmod +x./awslogs-agent-setup.py
+./awslogs-agent-setup.py -n -c/etc/awslogs/awslogs.conf -r us-west-2
Step 1 of 5: Installing pip.. .^[[0mlibyaml-dev does not exist in system ^[[0m^[[92mDONE^[[0m
Step 2 of 5: Downloading the latest CloudWatch Logs agent bits.. . ^[[0mTraceback (most recent call last):
 File"./awslogs-agent-setup.py", line 1317, in <module>
 main()
 File"./awslogs-agent-setup.py", line 1313, in main
 setup.setup_artifacts()
 File"./awslogs-agent-setup.py", line 858, in setup_artifacts
 self.install_awslogs_cli()
 File"./awslogs-agent-setup.py", line 570, in install_awslogs_cli
 subprocess.call([AWSCLI_CMD, 'configure', 'set', 'plugins.cwlogs', 'cwlogs'], env=DEFAULT_ENV)
 File"/usr/lib/python2.7/subprocess.py", line 168, in call
 return Popen(*popenargs, **kwargs).wait()
 File"/usr/lib/python2.7/subprocess.py", line 390, in __init__
 errread, errwrite)
 File"/usr/lib/python2.7/subprocess.py", line 1025, in _execute_child
 raise child_exception
OSError: [Errno 2] No such file or directory

我注意到在这个过程中,在AWS模板中,它无法安装libyaml开发人员,但是不确定它是唯一的问题。

时间:原作者:0个回答

...