Please help to fix the below error.
# yum install docker
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for s390x - AppStream from RHUI (RPMs) 2.4 kB/s | 169 B 00:00
Errors during downloading metadata for repository 'rhel-8-appstream-rhui-rpms':
- Status code: 403 for https://rhui.us-east-1.aws.ce.redhat.com/pulp/content/content/dist/rhel8/rhui/8/s390x/appstream/os/repodata/repomd.xml (IP: 44.197.135.178)
Error: Failed to download metadata for repo 'rhel-8-appstream-rhui-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
[root#k8s-master yum.repos.d]#
Even after disabling "rhel-8-appstream-rhui-rpms" repo from subscription manager, this error persists.
[root#k8s-master yum.repos.d]# subscription-manager repos --disable rhel-8-appstream-rhui-rpms
Repositories disabled by configuration.
[root#k8s-master yum.repos.d]# subscription-manager refresh
All local data refreshed
[root#k8s-master yum.repos.d]# yum clean all
Updating Subscription Management repositories.
13 files removed
[root#k8s-master yum.repos.d]#
Related
I am trying to execute the test network on hyperledger Fabric.
I have installed the following prerequisites:
curl version 7.68.0
docker version 20.10.12
docker-compose version 1.25.0
go version 1.13.8
node version 10.19.0
npm version 6.14.4
python version (3.8.10 and 2.7.18)
I'm using Ubuntu 20.04.
In the folder fabric-sample/test-network: I run
./network.sh down
and then ./network.sh up
then I tested
docker ps-a
It shows 2 fabric-peers and one orderer.
Now I'm trying to create a channel with ./network.sh createChannel but I got this error how to solve it??
Error: Post "https://localhost:7053/participation/v1/channels": EOF Channel creation failed
Make sure you having the same version of fabric docker images, fabric binaries and fabric samples. Checkout to specific tags in fabric samples repo if required. Latest version of fabric works with the main branch of samples.
I have created an Redhat EC2 Instance in AWS.
I am trying to install Jenkins as a Docker Image inside that Redhat EC2 Instance.
I am following the below URl to install Docker on AWS
https://docs.docker.com/engine/install/centos/
But I am facing issue after adding that repositoy, I guess Yum is not able to get the repository
Failed to set locale, defaulting to C
Loaded plugins: amazon-id, search-disabled-repos
https://download.docker.com/linux/centos/7Server/x86_64/stable/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article
https://access.redhat.com/articles/1320623
If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.
One of the configured repositories failed (Docker CE Stable - x86_64),
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=docker-ce-stable ...
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 docker-ce-stable
or
subscription-manager repos --disable=docker-ce-stable
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=docker-ce-stable.skip_if_unavailable=true
failure: repodata/repomd.xml from docker-ce-stable: [Errno 256] No more mirrors to try.
https://download.docker.com/linux/centos/7Server/x86_64/stable/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
I tried running the following command after that error(just hit and trail)
yum-config-manager --save --setopt=docker-ce-stable.skip_if_unavailable=true
But its not able to find
No package docker-ce available.
No package docker-ce-cli available.
No package containerd.io available.
Error: Nothing to do
Can someone help me with some documentation or any blog to install docker on Redhat platform
I am Using RHEL_7.9 version
Thanks in Advance
I was able to download amazon linux's image from this dockerhub -
ambakshi/amazon-linux 2016.03 083f32382cc4 4 months ago 142.7 MB
But I'm not able to do "yum install" any package on it.
Keeps giving a 403 Forbidden error.
[root#8ea0c348a91c /]# yum install lxml
Loaded plugins: priorities, update-motd, upgrade-helper
http://packages.us-west-2.amazonaws.com/2016.09/main/20160901f6a8/x86_64/repodata/repomd.xml?instance_id=fail®ion=URLError: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
Trying other mirror.
IS there something I'm missing?
I'm trying all of this in Mac OS. Can someone please help?
Thanks
Ramya
Answering my own question:
Amazon has now released official "Amazon Linux" Docker Images which can be used for local development:
Please check the details here:
https://aws.amazon.com/blogs/aws/new-amazon-linux-container-image-for-cloud-and-on-premises-workloads/
http://docs.aws.amazon.com/AmazonECR/latest/userguide/amazon_linux_container_image.html
You can only download those packages if the container is running on Amazon's infrastructure within their network (an EC2 instance for example). It won't work from your local development machine.
I am trying to install a Sensu client without the server.
According to the documentation:
"The Sensu Core package installs several processes including sensu-server, sensu-api, and sensu-client."
However after adding the repository, I was only able to locate the aggragate sensu package and could not locate or install sensu-client.
I noticed a ticket on github stating it was not possible however that was 2 years ago so maybe things have changed?
Is it possible to install Sensu server without having to install Redis, RabbitMQ and Sensu server?
The sensu package will install sensu-server, sensu-api, and sensu-client services, you can however, setup a functional sensu-client without installing Redis, RabbitMQ, and without configuring sensu-server.
sudo yum install sensu
vi /etc/sensu/config.json
vi /etc/sensu/conf.d/client.json
sudo /etc/init.d/sensu-client start
sudo /sbin/chkconfig sensu-client on
/etc/sensu/config.json should at least have the rabbitmq location of the server, while /etc/sensu/conf.d/client.json of course needs to have the ip and name of the client.
If someone facing an error with installation provide by #Enrique sudo yum install sensu
https://sensu.global.ssl.fastly.net/yum/latest/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
The above was not working on aws ec2 linux.
They can try this to add sensu repo.
vim /etc/yum.repos.d/sensu.repo
Add this
[sensu]
name=sensu
baseurl=http://sensu.global.ssl.fastly.net/yum/$basearch/
gpgcheck=0
enabled=1
then install sensu
sudo yum install sensu -y
Remaining steps same as answerd by #Enrique Arriaga
It's not possible with sensu core. But you can install it using the new product from sensu, sensu go which has sensu backend (replaces sensu server) and sensu agent (replaces sensu client) allows to install only sensu agent on your infrastructure.
Today I hit a issues with my Ambari-Server install on a virtually blank system:
[root#<server>/]# ambari-server setup
Using python /usr/bin/python2.6
Setup ambari-server
Checking SELinux...
SELinux status is 'disabled'
Customize user account for ambari-server daemon [y/n] (n)?
Adjusting ambari-server permissions and ownership...
Checking firewall status...
FATAL: Could not load /lib/modules/2.6.32-504.16.2.el6.x86_64/modules.dep: No such file or directory
iptables v1.4.7: can't initialize iptables table 'filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Could not load /lib/modules/2.6.32-504.16.2.el6.x86_64/modules.dep: No such file or directory
iptables v1.4.7: can't initialize iptables table 'nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
WARNING: iptables is running. Confirm the necessary Ambari ports are accessible. Refer to the Ambari documentation for more detai
OK to continue [y/n] (y)?
Checking JDK...
[1] OpenJDK 1.8.0
[2] OpenJDK 1.7.0 (deprecated)
[3] Custom JDK
==============================================================================
Enter choice (1):
Downloading JDK from http://birepo-build.svl/repos/IOP-UTILS/RHEL7/x86_64/1.1/openjdk/jdk-1.8.0.tar.gz to /var/lib/ambari-1.8.0.tar.gz
jdk-1.8.0.tar.gz... 100% (56.5 MB of 56.5 MB)
Successfully downloaded JDK distribution to /var/lib/ambari-server/resources/jdk-1.8.0.tar.gz
Installing JDK to /usr/jdk64/
Installation of JDK has failed: [Errno 2] No such file or directory
JDK found at /var/lib/ambari-server/resources/jdk-1.8.0.tar.gz. Would you like to re-download the JDK [y/n] (y)?
Re-downloading JDK from http://birepo-build.svl/repos/IOP-UTILS/RHEL7/x86_64/1.1/openjdk/jdk-1.8.0.tar.gz to /var/lib/ambari-server/resources/jdk-1.8.0.tar.gz
jdk-1.8.0.tar.gz... 100% (56.5 MB of 56.5 MB)
Successfully downloaded JDK distribution to /var/lib/ambari-server/resources/jdk-1.8.0.tar.gz
Successfully re-downloaded JDK distribution to /var/lib/ambari-server/resources/jdk-1.8.0.tar.gz
Installing JDK to /usr/jdk64/
Installation of JDK was failed: [Errno 2] No such file or directory
ERROR: Exiting with exit code 1.
REASON: Downloading or installing JDK failed: 'Fatal exception: Unable to install JDK. Please remove JDK, file found at /var/lib/ambari-server/resources/jdk-1.8.0.tar.gz and re-run Ambari Server setup, exit code 1'. Exiting.`
Searching about I did a little investigation of my own as this is running on a Docker host. Hence the IPTables issue, this is due to it being within a Docker container and the NET_ADMIN capability for non-privileged containers. Unprivileged containers can't change their network configuration.
Turns out that I've managed to figure out this issue my self.
First I found lots of links talking about manually installing the JDK, then repository issues and python script time-outs.
It was rather simple in the end, just needed to install the 'tar' package as it couldn't extract the files, once I did this, it ran through with no issue.
That's what I get for having a 'blank' install.
Installing and run Ambari into Docker is a tricky thing. I've spent many days trying to make it all work. You can find here some hints about how to prepare centos7 docker based image for running Ambari server http://mixeddev.info/articles/2020/12/10/run-apache-ambari-hdp-hdf-in-docker.html