Author Topic: Migration tool beta from 2.0 to 2.2 available for testing  (Read 13614 times)

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Migration tool beta from 2.0 to 2.2 available for testing
« on: October 03, 2011, 01:46:35 pm »
We're looking for volunteers to test the migration tool from Zentyal 2.0 to Zentyal 2.2 in testing environments. Although we think the tool may be ready and all our internal tests have succeeded, we think it would be a good idea to have a bit of help from the community to make sure it doesn't have any serious issue.

You can find all the information on how to use the migration tool, as well as the known issues at:

http://trac.zentyal.org/wiki/Documentation/Community/Migration

Ideally this should be used on test environments only, but if you want to try with your production server out of office hours we recommend you to be as careful as possible. Above all, please make sure that you can restore a backup if anything goes wrong.

Let us know of any issues you find! Happy migration!
Zentyal Server Lead Developer

christian

  • Guest
Re: Migration tool beta from 2.0 to 2.2 available for testing
« Reply #1 on: October 03, 2011, 02:18:58 pm »
Excellent, I'll give a try not later than tonight and will let you know.

Ezequiel Fernandez

  • Zen Apprentice
  • *
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Re: Migration tool beta from 2.0 to 2.2 available for testing
« Reply #2 on: October 04, 2011, 01:21:27 pm »
Hellooo, I will make a test and tell you

Ezequiel Fernandez

  • Zen Apprentice
  • *
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Re: Migration tool beta from 2.0 to 2.2 available for testing
« Reply #3 on: October 04, 2011, 01:53:03 pm »
buenas, estoy probando la herramienta pero me encontre con el siguiente problema.

al ejecutar ./migrate.sh
empeso a actualizar el sistema despues de hacerlo, y confirmar que ya estaba echo todo, empeso otra vez en este caso no se pudo comunicar con un APT de ubuntu dandome el error que compruebe mi coneccion a internet, lo cual revisando modique las DNS de mi maquina.
El problema es cuando quise continuar con la migracion no me daba esa posiblidad directamente solo hacia una actualizacion y se queda igual me envia a la linea de comando.
Entonces de momento la solucion que encontre fue apt-get install zentyal
empesando a instalar de 0 todo
...
gracias

:)
 

margaale

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Migration tool beta from 2.0 to 2.2 available for testing
« Reply #4 on: October 04, 2011, 07:43:07 pm »
Hi, after running the migration tool and rebooting the server, whenever i try to access to the web console i get an error saying something like "Can't call method "valueByName" on an undefined value".

Do you need some other info?

Regards,

EDIT: This is the exact message. Can't call method "valueByName" on an undefined value at /usr/share/perl5/EBox/Network.pm line 2257.
« Last Edit: October 05, 2011, 01:20:28 am by margaale »

christian

  • Guest
Re: Migration tool beta from 2.0 to 2.2 available for testing
« Reply #5 on: October 04, 2011, 10:45:49 pm »
Migration definitely doesn't work for me.
I first ran
-> apt-get update
-> apt-get upgrade
system was already up to date...
then downloaded migration script, unzip and launched migration.
I got a first message to upgrade system. So far so good.. then migration when further until I got this error message (I'm not sure I copied from the very begining  :-[):

Code: [Select]
  Package zentyal-core is not configured yet.
 zentyal-ntp depends on zentyal-core (<< 2.No apport report written because MaxReports is reached already
                                                                                                         No apport report written because MaxReports is reached already
                   No apport report written because MaxReports is reached already
                                                                                 No apport report written because MaxReports is reached already
                                                                                                                                               2.100); however:
  Package zentyal-core is not configured yet.
 zentyal-ntp depends on zentyal-firewall; however:
  Package zentyal-firewall is not configured yet.
dpkg: error processing zentyal-ntp (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of zentyal-software:
 zentyal-software depends on zentyal-core (>= 2.2); however:
  Package zentyal-core is not configured yet.
 zentyal-software depends on zentyal-core (<< 2.2.100); however:
  Package zentyal-core is not configured yet.
dpkg: error processing zentyal-software (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of zentyal-squid:
 zentyal-squid depends on zentyal-core (>= 2.2); however:
  Package zentyal-core is not configured yet.
 zentyal-squid depends on zentyal-core (<< 2.2.100); however:
  Package zentyal-core is not configured yet.
 zentyal-squid depends on zentyal-firewall; however:
  Package zentyal-firewall is No apport report written because MaxReports is reached already
                                                                                            No apport report written because MaxReports is reached already
      not configured yet.
 zentyal-squid depends on zentyal-objects; however:
  Package zentyal-objects is not configured yet.
 zentyal-squid depends on zentyal-users; however:
  Package zentyal-users is not configured yet.
dpkg: error processing zentyal-squid (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of zentyal-webserver:
 zentyal-webserver depends on zentyal-core (>= 2.2); however:
  Package zentyal-core is not configured yet.
 zentyal-webserver depends on zentyal-core (<< 2.2.100); however:
  Package zentyal-core is not configured yet.
 zentyal-webserver depends on zentyal-firewall; however:
  Package zentyal-firewall is not configured yet.
 zentyal-webserver depends on zentyal-ca; however:
  Package zentyal-ca is not configured yet.
dpkg: error processing zentyal-webserver (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of zentyal-webmail:
 zentyal-webmail depends on zentyal-core (>= 2.2); however:
  Package zentyal-core is not configured yet.
 zentyal-webmail depends on zentyal-core (<< 2.2.100); however:
  Package zentyal-core is not configured yet.
 zentyal-webmail depends on zentyal-users; however:
  Package zentyal-users is not configured yet.
 zentyal-webmail depends on zentyal-webserver; however:
  Package zentyal-webserver is not configured yet.
 zentyal-webmail depends on zentyal-mail; however:
  Package zentyal-mail is not configured yet.
dpkg: error processing zentyal-webmail (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 zentyal-core
 zentyal-objects
 zentyal-services
 zentyal-network
 zentyal-firewall
 zentyal-antivirus
 zentyal-ca
 zentyal-dhcp
 zentyal-dns
 zentyal-ebackup
 zentyal-users
 zentyal-ftp
 zentyal-mail
 zentyal-mailfilter
 zentyal-monitor
 zentyal-ntp
 zentyal-software
 zentyal-squid
 zentyal-webserver
 zentyal-webmail
E: Sub-process /usr/bin/dpkg returned an error code (1)
Command FAILED! Please check your internet connectivity

Press return to continue or Control+C to abort...

From there I'm blocked  ::)

I'll try to remove zentyal and install is again...

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: Migration tool beta from 2.0 to 2.2 available for testing
« Reply #6 on: October 05, 2011, 01:53:11 am »
christian, when that error appears, could you check the following?

ps aux | grep ebox

I think the problem is that there is still any 2.0 daemon running as ebox user. If we find which is, we can fix it by just adding the proper stop command to the migration tool.

Thanks for the testing!
Zentyal Server Lead Developer

christian

  • Guest
Re: Migration tool beta from 2.0 to 2.2 available for testing
« Reply #7 on: October 05, 2011, 06:53:19 am »
Unfortunately, as I ran this upgrade on, kind of, production server (I mean I needed it to access at least this forum  ;)), I took stronger action and rebooted the whole server then reinstalled manually Zentyal.
Not a piece of cake because packages were already partially installed but not configured.

Installation is still not completed because I'm again blocked with "user" module.
I'll work on this first and make comments later.

jjm1982

  • Zen Warrior
  • ***
  • Posts: 200
  • Karma: +7/-0
    • View Profile
Re: Migration tool beta from 2.0 to 2.2 available for testing
« Reply #8 on: October 05, 2011, 11:00:59 am »
I had similar problems, but it warned me that zarafa couldn't be installed because it didn't meet all of the dependencies. Which is strange because I never had it installed to begin with. I'm now stuck trying to enable users and file sharing after purging ldap and zentyal and reinstalling everything.

I manage four zentyal servers and this is only the first one I've tried upgrading. Not a very good experience.
« Last Edit: October 05, 2011, 11:02:58 am by jjm1982 »

christian

  • Guest
Re: Migration tool beta from 2.0 to 2.2 available for testing
« Reply #9 on: October 05, 2011, 12:14:50 pm »
some feedback:

After migration script failure, I tried to reinstall Zentyal but my goal was:
- not to reinstall everything
- not to install with Zentyal 2.2 ISO that is assuming that you wuill ever launch GUI from your server  :-X

So I removed all Ebox/zentyal packages, rebooted my server, then finally succeeded with Zentyla package installation and initial config, at least enough to launch GUI from my browser.
I've been able to reinstall everything but I'm facing now some strange behaviour deserving further investigation:
- trying to create webmail vhost, I got an error message stating that it was already existing...
- proxy auto-discovery doesn't work any more

Looking further, I realized that what DNS service exposes doesn't reflect what I configure in DNS service using GUI interface but reflects what is still stored in /var/lib/bind.
Usercorner doesn't work neither (error 500)

When I will have more time, I'll reinstall Ubutnu server again and try to reinstall Zentyal packages.  >:( >:(

jjm1982

  • Zen Warrior
  • ***
  • Posts: 200
  • Karma: +7/-0
    • View Profile
Re: Migration tool beta from 2.0 to 2.2 available for testing
« Reply #10 on: October 05, 2011, 01:01:50 pm »
some feedback:

After migration script failure, I tried to reinstall Zentyal but my goal was:
- not to reinstall everything
- not to install with Zentyal 2.2 ISO that is assuming that you wuill ever launch GUI from your server  :-X

So I removed all Ebox/zentyal packages, rebooted my server, then finally succeeded with Zentyla package installation and initial config, at least enough to launch GUI from my browser.
I've been able to reinstall everything but I'm facing now some strange behaviour deserving further investigation:
- trying to create webmail vhost, I got an error message stating that it was already existing...
- proxy auto-discovery doesn't work any more

Looking further, I realized that what DNS service exposes doesn't reflect what I configure in DNS service using GUI interface but reflects what is still stored in /var/lib/bind.
Usercorner doesn't work neither (error 500)

When I will have more time, I'll reinstall Ubutnu server again and try to reinstall Zentyal packages.  >:( >:(

How were you able to get pass enabling the user and file sharing modules? If you even did enable these. I keep getting a white screen that says "OK" with some error description of an internal configuration. I continue to run into this problem even after purging zentyal and ldap. I've also attempted to restore some of my configuration settings from a previous configuration backup with no success. When I try to attempt a config restore on samba using the restore configuration in the /usr/share/zentyal directory I run into LDAP issues.

Can anyone answer? I do not want to risk having to reinstall Zentyal from ISO. I ahve to much valuable data stored on this file server.

Ezequiel Fernandez

  • Zen Apprentice
  • *
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Re: Migration tool beta from 2.0 to 2.2 available for testing
« Reply #11 on: October 05, 2011, 04:14:19 pm »
Segunda prueba de la herramienta, en principio ha echo todo bien
pero una vez reinicias

Sorry, an unexpected error has occurred
Can't call method 'valueByName' on an undefined value

    Show technical details
    Report the problem

Trace

    Can't call method "valueByName" on an undefined value at /usr/share/perl5/EBox/Network.pm line 2257.

Go back



jjm1982

  • Zen Warrior
  • ***
  • Posts: 200
  • Karma: +7/-0
    • View Profile
Re: Migration tool beta from 2.0 to 2.2 available for testing
« Reply #12 on: October 05, 2011, 05:13:51 pm »
Segunda prueba de la herramienta, en principio ha echo todo bien
pero una vez reinicias

Sorry, an unexpected error has occurred
Can't call method 'valueByName' on an undefined value

    Show technical details
    Report the problem

Trace

    Can't call method "valueByName" on an undefined value at /usr/share/perl5/EBox/Network.pm line 2257.

Go back

If it helps anyone any and before I got myself into my current situation; I also had received this same error but I induced it by running the 'run-parts' command on the post-upgrade folder. Before I ran those scripts I was presented with a login screen to enter Zentyal Dashboard.

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: Migration tool beta from 2.0 to 2.2 available for testing
« Reply #13 on: October 07, 2011, 06:11:54 pm »
The migration tool now contains an important fix importing the old configuration. If your have experienced problems, please try to download it again and start the migration from the scratch (clean 2.0) or try to hotfix your half-done migration with:

Code: [Select]
sed -i "s/^value: \\([^'].*\\)/value: '\\1'/g" /var/lib/ebox/redis_dump.yaml
run-parts post-upgrade

Note that the second command needs to be executed from inside the zentyal-migrate-2.0-to-2.2 directory.

« Last Edit: October 07, 2011, 06:14:47 pm by J. A. Calvo »
Zentyal Server Lead Developer

margaale

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Migration tool beta from 2.0 to 2.2 available for testing
« Reply #14 on: October 07, 2011, 08:37:20 pm »
I tested the hotfix. I can access to the web console now...