Problem upgrading to Virtualmin Pro

I have an existing Virtualmin GPL system and have just purchased a licence. When I tried to upgrade to virtualmin pro from within virtualmin I am getting the following 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.

I am running centos 6.6, and virtualmin 4.13gpl and when I built the virtualmin server initially I used the install.sh script.

Please confirm how I can resolve this?

Status: 
Closed (fixed)

Comments

Howdy -- thanks for buying a Virtualmin Pro license! We're happy to help you figure out what's going on there.

Let's start with these two things -- if you run "ls /etc/yum.repos.d", do you see a virtualmin.repo file? If so, what is the contents of that file?

And second, what is the output of this command:

rpm -qa | grep wbm

Thank you,

ls /etc/yum.repos.d gives me the standard repos, no virtualmin repo file

rpm -qa | grep wbm gives me wbm-virtual-server-4.13.gpl-2.noarch wbm-virtualmin-mailman-6.3-1.noarch wbm-virtualmin-init-2.5-1.noarch wbm-virtualmin-svn-5.1-1.noarch wbm-ruby-gems-1.4-1.noarch wbm-virtualmin-dav-3.7-1.noarch wbm-virtualmin-registrar-2.2-1.noarch wbm-virtualmin-htpasswd-2.6-1.noarch wbm-virtualmin-awstats-5.1-1.noarch wbm-security-updates-4.5-1.noarch wbm-php-pear-1.5-1.noarch

Ah, I think that's the trouble -- for some reason your virtualmin.repo file is missing. That's installed when the install.sh runs, something may have happened to that afterwards.

We can re-create that though.

What you'd want to do is make a new file named /etc/yum.repos.d/virtualmin.repo, and give it 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

After re-creating the virtualmin.repo file, are you then able to upgrade to Virtualmin Pro?

Your system has been successfully upgraded to Virtualmin Pro!

Thank you

Great, I'm glad that worked! I'll go ahead and mark this as fixed. Feel free to let us know if you have any other questions.

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