Install on latest Amazon Linux Fails

Hello , I'm trying to install Virtualmin on the latest Amazon Linux AMI (Amazon Linux AMI 2014.09.2 (HVM) - ami-146e2a7c), but I get a fatal error:

INFO - Download of http://software.virtualmin.com/gpl/amazon/2014.09/x86_64/virtualmin-release-latest.noarch.rpm Succeeded.
error: open of <!DOCTYPE failed: No such file or directory
error: open of HTML failed: No such file or directory
error: open of PUBLIC failed: No such file or directory
error: open of -//IETF//DTD HTML 2.0//EN> failed: No such file or directory
error: open of <html><head> failed: No such file or directory
error: open of <title>404 failed: No such file or directory
error: open of Not failed: No such file or directory
error: open of Found</title> failed: No such file or directory
error: open of </head><body> failed: No such file or directory
error: open of <h1>Not failed: No such file or directory
error: open of Found</h1> failed: No such file or directory
error: open of <p>The failed: No such file or directory
error: open of requested failed: No such file or directory
error: open of URL failed: No such file or directory
error: open of /gpl/amazon/2014.09/x86_64/virtualmin-release-latest.noarch.rpm failed: No such file or directory
error: open of was failed: No such file or directory
error: open of not failed: No such file or directory
error: open of found failed: No such file or directory
error: open of on failed: No such file or directory
error: open of this failed: No such file or directory
error: open of server.</p> failed: No such file or directory
error: open of <hr> failed: No such file or directory
error: open of <address>Apache/2.2.15 failed: No such file or directory
error: open of (CentOS) failed: No such file or directory
error: open of Server failed: No such file or directory
error: open of at failed: No such file or directory
error: open of software.virtualmin.com failed: No such file or directory
error: open of Port failed: No such file or directory
error: open of 80</address> failed: No such file or directory
error: open of </body></html> failed: No such file or directory
 
FATAL - Fatal Error Occurred: Installation of virtualmin-release failed: 30
FATAL - Cannot continue installation.
...

The address http://software.virtualmin.com/gpl/amazon/2014.09/x86_64/virtualmin-rele... returns a 404 error code, meaning the file does not exist.

Please check it.

Status: 
Closed (fixed)

Comments

Looks like our repository wasn't updated to support that version - give it another try now.

Hello Jamie,

Now it starts the installation, but I get another error:

INFO - yum -y -d 2 install virtualmin-base
...in progress, please wait...
/Error: Package: perl-IO-Tty-1.08-3.el6.x86_64 (virtualmin)
           Requires: perl(:MODULE_COMPAT_5.10.1)
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:
--> Running transaction check
---> Package GeoIP.x86_64 0:1.4.7-0.1.20090931cvs.el6 will be installed
---> Package clamav-db.x86_64 0:0.97.3-3.el6 will be installed
---> Package httpd24.x86_64 0:2.4.10-15.58.amzn1 will be installed
--> Processing Dependency: httpd24-tools = 2.4.10-15.58.amzn1 for package: httpd24-2.4.10-15.58.amzn1.x86_64
---> Package perl-IO-Tty.x86_64 0:1.08-3.el6 will be installed
--> Processing Dependency: perl(:MODULE_COMPAT_5.10.1) for package: perl-IO-Tty-1.08-3.el6.x86_64
---> Package perl-Switch.noarch 0:2.16-6.4.amzn1 will be installed
--> Running transaction check
---> Package httpd24-tools.x86_64 0:2.4.10-15.58.amzn1 will be installed
---> Package perl-IO-Tty.x86_64 0:1.08-3.el6 will be installed
--> Processing Dependency: perl(:MODULE_COMPAT_5.10.1) for package: perl-IO-Tty-1.08-3.el6.x86_64
--> 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

Thanks

The problem here may be that the Perl version supplied by Amazon can't run our IO::Tty module package.

Which Perl version do you have there? The rpm -q perl command will show it.

Hi Jamie, here is the version:

[ec2-user@ip-172-30-0-65 ~]$ rpm -q perl
perl-5.16.3-283.37.amzn1.x86_64
[ec2-user@ip-172-30-0-65 ~]$ 

I'll try to re-produce this - which specific AMI did you create this EC2 instance from?

Ok, I did some testing on Amazon Linux 2014.09.2 from the AMI ami-0e82c666 , and even after getting past this IO::Tty package issue I ran into other issues with the httpd24 package. You may be better off trying to install on a more supported distribution, like CentOS 7.

Ok Jamie, thank you.

I was using Amazon Linux for its price, but I just saw that centos.org also has AWS Images available for the the same price.

I'll use centos then, thank you.

Hi Jamie,

I've tried with Centos 7, and I got another problem.

Installed perl with # yum install perl Success, and then run the install script:

Loading log4sh logging library...
INFO - Started installation log in /root/virtualmin-install.log
INFO - Checking for fully qualified hostname...
INFO - Hostname ip-172-30-0-122 is not fully qualified.
Please enter a fully qualified hostname (for example, host.example.com): plugpec.com.br
INFO - Hostname OK: fully qualified as plugpec.com.br
INFO - Primary address detected as 172.30.0.122
INFO - Adding new entry for hostname plugpec.com.br on 172.30.0.122 to /etc/hosts.
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:    CentOS Linux
INFO - Operating system version: 7.0.1406
INFO - Configuring package manager for CentOS Linux 7.0.1406...
INFO - Disabling SELinux during installation...
INFO - Download of http://software.virtualmin.com/gpl/rhel/7.0.1406/x86_64/virtualmin-release-latest.noarch.rpm Succeeded.
warning: virtualmin-release-latest.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID a0bdbcf9: NOKEY
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...
-Error: Package: php-imap-5.4.16-3.el7.x86_64 (virtualmin)
           Requires: libc-client.so.2007()(64bit)
/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:
--> Processing Dependency: libc-client.so.2007()(64bit) for package: php-imap-5.4.16-3.el7.x86_64
---> Package systemtap-sdt-devel.x86_64 0:2.4-16.el7_0 will be installed
--> Running transaction check
---> Package glibc-headers.x86_64 0:2.17-55.el7_0.5 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-55.el7_0.5.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-55.el7_0.5.x86_64
---> Package php-imap.x86_64 0:5.4.16-3.el7 will be installed
--> Processing Dependency: libc-client.so.2007()(64bit) for package: php-imap-5.4.16-3.el7.x86_64
--> Running transaction check
---> Package kernel-headers.x86_64 0:3.10.0-123.20.1.el7 will be installed
---> Package php-imap.x86_64 0:5.4.16-3.el7 will be installed
--> Processing Dependency: libc-client.so.2007()(64bit) for package: php-imap-5.4.16-3.el7.x86_64
--> 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: 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

I used this AMI, from centos.org.

https://aws.amazon.com/marketplace/pp/B00O7WM7QW/ref=sp_mpg_product_titl...

Can you check it please? Thanks

Could you download the install.sh again, and then re-attempt the CentOS 7 install?

We had made a change related to php-imap recently, which seems to be causing a problem. I modified the installer to not attempt to install that, which should resolve the issue.

Hi Jamie,

It worked, Thank you very much

Automatically closed -- issue fixed for 2 weeks with no activity.

open of /gpl/amazon/2017.03/x86_64/virtualmin-release-latest.noarch.rpm failed: No such file or directory

Unfortunately, at this time, we'd suggest using CentOS rather than Amazon Linux.

It should be possible to use CentOS on the cheapest of the Amazon instances, whereas before only Amazon Linux ran on the cheapest ones.