Project

General

Profile

Actions

Bug #13623

closed

Amazon AMI's running Amazon's RHEL variant are unable to install rudder-agent

Added by Matthew Frost about 6 years ago. Updated about 6 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Agent
Target version:
-
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

Hello Rudder,

We have noticed that we are unable to install the rudder agent on amazon Yum Based AMI's.

We are using the following instructions https://docs.rudder.io/history/4.3/install-agent.html#_install_rudder_agent_on_rhel_like_systems and we choose RHEL_7 as a version for this Redhat Linux veriant.

It seems like libpcre.so.1 does not exist on amazon AMI's and that a newer version of libpcre is no avaiable from the default amazon repos:

Here is the error when isntalling the agent

[root@HOST ~]# yum install rudder-agent
Loaded plugins: priorities, update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> Package rudder-agent.x86_64 1398866025:4.3.4.release-1.EL.7 will be installed
--> Processing Dependency: dmidecode for package: 1398866025:rudder-agent-4.3.4.release-1.EL.7.x86_64
--> Processing Dependency: libpcre.so.1()(64bit) for package: 1398866025:rudder-agent-4.3.4.release-1.EL.7.x86_64
--> Running transaction check
---> Package dmidecode.x86_64 1:2.12-5.8.amzn1 will be installed
---> Package rudder-agent.x86_64 1398866025:4.3.4.release-1.EL.7 will be installed
--> Processing Dependency: libpcre.so.1()(64bit) for package: 1398866025:rudder-agent-4.3.4.release-1.EL.7.x86_64
--> Finished Dependency Resolution
Error: Package: 1398866025:rudder-agent-4.3.4.release-1.EL.7.x86_64 (Rudder_4.3)
Requires: libpcre.so.1()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Here is a list of package contents:

[root@HOST ~]# rpm -ql pcre
/lib64/libpcre.so.0
/lib64/libpcre.so.0.0.1
/usr/lib64/libpcrecpp.so.0
/usr/lib64/libpcrecpp.so.0.0.0
/usr/lib64/libpcreposix.so.0
/usr/lib64/libpcreposix.so.0.0.0
/usr/share/doc/pcre-8.21
/usr/share/doc/pcre-8.21/AUTHORS
/usr/share/doc/pcre-8.21/COPYING
/usr/share/doc/pcre-8.21/ChangeLog
/usr/share/doc/pcre-8.21/LICENCE
/usr/share/doc/pcre-8.21/NEWS
/usr/share/doc/pcre-8.21/README

Hope this helps feel free to contact me for debuging or testing.


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #13624: Document Amazon Linux compatibilityReleasedAlexis MoussetActions
Actions #1

Updated by Matthew Frost about 6 years ago

This VM is based on AMI Version: Amazon Linux AMI 2017.03.1.20170812

Actions #2

Updated by Alexis Mousset about 6 years ago

Can you try the RHEL 6 Rudder package?

Actions #3

Updated by Matthew Frost about 6 years ago

Hi Alexis,

I get the same error :(

[root@HOST ~]# cat /etc/yum.repos.d/rudder.repo
[Rudder_4.3]
name=Rudder 4.3 EL repository
baseurl=http://www.rudder-project.org/rpm-4.3/RHEL_6/
gpgcheck=1
gpgkey=https://www.rudder-project.org/rpm-repos/rudder_rpm_key.pub
[root@HOST ~]# yum install rudder-agent
Loaded plugins: priorities, update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> Package rudder-agent.x86_64 1398866025:4.3.4.release-1.EL.7 will be installed
--> Processing Dependency: dmidecode for package: 1398866025:rudder-agent-4.3.4.release-1.EL.7.x86_64
--> Processing Dependency: libpcre.so.1()(64bit) for package: 1398866025:rudder-agent-4.3.4.release-1.EL.7.x86_64
--> Running transaction check
---> Package dmidecode.x86_64 1:2.12-5.8.amzn1 will be installed
---> Package rudder-agent.x86_64 1398866025:4.3.4.release-1.EL.7 will be installed
--> Processing Dependency: libpcre.so.1()(64bit) for package: 1398866025:rudder-agent-4.3.4.release-1.EL.7.x86_64
--> Finished Dependency Resolution
Error: Package: 1398866025:rudder-agent-4.3.4.release-1.EL.7.x86_64 (Rudder_4.3)
           Requires: libpcre.so.1()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Actions #4

Updated by Alexis Mousset about 6 years ago

It seems yum is still trying to install RHEL7 version, did your remove the RHEL7 repo and refresh package lists?

Actions #5

Updated by Matthew Frost about 6 years ago

Alexis MOUSSET wrote:

It seems yum is still trying to install RHEL7 version, did your remove the RHEL7 repo and refresh package lists?

I thought i did i am using "yum check-update" which I thought is the RHEL version of "apt-get update".

But i get the same error prehaps im using wrong command?

Actions #6

Updated by Matthew Frost about 6 years ago

Matthew Frost wrote:

Alexis MOUSSET wrote:

It seems yum is still trying to install RHEL7 version, did your remove the RHEL7 repo and refresh package lists?

I thought i did i am using "yum check-update" which I thought is the RHEL version of "apt-get update".

But i get the same error prehaps im using wrong command?

and if i use "yum makecache"
One of the configured repositories failed (Rudder 4.3 EL repository),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:
yum-config-manager --disable Rudder_4.3
4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=Rudder_4.3.skip_if_unavailable=true

failure: repodata/1af8a55855a4a249085fa015675d9e8f9a90b9b9b8be436cd4e39c99b1582b53-filelists.xml.gz from Rudder_4.3: [Errno 256] No more mirrors to try.
http://www.rudder-project.org/rpm-4.3/RHEL_6/repodata/1af8a55855a4a249085fa015675d9e8f9a90b9b9b8be436cd4e39c99b1582b53-filelists.xml.gz: [Errno 14] HTTP Error 404 - Not Found


Does that mean that agent version it not avaiable for RHEL_6 ?

Actions #7

Updated by Alexis Mousset about 6 years ago

The 1af8a55855a4a249085fa015675d9e8f9a90b9b9b8be436cd4e39c99b1582b53-filelists.xml.gz file is part of the RHEL7 repo (and not RHEL6), this is strange.

Actions #8

Updated by Matthew Frost about 6 years ago

Maybe my yum cache is not cleared will try to clear it again.

Actions #9

Updated by Matthew Frost about 6 years ago

Matthew Frost wrote:

Maybe my yum cache is not cleared will try to clear it again.

Fixed With

yum clean all

I can confirm the RHEL 6 repo works!!

Thanks! sorry for the bug report!

Actions #10

Updated by Benoît PECCATTE about 6 years ago

  • Subject changed from Amazon AMI's running Amazon's RHEL varient are unable to install rudder-agent to Amazon AMI's running Amazon's RHEL variant are unable to install rudder-agent
Actions #11

Updated by Alexis Mousset about 6 years ago

Thanks for the report. No need to be sorry, this is actually a documentation bug!

Actions #12

Updated by Benoît PECCATTE about 6 years ago

  • Category changed from Agent to Documentation
  • Effort required set to Small
Actions #13

Updated by Alexis Mousset about 6 years ago

  • Category changed from Documentation to Agent
  • Status changed from New to Rejected
  • Effort required deleted (Small)

Opened #13624 to fix the doc and #13625 for rudder-setup. CLosing this one, thanks!

Actions #14

Updated by Alexis Mousset about 6 years ago

  • Related to Bug #13624: Document Amazon Linux compatibility added
Actions

Also available in: Atom PDF