This works fine on ubuntu 16.04, but not on 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
I noticed that earlier in the process, in the AWS template, he was unable to install libyaml-dev, but not sure if this is the only problem.
source share