Install failure on AWS RHEL 7

This is the third time I am trying to open an issue. I keep getting a message that issue has been submitted but I can't find a trail of the issues in My issues. \|/

Status: 
Active

Comments

OK. It appears issue has been created. My issue is that I am trying to port over to AWS. I am playing around on a t2.micro instance to make sure everything works before I order a bigger server. When installing Virtualmin I get the following error. Please can you advise?

If your OS is not listed above, this script will fail. More details about the systems supported by the script can be found here:

http://www.virtualmin.com/os-support.html

Continue? (y/n) y Checking for HTTP client...found /usr/bin/curl -s -O Checking for perl...found /usr/bin/perl Loading log4sh logging library... INFO - Started installation log in /root/virtualmin-install.log INFO - Checking for fully qualified hostname... INFO - Hostname OK: fully qualified as ip-172-31-55-196.ec2.internal INFO - Installing serial number and license key into /etc/virtualmin-license INFO - Loading OS selection library... INFO - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded. INFO - Loading OS list... INFO - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded. INFO - Operating system name: Red Hat Enterprise Linux INFO - Operating system version: 7 INFO - Configuring package manager for Red Hat Enterprise Linux 7... INFO - Disabling SELinux during installation... INFO - Download of http://software.virtualmin.com/gpl/rhel/7/x86_64/virtualmin-release-late... Succeeded. INFO - Succeeded. INFO - Installing dependencies using command: /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel mariadb mariadb-server postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate ...in progress, please wait... -http://GPL:GPL@software.virtualmin.com/gpl/rhel/7Server/x86_64/repodata/... [Errno 14] HTTP Error 404 - Not Found Trying other mirror.

One of the configured repositories failed (RHEL/CentOS/Scientific 7Server - x86_64 - Virtualmin), 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 virtualmin

 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=virtualmin.skip_if_unavailable=true

failure: repodata/repomd.xml from virtualmin: [Errno 256] No more mirrors to try. http://GPL:GPL@software.virtualmin.com/gpl/rhel/7Server/x86_64/repodata/... [Errno 14] HTTP Error 404 - Not Found /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel mariadb mariadb-server postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate failed. Error (if any): 0

Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoot this problem: INFO - 2015-02-03 14:35:50 - Hostname OK: fully qualified as ip-172-31-55-196.ec2.internal INFO - 2015-02-03 14:35:50 - Installing serial number and license key into /etc/virtualmin-license INFO - 2015-02-03 14:35:50 - Loading OS selection library... INFO - 2015-02-03 14:35:51 - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded. INFO - 2015-02-03 14:35:51 - Loading OS list... INFO - 2015-02-03 14:35:51 - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded. INFO - 2015-02-03 14:35:51 - Operating system name: Red Hat Enterprise Linux INFO - 2015-02-03 14:35:51 - Operating system version: 7 INFO - 2015-02-03 14:35:51 - Configuring package manager for Red Hat Enterprise Linux 7... INFO - 2015-02-03 14:35:51 - Disabling SELinux during installation... DEBUG - 2015-02-03 14:35:51 - setenforce 0 succeeded INFO - 2015-02-03 14:35:51 - Download of http://software.virtualmin.com/gpl/rhel/7/x86_64/virtualmin-release-late... Succeeded. INFO - 2015-02-03 14:35:51 - Succeeded. INFO - 2015-02-03 14:35:51 - Installing dependencies using command: /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel mariadb mariadb-server postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate Loaded plugins: amazon-id, rhui-lb

FATAL - Fatal Error Occurred: Something went wrong during installation: 0 FATAL - Cannot continue installation. FATAL - Attempting to remove virtualmin repository configuration, so the installation can be FATAL - re-attempted after any problems have been resolved. warning: /etc/yum.repos.d/virtualmin.repo saved as /etc/yum.repos.d/virtualmin.repo.rpmsave FATAL - Removing temporary directory and files. FATAL - If you are unsure of what went wrong, you may wish to review the log FATAL - in /root/virtualmin-install.log [root@ip-172-31-55-196 ec2-user]# [Restored] Last login: Tue Feb 3 14:34:16 2015 from pool-173-61-88-219.cmdnnj.fios.verizon.net \|/

Howdy -- I think I see what was causing that issue. Can you give it another try, and let us know if that works better?

That's odd, as that repomd.xml file definitely exists in our repository. Is your system accessing the web via a proxy of any kind..

Jamie, I think the issue was a missing link from "7Server" to "7". It looks like that may be a name used exclusively by RHEL, the CentOS servers out there go directly to either 7, or 7.0.1406.

Ok, I guess I only checked the repo after you created the 7Server link.

Hello guys, I think there was some progress but I still see some fatal errors. Please assist.

Continue? (y/n) y Checking for HTTP client...found /usr/bin/curl -s -O Checking for perl...found /usr/bin/perl Loading log4sh logging library... INFO - Started installation log in /root/virtualmin-install.log INFO - Checking for fully qualified hostname... INFO - Hostname OK: fully qualified as ip-172-31-7-166.us-west-2.compute.internal INFO - Installing serial number and license key into /etc/virtualmin-license INFO - Loading OS selection library... INFO - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded. INFO - Loading OS list... INFO - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded. INFO - Operating system name: Red Hat Enterprise Linux INFO - Operating system version: 7 INFO - Configuring package manager for Red Hat Enterprise Linux 7... INFO - Disabling SELinux during installation... INFO - Download of http://software.virtualmin.com/gpl/rhel/7/x86_64/virtualmin-release-late... Succeeded. INFO - Succeeded. INFO - Installing dependencies using command: /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel mariadb mariadb-server postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate ...in progress, please wait... INFO - /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel mariadb mariadb-server postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate: Succeeded. INFO - Succeeded. INFO - Installing Virtualmin and all related packages now using the command: INFO - yum clean all Loaded plugins: amazon-id, rhui-lb Cleaning repos: rhui-REGION-client-config-server-7 : rhui-REGION-rhel-server-releases : rhui-REGION-rhel-server-rh-common virtualmin : virtualmin-universal Cleaning up everything INFO - yum -y -d 2 install virtualmin-base ...in progress, please wait... /Error: Package: awstats-7.2-1.el7.noarch (virtualmin) Requires: perl(Switch) yum -y -d 2 install virtualmin-base failed. Error (if any): 0

Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoot this problem: ---> Package libmemcached.x86_64 0:1.0.16-3.el7 will be installed --> Processing Dependency: libevent-2.0.so.5()(64bit) for package: libmemcached-1.0.16-3.el7.x86_64 ---> Package nmap-ncat.x86_64 2:6.40-4.el7 will be installed ---> Package perl-CGI.noarch 0:3.63-4.el7 will be installed --> Processing Dependency: perl(FCGI) >= 0.67 for package: perl-CGI-3.63-4.el7.noarch ---> Package perl-Geo-IP.x86_64 0:1.43-1.el7.vm will be installed ---> Package perl-Net-IP.noarch 0:1.26-4.el7 will be installed --> Running transaction check ---> Package awstats.noarch 0:7.2-1.el7 will be installed --> Processing Dependency: perl(Switch) for package: awstats-7.2-1.el7.noarch ---> Package libevent.x86_64 0:2.0.21-4.el7 will be installed ---> Package perl-FCGI.x86_64 1:0.74-8.el7 will be installed --> Finished Dependency Resolution You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

FATAL - Fatal Error Occurred: Installation failed: 0 FATAL - Cannot continue installation. FATAL - Attempting to remove virtualmin repository configuration, so the installation can be FATAL - re-attempted after any problems have been resolved. warning: /etc/yum.repos.d/virtualmin.repo saved as /etc/yum.repos.d/virtualmin.repo.rpmsave FATAL - Removing temporary directory and files. FATAL - If you are unsure of what went wrong, you may wish to review the log FATAL - in /root/virtualmin-install.log

\|/

Log attached. I am trying to attach a log 111kb in size but get a size exceeded error. Let me know if you need the log and I can email it to you guys. Thanks

\|/

What output do you receive if you run this command:

yum install install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel mariadb mariadb-server postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate

Thanks Andrey

[root@ip-172-31-7-166 ec2-user]# yum install install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel mariadb mariadb-server postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate Loaded plugins: amazon-id, rhui-lb No package install available. Package 32:bind-9.9.4-14.el7_0.1.x86_64 already installed and latest version Package 32:bind-utils-9.9.4-14.el7_0.1.x86_64 already installed and latest version Package 32:bind-9.9.4-14.el7_0.1.x86_64 already installed and latest version Package matching httpd-2.4.6-19.el7_0.x86_64 already installed. Checking for update. Package 2:postfix-2.10.1-6.el7.x86_64 already installed and latest version Package spamassassin-3.3.2-18.el7.x86_64 already installed and latest version Package procmail-3.22-34.el7_0.1.x86_64 already installed and latest version Package perl-DBD-Pg-2.19.3-4.el7.x86_64 already installed and latest version Package perl-DBD-MySQL-4.023-5.el7.x86_64 already installed and latest version Package 1:quota-4.01-11.el7.x86_64 already installed and latest version Package iptables-1.4.21-13.el7.x86_64 already installed and latest version Package 1:openssl-1.0.1e-34.el7_0.7.x86_64 already installed and latest version Package python-2.7.5-16.el7.x86_64 already installed and latest version Package 3:mailman-2.1.15-17.el7.x86_64 already installed and latest version Package subversion-1.7.14-6.el7.x86_64 already installed and latest version Package 1:mariadb-5.5.40-2.el7_0.x86_64 already installed and latest version No package mysql-server available. Package 1:mariadb-devel-5.5.40-2.el7_0.x86_64 already installed and latest version Package 1:mariadb-5.5.40-2.el7_0.x86_64 already installed and latest version Package 1:mariadb-server-5.5.40-2.el7_0.x86_64 already installed and latest version Package postgresql-9.2.7-1.el7.x86_64 already installed and latest version Package postgresql-server-9.2.7-1.el7.x86_64 already installed and latest version No package rh-postgresql available. No package rh-postgresql-server available. Package logrotate-3.8.6-4.el7.x86_64 already installed and latest version Package php-5.4.16-23.el7_0.3.x86_64 already installed and latest version Package php-xml-5.4.16-23.el7_0.3.x86_64 already installed and latest version Package php-gd-5.4.16-23.el7_0.3.x86_64 already installed and latest version No package php-imap available. Package php-mysql-5.4.16-23.el7_0.3.x86_64 already installed and latest version Package php-odbc-5.4.16-23.el7_0.3.x86_64 already installed and latest version Package 1:php-pear-1.9.4-21.el7.noarch already installed and latest version Package php-pgsql-5.4.16-23.el7_0.3.x86_64 already installed and latest version No package php-snmp available. Package php-xmlrpc-5.4.16-23.el7_0.3.x86_64 already installed and latest version No package php-mbstring available. No package mod_perl available. No package mod_python available. Package cyrus-sasl-2.1.26-17.el7.x86_64 already installed and latest version Package 1:dovecot-2.2.10-4.el7_0.1.x86_64 already installed and latest version Package spamassassin-3.3.2-18.el7.x86_64 already installed and latest version Package mod_dav_svn-1.7.14-6.el7.x86_64 already installed and latest version Package cyrus-sasl-gssapi-2.1.26-17.el7.x86_64 already installed and latest version Package matching 1:mod_ssl-2.4.6-19.el7_0.x86_64 already installed. Checking for update. Package ruby-2.0.0.353-22.el7_0.x86_64 already installed and latest version No package ruby-devel available. Package rubygems-2.0.14-22.el7_0.noarch already installed and latest version Package perl-XML-Simple-2.20-5.el7.noarch already installed and latest version Package perl-Crypt-SSLeay-0.64-5.el7.x86_64 already installed and latest version Package mlocate-0.26-5.el7.x86_64 already installed and latest version Nothing to do

\|/

Hmm, it looks like that worked properly.

Could you try running the install.sh again, and then send the contents of the /root/virtualmin-install.log file to eric@virtualmin.com? Thanks!

Have sent you the log Andrey after rerunning the script. Thx \|/

Andrey, Please let me know if you have any thoughts on the matter. Thanks

\|/

If you don't currently have a "/etc/yum.repos.d/virtualmin.repo" file, try running this command to create one:

cp /etc/yum.repos.d/virtualmin.repo.rpmsave /etc/yum.repos.d/virtualmin.repo

After that, run this command:

yum install virtualmin-base

When running that command, what output do you receive?

Did as you suggested. See below

[root@ip-172-31-7-166 ec2-user]# cp /etc/yum.repos.d/virtualmin.repo.rpmsave /etc/yum.repos.d/virtualmin.repo [root@ip-172-31-7-166 ec2-user]# ls -al /etc/yum.repos.d/virtualmin.repo* -rwxr-x---. 1 root root 439 Feb 7 02:07 /etc/yum.repos.d/virtualmin.repo -rwsr-s---. 1 root root 439 Feb 5 23:13 /etc/yum.repos.d/virtualmin.repo.rpmsave [root@ip-172-31-7-166 ec2-user]# yum install virtualmin-base Loaded plugins: amazon-id, rhui-lb virtualmin | 1.2 kB 00:00
virtualmin-universal | 1.2 kB 00:00
Resolving Dependencies --> Running transaction check ---> Package virtualmin-base.noarch 0:1.0-69.rh will be installed --> Processing Dependency: usermin >= 1.600 for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: webmin >= 1.690 for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: cyrus-sasl-md5 for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: unzip for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: wbm-ruby-gems for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: mod_fcgid for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: wbm-virtualmin-registrar for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: wbm-virtual-server for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: /usr/sbin/clamd for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: wbm-php-pear for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: ust-virtual-server-theme for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: wbm-virtualmin-init for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: wbm-virtualmin-git for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: wbt-virtual-server-mobile for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: wbm-virtualmin-svn for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: scponly for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: clamav for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: wbm-virtualmin-dav for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: proftpd for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: bzip2 for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: cyrus-sasl-plain for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: wbm-virtualmin-htpasswd for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: wbm-virtualmin-sqlite for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: wbm-virtualmin-mailman for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: clamav-scanner for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: perl(IO::Tty) for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: procmail-wrapper for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: /usr/bin/freshclam for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: wbm-security-updates for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: awstats for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: wbt-virtual-server-theme for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: clamav-scanner-systemd for package: virtualmin-base-1.0-69.rh.noarch --> Processing Dependency: wbm-virtualmin-awstats for package: virtualmin-base-1.0-69.rh.noarch --> Running transaction check ---> Package awstats.noarch 0:7.2-1.el7 will be installed --> Processing Dependency: perl-Net-IP for package: awstats-7.2-1.el7.noarch --> Processing Dependency: perl-Geo-IP for package: awstats-7.2-1.el7.noarch --> Processing Dependency: perl(Switch) for package: awstats-7.2-1.el7.noarch --> Processing Dependency: perl(CGI) for package: awstats-7.2-1.el7.noarch ---> Package bzip2.x86_64 0:1.0.6-12.el7 will be installed ---> Package clamav.x86_64 0:0.98.5-1.el7.centos.vm will be installed --> Processing Dependency: clamav-lib = 0.98.5-1.el7.centos.vm for package: clamav-0.98.5-1.el7.centos.vm.x86_64 --> Processing Dependency: data(clamav) for package: clamav-0.98.5-1.el7.centos.vm.x86_64 --> Processing Dependency: libclamav.so.6(CLAMAV_PUBLIC)(64bit) for package: clamav-0.98.5-1.el7.centos.vm.x86_64 --> Processing Dependency: libclamav.so.6(CLAMAV_PRIVATE)(64bit) for package: clamav-0.98.5-1.el7.centos.vm.x86_64 --> Processing Dependency: libclamav.so.6()(64bit) for package: clamav-0.98.5-1.el7.centos.vm.x86_64 ---> Package clamav-scanner.noarch 0:0.98.5-1.el7.centos.vm will be installed ---> Package clamav-scanner-systemd.noarch 0:0.98.5-1.el7.centos.vm will be installed --> Processing Dependency: clamav-server-systemd = 0.98.5-1.el7.centos.vm for package: clamav-scanner-systemd-0.98.5-1.el7.centos.vm.noarch ---> Package clamav-server.x86_64 0:0.98.5-1.el7.centos.vm will be installed --> Processing Dependency: clamav-filesystem = 0.98.5-1.el7.centos.vm for package: clamav-server-0.98.5-1.el7.centos.vm.x86_64 --> Processing Dependency: nc for package: clamav-server-0.98.5-1.el7.centos.vm.x86_64 ---> Package clamav-update.x86_64 0:0.98.5-1.el7.centos.vm will be installed ---> Package cyrus-sasl-md5.x86_64 0:2.1.26-17.el7 will be installed ---> Package cyrus-sasl-plain.x86_64 0:2.1.26-17.el7 will be installed ---> Package mod_fcgid.x86_64 0:2.3.9-4.el7 will be installed ---> Package perl-IO-Tty.x86_64 0:1.08-3.el7.centos will be installed ---> Package procmail-wrapper.x86_64 0:1.0-1.vm will be installed ---> Package proftpd.x86_64 0:1.3.5-2.el7 will be installed --> Processing Dependency: libGeoIP.so.1()(64bit) for package: proftpd-1.3.5-2.el7.x86_64 --> Processing Dependency: libmemcachedutil.so.2()(64bit) for package: proftpd-1.3.5-2.el7.x86_64 --> Processing Dependency: libmemcached.so.11()(64bit) for package: proftpd-1.3.5-2.el7.x86_64 ---> Package scponly.x86_64 0:4.8-6.el6 will be installed ---> Package unzip.x86_64 0:6.0-13.el7 will be installed ---> Package usermin.noarch 0:1.640-1 will be installed ---> Package ust-virtual-server-theme.noarch 2:6.9-1 will be installed rhui-REGION-rhel-server-releases/7Server/x86_64/filelist | 5.3 MB 00:00
---> Package wbm-php-pear.noarch 2:1.5-1 will be installed ---> Package wbm-ruby-gems.noarch 2:1.4-1 will be installed ---> Package wbm-security-updates.noarch 2:4.5-1 will be installed ---> Package wbm-virtual-server.noarch 0:4.14.gpl-1 will be installed ---> Package wbm-virtualmin-awstats.noarch 2:5.1-1 will be installed ---> Package wbm-virtualmin-dav.noarch 2:3.7-1 will be installed ---> Package wbm-virtualmin-git.noarch 0:1.6-1 will be installed ---> Package wbm-virtualmin-htpasswd.noarch 2:2.6-1 will be installed ---> Package wbm-virtualmin-init.noarch 2:2.5-1 will be installed ---> Package wbm-virtualmin-mailman.noarch 2:6.3-1 will be installed ---> Package wbm-virtualmin-registrar.noarch 2:2.2-1 will be installed ---> Package wbm-virtualmin-sqlite.noarch 0:1.4-1 will be installed ---> Package wbm-virtualmin-svn.noarch 2:5.1-1 will be installed ---> Package wbt-virtual-server-mobile.noarch 2:2.5-1 will be installed ---> Package wbt-virtual-server-theme.noarch 2:9.0-2 will be installed ---> Package webmin.noarch 0:1.730-1 will be installed --> Running transaction check ---> Package GeoIP.x86_64 0:1.5.0-9.el7 will be installed ---> Package awstats.noarch 0:7.2-1.el7 will be installed --> Processing Dependency: perl(Switch) for package: awstats-7.2-1.el7.noarch ---> Package clamav-data.noarch 0:0.98.5-1.el7.centos.vm will be installed ---> Package clamav-filesystem.noarch 0:0.98.5-1.el7.centos.vm will be installed ---> Package clamav-lib.x86_64 0:0.98.5-1.el7.centos.vm will be installed ---> Package clamav-server-systemd.noarch 0:0.98.5-1.el7.centos.vm will be installed ---> Package libmemcached.x86_64 0:1.0.16-3.el7 will be installed --> Processing Dependency: libevent-2.0.so.5()(64bit) for package: libmemcached-1.0.16-3.el7.x86_64 ---> Package nmap-ncat.x86_64 2:6.40-4.el7 will be installed ---> Package perl-CGI.noarch 0:3.63-4.el7 will be installed --> Processing Dependency: perl(FCGI) >= 0.67 for package: perl-CGI-3.63-4.el7.noarch ---> Package perl-Geo-IP.x86_64 0:1.43-1.el7.vm will be installed ---> Package perl-Net-IP.noarch 0:1.26-4.el7 will be installed --> Running transaction check ---> Package awstats.noarch 0:7.2-1.el7 will be installed --> Processing Dependency: perl(Switch) for package: awstats-7.2-1.el7.noarch ---> Package libevent.x86_64 0:2.0.21-4.el7 will be installed ---> Package perl-FCGI.x86_64 1:0.74-8.el7 will be installed --> Finished Dependency Resolution Error: Package: awstats-7.2-1.el7.noarch (virtualmin) Requires: perl(Switch) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

\|/

Hmm, well, I see the issue, though I'm not sure what might be causing that.

I'm curious what output the following commands produce:

rpm -qa | grep perl
yum whatprovides 'perl(Switch)'
ls /etc/yum.repos.d

[root@ip-172-31-7-166 ec2-user]# rpm -qa | grep perl perl-parent-0.225-244.el7.noarch perl-Pod-Escapes-1.04-283.el7.noarch perl-libs-5.16.3-283.el7.x86_64 perl-constant-1.27-2.el7.noarch perl-PathTools-3.40-5.el7.x86_64 perl-threads-shared-1.43-6.el7.x86_64 perl-Getopt-Long-2.40-2.el7.noarch perl-HTTP-Date-6.02-8.el7.noarch perl-Digest-1.17-245.el7.noarch perl-Digest-SHA-5.85-3.el7.x86_64 perl-Digest-HMAC-1.03-5.el7.noarch perl-Crypt-OpenSSL-Random-0.04-21.el7.x86_64 perl-Encode-Detect-1.01-13.el7.x86_64 perl-IO-Compress-2.061-2.el7.noarch perl-Socket6-0.23-15.el7.x86_64 perl-Net-Daemon-0.48-5.el7.noarch perl-XML-SAX-Base-1.08-7.el7.noarch perl-Archive-Tar-1.92-2.el7.noarch perl-Business-ISBN-Data-20120719.001-2.el7.noarch perl-WWW-RobotRules-6.02-5.el7.noarch perl-ExtUtils-ParseXS-3.18-2.el7.noarch perl-Net-HTTP-6.06-2.el7.noarch perl-IO-HTML-1.00-2.el7.noarch perl-HTTP-Negotiate-6.01-5.el7.noarch perl-XML-Simple-2.20-5.el7.noarch perl-Crypt-SSLeay-0.64-5.el7.x86_64 perl-HTTP-Tiny-0.033-3.el7.noarch perl-Pod-Perldoc-3.20-4.el7.noarch perl-Text-ParseWords-3.29-4.el7.noarch perl-Pod-Usage-1.63-3.el7.noarch perl-macros-5.16.3-283.el7.x86_64 perl-Exporter-5.68-3.el7.noarch perl-Time-Local-1.2300-2.el7.noarch perl-Carp-1.26-244.el7.noarch perl-Scalar-List-Utils-1.27-248.el7.x86_64 perl-File-Path-2.09-2.el7.noarch perl-threads-1.87-4.el7.x86_64 perl-Pod-Simple-3.28-4.el7.noarch perl-5.16.3-283.el7.x86_64 perl-TimeDate-2.30-2.el7.noarch perl-LWP-MediaTypes-6.02-2.el7.noarch perl-Encode-Locale-1.03-5.el7.noarch perl-Data-Dumper-2.145-3.el7.x86_64 perl-version-0.99.07-2.el7.x86_64 perl-NetAddr-IP-4.069-3.el7.x86_64 perl-Net-DNS-0.72-5.el7.x86_64 perl-Crypt-OpenSSL-Bignum-0.04-18.el7.x86_64 perl-Crypt-OpenSSL-RSA-0.28-7.el7.x86_64 perl-XML-Parser-2.41-10.el7.x86_64 perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 perl-IO-Zlib-1.10-283.el7.noarch perl-IO-Socket-INET6-2.69-5.el7.noarch perl-Error-0.17020-2.el7.noarch perl-PlRPC-0.2020-14.el7.noarch perl-DBD-MySQL-4.023-5.el7.x86_64 perl-ExtUtils-Manifest-1.61-244.el7.noarch perl-Package-Constants-0.02-283.el7.noarch perl-HTML-Tagset-3.20-15.el7.noarch perl-Business-ISBN-2.06-2.el7.noarch perl-Mail-SPF-2.8.0-4.el7.noarch perl-Test-Harness-3.28-2.el7.noarch perl-ExtUtils-Install-1.58-283.el7.noarch perl-devel-5.16.3-283.el7.x86_64 perl-IO-Socket-SSL-1.94-3.el7.noarch perl-Net-SMTP-SSL-1.01-13.el7.noarch perl-Mail-DKIM-0.39-8.el7.noarch perl-HTTP-Message-6.06-6.el7.noarch perl-HTTP-Cookies-6.01-5.el7.noarch perl-HTTP-Daemon-6.01-5.el7.noarch perl-XML-SAX-0.99-9.el7.noarch perl-DBD-Pg-2.19.3-4.el7.x86_64 perl-podlators-2.5.1-3.el7.noarch perl-Encode-2.51-7.el7.x86_64 perl-Storable-2.45-3.el7.x86_64 perl-Socket-2.010-3.el7.x86_64 perl-File-Temp-0.23.01-3.el7.noarch perl-Filter-1.49-3.el7.x86_64 perl-XML-NamespaceSupport-1.11-10.el7.noarch perl-File-Listing-6.04-7.el7.noarch perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 perl-Digest-MD5-2.52-3.el7.x86_64 perl-Net-SSLeay-1.55-3.el7.x86_64 perl-Sys-Syslog-0.33-3.el7.x86_64 perl-Time-HiRes-1.9725-3.el7.x86_64 perl-DB_File-1.830-3.el7.x86_64 perl-Net-LibIDN-0.12-15.el7.x86_64 perl-DBI-1.627-4.el7.x86_64 perl-URI-1.60-9.el7.noarch perl-ExtUtils-MakeMaker-6.68-3.el7.noarch perl-IO-Socket-IP-0.21-4.el7.noarch perl-MailTools-2.12-2.el7.noarch perl-HTML-Parser-3.71-4.el7.x86_64 perl-libwww-perl-6.05-2.el7.noarch

[root@ip-172-31-7-166 ec2-user]# yum whatprovides 'perl(Switch)' Loaded plugins: amazon-id, rhui-lb No matches found

[root@ip-172-31-7-166 ec2-user]# ls /etc/yum.repos.d redhat-rhui-client-config.repo virtualmin.repo redhat-rhui.repo virtualmin.repo.rpmsave rhui-load-balancers.conf

\|/

I've been struggling to figure out what isn't working properly, as we're not able to reproduce a problem like that.

It appears to be related to dependencies with awstats -- my only other thought at the moment is to closer at the awstats package.

What is the output of this command:

rpm -qa | grep awstats

[root@ip-172-31-46-92 ec2-user]# rpm -qa | grep awstats [root@ip-172-31-46-92 ec2-user]#

Doesn't seem like it is installed.

\|/

FYI I even setup a new instance on AWS and got the same error.

\|/

Guys, Please can you assist? Thanks so much

\|/

I've been doing some testing to try and determine what the issue there might be. Just to verify, is this RHEL7, or CentOS 7?

Yes Definitely RHEL 7.0

RHEL-7.0_HVM_GA-20141017-x86_64-1-Hourly2-GP2 (ami-99bef1a9)

\|/

I did some testing, and I see that in CentOS 7, there is a package named "perl-Switch" that provides the dependency that awstats is looking for.

It seems that for some reason, on the system you're using there, it's not able to find that package. I'm not sure whether that's some sort of issue with the image you're using, with the mirrors it's looking at, or with RHEL7 in particular.

However, I'd be curious what happens if you try to install the CentOS version of that package, which you can do with this command:

rpm -Uvh http://mirror.centos.org/centos/7/os/x86_64/Packages/perl-Switch-2.16-7.el7.noarch.rpm

Andrey, That seems to have worked !! Thank you so much

[root@ip-172-31-46-92 ec2-user]# http://mirror.centos.org/centos/7/os/x86_64/Packages/perl-Switch-2.16-7.... bash: http://mirror.centos.org/centos/7/os/x86_64/Packages/perl-Switch-2.16-7.... No such file or directory [root@ip-172-31-46-92 ec2-user]# rpm -Uvh http://mirror.centos.org/centos/7/os/x86_64/Packages/perl-Switch-2.16-7.... Retrieving http://mirror.centos.org/centos/7/os/x86_64/Packages/perl-Switch-2.16-7.... warning: /var/tmp/rpm-tmp.6GOLmU: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Preparing... ################################# [100%] Updating / installing... 1:perl-Switch-2.16-7.el7 ################################# [100%] [root@ip-172-31-46-92 ec2-user]# ./install-2.sh

Welcome to the Virtualmin GPL installer, version 1.1.1

WARNING:

The installation is quite stable and functional when run on a freshly installed supported Operating System.

If you have existing websites, email users, or if you manually installed Virtualmin via a Webmin 'wbm' module, you are likely to run into problems. Please read the Virtualmin Administrators Guide before proceeding if your system is not a freshly installed and supported OS.

This script is not intended to update your system! It should only be used to perform your initial Virtualmin installation. If you have previously run the Virtualmin installer, you can perform upgrades and updates from within Virtualmin itself, or using your system's package manager. Once Virtualmin is installed, you never need to run this script again.

The systems currently supported by install.sh are: CentOS and RHEL 5-6 on i386 and x86_64 Scientific Linux 6 on i386 and x86_64 Debian 6.0 and 7.0 on i386 and amd64 Ubuntu 10.04 LTS, 12.04 LTS, and 14.04 LTS on i386 and amd64 Amazon Linux 2012.03 on i386 and x86_64 FreeBSD 7.0 and 8 on i386 and amd64

If your OS is not listed above, this script will fail. More details about the systems supported by the script can be found here:

http://www.virtualmin.com/os-support.html

Continue? (y/n) y Checking for HTTP client...found /usr/bin/curl -s -O Checking for perl...found /usr/bin/perl Loading log4sh logging library... INFO - Started installation log in /root/virtualmin-install.log INFO - Checking for fully qualified hostname... INFO - Hostname OK: fully qualified as ip-172-31-46-92.us-west-2.compute.internal INFO - Installing serial number and license key into /etc/virtualmin-license INFO - Loading OS selection library... INFO - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded. INFO - Loading OS list... INFO - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded. INFO - Operating system name: Red Hat Enterprise Linux INFO - Operating system version: 7 INFO - Configuring package manager for Red Hat Enterprise Linux 7... INFO - Disabling SELinux during installation... INFO - Download of http://software.virtualmin.com/gpl/rhel/7/x86_64/virtualmin-release-late... Succeeded. INFO - Succeeded. INFO - Installing dependencies using command: /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel mariadb mariadb-server postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate ...in progress, please wait... -Warning: RPMDB altered outside of yum. INFO - /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel mariadb mariadb-server postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate: Succeeded. INFO - Succeeded. INFO - Installing Virtualmin and all related packages now using the command: INFO - yum clean all Loaded plugins: amazon-id, rhui-lb Cleaning repos: rhui-REGION-client-config-server-7 rhui-REGION-rhel-server-releases rhui-REGION-rhel-server-rh-common virtualmin : virtualmin-universal Cleaning up everything INFO - yum -y -d 2 install virtualmin-base ...in progress, please wait... INFO - yum -y -d 2 install virtualmin-base: Succeeded. INFO - Checking for updates to Virtualmin-related packages... ...in progress, please wait... -Existing lock /var/run/yum.pid: another copy is running as pid 30451. Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum Memory : 23 M RSS (313 MB VSZ) Started: Fri Feb 13 19:13:04 2015 - 04:58 ago State : Sleeping, pid: 30451 INFO - /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel mariadb mariadb-server postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate: Succeeded. INFO - Updating SpamAssassin rules... INFO - Rule updates done \|/