Author Topic: [CLOSED UNSOLVED] Upgrading from 3.4 to 6.0  (Read 732 times)

erotavlas

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +1/-0
    • View Profile
[CLOSED UNSOLVED] Upgrading from 3.4 to 6.0
« on: June 13, 2019, 04:45:41 pm »
Hi,
I have an old installation of zentyal 3.4. I'm analysing https://wiki.zentyal.org/wiki/Updating_your_Zentyal_Server how to manage it and at the same time I'm testing the latest release 6.0. I would like to know if it is advised and possible to perform several upgrade from 3.4 up to 6.0. Moreover, can I just install the latest release 6.0 and import the backup from 3.4 (I do not think so)?
Thank you
« Last Edit: June 21, 2019, 09:20:57 am by erotavlas »

doncamilo

  • Zen Warrior
  • ***
  • Posts: 202
  • Karma: +40/-0
    • View Profile
Re: Upgrading from 3.4 to 6.0
« Reply #1 on: June 13, 2019, 11:52:53 pm »
Hi!
It seems to me that your Zentyal version is too old. I fear your best option is to make a fresh install, but you could try this: https://wiki.zentyal.org/wiki/Migration_from_3.0_to_3.5/4.0_version,_Single_Domain_Controller

From Zentyal 4 the upgrade process is realized throught a script that configures the new repos, fix some bugs, and run the apt-get upgrade (This script is runned from the button which describes the wiki that you have found). From 4 to 5 version and from 5 to 6 the process seems to me  secure.

However, many things could be failed on a so complex process although you were able to upgrade to Zentyal 4
Is it a huge system?

Best regards.

erotavlas

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +1/-0
    • View Profile
Re: Upgrading from 3.4 to 6.0
« Reply #2 on: June 14, 2019, 07:37:44 am »
Hi!
It seems to me that your Zentyal version is too old. I fear your best option is to make a fresh install, but you could try this: https://wiki.zentyal.org/wiki/Migration_from_3.0_to_3.5/4.0_version,_Single_Domain_Controller

From Zentyal 4 the upgrade process is realized throught a script that configures the new repos, fix some bugs, and run the apt-get upgrade (This script is runned from the button which describes the wiki that you have found). From 4 to 5 version and from 5 to 6 the process seems to me  secure.

However, many things could be failed on a so complex process although you were able to upgrade to Zentyal 4
Is it a huge system?

Best regards.

Actually, the system is quite small. The problem is that I do not know how to use zentyal very well compared to ubuntu server. I already found some different behaviour with configuration files (mySQL, apache, etc.). I will try to make a new install and to import the most of the setting.
Is there something that you can suggest to me?
Thank you

doncamilo

  • Zen Warrior
  • ***
  • Posts: 202
  • Karma: +40/-0
    • View Profile
Re: Upgrading from 3.4 to 6.0
« Reply #3 on: June 14, 2019, 11:48:04 am »
If you describe your system I could help you in this process.

How many users, groups, machines...?

There's only an AD controller or there are some other additional controllers?

...

 :)

Cheers!

erotavlas

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +1/-0
    • View Profile
Re: Upgrading from 3.4 to 6.0
« Reply #4 on: June 14, 2019, 12:54:51 pm »
I tried to upgrade from zentyal 3.4 to 3.5, but the process stopped with errors.
Now I have not access anymore to admin GUI. I reverted back from trusty to saucy the distro name into
Code: [Select]
/etc/apt/sources.list.
I have a strange error if I type:
Code: [Select]
sudo apt-get update && sudo apt-get upgrade
Code: [Select]
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
 haproxy libauthen-krb5-easy-perl libclamav-xs-perl zenbuntu-desktop
0 to upgrade, 0 to newly install, 0 to remove and 4 not to upgrade.
10 not completely installed or removed.
After this operation, 0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Configuring zentyal-objects (3.5)...
Perl API version v5.18.0 of 1 does not match v5.14.0 at /usr/lib/perl/5.14/DynaLoader.pm line 207.
Compilation failed in require at /usr/share/perl5/EBox/Sudo.pm line 25.
BEGIN failed--compilation aborted at /usr/share/perl5/EBox/Sudo.pm line 25.
Compilation failed in require at /usr/share/perl5/EBox/Module/Base.pm line 28.
BEGIN failed--compilation aborted at /usr/share/perl5/EBox/Module/Base.pm line 28.
Compilation failed in require at (eval 16) line 2.
...propagated at /usr/share/perl/5.14/base.pm line 93.
BEGIN failed--compilation aborted at /usr/share/perl5/EBox/Module/Config.pm line 20.
Compilation failed in require at (eval 15) line 2.
...propagated at /usr/share/perl/5.14/base.pm line 93.
BEGIN failed--compilation aborted at /usr/share/perl5/EBox/GlobalImpl.pm line 21.
Compilation failed in require at /usr/share/perl5/EBox/Global.pm line 22.
BEGIN failed--compilation aborted at /usr/share/perl5/EBox/Global.pm line 22.
Compilation failed in require at /usr/share/zentyal/initial-setup line 22.
BEGIN failed--compilation aborted at /usr/share/zentyal/initial-setup line 22.
dpkg: errore nell'elaborare zentyal-objects (--configure):
 il sottoprocesso installato script di post-installation ha restituito lo stato di errore 2

If you describe your system I could help you in this process.

How many users, groups, machines...?

There's only an AD controller or there are some other additional controllers?

...

 :)

Cheers!

My configuration is quite simple. I have only some Web server installed on it with openVPN and ftp services.
« Last Edit: June 14, 2019, 01:01:21 pm by erotavlas »

doncamilo

  • Zen Warrior
  • ***
  • Posts: 202
  • Karma: +40/-0
    • View Profile
Re: Upgrading from 3.4 to 6.0
« Reply #5 on: June 14, 2019, 03:05:53 pm »
If you have done an "apt dist-upgrade" or edited manually the sources.list file your packages system is surely broken.

Code: [Select]
dpkg -l |egrep -v '^(ii|rc)'
This way you'll see your broken packages.

You could try to back to the old sources.list, do an "apt-get update", remove the new packages and install it again in his old versions.

Afterwards run this command until the packages will be installed:
Code: [Select]
sudo dpkg –configure -a
Afterwards if you are able to restore your old system, run this command:

Code: [Select]
sudo sh /usr/share/zentyal/upgrade-to-4.0
Tell me about your advances.

:)

Best regards,

erotavlas

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +1/-0
    • View Profile
Re: Upgrading from 3.4 to 6.0
« Reply #6 on: June 14, 2019, 03:45:06 pm »
If you have done an "apt dist-upgrade" or edited manually the sources.list file your packages system is surely broken.
Actually, I used the upgrade button from admin GUI after that I updated the system to the latest package version.

Code: [Select]
dpkg -l |egrep -v '^(ii|rc)'
This way you'll see your broken packages.

You could try to back to the old sources.list, do an "apt-get update", remove the new packages and install it again in his old versions.

Afterwards run this command until the packages will be installed:
Code: [Select]
sudo dpkg –configure -a
Afterwards if you are able to restore your old system, run this command:

Code: [Select]
sudo sh /usr/share/zentyal/upgrade-to-4.0
Tell me about your advances.

:)

Best regards,
I will take a look on it and let you know.
Thank you
« Last Edit: June 14, 2019, 03:52:37 pm by erotavlas »

doncamilo

  • Zen Warrior
  • ***
  • Posts: 202
  • Karma: +40/-0
    • View Profile
Re: Upgrading from 3.4 to 6.0
« Reply #7 on: June 14, 2019, 03:53:12 pm »
The button you have used runs the script that I have described you.  :-\

Do you have waited the whole process finished?

Tell me how can I help you if you need.

Cheers!

erotavlas

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +1/-0
    • View Profile
Re: Upgrading from 3.4 to 6.0
« Reply #8 on: June 14, 2019, 04:36:43 pm »
The button you have used runs the script that I have described you.  :-\

Do you have waited the whole process finished?

Tell me how can I help you if you need.

Cheers!

Yes, I did and it gave me error message "Impossible to upgrade". I will try to follow what you suggested in the previous post.

doncamilo

  • Zen Warrior
  • ***
  • Posts: 202
  • Karma: +40/-0
    • View Profile
Re: Upgrading from 3.4 to 6.0
« Reply #9 on: June 14, 2019, 04:57:58 pm »
Hi!

I have found the upgrading script https://github.com/zentyal/zentyal/blob/3.2/main/core/src/scripts/release-upgrade but, I fear there's not possibility of use it on 3.3 or 3.4.

However if you can read it, I think that you could follow it as a screenplay.

PD: Do you have some backup config?

Best regards!

erotavlas

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +1/-0
    • View Profile
Re: Upgrading from 3.4 to 6.0
« Reply #10 on: June 18, 2019, 09:38:17 am »
Hi,
Code: [Select]
dpkg -l |egrep -v '^(ii|rc)'I removed all the broken packages (zentyal-*.*). Then I reverted the file /etc/apt/sources.list to the following one:

Code: [Select]
cat /etc/apt/sources.list
#

# deb cdrom:[Ubuntu-Server 13.10 _Saucy Salamander_ - Release amd64 (20131016)]/ saucy extras main restricted

#deb cdrom:[Ubuntu-Server 13.10 _Saucy Salamander_ - Release amd64 (20131016)]/ saucy extras main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
#deb http://old-release.ubuntu.com/ubuntu/ saucy main restricted
#deb-src http://old-release.ubuntu.com/ubuntu/ saucy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
#deb http://old-release.ubuntu.com/ubuntu/ saucy-updates main restricted
#deb-src http://old-release.ubuntu.com/ubuntu/ saucy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
#deb http://old-release.ubuntu.com/ubuntu/ saucy universe
#deb-src http://old-release.ubuntu.com/ubuntu/ saucy universe
#deb http://old-release.ubuntu.com/ubuntu/ saucy-updates universe
#deb-src http://old-release.ubuntu.com/ubuntu/ saucy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
#deb http://old-release.ubuntu.com/ubuntu/ saucy multiverse
#deb-src http://old-release.ubuntu.com/ubuntu/ saucy multiverse
#deb http://old-release.ubuntu.com/ubuntu/ saucy-updates multiverse
#deb-src http://old-release.ubuntu.com/ubuntu/ saucy-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
#deb http://old-release.ubuntu.com/ubuntu/ saucy-backports main restricted universe multiverse
#deb-src http://old-release.ubuntu.com/ubuntu/ saucy-backports main restricted universe multiverse

deb http://archive.zentyal.org/zentyal 3.4 main extra

#deb http://security.ubuntu.com/ubuntu saucy-security main restricted
#deb-src http://security.ubuntu.com/ubuntu saucy-security main restricted
#deb http://security.ubuntu.com/ubuntu saucy-security universe
#deb-src http://security.ubuntu.com/ubuntu saucy-security universe
#deb http://security.ubuntu.com/ubuntu saucy-security multiverse
#deb-src http://security.ubuntu.com/ubuntu saucy-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu saucy partner
# deb-src http://archive.canonical.com/ubuntu saucy partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu saucy main
# deb-src http://extras.ubuntu.com/ubuntu saucy main

deb http://old-releases.ubuntu.com/ubuntu/ saucy main universe restricted multiverse
#deb-src http://old-releases.ubuntu.com/ubuntu/ saucy main universe restricted multiverse

deb http://old-releases.ubuntu.com/ubuntu/ saucy-security main universe restricted multiverse
#deb-src http://old-releases.ubuntu.com/ubuntu/ saucy-security main universe restricted multiverse

deb http://old-releases.ubuntu.com/ubuntu/ saucy-updates main universe restricted multiverse
#deb-src http://old-releases.ubuntu.com/ubuntu/ saucy-updates main universe restricted multiverse

deb http://old-releases.ubuntu.com/ubuntu/ saucy-backports main restricted universe multiverse
#deb-src http://old-releases.ubuntu.com/ubuntu/ saucy-backports main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu/ saucy-proposed main restricted universe multiverse
#deb-src http://old-releases.ubuntu.com/ubuntu/ saucy-proposed main restricted universe multiverse

deb http://ppa.launchpad.net/ubuntu-mozilla-security/ppa/ubuntu saucy main

The commands sudo apt-get update and sudo apt-get upgrade do not allow to upgrade any package.
lNow if I try to reinstall a zentyal package e.g. zentyal-ca, I get:
Code: [Select]
sudo apt-get install zentyal-core zentyal-ca
Reading list of packages... Done
Dependency tree generation       
Reading status information... Done
Some packages cannot be installed. This may mean
that an impossible situation has been requested or, if you are in the process of
using a distribution in development, that some required packages
have not yet been created or removed by Incoming.
The following information can help you resolve the situation:

The following packages have unsatisfied dependencies:
 zentyal-core : Depends: zentyal-common (< 3.5) version 3.5 is about to be installed
E: Unable to fix problems, there are damaged packages blocked.

Is it possible to restore the old version? Have I to change other files that /etc/apt/sources.list?
Thank you
« Last Edit: June 18, 2019, 09:41:00 am by erotavlas »

doncamilo

  • Zen Warrior
  • ***
  • Posts: 202
  • Karma: +40/-0
    • View Profile
Re: Upgrading from 3.4 to 6.0
« Reply #11 on: June 18, 2019, 10:36:48 am »
Hi!

Remove the zentyal-common packages and install the correct version.

Check the package versions registered on your apt system:

Code: [Select]
apt-cache policy zentyal-common
#same for all the zentyal packages
[code]

If you have more of one versions you can proceed to install the one you want. Your goal is to buid a consistent set of packages.

[code]
sudo apt-get install <package name>=<version>

Could be you'll have to remove all the zentyal packages in order to re-install them in the desired versions. (I have done this a couple of times on Zentyal 5.1 and redis have being able to restore all configurations, but this is higly risky. Proceed package by package.)

I'll would did it in a virtual machine first.

Let me know your advances.

Best regards.

erotavlas

  • Zen Apprentice
  • *
  • Posts: 19
  • Karma: +1/-0
    • View Profile
Re: Upgrading from 3.4 to 6.0
« Reply #12 on: June 19, 2019, 04:04:43 pm »
Hi,
I tried again and then I decided to give up. Now I'm reconfiguring from scratch a new server with zentyal 6.0.
Thank you

doncamilo

  • Zen Warrior
  • ***
  • Posts: 202
  • Karma: +40/-0
    • View Profile
Re: Upgrading from 3.4 to 6.0
« Reply #13 on: June 19, 2019, 05:46:41 pm »
 :(

I'm sorry. However I think is the better decision.

Best regards.