Transfer problem from Centos 6 to 7

I have old VPS, Centos 6.7 and I have new VPS Centos 7. I'm trying to move domains from old (centos 6.7) to new vps (Centos 7). I have Virtualmin Pro installed in both servers.

So, I want to backup domains from old vps and restore to new vps. The problem is that I have earlier installed Analytics Tracking in the old VPS and that's why I get error when I trying to import domain backup file to new server.

  • Old server: Virtualmin/Backup and Restore / Backup Virtual Servers (Trying to only one selected server) : Download backup in browser
  • New server: Restore backup file from the file

The new server can't restore the backup. It will give warning: WARNING - The following features were enabled for one or more domains in the backup, but do not exist on this system. Restoring this backup would break the configuration of the system : Analytics Tracking

I tried to disable Analytics tracking in old VPS (Virtualmin/System Settings/Features and Plugins: Analytics Tracking) , and after that made backup. When I open this backup file in new VPS server, the new server can't restore the backup even then, it will give the same warning about analytics tarcking plugin.

I can't go forward, so restoring domain backup from Centos 6.7 server to new Centos 7 server doesn't work.

Am i missing something, where is the problem?

I also tried to install Analytics tracking to new VPS Centos 7 server, but when I try to enable it, I get error: Failed to save enabled features : The plugin Analytics Tracking cannot be used : Apache's mod_perl version 2 must be installed

Status: 
Closed (fixed)

Comments

Howdy -- our apologies, there appears to be a bug that unnecessarily requires Google Analytics Tracking be installed, even if it were removed from the previous system when the backups were created.

We're looking into that, but in the meantime, the easiest solution would be to install the Analytics Tracking module, and also mod_perl.

The mod_perl package isn't in the primary CentOS repository, but it is in EPEL. To install that from EPEL, you can use this command:

rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/m/mod_perl-2.0.8-10.20140624svn1602105.el7.x86_64.rpm

After running that, are you then able to install the Analytics module?

Also, I hadn't tried this previously, but Jamie mentioned an alternative work-around -- when restoring, find the "Features to restoreā€œ section of the form, choose "Only those selected below" and then check all the boxes except for "Analytics Tracking".

I can't find check box for "Analytics Tracking" from "Features to restore"/ "Only those selected below" (not in new or old server either).

I tried to install mod_perl package from EPEL like you suggested, but transfer failed.

But you helped me to find the solution. I managed to install mod_per with help of this site: https://huntingbears.nl/2013/12/17/no-mod_perl-in-rhel-7-and-centos-7/

yum install -y epel-release
yum install -y mod_perl

After that I was able to install the Analytics module and restore the backup to my new virtual server.

Thanks!

Great, I'm glad you were able to get that installed!

We're looking into why that issue came up in the first place so we can prevent that problem in the future.

FYI, the next Virtualmin release will resolve this issue by removing the mod_perl directives used by the analytics plugin at restore time, if mod_perl isn't installed.

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

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