I am attempting to create an Influx DB Repository to download the TIG Stack onto my AWS EC2 server, but whenever I attempt to install something I keep getting the error:
One of the Configured Repository Failed (InfluxDB Repository - RHEL 2), and yum doesn't have enough cache data to continue
How can I solve this issue?
`login as:ec2-user
Authenticating with public key "imported-openssh-key"
Last login:
__| __|_ )
_| ( / Amazon Linux 2 AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-2/
[ec2-user]$ sudo yum install influxdb
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core | 3.7 kB 00:00
amzn2extra-docker | 3.0 kB 00:00
amzn2extra-kernel-5.10 | 3.0 kB 00:00
https://repos.influxdata.com/rhel/%24relasever/x86_64/stable/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
One of the configured repositories failed (InfluxDB Repository - RHEL 2),
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. Run the command with the repository temporarily disabled
yum --disablerepo=influxdb ...
4. Disable the repository permanently, 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 influxdb
or
subscription-manager repos --disable=influxdb
5. 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=influxdb.skip_if_unavailable=true
failure: repodata/repomd.xml from influxdb: [Errno 256] No more mirrors to try.
https://repos.influxdata.com/rhel/$relasever/x86_64/stable/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
[ec2-user]$
These are the InfluxDB Repository settings:
login as: ec2-user
Authenticating with public key "imported-openssh-key"
Last login: Tue Jan 31 19:22:40 2023 from c-76-158-158-139.hsd1.ca.comcast.net
__| __|_ )
_| ( / Amazon Linux 2 AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-2/
[ec2-user]$ sudo nano /etc/yum.repos.d/influxdb.repo
GNU nano 2.9.8 /etc/yum.repos.d/influxdb.repo
[influxdb]
name = InfluxDB Repository - RHEL $releasever
baseurl = https://repos.influxdata.com/rhel/$relasever/$basearch/stable
enable = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
`