Closed Junkern closed 3 years ago
I found a "workaround":
sudo curl https://download.newrelic.com/infrastructure_agent/linux/yum/el/6/x86_64/newrelic-infra-1.9.7-1.x86_64.rpm -o newrelic-infra-agent.rpm
sudo yum install -y newrelic-infra-agent.rpm
However, this seems a bit hacky for me, especially since the official documentations propose different processes (which do not work...)
Note that Amazon Linux 1 has reached EOL: https://aws.amazon.com/blogs/aws/update-on-amazon-linux-ami-end-of-life/
Yeah, I was already aware of that :) I don't think that has any impact on this issue, though. My gut feeling tells me that there are probably quite a few people stuck with Amazon Linux 1 (for whatever reasons). IMHO, the EOL of Amazon Linux 1 should have no effect on a nice (and working) installation documentation. They probably did not introduce systemctl
after the EOL announcement ;)
The Amazon Linux 1 install instructions are still accessible from this documentation page: https://docs.newrelic.com/docs/infrastructure/install-infrastructure-agent/linux-installation/install-infrastructure-monitoring-agent-linux/ (click on Amazon Linux, then select your account and AML 1). Hope that helps.
Thanks for the link! I also saw that documentation and tried it out. As described above, it did not work, though!
the sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
leads to a Not using downloaded repomd.xml because it is older than what we have:
(You can read the full error description in my first post).
Installation on Amazon Linux 1 not possible
Description
I am trying to install the newrelic infrastructure agent on ec2 hosts running with Amazon Linux 1 (
Amazon Linux AMI 2018.03
) in order to monitor services running in an ECS cluster.There is a nice documentation here, but this does not work. Amazon Linux 1 does not support
systemctl
, but the installation instruction only mentionsystemctl
. Would it make sense to update the documentation?Then I found this: https://docs.newrelic.com/docs/infrastructure/install-infrastructure-agent/config-management-tools/configure-infrastructure-agent-aws-elastic-beanstalk/ (we are not using Elastic Beanstalk, but the process on installing the agent is the same) When executing the second installation step (
yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
) I get the error posted in the troubleshooting section. While looking for solutions for theNot using downloaded repomd.xml because it is older than what we have
error most solutions suggested to contact the upstream repository.Expected Behavior
The documentation on https://docs.newrelic.com/docs/integrations/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs leads to a working newrelic infrastructure agent
Logs
Steps to Reproduce
Follow the https://docs.newrelic.com/docs/infrastructure/install-infrastructure-agent/config-management-tools/configure-infrastructure-agent-aws-elastic-beanstalk/ to the second step in the
Amazon Linux AMI
sectionYour Environment