Migration from Ubuntu 12.04 to 14.04

Looking to migrate to ZCS? Ask here. Got a great tip or script that helped you migrate? Post it here.
jorgedelacruz.es
Advanced member
Advanced member
Posts: 197
Joined: Sat Sep 13, 2014 3:52 am
ZCS/ZD Version: Zimbra Collaboration 8.7

Migration from Ubuntu 12.04 to 14.04

Post by jorgedelacruz.es »

Hi guys,

I've wrote about the 2 last step that you mentioned:

Upgrade 12.04 to 14.04

Upgrade 8.5 using the 14.04 version.
It's in spanish, sorry.

http://www.jorgedelacruz.es/2014/08/27/ ... zcs-8-5-0/
Best regards
Sal_O
Posts: 6
Joined: Sat Sep 13, 2014 3:57 am

Migration from Ubuntu 12.04 to 14.04

Post by Sal_O »

This time I upgraded the 12.04 kernel to 3.11:
apt-get install linux-image-generic-lts-saucy linux-headers-generic-lts-saucy
Then upgraded to 8.05 with the 12.04 package. Install went perfectly. Now do I bother with 14.04, I would like to do the release-upgrade but don't want a repeat of the Perl modules being out of sync with the running version and the version used to compile them. My concern is the Zimbra tools not functioning. So for those that have gone to 14.04 and reapplied 8.5, any issue with the Zimbra tools?
Sal_O
Posts: 6
Joined: Sat Sep 13, 2014 3:57 am

Migration from Ubuntu 12.04 to 14.04

Post by Sal_O »

Went ahead and did the release-upgrade from 12.04 to 14.04, came across the same XSLoader.pm error when attempting to verify the database before doing the 8.5 install. Again, this occurs because XSLoader was compiled with an earlier version of perl that is not the same as the running perl or an old version of perl is being called upon. Probably the latter as there are plenty of versions of perl lying around but XSLoader.pm only appears under /usr/share/perl5.18.2/. But this time since I was already on 8.5 before doing the OS upgrade I just skipped the database check and went ahead with the 8.5 install. I am able to run zmdbintegrityreport without a problem so I'm not sure how much the perl issue is going to get in the way.
vinzenz
Posts: 14
Joined: Sat Sep 13, 2014 1:41 am

Migration from Ubuntu 12.04 to 14.04

Post by vinzenz »

I did a test run and ran into the same perl error. After you skipped the database check, where there any other issues like log warnings?

Maybe we should file a bug report for this problem.
Sal_O
Posts: 6
Joined: Sat Sep 13, 2014 3:57 am

Migration from Ubuntu 12.04 to 14.04

Post by Sal_O »

[quote user="vinzenz"]I did a test run and ran into the same perl error. After you skipped the database check, where there any other issues like log warnings?

Maybe we should file a bug report for this problem.[/QUOTE]
It installed without issue after ignoring the database check, running now.
Sal_O
Posts: 6
Joined: Sat Sep 13, 2014 3:57 am

Migration from Ubuntu 12.04 to 14.04

Post by Sal_O »

My upgrade; 12.04 to saucy, 8.07 to 8.5, 12.04 to 14.04, re-install 8.5 14.04 package, appears to be working fine but I did receive this cron error this morning:
/etc/cron.daily/logrotate:

error: zimbra:141 unknown option 'endscript' -- ignoring line
Sure enough in /etc/logrotate.d/zimbra at line 141 is an 'endscript' that doesn't follow a 'prerotate' or 'postrotate', so I rem'd it out. Should stop the error going forward.
Sal_O
Posts: 6
Joined: Sat Sep 13, 2014 3:57 am

Migration from Ubuntu 12.04 to 14.04

Post by Sal_O »

Not out of the woods yet, Server Status now shows localhost as well as my servers FQDN. In trying to fix it, by removing localhost using zmprov as suggested on the 'net I completely hosed my install. Zimbra server couldn't find itself, HTTP ERROR: 404 Problem accessing /zimbra/. Reason: Not Found. Before reverting to a snapshot, which may have meant a potential loss of mail unless I backed up boxes, I did a re-install as a last resort. It worked and curiously no XSLoader.pm perl error when allowing the install to verify and check the database.
Took a closer look at localhost appearing in Server Status and see that it shows a "data is stale" at around the time /etc/cron.daily/logrotate failed. So I really should have ignored it until /etc/cron.daily/logrotate ran successfully, dumb move on my part.
User avatar
ppearl
Advanced member
Advanced member
Posts: 114
Joined: Thu May 15, 2014 7:36 am

Migration from Ubuntu 12.04 to 14.04

Post by ppearl »

[quote user="Sal_O"]My upgrade; 12.04 to saucy, 8.07 to 8.5, 12.04 to 14.04, re-install 8.5 14.04 package, appears to be working fine but I did receive this cron error this morning:
/etc/cron.daily/logrotate:

error: zimbra:141 unknown option 'endscript' -- ignoring line
Sure enough in /etc/logrotate.d/zimbra at line 141 is an 'endscript' that doesn't follow a 'prerotate' or 'postrotate', so I rem'd it out. Should stop the error going forward.[/QUOTE]
FYI, I've filed https://bugzilla.zimbra.com/show_bug.cgi?id=95277 for this bug.
vinzenz
Posts: 14
Joined: Sat Sep 13, 2014 1:41 am

Migration from Ubuntu 12.04 to 14.04

Post by vinzenz »

FYI, I created a bug for the Perl issue: https://bugzilla.zimbra.com/show_bug.cgi?id=95329
Stephen J
Posts: 9
Joined: Fri Aug 08, 2014 12:38 pm

Migration from Ubuntu 12.04 to 14.04

Post by Stephen J »

Just to throw in my experience that worked.

Started as 8.0.6 on 12.04.4.

8.0.6 > 8.5.1(for 12.04) then 12.04.4 > 14.04.1 then 8.5.1 > 8.5.1 (for 14.04)

The last step took care of the perl dependancy issue. I did it on a dev box and am going to do it a couple more times before attempting it with my live server. During the 14.04 upgrade I did not uninstall the deprecated packages.
Post Reply