Failed to upgrade to Virtualmin Pro : Virtualmin has been installed from an RPM, but not using the Virtualmin GPL repository. Up

Hello,

Just purchased a 10 server license, and on the software license page it gave me a command as an alternative. So I just used that command. And I got the following error:

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 dev.capitalife.ph
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: 6
INFO - Configuring package manager for CentOS Linux 6...
INFO - Disabling SELinux during installation...
/usr/sbin/setenforce: SELinux is disabled
INFO - setenforce 0 failed: 1
INFO - Download of http://5558962:UAnQW3kjfZ@software.virtualmin.com/rhel/6/x86_ 64/virtualmin-release-latest.noarch.rpm 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 pe rl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server log rotate webalizer php php-xml php-gd php-imap php-mysql php-odbc php-pear php-pgs ql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spama ssassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML- Simple perl-Crypt-SSLeay
...in progress, please wait... - Warning: RPMDB altered outside of yum. I NFO - /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd post fix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl pyth on mailman subversion mysql mysql-server mysql-devel postgresql postgresql-serve r 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 mo d_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay: Succeeded.
INFO - Succeeded.
INFO - Installing Virtualmin and all related packages now using the command:
INFO - yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base extras updates virtualmin virtualmin-universal
Cleaning up Everything
Cleaning up list of fastest mirrors
INFO - yum -y -d 2 install virtualmin-base
...in progress, please wait... - http://SERIALNUMBER:LICENSEKEY@software.virtualmin.com/rhel/6/x86_64/repodata/re pomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: virtualm in. Please verify its path and try again y um -y -d 2 install virtualmin-base failed. Error (if any): 0

Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoo t this problem:

Updated:
iptables.x86_64 0:1.4.7-9.el6 quota.x86_64 1:3.17-18.el6

Dependency Updated:
iptables-ipv6.x86_64 0:1.4.7-9.el6

Complete!
INFO - 2013-05-31 17:21:28 - /usr/bin/yum -y -d 2 install bind bind-utils cachin g-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quot a iptables openssl python mailman subversion mysql mysql-server mysql-devel post gresql 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-x mlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_s vn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt -SSLeay: Succeeded.
INFO - 2013-05-31 17:21:29 - Succeeded.
INFO - 2013-05-31 17:21:29 - Installing Virtualmin and all related packages now using the command:
INFO - 2013-05-31 17:21:29 - yum clean all
INFO - 2013-05-31 17:21:29 - yum -y -d 2 install virtualmin-base
Loaded plugins: fastestmirror
Determining fastest mirrors

FATAL - Fatal Error Occurred: Installation failed: 0
FATAL - Cannot continue installation.
FATAL - Attempting to remove virtualmin repository configuration, so the install ation can be
FATAL - re-attempted after any problems have been resolved.
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

So, I was disheartened and ended up going to the link on the UI "Upgrade to Virtualmin Pro", entered the details and I got the error:

Failed to upgrade to Virtualmin Pro : Virtualmin has been installed from an RPM, but not using the Virtualmin GPL repository. Upgrading is not possible at this time

My current Virtualmin GPL version is 3.99 and trying to upgrade to pro, ofcourse. CentOS 6.3 Final.
Forums say that if I mess up, I might lose all data. I have a lot of domains on there, so it's important that I do a proper upgrade for the few domains I need pro features for.

Please help.
Thanks!

PS: Jamie Cameron has logged in to my server before (to fix failing backups), so his key is still there. Jamie, I will email you letting you know it's me so you have the host address in case you feel like logging in. Weekend in the Philippines is disconnection.

Status: 
Active

Comments

Howdy -- we're sorry that you're having trouble with your upgrade!

You wouldn't want to run the install.sh script on an existing system -- that's something you would only run on a new system.

The upgrade process from within the Virtualmin UI is the best way to upgrade from Virtualmin GPL to Pro.

It's possible that the install.sh script modified the virtualmin.repo file in a way that's confusing Virtualmin though.

What are the contents of your /etc/yum.repos.d/virtualmin.repo file?

Actually, there isn't any virtualmin.repo file there :/

Ah, what likely happened is that the install.sh script removed the virtualmin.repo file when it exited (as it wasn't expecting that to be a live system).

Try re-creating that file with the following contents:

[virtualmin]
name=RHEL/CentOS/Scientific $releasever - $basearch - Virtualmin
baseurl=http://software.virtualmin.com/gpl/rhel/$releasever/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin
gpgcheck=1

[virtualmin-universal]
name=Virtualmin Distribution Neutral Packages
baseurl=http://@software.virtualmin.com/gpl/universal/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin
gpgcheck=1

And then after creating that, attempt the upgrade process again.

This has done the trick! Thanks so much andreychek!!