Errno 14 HTTPS Error 500 - Internal Server Error while trying to download a package - centos7

I have a public yum repository in Google Artifact Registry, which contains a yum package. I was trying to install the package into an EC2 server(ultraserve-centos-7.4).
I have created a local yum repository file in /etc/yum.repos.d/ to access my yum repository.
[my-repo]
name=my-repo
baseurl=https://LOCATION-yum.pkg.dev/projects/PROJECT/REPOSITORY_NAME
enabled=1
repo_gpgcheck=0
gpgcheck=0
And then updated my repository sources with sudo yum makecache. The metadata cache gets created successfully.
my-repo | 1.4 kB 00:00:00
ultra-centos-7.4-base | 3.4 kB 00:00:00
ultra-centos-7.4-extras | 3.3 kB 00:00:00
ultra-centos-7.4-updates | 3.4 kB 00:00:00
ultra-centos-7.x-newrelic-monitoring | 2.9 kB 00:00:00
ultra-centos-7.x-ultrarepo | 2.9 kB 00:00:00
Metadata Cache Created
Then, when I try to download and install the package I get:
[Errno 14] HTTPS Error 500 - Internal Server Error
Trying other mirror.
Error downloading packages:
xxxxxx-0.7.0~SNAPSHOT-xxxxx-1.x86_64: [Errno 256] No more mirrors to try.
It understands which package/version to download exactly, but fails to download it.
Can anyone help me out with what exactly is going wrong? Or what I'm missing?

Related

Aws cli not installing in cygwin throwing error

These are the error details. Trying to install the awscli through pip. tried wget method as well.
$ pip install awscli
Collecting awscli
Using cached awscli-1.25.53-py3-none-any.whl (3.9 MB)
Collecting PyYAML<5.5,>=3.10
Using cached PyYAML-5.4.1.tar.gz (175 kB)
0 [main] python 2066 child_copy: stack write copy failed, 0xFFFF5480..0x100000000, done 4294923504, windows pid 16392, Win32 error 5
5496 [main] python 2066 dofork: child
2067 - pid 11768, exitval 0x103, errno 11
ERROR: Error [Errno 11] Resource
temporarily unavailable while executing command pip subprocess to install build dependencies
Installing build dependencies ... error
ERROR: Could not install packages due to an OSError: [Errno 11] Resource temporarily unavailable
Any help will be appreciated.
From Installing or updating the latest version of the AWS CLI - AWS Command Line Interface:
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

Install AWS Redshift drivers Tableau Server not working

I installed AWS Redshift drivers in Tableau Server using:
Download:
wget https://s3.amazonaws.com/redshift-downloads/drivers/odbc/1.4.27.1000/AmazonRedshiftODBC-64-bit-1.4.27.1000-1.x86_64.rpm
Install:
sudo yum --nogpgcheck localinstall AmazonRedshiftODBC-64-bit-1.4.27.1000-1.x86_64.rpm
Install output is:
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Examining AmazonRedshiftODBC-64-bit-1.4.27.1000-1.x86_64.rpm: AmazonRedshiftODBC-64bit-1.4.27-1.x86_64
Marking AmazonRedshiftODBC-64-bit-1.4.27.1000-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package AmazonRedshiftODBC-64bit.x86_64 0:1.4.27-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================================================================
Installing:
AmazonRedshiftODBC-64bit x86_64 1.4.27-1 /AmazonRedshiftODBC-64-bit-1.4.27.1000-1.x86_64 60 M
Transaction Summary
========================================================================================================================================================================================================================
Install 1 Package
Total size: 60 M
Installed size: 60 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : AmazonRedshiftODBC-64bit-1.4.27-1.x86_64 1/1
Verifying : AmazonRedshiftODBC-64bit-1.4.27-1.x86_64 1/1
Installed:
AmazonRedshiftODBC-64bit.x86_64 0:1.4.27-1
Complete!
When I test redshift connection I get this error:
Drivers needed not installed to connect to db.<br>2021-06-28 14:39:57.163, (YNnfPNRMIky5JaHdM7bkwwAAANQ,1:1
downgrade the driver to 1.4.20.1001, any version after this is not compatible with tableau server.
https://s3.amazonaws.com/redshift-downloads/drivers/odbc/1.4.20.1001/AmazonRedshiftODBC-64-bit-1.4.20.1001-1.x86_64.rpm

Dockerfile Error while giving RUN command

I am trying to learn Docker and I am on Oracle VMware on CentOS8. I am trying to build a Dockerfile. Here is the content of the file Dockerfile:
FROM centos
RUN yum -y install httpd
When I build, it throws the error below:
[arijhit#localhost docker-images]$ docker build --tag centos_apache:v1 .
Sending build context to Docker daemon 2.048kB
Step 1/2 : FROM centos
---> 0d120b6ccaa8
Step 2/2 : RUN yum -y install httpd
---> Running in 1f20ba141039
CentOS-8 - AppStream 0.0 B/s | 0 B 00:30
Errors during downloading metadata for repository 'AppStream':
- Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=container [Could not resolve host: mirrorlist.centos.org]
Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=container [Could not resolve host: mirrorlist.centos.org]**
The command '/bin/sh -c yum -y install httpd' returned a non-zero code: 1
Can someone please help rectify this?
Edit:
Hi #Uberhumus Here is the response from CentOS docker image for the commands you said
[arijhit#localhost ~]$ docker run -t -d centos 60566bb1a2ef808c59c0374c0e9753bc26f0098c8b54c438e7742af418beae3a
[arijhit#localhost ~]$ docker p
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
60566bb1a2ef centos "/bin/bash" 20 seconds ago Up 8 seconds laughing_greider
5d3efb03c67a nginx:alpine "/docker-entrypoint.…" 6 minutes ago Up 5 minutes 80/tcp kind_tesla
[arijhit#localhost ~]$ docker exec -it laughing_greider /bin/bash
[root#60566bb1a2ef /]# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=31.4 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=115 time=168 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=115 time=47.3 ms
^C
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 5ms
rtt min/avg/max/mdev = 31.357/82.241/168.110/61.064 ms
[root#60566bb1a2ef /]# yum check-update
Failed to set locale, defaulting to C.UTF-8
CentOS-8 - AppStream 0.0 B/s | 0 B 00:30
Errors during downloading metadata for repository 'AppStream':
- Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=container [Could not resolve host: mirrorlist.centos.org] Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=container [Could not resolve host: mirrorlist.centos.org]
[root#60566bb1a2ef /]# yum -y install httpd
Failed to set locale, defaulting to C.UTF-8
CentOS-8 - AppStream 0.0 B/s | 0 B 00:30
Errors during downloading metadata for repository 'AppStream':
- Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=container [Could not resolve host: mirrorlist.centos.org] Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=container [Could not resolve host: mirrorlist.centos.org]
Dear All the following solved my problem.
firewall-cmd --permanent --zone=trusted --add-interface=docker0
firewall-cmd --reload
Found it here:
https://forums.centos.org/viewtopic.php?f=54&t=74270
Many thanks to everyone here...
I tried to build your Dockerfile and I've gotten an error too, albeit a different one.
Below are working Dockerfiles for CentOS 7 and CentOS 8 respectively:
FROM centos:7
RUN yum -y install httpd
EXPOSE 80
ENTRYPOINT [ "/usr/sbin/httpd" ]
CMD [ "-D", "FOREGROUND"]
and
FROM centos:8
RUN yum clean all && \
yum -y update && \
yum -y install httpd
EXPOSE 80
ENTRYPOINT [ "/usr/sbin/httpd" ]
CMD [ "-D", "FOREGROUND"]
Let me know if either of those works for you.
Edit:
I put the prebuilt images here if you need them.
Edit 2:
If the above Dockerfiles do not build for you, then it's most likely a problem with Docker's DNS. Please follow the steps in this article to verify that hypothesis and possibly resolve the problem.

how to install virtualbox on RHEL 6 without using yum?

My company has firewall rules for yum so we can use only rpm to install the softwares on the RHEL 6 SERVER. So, I got a task to install virtualbox 5.1 on it. i used the rpm from the virtualbox website and installed it, but it failed with 2 dependencies and i installed them also. Then i got the below error.I just googled that i need some kernel-devel rpms but i dono, what to do after that and what else i need to make the virtual box running.
# virtualbox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (2.6.32-642.4.2.el6.x86_64) or it failed to load. Please recompile the kernel module and install it by
sudo /sbin/vboxconfig
You will not be able to start VMs until this problem is fixed.
Qt FATAL: QXcbConnection: Could not connect to display
Aborted
There will be lot of dependencies while installing rpm's. you need to check one by one and install the RPM's. Is suggest you to build local yum repository which doesnt require internet. you should use rhel 6 iso file to build local repo. And download the virtual box rpm, and try to install it with yum utility. yum will use local repo for dependency resolution.
Build repo:
1. mount DVD
[root#lh1 Packages]# cd /etc/yum.repos.d
[root#lh1 yum.repos.d]# vi dvd.repo
[root#lh1 yum.repos.d]# cat dvd.repo
[DVD_ISO]
name= Linux 6
baseurl=file:///mnt/cdrom
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
gpgcheck=1
enabled=1
[root#lh1 rpm-gpg]# yum clean all
Loaded plugins: rhnplugin
[Errno 2] No such file or directory: '/var/cache/yum/x86_64/6Server'
[root#lh1 rpm-gpg]# yum repolist
Loaded plugins: rhnplugin
This system is not registered with ULN.
ULN support will be disabled.
DVD_ISO | 3.7 kB 00:00 ...
DVD_ISO/primary_db | 3.1 MB 00:00 ...
repo id repo name status
DVD_ISO Linux 6 3,379
repolist: 3,379

How do I install software with an RPM (cx_Oracle) onto CentOS 6?

I have the RPM for a software module that I want to install onto a CentOS 6 system. I have installed this RPM into the yum database via the command 'rpm -ivh '. My understanding is that now the RPM can be used to install the module via 'yum install ' but this hasn't worked, i.e. I get a "nothing to install" message when I try that. So I must not be doing something right? Can anyone advise?
FYI here's what I've tried so far:
$ rpm -ivh cx_Oracle-5.1.2-11g-py27-1.x86_64.rpm
Preparing... ########################################### [100%]
1:cx_Oracle ########################################### [100%]
$ yum search cx_Oracle
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.ash.fastserv.com
* extras: mirror.symnds.com
* updates: ftp.linux.ncsu.edu
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
updates | 3.5 kB 00:00
============================ N/S Matched: cx_Oracle ============================
cx_Oracle.x86_64 : Python interface to Oracle
$ yum install cx_Oracle
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.ash.fastserv.com
* extras: mirror.symnds.com
* updates: ftp.linux.ncsu.edu
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
updates | 3.5 kB 00:00
Setting up Install Process
Nothing to do
$ yum update cx_Oracle
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.ash.fastserv.com
* extras: mirror.symnds.com
* updates: ftp.linux.ncsu.edu
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
updates | 3.5 kB 00:00
Setting up Update Process
No Packages marked for Update
Thanks in advance for any suggestions, insight, etc.
You have already installed the package. You used rpm to install cx_Oracle-5.1.2-11g-py27-1.x86_64.rpm. The "cx_Oracle.x86_64" that yum search cx_Oracle reports is the very one that you installed on your machine via your rpm command.