AWS EC2 MySQL Client Installation - mysql

I am installing MySQL client in my EC2 instance via Cloudformation using the below command in userdata:
- yum install -y https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
- yum install -y mysql-community-client.x86_64
But after logging-in to the EC2, I found that I cannot execute certain commands like
mysqldump
mysql
I checked in /usr/bin and found that mysql, mysqldump, mysqlcheck and other mysql related commands are not there.
At last I checked the system log and cloud-init log of the EC2 server and found below log:
[ 75.069708] cloud-init[2691]: Installing:
[ 75.071941] cloud-init[2691]: mysql-community-client x86_64 8.0.28-1.el7 mysql80-community 53 M
[ 75.076458] cloud-init[2691]: mysql-community-libs x86_64 8.0.28-1.el7 mysql80-community 4.7 M
[ 75.096330] cloud-init[2691]: replacing mariadb-libs.x86_64 1:5.5.68-1.amzn2
[ 75.099727] cloud-init[2691]: mysql-community-libs-compat x86_64 8.0.28-1.el7 mysql80-community 1.2 M
[ 75.104188] cloud-init[2691]: replacing mariadb-libs.x86_64 1:5.5.68-1.amzn2
[ 75.107629] cloud-init[2691]: Installing for dependencies:
[ 75.110473] cloud-init[2691]: mysql-community-client-plugins x86_64 8.0.28-1.el7 mysql80-community 5.7 M
[ 75.116311] cloud-init[2691]: mysql-community-common x86_64 8.0.28-1.el7 mysql80-community 630 k
[ 75.116510] cloud-init[2691]: ncurses-compat-libs x86_64 6.0-8.20170212.amzn2.1.3
[ 75.116976] cloud-init[2691]: amzn2-core 308 k
[ 75.117416] cloud-init[2691]: Transaction Summary
[ 75.117888] cloud-init[2691]: ================================================================================
[ 75.118345] cloud-init[2691]: Install 3 Packages (+3 Dependent packages)
[ 75.118801] cloud-init[2691]: Total download size: 65 M
[ 75.119227] cloud-init[2691]: Downloading packages:
[ 75.393593] cloud-init[2691]: warning: /var/cache/yum/x86_64/2/mysql80-community/packages/mysql-community-client-plugins-8.0.28-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
[ 75.399647] cloud-init[2691]: Public key for mysql-community-client-plugins-8.0.28-1.el7.x86_64.rpm is not installed
[ 76.034754] cloud-init[2691]: --------------------------------------------------------------------------------
[ 76.039388] cloud-init[2691]: Total 67 MB/s | 65 MB 00:00
[ 76.043679] cloud-init[2691]: Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
[ 76.075984] cloud-init[2691]: Importing GPG key 0x5072E1F5:
[ 76.078955] cloud-init[2691]: Userid : "MySQL Release Engineering <mysql-build#oss.oracle.com>"
[ 76.082649] cloud-init[2691]: Fingerprint: a4a9 4068 76fc bd3c 4567 70c8 8c71 8d3b 5072 e1f5
[ 76.085875] cloud-init[2691]: Package : mysql80-community-release-el7-1.noarch (installed)
[ 76.089472] cloud-init[2691]: From : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
[ 76.093229] cloud-init[2691]: Public key for mysql-community-client-8.0.28-1.el7.x86_64.rpm is not installed
[ 76.097724] cloud-init[2691]: Failing package is: mysql-community-client-8.0.28-1.el7.x86_64
[ 76.101487] cloud-init[2691]: GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
How I can resolve this issue? Please suggest.
Update:
The instance is: Amazon Linux 2
User Data:
Fn::Base64: !Sub |
#cloud-config
repo_update: true
write_files:
- content: |
REGION=${Region}
ENV=${Env}
path: /etc/environment
append: true
- content: "${EFSFileSystem}:/ /efs efs defaults,_netdev 0 0"
path: /etc/fstab
append: true
packages:
- amazon-efs-utils
- jq
- nfs-utils
- ruby
- unzip
- wget
package_update: true
package_upgrade: true
runcmd:
- [ mkdir, /efs ]
- [ mount, /efs ]
- [ sh, -c, "amazon-linux-extras install -y nginx1.12 php7.4" ]
- yum install -y php-opcache php-gd php-mbstring php-pecl-zip php-xml
- yum install -y https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
- yum install -y mysql-community-client.x86_64
- wget -q https://s3.amazonaws.com/amazoncloudwatch-agent/linux/amd64/latest/AmazonCloudWatchAgent.zip -O /tmp/AmazonCloudWatchAgent.zip
- unzip -d /tmp/AmazonCloudWatchAgentInstaller /tmp/AmazonCloudWatchAgent.zip
- rpm -ivh /tmp/AmazonCloudWatchAgentInstaller/amazon-cloudwatch-agent.rpm
- /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c ssm:${CloudwatchConfigSsm} -s
- wget -q https://aws-codedeploy-ap-northeast-1.s3.ap-northeast-1.amazonaws.com/latest/install -O /tmp/aws-codedeploy-install.rb
- [ ruby, /tmp/aws-codedeploy-install.rb, auto ]
- systemctl enable nginx
- service codedeploy-agent start

Related

Mysql install Error: Could not find OpenSSL on the system

im following this guideline to install mysql: https://dev.mysql.com/doc/mysql-linuxunix-excerpt/5.7/en/binary-installation.html
here is list of command:
$> groupadd mysql
$> useradd -r -g mysql -s /bin/false mysql
$> cd /usr/local
$> tar zxvf /path/to/mysql-VERSION-OS.tar.gz
$> ln -s full-path-to-mysql-VERSION-OS mysql
$> cd mysql
$> mkdir mysql-files
$> chown mysql:mysql mysql-files
$> chmod 750 mysql-files
$> bin/mysqld --initialize --user=mysql
$> bin/mysql_ssl_rsa_setup
$> bin/mysqld_safe --user=mysql &
# Next command is optional
When i run to this command bin/mysql_ssl_rsa_setup then i got error:
[ERROR] Could not find OpenSSL on the system
I run this command to install openssl : yum install openssl-devel
it look ok:
Total 6.0 MB/s | 6.5 MB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : libcom_err-1.43.5-8.3.alios7.x86_64 1/28
Updating : keyutils-libs-1.5.8-3.4.alios7.x86_64 2/28
Updating : libsepol-2.5-10.1.alios7.x86_64 3/28
Updating : libselinux-2.5-14.1.1.alios7.x86_64 4/28
Updating : 1:openssl-libs-1.0.2k-23.1.alios7.x86_64 5/28
Updating : krb5-libs-1.15.1-51.1.alios7.x86_64 6/28
Installing : libkadm5-1.15.1-51.1.alios7.x86_64 7/28
Installing : libsepol-devel-2.5-10.1.alios7.x86_64 8/28
Installing : keyutils-libs-devel-1.5.8-3.4.alios7.x86_64 9/28
Updating : libss-1.43.5-8.3.alios7.x86_64 10/28
Installing : libcom_err-devel-1.43.5-8.3.alios7.x86_64 11/28
Updating : e2fsprogs-libs-1.43.5-8.3.alios7.x86_64 12/28
Installing : pcre-devel-8.32-15.1.alios7.x86_64 13/28
Installing : libselinux-devel-2.5-14.1.1.alios7.x86_64 14/28
Installing : libverto-devel-0.2.5-4.1.alios7.x86_64 15/28
Installing : krb5-devel-1.15.1-51.1.alios7.x86_64 16/28
Installing : zlib-devel-1.2.7-16.2.alios7.x86_64 17/28
Installing : 1:openssl-devel-1.0.2k-23.1.alios7.x86_64 18/28
Updating : e2fsprogs-1.43.5-8.3.alios7.x86_64 19/28
Cleanup : 1:openssl-libs-1.0.2k-12.1.alios7.x86_64 20/28
Cleanup : krb5-libs-1.15.1-19.1.alios7.x86_64 21/28
Cleanup : e2fsprogs-1.43.5-8.alios7.x86_64 22/28
Cleanup : e2fsprogs-libs-1.43.5-8.alios7.x86_64 23/28
Cleanup : libss-1.43.5-8.alios7.x86_64 24/28
Cleanup : libselinux-2.5-12.1.alios7.x86_64 25/28
Cleanup : libsepol-2.5-8.1.1.alios7.x86_64 26/28
Cleanup : libcom_err-1.43.5-8.alios7.x86_64 27/28
Cleanup : keyutils-libs-1.5.8-3.1.alios7.x86_64 28/28
Verifying : 1:openssl-devel-1.0.2k-23.1.alios7.x86_64 1/28
Verifying : e2fsprogs-1.43.5-8.3.alios7.x86_64 2/28
Verifying : krb5-libs-1.15.1-51.1.alios7.x86_64 3/28
Verifying : 1:openssl-libs-1.0.2k-23.1.alios7.x86_64 4/28
Verifying : libss-1.43.5-8.3.alios7.x86_64 5/28
Verifying : keyutils-libs-1.5.8-3.4.alios7.x86_64 6/28
Verifying : krb5-devel-1.15.1-51.1.alios7.x86_64 7/28
Verifying : libcom_err-1.43.5-8.3.alios7.x86_64 8/28
Verifying : zlib-devel-1.2.7-16.2.alios7.x86_64 9/28
Verifying : libverto-devel-0.2.5-4.1.alios7.x86_64 10/28
Verifying : libselinux-devel-2.5-14.1.1.alios7.x86_64 11/28
Verifying : libcom_err-devel-1.43.5-8.3.alios7.x86_64 12/28
Verifying : libsepol-devel-2.5-10.1.alios7.x86_64 13/28
Verifying : libsepol-2.5-10.1.alios7.x86_64 14/28
Verifying : pcre-devel-8.32-15.1.alios7.x86_64 15/28
Verifying : libkadm5-1.15.1-51.1.alios7.x86_64 16/28
Verifying : libselinux-2.5-14.1.1.alios7.x86_64 17/28
Verifying : keyutils-libs-devel-1.5.8-3.4.alios7.x86_64 18/28
Verifying : e2fsprogs-libs-1.43.5-8.3.alios7.x86_64 19/28
Verifying : libss-1.43.5-8.alios7.x86_64 20/28
Verifying : keyutils-libs-1.5.8-3.1.alios7.x86_64 21/28
Verifying : libselinux-2.5-12.1.alios7.x86_64 22/28
Verifying : libcom_err-1.43.5-8.alios7.x86_64 23/28
Verifying : libsepol-2.5-8.1.1.alios7.x86_64 24/28
Verifying : e2fsprogs-1.43.5-8.alios7.x86_64 25/28
Verifying : e2fsprogs-libs-1.43.5-8.alios7.x86_64 26/28
Verifying : krb5-libs-1.15.1-19.1.alios7.x86_64 27/28
Verifying : 1:openssl-libs-1.0.2k-12.1.alios7.x86_64 28/28
Installed:
openssl-devel.x86_64 1:1.0.2k-23.1.alios7
Dependency Installed:
keyutils-libs-devel.x86_64 0:1.5.8-3.4.alios7 krb5-devel.x86_64 0:1.15.1-51.1.alios7 libcom_err-devel.x86_64 0:1.43.5-8.3.alios7
libkadm5.x86_64 0:1.15.1-51.1.alios7 libselinux-devel.x86_64 0:2.5-14.1.1.alios7 libsepol-devel.x86_64 0:2.5-10.1.alios7
libverto-devel.x86_64 0:0.2.5-4.1.alios7 pcre-devel.x86_64 0:8.32-15.1.alios7 zlib-devel.x86_64 0:1.2.7-16.2.alios7
Dependency Updated:
e2fsprogs.x86_64 0:1.43.5-8.3.alios7 e2fsprogs-libs.x86_64 0:1.43.5-8.3.alios7 keyutils-libs.x86_64 0:1.5.8-3.4.alios7
krb5-libs.x86_64 0:1.15.1-51.1.alios7 libcom_err.x86_64 0:1.43.5-8.3.alios7 libselinux.x86_64 0:2.5-14.1.1.alios7
libsepol.x86_64 0:2.5-10.1.alios7 libss.x86_64 0:1.43.5-8.3.alios7 openssl-libs.x86_64 1:1.0.2k-23.1.alios7
Complete!
but the issue not solved.
Please guide how to solve. thanks a lot
i've found this command:
sudo yum install openssl then it's solved my issue
Result:
s this ok [y/d/N]: y
Downloading packages:
(1/2): openssl-1.0.2k-23.1.alios7.x86_64.rpm | 493 kB 00:00:00
(2/2): make-3.82-21.1.alios7.x86_64.rpm | 419 kB 00:00:00
-------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.9 MB/s | 912 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 1:make-3.82-21.1.alios7.x86_64 1/2
Installing : 1:openssl-1.0.2k-23.1.alios7.x86_64 2/2
Verifying : 1:make-3.82-21.1.alios7.x86_64 1/2
Verifying : 1:openssl-1.0.2k-23.1.alios7.x86_64 2/2
Installed:
openssl.x86_64 1:1.0.2k-23.1.alios7
Dependency Installed:
make.x86_64 1:3.82-21.1.alios7

Mysql will not install due to mariadb install but mariadb is not installed

Been trying for hours to get mysql installed but it failed due to a conflict.
This is a brand newly installed CentOS 8 x64 (latest) and it's fully updated. There are no custom packages installed this is a minimal install.
This is on a relatively powerful dedicated server with nothing else on it.
I first ran into the issue trying to install CentOS Web Panel. That is the only thing I've done on this server after install and update. The failure of centos web panel was simply the same conflict I'm running into with mysql. Mysql failed because it says mariadb is installed. But even when I removed mariadb still it gave the same issue.
Same issue happens when I try to install mysql directly which is what this question is about. I am able to install mariadb with no problem though and even remove it as well. But still after installing and removing mariadb mysql still refuses due to nonexistent conflict.
# rpm -q centos-release
centos-release-8.0-0.1905.0.9.el8..x86_64
# yum update -y
Last metadata expiration check: 0:14:30 ago on Sat 23 Nov 2019 02:12:39 PM EST.
Dependencies resolved.
Nothing to do.
Complete!
Here is what happens when I try to install
# yum install mysql -y
CentOS Web Panel repo for Linux 7 - .x86_64 10 kB/s | 2.9 kB 00:00
CentOS-8 - AppStream3.1 kB/s | 4.3 kB 00:01
CentOS-8 - Base 2.9 kB/s | 3.9 kB 00:01
CentOS-8 - Extras 4.3 kB/s | 1.5 kB 00:00
Extra Packages for Enterprise Linux 8 - .x86_64 15 kB/s | 19 kB 00:01
MariaDB 2.6 kB/s | 2.9 kB 00:01
Dependencies resolved.
================================================================================
Package ArchVersion Repository Size
================================================================================
Installing:
mysql .x86_64 8.0.17-3.module_el8.0.0+181+899d6349 AppStream 11 M
Installing dependencies:
mysql-common.x86_64 8.0.17-3.module_el8.0.0+181+899d6349 AppStream 143 k
MariaDB-common .x86_64 10.1.43-1.el7.centos mariadb 68 k
Transaction Summary
================================================================================
Install 3 Packages
Total download size: 11 M
Installed size: 68 M
Downloading Packages:
(1/3): mysql-common-8.0.17-3.module_el8.0.0+181 1.3 MB/s | 143 kB 00:00
(2/3): MariaDB-common-10.1.43-1.el7.centos.x86_ 233 kB/s | 68 kB 00:00
(3/3): mysql-8.0.17-3.module_el8.0.0+181+899d63 9.8 MB/s | 11 MB 00:01
--------------------------------------------------------------------------------
Total 7.6 MB/s | 11 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction check error:
file /usr/share/mysql/charsets/Index.xml conflicts between attempted installs of mysql-common-8.0.17-3.module_el8.0.0+181+899d6349..x86_64 and MariaDB-common-10.1.43-1.el7.centos..x86_64
file /usr/share/mysql/charsets/armscii8.xml ... (same)
file /usr/share/mysql/charsets/ascii.xml ...
file /usr/share/mysql/charsets/cp1250.xml ...
file /usr/share/mysql/charsets/cp1251.xml ...
file /usr/share/mysql/charsets/cp1256.xml ...
file /usr/share/mysql/charsets/cp1257.xml ...
file /usr/share/mysql/charsets/cp850.xml ...
file /usr/share/mysql/charsets/cp852.xml ...
file /usr/share/mysql/charsets/cp866.xml ...
file /usr/share/mysql/charsets/dec8.xml ...
file /usr/share/mysql/charsets/geostd8.xml ...
file /usr/share/mysql/charsets/greek.xml ...
file /usr/share/mysql/charsets/hebrew.xml ...
file /usr/share/mysql/charsets/hp8.xml ...
file /usr/share/mysql/charsets/keybcs2.xml ...
file /usr/share/mysql/charsets/koi8r.xml ...
file /usr/share/mysql/charsets/koi8u.xml ...
file /usr/share/mysql/charsets/latin1.xml ...
file /usr/share/mysql/charsets/latin2.xml ...
file /usr/share/mysql/charsets/latin5.xml ...
file /usr/share/mysql/charsets/latin7.xml ...
file /usr/share/mysql/charsets/macce.xml ...
file /usr/share/mysql/charsets/macroman.xml ...
file /usr/share/mysql/charsets/swe7.xml ...
Error Summary
-------------
Problem is that mariadb is not installed. I uninstalled it. Even tried rebooting server to no avail. yum package list does not show either mysql or mariadb to be installed.
# yum remove -y mariadb
No match for argument: mariadb
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
# rpm -e mariadb
error: package mariadb is not installed
# rpm -V mariadb
package mariadb is not installed
# yum remove mysql -y
No match for argument: mysql
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
# yum remove mysql-common
No match for argument: mysql-common
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
# package-cleanup --cleandupes
Last metadata expiration check: 0:07:50 ago on Sat 23 Nov 2019 02:12:39 PM EST.
Error: No duplicated packages found for removal.
# dnf clean packages
0 files removed
# yum list installed | grep mariadb
#
# yum list installed | grep mysql
#
as you see there's nothing there. Even rebooted. Tried installing again same error as above.
Here is my full package list:
~# yum list installed
Installed Packages
NetworkManager..x86_64
NetworkManager-libnm..x86_64
NetworkManager-team..x86_64
NetworkManager-tui..x86_64
PackageKit..x86_64
PackageKit-glib..x86_64
acl..x86_64
adcli..x86_64
apr..x86_64
apr-util..x86_64
at..x86_64
attr..x86_64
audit..x86_64
audit-libs..x86_64
authselect..x86_64
authselect-compat..x86_64
authselect-libs..x86_64
avahi-libs..x86_64
basesystem.noarch11-5.el8
bash..x86_64
bash-completion.noarch 1:2.7-5.el8
bc..x86_64
bind-export-libs..x86_64
bind-libs..x86_64
bind-libs-lite..x86_64
bind-license.noarch 32:9.11.4-17.P2.el8_0.1 #AppStream
bind-utils..x86_64
binutils..x86_64
biosdevname..x86_64
blktrace..x86_64
bpftool..x86_64
brotli..x86_64
bzip2..x86_64
bzip2-libs..x86_64
c-ares..x86_64
ca-certificates.noarch 2018.2.24-6.el8
cairo..x86_64
cairo-gobject..x86_64
centos-logos..x86_64
centos-release..x86_64
checkpolicy..x86_64
chkconfig..x86_64
chrony..x86_64
cockpit..x86_64
cockpit-bridge..x86_64
cockpit-packagekit.noarch184.1-1.el8
cockpit-system.noarch185.1-1.el8_0
cockpit-ws..x86_64
compat-openssl10..x86_64
coreutils..x86_64
coreutils-common..x86_64
cpio..x86_64
cracklib..x86_64
cracklib-dicts..x86_64
cronie..x86_64
cronie-anacron..x86_64
crontabs.noarc
crypto-policies.noarch
cryptsetup..x86_64
cryptsetup-libs..x86_64
cups-libs..x86_64
curl..x86_64
cwp-httpd..x86_64
cwp-suphp..x86_64
cyrus-sasl-gssapi..x86_64
cyrus-sasl-lib..x86_64
cyrus-sasl-plain..x86_64
dbus..x86_64
dbus-common.noarch 1:1.12.8-7.el8
dbus-daemon..x86_64
dbus-glib..x86_64
dbus-libs..x86_64
dbus-tools..x86_64
dejavu-fonts-common.noarch 2.35-6.el8
dejavu-sans-fonts.noarch 2.35-6.el8
desktop-file-utils..x86_64
device-mapper..x86_64
device-mapper-event..x86_64
device-mapper-event-libs..x86_64
device-mapper-libs..x86_64
device-mapper-persistent-data..x86_64
dhcp-client..x86_64
dhcp-common.noarch 12:4.3.6-30.el8
dhcp-libs..x86_64
diffutils..x86_64
dmidecode..x86_64
dnf.noarch
dnf-data.noarch
dnf-plugin-spacewalk.noarch
dnf-plugins-core.noarch
dnf-utils.noarch
dos2unix..x86_64
dosfstools..x86_64
dracut..x86_64
dracut-config-rescue..x86_64
dracut-network..x86_64
dracut-squash..x86_64
dwz..x86_64
e2fsprogs..x86_64
e2fsprogs-libs..x86_64
ed..x86_64
efi-srpm-macros.noarch 3-2.el8
elfutils-default-yama-scope.noarch 0.174-6.el8
elfutils-libelf..x86_64
elfutils-libs..x86_64
emacs-filesystem.noarch 1:26.1-5.el8
epel-release.noarch 8-7.el8 #epel
ethtool..x86_64
expat..x86_64
file..x86_64
file-libs..x86_64
filesystem..x86_64
findutils..x86_64
fipscheck..x86_64
fipscheck-lib..x86_64
firewalld.noarch
firewalld-filesystem.noarch
fontconfig..x86_64
fontpackages-filesystem.noarch
fprintd..x86_64
fprintd-pam..x86_64
freetype..x86_64
fuse-libs..x86_64
gawk..x86_64
gdbm..x86_64
gdbm-libs..x86_64
gdk-pixbuf2..x86_64
geolite2-city.noarch 20180605-1.el8
geolite2-country.noarch 20180605-1.el8
gettext..x86_64
gettext-libs..x86_64
ghc-srpm-macros.noarch 1.4.2-7.el8
glib-networking..x86_64
glib2..x86_64
glibc..x86_64
glibc-common..x86_64
glibc-langpack-en..x86_64
gmp..x86_64
gnupg2..x86_64
gnupg2-smime..x86_64
gnutls..x86_64
go-srpm-macros.noarch2-16.el8
gobject-introspection..x86_64
gpgme..x86_64
gpm-libs..x86_64
grep..x86_64
groff-base..x86_64
grub2-common.noarch
grub2-pc..x86_64
grub2-pc-modules.noarch
grub2-tools..x86_64
grub2-tools-efi..x86_64
grub2-tools-extra..x86_64
grub2-tools-minimal..x86_64
grubby..x86_64
gsettings-desktop-schemas..x86_64
gzip..x86_64
hardlink..x86_64
hdparm..x86_64
hostname..x86_64
hwdata.noarch0.314-8.0.el8
ima-evm-utils..x86_64
info..x86_64
initscripts..x86_64
insights-client.noarch 3.0.5-4.el8
ipcalc..x86_64
iproute..x86_64
iprutils..x86_64
ipset..x86_64
ipset-libs..x86_64
iptables..x86_64
iptables-ebtables..x86_64
iptables-libs..x86_64
iptstate..x86_64
iputils..x86_64
irqbalance..x86_64
iwl100-firmware.noarch
iwl1000-firmware.noarch
iwl105-firmware.noarch
iwl135-firmware.noarch
iwl2000-firmware.noarch 18.168.6.1-92.el8.1 #anaconda
iwl2030-firmware.noarch 18.168.6.1-92.el8.1 #anaconda
iwl3160-firmware.noarch 1:25.30.13.0-92.el8.1#anaconda
iwl3945-firmware.noarch 15.32.2.9-92.el8.1 #anaconda
iwl4965-firmware.noarch 228.61.2.24-92.el8.1 #anaconda
iwl5000-firmware.noarch 8.83.5.1_1-92.el8.1 #anaconda
iwl5150-firmware.noarch 8.24.2.2-92.el8.1
iwl6000-firmware.noarch 9.221.4.1-92.el8.1 #anaconda
iwl6000g2a-firmware.noarch 18.168.6.1-92.el8.1 #anaconda
iwl6050-firmware.noarch 41.28.5.1-92.el8.1 #anaconda
iwl7260-firmware.noarch 1:25.30.13.0-92.el8.1#anaconda
jansson..x86_64
json-c..x86_64
json-glib..x86_64
kbd..x86_64
kbd-legacy.noarch2.0.4-8.el8
kbd-misc.noarch 2.0.4-8.el8
kernel..x86_64
kernel..x86_64
kernel-core..x86_64
kernel-core..x86_64
kernel-modules..x86_64
kernel-modules..x86_64
kernel-tools..x86_64
kernel-tools-libs..x86_64
kexec-tools..x86_64
keyutils-libs..x86_64
kmod..x86_64
kmod-kvdo..x86_64
kmod-libs..x86_64
kpartx..x86_64
kpatch.noarch0.6.1-1.el8
krb5-libs..x86_64
langpacks-en.noarch 1.0-12.el8
ledmon..x86_64
less..x86_64
libX11..x86_64
libX11-common.noarch 1.6.7-1.el8
libXau..x86_64
libXext..x86_64
libXrender..x86_64
libacl..x86_64
libaio..x86_64
libappstream-glib..x86_64
libarchive..x86_64
libassuan..x86_64
libattr..x86_64
libbasicobjects..x86_64
libblkid..x86_64
libcap..x86_64
libcap-ng..x86_64
libcollection..x86_64
libcom_err..x86_64
libcomps..x86_64
libconfig..x86_64
libcroco..x86_64
libcurl..x86_64
libdaemon..x86_64
libdb..x86_64
libdb-utils..x86_64
libdhash..x86_64
libdnf..x86_64
libedit..x86_64
libestr..x86_64
libevent..x86_64
libfastjson..x86_64
libfdisk..x86_64
libffi..x86_64
libfprint..x86_64
libgcc..x86_64
libgcrypt..x86_64
libgomp..x86_64
libgpg-error..x86_64
libgudev..x86_64
libidn2..x86_64
libini_config..x86_64
libipa_hbac..x86_64
libkcapi..x86_64
libkcapi-hmaccalc..x86_64
libksba..x86_64
libldb..x86_64
libmaxminddb..x86_64
libmetalink..x86_64
libmnl..x86_64
libmodman..x86_64
libmodulemd1..x86_64
libmount..x86_64
libndp..x86_64
libnetfilter_conntrack..x86_64
libnfnetlink..x86_64
libnfsidmap..x86_64
libnftnl..x86_64
libnghttp2..x86_64
libnl3..x86_64
libnl3-cli..x86_64
libnsl2..x86_64
libpath_utils..x86_64
libpcap..x86_64
libpipeline..x86_64
libpkgconf..x86_64
libpng..x86_64
libpq..x86_64
libproxy..x86_64
libpsl..x86_64
libpwquality..x86_64
libref_array..x86_64
librelp..x86_64
librepo..x86_64
libreport-filesystem..x86_64
libseccomp..x86_64
libsecret..x86_64
libselinux..x86_64
libselinux-utils..x86_64
libsemanage..x86_64
libsepol..x86_64
libsigsegv..x86_64
libsmartcols..x86_64
libsmbclient..x86_64
libsolv..x86_64
libsoup..x86_64
libss..x86_64
libssh..x86_64
libsss_autofs..x86_64
libsss_certmap..x86_64
libsss_idmap..x86_64
libsss_nss_idmap..x86_64
libsss_sudo..x86_64
libstdc++..x86_64
libstemmer..x86_64
libstoragemgmt..x86_64
libsysfs..x86_64
libtalloc..x86_64
libtasn1..x86_64
libtdb..x86_64
libteam..x86_64
libtevent..x86_64
libtirpc..x86_64
libunistring..x86_64
libusbx..x86_64
libuser..x86_64
libutempter..x86_64
libuuid..x86_64
libverto..x86_64
libwbclient..x86_64
libxcb..x86_64
libxcrypt..x86_64
libxkbcommon..x86_64
libxml2..x86_64
libyaml..x86_64
linux-firmware.noarch20190111-92.gitd9fb2ee6.el8 #anaconda
logrotate..x86_64
lshw..x86_64
lsof..x86_64
lsscsi..x86_64
lua-libs..x86_64
lvm2..x86_64
lvm2-libs..x86_64
lz4-libs..x86_64
lzo..x86_64
mailcap.noarch 2.1.48-3.el8
make..x86_64
man-db..x86_64
man-pages..x86_64
mcelog..x86_64
mdadm..x86_64
microcode_ctl..x86_64
mlocate..x86_64
mozjs52..x86_64
mpfr..x86_64
mtr..x86_64
nano..x86_64
ncurses..x86_64
ncurses-base.noarch 6.1-7.20180224.el8 #anaconda
ncurses-libs..x86_64
net-tools..x86_64
nettle..x86_64
newt..x86_64
nftables..x86_64
nmap-ncat..x86_64
npth..x86_64
nspr..x86_64
nss..x86_64
nss-softokn..x86_64
nss-softokn-freebl..x86_64
nss-sysinit..x86_64
nss-util..x86_64
numactl-libs..x86_64
ocaml-srpm-macros.noarch 5-4.el8
openblas-srpm-macros.noarch 2-2.el8
openldap..x86_64
openssh..x86_64
openssh-clients..x86_64
openssh-server..x86_64
openssl..x86_64
openssl-libs..x86_64
openssl-pkcs11..x86_64
os-prober..x86_64
p11-kit..x86_64
p11-kit-trust..x86_64
p7zip..x86_64
p7zip-plugins..x86_64
pam..x86_64
parted..x86_64
passwd..x86_64
pciutils..x86_64
pciutils-libs..x86_64
pcre..x86_64
pcre2..x86_64
perl..x86_64
perl-Algorithm-Diff.noarch 1.1903-9.el8
perl-Archive-Tar.noarch 2.30-1.el8
perl-Archive-Zip.noarch 1.60-3.el8
perl-Attribute-Handlers.noarch 0.99-416.el8
perl-B-Debug.noarch 1.26-2.el8
perl-CPAN.noarch 2.18-397.el8
perl-CPAN-Meta.noarch2.150010-396.el8
perl-CPAN-Meta-Requirements.noarch 2.140-396.el8
perl-CPAN-Meta-YAML.noarch 0.018-397.el8
perl-Carp.noarch 1.42-396.el8
perl-Compress-Bzip2..x86_64
perl-Compress-Raw-Bzip2..x86_64
perl-Compress-Raw-Zlib..x86_64
perl-Config-Perl-V.noarch0.30-1.el8
perl-DB_File..x86_64
perl-Data-Dumper..x86_64
perl-Data-OptList.noarch 0.110-6.el8
perl-Data-Section.noarch 0.200007-3.el8
perl-Devel-PPPort..x86_64
perl-Devel-Peek..x86_64
perl-Devel-SelfStubber.noarch1.06-416.el8
perl-Devel-Size..x86_64
perl-Digest.noarch 1.17-395.el8
perl-Digest-MD5..x86_64
perl-Digest-SHA..x86_64
perl-Encode..x86_64
perl-Encode-Locale.noarch1.05-9.el8
perl-Encode-devel..x86_64
perl-Env.noarch 1.04-395.el8
perl-Errno..x86_64
perl-Exporter.noarch 5.72-396.el8
perl-ExtUtils-CBuilder.noarch1:0.280230-2.el8
perl-ExtUtils-Command.noarch 1:7.34-1.el8
perl-ExtUtils-Embed.noarch 1.34-416.el8
perl-ExtUtils-Install.noarch 2.14-4.el8
perl-ExtUtils-MM-Utils.noarch1:7.34-1.el8
perl-ExtUtils-MakeMaker.noarch 1:7.34-1.el8
perl-ExtUtils-Manifest.noarch1.70-395.el8
perl-ExtUtils-Miniperl.noarch1.06-416.el8
perl-ExtUtils-ParseXS.noarch 1:3.35-2.el8
perl-File-Fetch.noarch 0.56-2.el8
perl-File-HomeDir.noarch 1.002-4.el8
perl-File-Path.noarch2.15-2.el8
perl-File-Temp.noarch0.230.600-1.el8
perl-File-Which.noarch 1.22-2.el8
perl-Filter..x86_64
perl-Filter-Simple.noarch0.94-2.el8
perl-Getopt-Long.noarch 1:2.50-4.el8
perl-HTTP-Tiny.noarch0.074-1.el8
perl-IO..x86_64
perl-IO-Compress.noarch 2.081-1.el8
perl-IO-Socket-IP.noarch 0.39-5.el8
perl-IO-Socket-SSL.noarch2.060-2.el8
perl-IO-Zlib.noarch 1:1.10-416.el8
perl-IPC-Cmd.noarch 2:1.02-1.el8
perl-IPC-SysV..x86_64
perl-IPC-System-Simple.noarch1.25-17.el8
perl-JSON-PP.noarch 1:2.97.001-3.el8
perl-Locale-Codes.noarch 3.57-1.el8
perl-Locale-Maketext.noarch 1.28-396.el8
perl-Locale-Maketext-Simple.noarch 1:0.21-416.el8
perl-MIME-Base64..x86_64
perl-MRO-Compat.noarch 0.13-4.el8
perl-Math-BigInt.noarch 1:1.9998.11-5.el8
perl-Math-BigInt-FastCalc..x86_64
perl-Math-BigRat.noarch 0.2614-1.el8
perl-Math-Complex.noarch 1.59-416.el8
perl-Memoize.noarch 1.03-416.el8
perl-Module-Build.noarch 2:0.42.24-5.el8
perl-Module-CoreList.noarch 1:5.20181130-1.el8
perl-Module-CoreList-tools.noarch1:5.20181130-1.el8
perl-Module-Load.noarch 1:0.32-395.el8
perl-Module-Load-Conditional.noarch 0.68-395.el8
perl-Module-Loaded.noarch1:0.08-416.el8
perl-Module-Metadata.noarch 1.000033-395.el8
perl-Mozilla-CA.noarch 20160104-7.el8
perl-Net-Ping.noarch 2.55-416.el8
perl-Net-SSLeay..x86_64
perl-Package-Generator.noarch1.106-11.el8
perl-Params-Check.noarch 1:0.38-395.el8
perl-Params-Util..x86_64
perl-PathTools..x86_64
perl-Perl-OSType.noarch 1.010-396.el8
perl-PerlIO-via-QuotedPrint.noarch 0.08-395.el8
perl-Pod-Checker.noarch 4:1.73-395.el8
perl-Pod-Escapes.noarch 1:1.07-395.el8
perl-Pod-Html.noarch 1.22.02-416.el8
perl-Pod-Parser.noarch 1.63-396.el8
perl-Pod-Perldoc.noarch 3.28-396.el8
perl-Pod-Simple.noarch 1:3.35-395.el8
perl-Pod-Usage.noarch4:1.69-395.el8
perl-Scalar-List-Utils..x86_64
perl-SelfLoader.noarch 1.23-416.el8
perl-Socket..x86_64
perl-Software-License.noarch 0.103013-2.el8
perl-Storable..x86_64
perl-Sub-Exporter.noarch 0.987-15.el8
perl-Sub-Install.noarch 0.928-14.el8
perl-Sys-Syslog..x86_64
perl-Term-ANSIColor.noarch 4.06-396.el8
perl-Term-Cap.noarch 1.17-395.el8
perl-TermReadKey..x86_64
perl-Test.noarch 1.30-416.el8
perl-Test-Harness.noarch 1:3.42-1.el8
perl-Test-Simple.noarch 1:1.302135-1.el8
perl-Text-Balanced.noarch2.03-395.el8
perl-Text-Diff.noarch1.45-2.el8
perl-Text-Glob.noarch0.11-4.el8
perl-Text-ParseWords.noarch 3.30-395.el8
perl-Text-Tabs+Wrap.noarch 2013.0523-395.el8
perl-Text-Template.noarch1.51-1.el8
perl-Thread-Queue.noarch 3.13-1.el8
perl-Time-HiRes..x86_64
perl-Time-Local.noarch 1:1.280-1.el8
perl-Time-Piece..x86_64
perl-URI.noarch 1.73-3.el8
perl-Unicode-Collate..x86_64
perl-Unicode-Normalize..x86_64
perl-autodie.noarch 2.29-396.el8
perl-bignum.noarch 0.49-2.el8
perl-constant.noarch 1.33-396.el8
perl-devel..x86_64
perl-encoding..x86_64
perl-experimental.noarch 0.019-2.el8
perl-inc-latest.noarch 2:0.500-9.el8
perl-interpreter..x86_64
perl-libnet.noarch 3.11-3.el8
perl-libnetcfg.noarch4:5.26.3-416.el8
perl-libs..x86_64
perl-local-lib.noarch2.000024-2.el8
perl-macros..x86_64
perl-open.noarch 1.11-416.el8
perl-parent.noarch 1:0.237-1.el8
perl-perlfaq.noarch 5.20180605-1.el8
perl-podlators.noarch4.11-1.el8
perl-srpm-macros.noarch 1-25.el8
perl-threads..x86_64
perl-threads-shared..x86_64
perl-utils.noarch5.26.3-416.el8
perl-version..x86_64
pigz..x86_64
pinentry..x86_64
pinfo..x86_64
pixman..x86_64
pkgconf..x86_64
pkgconf-m4.noarch1.4.2-1.el8
pkgconf-pkg-config..x86_64
platform-python..x86_64
platform-python-pip.noarch 9.0.3-13.el8
platform-python-setuptools.noarch39.2.0-4.el8
plymouth..x86_64
plymouth-core-libs..x86_64
plymouth-scripts..x86_64
policycoreutils..x86_64
policycoreutils-python-utils.noarch 2.8-16.1.el8
polkit..x86_64
polkit-libs..x86_64
polkit-pkla-compat..x86_64
popt..x86_64
prefixdevname..x86_64
procps-ng..x86_64
psacct..x86_64
publicsuffix-list-dafsa.noarch 20180723-1.el8
python-srpm-macros.noarch3-37.el8
python3-asn1crypto.noarch0.24.0-3.el8
python3-audit..x86_64
python3-bind.noarch 32:9.11.4-17.P2.el8_0.1 #AppStream
python3-cairo..x86_64
python3-cffi..x86_64
python3-chardet.noarch 3.0.4-7.el8
python3-configobj.noarch 5.0.6-11.el8
python3-cryptography..x86_64
python3-dateutil.noarch 1:2.6.1-6.el8
python3-dbus..x86_64
python3-decorator.noarch 4.2.1-2.el8
python3-dmidecode..x86_64
python3-dnf.noarch 4.0.9.2-5.el8
python3-dnf-plugin-spacewalk.noarch 2.8.5-11.module_el8.0.0+180+337688dc
python3-dnf-plugins-core.noarch 4.0.2.2-3.el8
python3-firewall.noarch 0.6.3-7.el8
python3-gobject..x86_64
python3-gobject-base..x86_64
python3-gpg..x86_64
python3-hawkey..x86_64
python3-hwdata.noarch2.3.6-3.el8
python3-idna.noarch 2.5-5.el8
python3-iniparse.noarch 0.4-31.el8
python3-libcomps..x86_64
python3-libdnf..x86_64
python3-librepo..x86_64
python3-libs..x86_64
python3-libselinux..x86_64
python3-libsemanage..x86_64
python3-libstoragemgmt.noarch1.6.2-9.el8
python3-libstoragemgmt-clibs..x86_64
python3-libxml2..x86_64
python3-linux-procfs.noarch 0.6-6.el8
python3-magic.noarch 5.33-8.el8
python3-netifaces..x86_64
python3-newt..x86_64
python3-perf..x86_64
python3-ply.noarch 3.9-7.el8
python3-policycoreutils.noarch 2.8-16.1.el8
python3-pyOpenSSL.noarch 18.0.0-1.el8
python3-pycparser.noarch 2.14-14.el8
python3-pyparsing.noarch 2.1.10-7.el8
python3-pysocks.noarch 1.6.8-3.el8
python3-pyudev.noarch0.21.0-7.el8
python3-pyyaml..x86_64
python3-requests.noarch 2.20.0-1.el8
python3-rhn-client-tools..x86_64
python3-rhnlib.noarch2.8.6-8.module_el8.0.0+180+337688dc
python3-rpm..x86_64
python3-rpm-macros.noarch3-37.el8
python3-schedutils..x86_64
python3-setools..x86_64
python3-six.noarch 1.11.0-8.el8
python3-slip.noarch 0.6.4-11.el8
python3-slip-dbus.noarch 0.6.4-11.el8
python3-sssdconfig.noarch2.0.0-43.el8_0.3
python3-syspurpose..x86_64
python3-systemd..x86_64
python3-unbound..x86_64
python3-urllib3.noarch 1.23-5.el8
qt5-srpm-macros.noarch 5.11.1-2.el8
quota..x86_64
quota-nls.noarch 1:4.04-10.el8
readline..x86_64
realmd..x86_64
redhat-rpm-config.noarch 116-1.el8.0.1
rhn-client-tools..x86_64
rng-tools..x86_64
rootfiles.noarch 8.1-22.el8
rpm..x86_64
rpm-build-libs..x86_64
rpm-libs..x86_64
rpm-plugin-selinux..x86_64
rpm-plugin-systemd-inhibit..x86_64
rsync..x86_64
rsyslog..x86_64
rsyslog-gnutls..x86_64
rsyslog-gssapi..x86_64
rsyslog-relp..x86_64
rust-srpm-macros.noarch 5-2.el8
samba-client-libs..x86_64
samba-common.noarch 4.9.1-8.el8
samba-common-libs..x86_64
screen..x86_64
sed..x86_64
selinux-policy.noarch3.14.1-61.el8_0.2
selinux-policy-targeted.noarch 3.14.1-61.el8_0.2
setroubleshoot-plugins.noarch3.3.10-1.el8
setroubleshoot-server..x86_64
setup.noarch 2.12.2-2.el8
sg3_utils..x86_64
sg3_utils-libs..x86_64
shadow-utils..x86_64
shared-mime-info..x86_64
slang..x86_64
smartmontools..x86_64
snappy..x86_64
sos.noarch 3.6-10.el8_0.3
sqlite..x86_64
sqlite-libs..x86_64
squashfs-tools..x86_64
sscg..x86_64
sssd..x86_64
sssd-ad..x86_64
sssd-client..x86_64
sssd-common..x86_64
sssd-common-pac..x86_64
sssd-ipa..x86_64
sssd-kcm..x86_64
sssd-krb5..x86_64
sssd-krb5-common..x86_64
sssd-ldap..x86_64
sssd-nfs-idmap..x86_64
sssd-proxy..x86_64
strace..x86_64
sudo..x86_64
symlinks..x86_64
systemd..x86_64
systemd-libs..x86_64
systemd-pam..x86_64
systemd-udev..x86_64
systemtap-sdt-devel..x86_64
tar..x86_64
tcpdump..x86_64
teamd..x86_64
time..x86_64
timedatex..x86_64
tree..x86_64
trousers..x86_64
trousers-lib..x86_64
tuned.noarch 2.10.0-15.el8
tzdata.noarch2019a-1.el8
unbound-libs..x86_64
unzip..x86_64
usbutils..x86_64
util-linux..x86_64
util-linux-user..x86_64
vdo..x86_64
vim-common..x86_64
vim-enhanced..x86_64
vim-filesystem.noarch2:8.0.1763-10.el8
vim-minimal..x86_64
virt-what..x86_64
wget..x86_64
which..x86_64
words.noarch 3.0-28.el8
xdg-utils.noarch 1.1.2-5.el8
xfsdump..x86_64
xfsprogs..x86_64
xkeyboard-config.noarch 2.24-3.el8
xz..x86_64
xz-libs..x86_64
yum.noarch 4.0.9.2-5.el8
zip..x86_64
zlib..x86_64
Additionally mariadb-libs is NOT installed.
# yum remove mariadb-libs -y
No match for argument: mariadb-libs
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
So removing maria-libs is not the solution unlike another question which proposes that.
Also tried to remove any extraneous files/folders.
rm -f /var/log/mariadb
rm -f /var/log/mariadb/mariadb.log.rpmsave
rm -rf /var/lib/mysql
rm -rf /usr/lib64/mysql
rm -rf /usr/share/mysql
No luck. Same error like it exists even though it does not exist and it is not installed.
Last attempt: trying to install with mariadb reinstalled also fails
Lastly, I tried one more thing, which is to, after doing all this, then trying to install mariadb and then try installing mysql,
~# yum install mariadb -y
Last metadata expiration check: 0:02:02 ago on Sat 23 Nov 2019 02:51:37 PM EST.
Dependencies resolved.
...
Installed:
mariadb-3:10.3.11-2.module_el8.0.0+35+6f2527ed.x86_64
mariadb-common-3:10.3.11-2.module_el8.0.0+35+6f2527ed.x86_64
mariadb-connector-c-3.0.7-1.el8.x86_64
MariaDB-common-10.1.43-1.el7.centos.x86_64
Complete!
And mariadb installs fine, but mysql still doesn't install. It gives a different error, but this is because mariadb is installed in this case. If I remove mariadb again, it gives the original error again like above.
# yum install mysql -y
Last metadata expiration check: 0:02:18 ago on Sat 23 Nov 2019 02:51:37 PM EST.
Error:
Problem: problem with installed package mariadb-3:10.3.11-2.module_el8.0.0+35+6f2527ed.x86_64
- package mariadb-3:10.3.11-2.module_el8.0.0+35+6f2527ed.x86_64 conflicts with mysql provided by mysql-8.0.17-3.module_el8.0.0+181+899d6349.x86_64
- package mysql-8.0.17-3.module_el8.0.0+181+899d6349.x86_64 conflicts with mariadb provided by mariadb-3:10.3.11-2.module_el8.0.0+35+6f2527ed.x86_64
- conflicting requests
- package MariaDB-client-10.1.40-1.el7.centos.x86_64 is excluded
- package MariaDB-client-10.1.41-1.el7.centos.x86_64 is excluded
- package MariaDB-client-10.1.43-1.el7.centos.x86_64 is excluded
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
#
I also tried the --nobest flag but that does nothing, and I tried the --skip-broken flag but then it installs nothing either since it thinks it's broken.
I also tried installing mysql-server but no luck on that either.
# yum install mysql-server
Last metadata expiration check: 0:04:49 ago on Sat 23 Nov 2019 02:51:37 PM EST.
Error:
Problem: problem with installed package mariadb-3:10.3.11-2.module_el8.0.0+35+6f2527ed.x86_64
- package mariadb-3:10.3.11-2.module_el8.0.0+35+6f2527ed.x86_64 conflicts with mysql provided by mysql-8.0.17-3.module_el8.0.0+181+899d6349.x86_64
- package mysql-8.0.17-3.module_el8.0.0+181+899d6349.x86_64 conflicts with mariadb provided by mariadb-3:10.3.11-2.module_el8.0.0+35+6f2527ed.x86_64
- package mysql-server-8.0.17-3.module_el8.0.0+181+899d6349.x86_64 requires mysql(x86-64), but none of the providers can be installed
- conflicting requests
- package mysql-8.0.13-1.module_el8.0.0+41+ca30bab6.x86_64 is excluded
- package MariaDB-client-10.1.40-1.el7.centos.x86_64 is excluded
- package MariaDB-client-10.1.41-1.el7.centos.x86_64 is excluded
- package MariaDB-client-10.1.43-1.el7.centos.x86_64 is excluded
#
Please help me solve this issue, thank you.
Try install mysql-server instead using: yum install mysql-server
I suspect you are suffering from the issue caused by MariaDB bug for InnoDB fails to start when fts table has FK relation as reported here: MDEV-20987
For quick relief from this problem, the only way to fix this issue is by downgrading the installation. Use following command to downgrade.
yum downgrade MariaDB-server MariaDB-common MariaDB-shared MariaDB-client MariaDB-compat MariaDB-devel
NOTE: Officially MariaDB has fixed the issue in the following unpublished versions:
10.1.43 [ 23703 ]
10.2.29 [ 23911 ]
10.3.20 [ 23909 ]
10.4.10 [ 23907 ]

Can't install cloudwatch agent by cloudformation on Amazon ECS-optimized AMI

I am creating a cloudformation template, which creates some resources as EC2 instance, autoscaling group and launchConfiguration.
By the userData property of the launchConfiguration resource, I tried to install the Cloudwatch agent as follows:
"UserData":{ "Fn::Base64" : {
"Fn::Join" : ["", [
"#!/bin/bash -xe\n",
"yum -y install aws-cfn-bootstrap\n",
"/opt/aws/bin/cfn-init -v",
" --stack ", { "Ref": "AWS::StackName" },
" --resource LaunchCongig",
" --region ", { "Ref" : "AWS::Region" },"\n",
"yum -y install wget\n",
"# Get the CloudWatch Logs agent\n",
"wget https://s3.amazonaws.com/aws-cloudwatch/downloads/latest/awslogs-agent-setup.py\n",
"# Install the CloudWatch Logs agent\n",
"python ./awslogs-agent-setup.py -n -r ", { "Ref" : "AWS::Region" }, " -c /etc/cwlogs.cfg || error_exit 'Failed to run CloudWatch Logs agent setup'\n",
"service awslogs start"
]]}
After ssh into the instance, I checked the file /var/log/cloud-init-output.log to see if everything is fine, but here is what I got:
+ wget https://s3.amazonaws.com/aws-cloudwatch/downloads/latest/awslogs-agent-setup.py
--2017-02-17 14:36:10-- https://s3.amazonaws.com/aws-cloudwatch/downloads/latest/awslogs-agent-setup.py
Resolving s3.amazonaws.com (s3.amazonaws.com)... 52.216.226.59
Connecting to s3.amazonaws.com (s3.amazonaws.com)|52.216.226.59|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 47998 (47K) [text/x-python]
Saving to: ‘awslogs-agent-setup.py’
0K .......... .......... .......... .......... ...... 100% 196K=0.2s
2017-02-17 14:36:10 (196 KB/s) - ‘awslogs-agent-setup.py’ saved [47998/47998]
+ python ./awslogs-agent-setup.py -n -r eu-west-1 -c /etc/cwlogs.cfg
Step 1 of 5: Installing pip ...Traceback (most recent call last):
File "./awslogs-agent-setup.py", line 1144, in <module>
main()
File "./awslogs-agent-setup.py", line 1140, in main
setup.setup_artifacts()
File "./awslogs-agent-setup.py", line 693, in setup_artifacts
self.install_pip()
File "./awslogs-agent-setup.py", line 600, in install_pip
fail("Could not install pip. Please try again or see " + AGENT_SETUP_LOG_FILE + " for more details")
TypeError: fail() takes exactly 2 arguments (1 given)
+ error_exit 'Failed to run CloudWatch Logs agent setup'
/var/lib/cloud/instance/scripts/part-001: line 8: error_exit: command not found
Feb 17 14:36:12 cloud-init[2798]: util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/part-001 [127]
Feb 17 14:36:12 cloud-init[2798]: cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
Feb 17 14:36:12 cloud-init[2798]: util.py[WARNING]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python2.7/dist-packages/cloudinit/config/cc_scripts_user.pyc'>) failed
Cloud-init v. 0.7.6 finished at Fri, 17 Feb 2017 14:36:12 +0000. Datasource DataSourceEc2. Up 85.78 seconds
What is wrong with this script? Is there any other way to install the agent?
Thank you.
EDIT:
I figured out that is because maybe the python-pip package didn't get installed so I added this to the userData:
"yum -y install python-pip\n",
After that I played the template again and strangely I got the same Error.
I am usinh an Amazon ECS-optimized AMI
I solved the problem by installing the agent directly by yum awslogs:
"UserData":{ "Fn::Base64" : {
"Fn::Join" : ["", [
"#!/bin/bash -xe\n",
"yum -y install aws-cfn-bootstrap\n",
"/opt/aws/bin/cfn-init -v",
" --stack ", { "Ref": "AWS::StackName" },
" --resource launchConfig",
" --region ", { "Ref" : "AWS::Region" },"\n",
"yum -y install awslogs\n",
"service awslogs start"
]]}
Here is the output from the log file:
Installed:
awslogs.noarch 0:1.1.2-1.10.amzn1
Dependency Installed:
aws-cli.noarch 0:1.11.29-1.45.amzn1
aws-cli-plugin-cloudwatch-logs.noarch 0:1.3.3-1.15.amzn1
freetype.x86_64 0:2.3.11-15.14.amzn1
libjpeg-turbo.x86_64 0:1.2.90-5.14.amzn1
mailcap.noarch 0:2.1.31-2.7.amzn1
python27-botocore.noarch 0:1.4.86-1.62.amzn1
python27-colorama.noarch 0:0.2.5-1.7.amzn1
python27-dateutil.noarch 0:2.1-1.3.amzn1
python27-docutils.noarch 0:0.11-1.15.amzn1
python27-futures.noarch 0:3.0.3-1.3.amzn1
python27-imaging.x86_64 0:1.1.6-19.9.amzn1
python27-jmespath.noarch 0:0.9.0-1.11.amzn1
python27-ply.noarch 0:3.4-3.12.amzn1
python27-pyasn1.noarch 0:0.1.7-2.9.amzn1
python27-rsa.noarch 0:3.4.1-1.8.amzn1
Complete!
+ service awslogs start
Starting awslogs: [ OK ]
Cloud-init v. 0.7.6 finished at Fri, 17 Feb 2017 15:33:42 +0000. Datasource DataSourceEc2. Up 83.47 seconds
Everything works fine this way. Hope that will help someone someday!
For ECS specifically, see Using CloudWatch Logs with Container Instances in the EC2 Container Service documentation for details on configuring CloudWatch Logs. The documentation recommends using yum install -y awslogs instead of the Python install script.
The documentation provides a complete sample in the Configuring CloudWatch Logs at Launch with User Data section.
In your case, since you're already managing your config files using cfn-init and CloudFormation::Init metadata in CloudFormation, you don't need any complex parsing of config files in your User-Data script, but you can still use the script as a reference. One thing worth adding to your User-Data script is running chkconfig awslogs on to make sure the service continues running on the instance after a reboot.

MySQL import hangs on Vagrant CoreOS box on Mac

I have a local development setup using the following:
Mac Yosemite 10.10.3
Vagrant 1.7.3
CoreOS alpha version 681.0.0
2 Docker containers one for apache PHP and another for mysql both based on Ubuntu 12.10
Its set up to sync the local dev directory ~/Sites to the Vagrant box using NFS, since my working directories as well as the MySQL directories are located here (~/Sites/.coreos-databases/mysql). From what I have read this is not the best type of setup but it has worked for me for quite some time as well as others at work.
Recently I have not been able to import any database dumps into this setup. The import starts and hangs approximately half way through the process. It happens on the command line as well as with Sequel Pro. It does import some of the the tables, but freezes exactly at the same spot everytime. It doesn't seem to matter what the size of the dump is - the one I have been attempting is only 104Kb. Someone else is having the same issue with a 100MB+ dump - freezing at the same spot approx halfway.
My Vagrantfile:
Vagrant.configure("2") do |config|
# Define the CoreOS box
config.vm.box = "coreos-alpha"
config.vm.box_url = "http://alpha.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json"
# Define a static IP
config.vm.network "private_network",
ip: "33.33.33.77"
# Share the current folder via NFS
config.vm.synced_folder ".", "/home/core/sites",
id: "core",
:nfs => true,
:mount_options => ['nolock,vers=3,udp,noatime']
# Provision docker with shell
# config.vm.provision
config.vm.provision "shell",
path: ".coreos-devenv/scripts/provision-docker.sh"
end
Dockerfile for mysql:
# Start with Ubuntu base
FROM ubuntu:12.10
# Install some basics
RUN apt-get update
# Install mysql
RUN apt-get install -y mysql-server
# Clean up after install
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Add a grants file to set up remote user
# and disbale the root user's remote access.
ADD grants.sql /etc/mysql/
# Add a conf file for correcting "listen"
ADD listen.cnf /etc/mysql/conf.d/
# Run mysqld on standard port
EXPOSE 3306
ENTRYPOINT ["/usr/sbin/mysqld"]
CMD ["--init-file=/etc/mysql/grants.sql"]
I 'vagrant ssh' in and run dmesg and this is what it spits out after it freezes:
[ 465.504357] nfs: server 33.33.33.1 not responding, still trying
[ 600.091356] INFO: task mysqld:1501 blocked for more than 120 seconds.
[ 600.092388] Not tainted 4.0.3 #2
[ 600.093277] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 600.094442] mysqld D ffff880019dbfbc8 0 1501 939 0x00000000
[ 600.095953] ffff880019dbfbc8 ffffffff81a154c0 ffff88001ec61910 ffff880019dbfba8
[ 600.098871] ffff880019dbffd8 0000000000000000 7fffffffffffffff 0000000000000002
[ 600.101594] ffffffff8150b4e0 ffff880019dbfbe8 ffffffff8150ad57 ffff88001ed5eb18
[ 600.103794] Call Trace:
[ 600.104376] [<ffffffff8150b4e0>] ? bit_wait+0x50/0x50
[ 600.105934] [<ffffffff8150ad57>] schedule+0x37/0x90
[ 600.107505] [<ffffffff8150da7c>] schedule_timeout+0x20c/0x280
[ 600.108369] [<ffffffff8101d799>] ? read_tsc+0x9/0x10
[ 600.109370] [<ffffffff810d731e>] ? ktime_get+0x3e/0xa0
[ 600.110353] [<ffffffff8101d799>] ? read_tsc+0x9/0x10
[ 600.111327] [<ffffffff810d731e>] ? ktime_get+0x3e/0xa0
[ 600.112347] [<ffffffff8150a31c>] io_schedule_timeout+0xac/0x130
[ 600.113368] [<ffffffff810a9ee7>] ? prepare_to_wait+0x57/0x90
[ 600.114358] [<ffffffff8150b516>] bit_wait_io+0x36/0x50
[ 600.115332] [<ffffffff8150b145>] __wait_on_bit+0x65/0x90
[ 600.116343] [<ffffffff81146072>] wait_on_page_bit+0xc2/0xd0
[ 600.117453] [<ffffffff810aa360>] ? autoremove_wake_function+0x40/0x40
[ 600.119304] [<ffffffff81146179>] filemap_fdatawait_range+0xf9/0x190
[ 600.120646] [<ffffffff81152ffe>] ? do_writepages+0x1e/0x40
[ 600.121346] [<ffffffff81147f96>] ? __filemap_fdatawrite_range+0x56/0x70
[ 600.122397] [<ffffffff811480bf>] filemap_write_and_wait_range+0x3f/0x70
[ 600.123460] [<ffffffffa0207b1e>] nfs_file_fsync_commit+0x23e/0x3c0 [nfs]
[ 600.124399] [<ffffffff811e7bf0>] vfs_fsync_range+0x40/0xb0
[ 600.126163] [<ffffffff811e7cbd>] do_fsync+0x3d/0x70
[ 600.127092] [<ffffffff811e7f50>] SyS_fsync+0x10/0x20
[ 600.128086] [<ffffffff8150f089>] system_call_fastpath+0x12/0x17
Any ideas as whats going on here?
I am also using this same setup. Vagrant defaults to UDP so removing that from your setup seems to work. Haven't tested it though but I didn't run into the MYSQL issues you had.
config.vm.synced_folder ".", "/home/core/sites",
id: "core",
nfs_version: "4",
:nfs => true,
:mount_options => ['nolock,noatime']
This worked for me. YMMV.

homebrew mysql os lion - CMake Error at cmake/do_abi_check.cmake:78

I recently upgraded from snow leopard to lion. I've got the latest version of Homebrew running (e.g. I ran 'brew update'). I'm trying to install mysql but I get the error below.
Googling for how to fix this has turned up nothing...
$ brew install mysql
==> Downloading http://downloads.mysql.com/archives/mysql-5.5/mysql-5.5.19.tar.gz
File already downloaded in /Users/evan/Library/Caches/Homebrew
==> Patching
patching file scripts/mysqld_safe.sh
patching file scripts/mysql_config.sh
==> cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/mysql/5.5.19 -DMYSQL_DATADIR=/usr/local/var/mysql -DINSTALL_MANDIR=/usr/local/C
==> make
Scanning dependencies of target INFO_BIN
Scanning dependencies of target INFO_SRC
Scanning dependencies of target abi_check
[ 0%] Built target INFO_SRC
Scanning dependencies of target readline
1,240d0
[ ---- I've truncated the source dump ---- ]
CMake Error at cmake/do_abi_check.cmake:78 (MESSAGE):
ABI check found difference between
/tmp/homebrew-mysql-5.5.19-mGpc/mysql-5.5.19/include/mysql/plugin_audit.h.pp
and /tmp/homebrew-mysql-5.5.19-mGpc/mysql-5.5.19/abi_check.out
Scanning dependencies of target gen_lex_hash
make[2]: *** [CMakeFiles/abi_check] Error 1
make[1]: *** [CMakeFiles/abi_check.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 1%] [ 2%] [ 2%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/readline.c.o
Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/funmap.c.o
Building CXX object sql/CMakeFiles/gen_lex_hash.dir/gen_lex_hash.cc.o
[ 2%] Built target INFO_BIN
[ 2%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/keymaps.c.o
[ 2%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/vi_mode.c.o
[ 2%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/parens.c.o
[ 2%] [ 3%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/rltty.c.o
Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/complete.c.o
Linking CXX executable gen_lex_hash
[ 3%] Built target gen_lex_hash
[ 3%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/bind.c.o
[ 3%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/isearch.c.o
[ 3%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/display.c.o
[ 3%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/signals.c.o
[ 3%] [ 4%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/kill.c.o
Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/util.c.o
[ 4%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/undo.c.o
[ 4%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/macro.c.o
[ 4%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/input.c.o
[ 4%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/callback.c.o
[ 4%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/terminal.c.o
[ 4%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/xmalloc.c.o
[ 5%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/history.c.o
[ 5%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/histsearch.c.o
[ 5%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/histexpand.c.o
[ 5%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/histfile.c.o
[ 5%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/nls.c.o
[ 5%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/search.c.o
[ 6%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/shell.c.o
[ 6%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/tilde.c.o
[ 6%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/misc.c.o
[ 6%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/text.c.o
[ 6%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/mbutil.c.o
[ 6%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/compat.c.o
[ 7%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/savestring.c.o
Linking C static library libreadline.a
[ 7%] Built target readline
make: *** [all] Error 2
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/mysql.rb#L75
==> Environment
HOMEBREW_VERSION: 0.8.1
HEAD: 0e8ea8aae9dadda53d0dc0cf680d383981770be9
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
Hardware: quad-core 64-bit arrandale
OS X: 10.7.3
Kernel Architecture: x86_64
Xcode: 3.2.6
GCC-4.0: N/A
GCC-4.2: N/A
LLVM: build 2336
Clang: 3.1 build 318
MacPorts or Fink? false
X11: /usr/X11
System Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Which Perl: /usr/bin/perl
Which Python: /usr/bin/python
Which Ruby: /Users/evan/.rvm/rubies/ruby-1.9.3-p0/bin/ruby
==> Build Flags
CC: /usr/bin/xcrun gcc-4.2 => /Developer/usr/bin/gcc-4.2
CXX: /usr/bin/xcrun g++-4.2 => /Developer/usr/bin/g++-4.2
LD: /usr/bin/xcrun gcc-4.2 => /Developer/usr/bin/gcc-4.2
CFLAGS: -Os -w -pipe -march=core2 -msse4
CXXFLAGS: -Os -w -pipe -march=core2 -msse4
CPPFLAGS: -I/usr/local/Cellar/readline/6.2.2/include
LDFLAGS: -L/usr/local/Cellar/readline/6.2.2/lib
MAKEFLAGS: -j4
Error: Failed executing: make
UPDATE
I think thinks may be related to conflicting versions of XCode. I've installed the latest version fo XCode, but homebrew still thinks I have the old version installed
Warning: You have Xcode-3.2.6, which is outdated.
Please install Xcode 4.3.
Attempting a fix....
Alright I solved this bad boy. I'll leave this up to help anyone else who might have the same problem.
Steps to solve
run "brew doctor" - begin fixing issues
apparently I had several versions of XCode installed and it was using the old, 3.2 version
Uninstalled the old XCode using only do this in the correct directory which could be different from mine
sudo /Developer/Library/uninstall-devtools
restart and run 'brew doctor' again
Use the following command to assign the right XCode version (this may be different depending on your install)
sudo xcode-select -switch /Applications/Xcode.app
And voila! I was able to use homebrew to install mysql
This failed for me. What worked was:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
which was suggested by brew doctor.