Author Topic: Upgrade from Zentyal 6.2 to 7.0 is now available  (Read 6819 times)

jrtaylor

  • Zen Apprentice
  • *
  • Posts: 22
  • Karma: +6/-0
    • View Profile
Re: Upgrade from Zentyal 6.2 to 7.0 is now available
« Reply #30 on: April 01, 2021, 10:46:45 pm »
Still trying to upgrade a system that was installed 6.0 and upgraded to 6.2.x with no problems. I cloned the system and have attempted to upgrade to 7. After a bit I reboot and get stuff like this in the logs.

Code: [Select]
Apr  1 15:32:10 mx1 systemd[1]: Reloading.
Apr  1 15:32:10 mx1 systemd[1]: /lib/systemd/system/dbus.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket → /run/dbus/system_bus_socket; please update the unit file accordingly.
Apr  1 15:32:10 mx1 systemd[1]: named.service: Wants dependency dropin /etc/systemd/system/named.service.wants/fix-744304.conf is not a symlink, ignoring.
Apr  1 15:32:10 mx1 systemd[1]: /lib/systemd/system/dovecot.service:19: PIDFile= references a path below legacy directory /var/run/, updating /var/run/dovecot/master.pid → /run/dovecot/master.pid; please update the unit file accordingly.
Apr  1 15:32:20 mx1 systemd[1]: Reloading.
Apr  1 15:32:20 mx1 systemd[1]: /lib/systemd/system/dbus.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket → /run/dbus/system_bus_socket; please update the unit file accordingly.
Apr  1 15:32:20 mx1 systemd[1]: named.service: Wants dependency dropin /etc/systemd/system/named.service.wants/fix-744304.conf is not a symlink, ignoring.
Apr  1 15:32:20 mx1 systemd[1]: /lib/systemd/system/dovecot.service:19: PIDFile= references a path below legacy directory /var/run/, updating /var/run/dovecot/master.pid → /run/dovecot/master.pid; please update the unit file accordingly.


erotavlas

  • Zen Apprentice
  • *
  • Posts: 40
  • Karma: +9/-0
    • View Profile
Re: Upgrade from Zentyal 6.2 to 7.0 is now available
« Reply #31 on: April 06, 2021, 06:11:26 pm »
Hi,
I have two machines with zentyal 6.2 and I have the offer on the web gui to upgrade to zentyal 7.0, however the process gets stuck on preparing. On both machines I have zentyal core 6.2.3, on web gui there is 6.2.8 suggestion (it redirects to doc page), but I cannot update it even via command line.
Any idea?
Thank you

You have to upgrade to 6.2.8 before attempting to upgrade to 7.0. Make sure you have a backup or snapshot before attempting an upgrade.

Right, but I cannot do it. I was able to upgrade up to 6.2.4 as you can see https://postimg.cc/qzh702G1.

jrtaylor

  • Zen Apprentice
  • *
  • Posts: 22
  • Karma: +6/-0
    • View Profile
Re: Upgrade from Zentyal 6.2 to 7.0 is now available
« Reply #32 on: April 08, 2021, 05:33:27 am »
One big thing that I want to note here is that the IDS/IPS system seems to block some of the upgrade. After turning it off almost ALL my problems went away!!! The only thing I still see are these messages.

Code: [Select]
Apr  7 22:31:25 mx1 systemd[1]: named.service: Wants dependency dropin /etc/systemd/system/named.service.wants/fix-744304.conf is not a symlink, ignoring.
Apr  7 22:31:26 mx1 systemd[1]: named.service: Wants dependency dropin /etc/systemd/system/named.service.wants/fix-744304.conf is not a symlink, ignoring.
Apr  7 22:31:26 mx1 systemd[1]: named.service: Wants dependency dropin /etc/systemd/system/named.service.wants/fix-744304.conf is not a symlink, ignoring.
Apr  7 22:31:27 mx1 systemd[1]: named.service: Wants dependency dropin /etc/systemd/system/named.service.wants/fix-744304.conf is not a symlink, ignoring.
Apr  7 22:31:28 mx1 systemd[1]: named.service: Wants dependency dropin /etc/systemd/system/named.service.wants/fix-744304.conf is not a symlink, ignoring.
Apr  7 22:31:31 mx1 systemd[1]: named.service: Wants dependency dropin /etc/systemd/system/named.service.wants/fix-744304.conf is not a symlink, ignoring.


Mr. Crux

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +2/-0
    • View Profile
Re: Upgrade from Zentyal 6.2 to 7.0 is now available
« Reply #33 on: April 23, 2021, 12:51:29 pm »
We try to upgrade from 6.2.9. As Daniel Joven suggested we run the script itself to upgrade the system by executing the command:
Code: [Select]
sudo bash -x /usr/share/zentyal/release-upgrade
Could not upload an execution output here; download link https://gofile.io/d/y16VhA
Noticeable errors start line 4842, then at line 5015

/var/log/mysql/error.log - https://gofile.io/d/fHM5jd
« Last Edit: April 26, 2021, 09:35:49 am by Mr. Crux »

Mr. Crux

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +2/-0
    • View Profile
Re: Upgrade from Zentyal 6.2 to 7.0 is now available
« Reply #34 on: April 23, 2021, 01:17:28 pm »
Hi,
I have two machines with zentyal 6.2 and I have the offer on the web gui to upgrade to zentyal 7.0, however the process gets stuck on preparing. On both machines I have zentyal core 6.2.3, on web gui there is 6.2.8 suggestion (it redirects to doc page), but I cannot update it even via command line.
Any idea?
Thank you

You have to upgrade to 6.2.8 before attempting to upgrade to 7.0. Make sure you have a backup or snapshot before attempting an upgrade.

Right, but I cannot do it. I was able to upgrade up to 6.2.4 as you can see https://postimg.cc/qzh702G1.

Had the same issue. Check if it is related to Expired APT (GPG) Key (webmaster's msg)

erotavlas

  • Zen Apprentice
  • *
  • Posts: 40
  • Karma: +9/-0
    • View Profile
Re: Upgrade from Zentyal 6.2 to 7.0 is now available
« Reply #35 on: April 24, 2021, 05:29:02 pm »
Hi,
I have two machines with zentyal 6.2 and I have the offer on the web gui to upgrade to zentyal 7.0, however the process gets stuck on preparing. On both machines I have zentyal core 6.2.3, on web gui there is 6.2.8 suggestion (it redirects to doc page), but I cannot update it even via command line.
Any idea?
Thank you

You have to upgrade to 6.2.8 before attempting to upgrade to 7.0. Make sure you have a backup or snapshot before attempting an upgrade.

Right, but I cannot do it. I was able to upgrade up to 6.2.4 as you can see https://postimg.cc/qzh702G1.

Had the same issue. Check if it is related to Expired APT (GPG) Key (webmaster's msg)

It worked, thank you. Now I installed the version 6.2.9 and I can upgrade to 7.0.x.

sspeed

  • Zen Apprentice
  • *
  • Posts: 22
  • Karma: +1/-0
    • View Profile
Re: Upgrade from Zentyal 6.2 to 7.0 is now available
« Reply #36 on: May 31, 2021, 04:57:59 am »
I have two Zentyals, one upgraded fine, the other just hangs here

Code: [Select]
Setting up zentyal (7.0.0ubuntu1) ...
Setting up zentyal-firewall (7.0.0) ...
 * Restarting Zentyal module: firewall
   ...done.
Setting up zentyal-dns (7.0.2) ...
Installing new version of config file /etc/bind/db.root ...

Daniel Joven

  • Zentyal Staff
  • Zen Apprentice
  • *****
  • Posts: 31
  • Karma: +19/-0
    • View Profile
Re: Upgrade from Zentyal 6.2 to 7.0 is now available
« Reply #37 on: May 31, 2021, 02:37:59 pm »
I have two Zentyals, one upgraded fine, the other just hangs here

Code: [Select]
Setting up zentyal (7.0.0ubuntu1) ...
Setting up zentyal-firewall (7.0.0) ...
 * Restarting Zentyal module: firewall
   ...done.
Setting up zentyal-dns (7.0.2) ...
Installing new version of config file /etc/bind/db.root ...

Try to locate the process with the command 'lslocks | grep dns', kill it 'kill -9 id_process' and then, repair the packages using 'dpkg --configure -a'.

sspeed

  • Zen Apprentice
  • *
  • Posts: 22
  • Karma: +1/-0
    • View Profile
Re: Upgrade from Zentyal 6.2 to 7.0 is now available
« Reply #38 on: May 31, 2021, 07:32:39 pm »
Thanks for that, it seems to move on from kill -9 and all is upgraded now.

It seems the problem might start a few lines sooner.  It never loses network connection, so the message is sort of weird.

Code: [Select]
Setting up zentyal-software (7.0.0) ...
Setting up zentyal-network (7.0.0) ...
 * Restarting Zentyal module: network
   ...fail!
Setting up zentyal (7.0.0ubuntu1) ...
Setting up zentyal-firewall (7.0.0) ...
 * Restarting Zentyal module: firewall
   ...done.
Setting up zentyal-dns (7.0.2) ...
Installing new version of config file /etc/bind/db.root ...

erotavlas

  • Zen Apprentice
  • *
  • Posts: 40
  • Karma: +9/-0
    • View Profile
Re: Upgrade from Zentyal 6.2 to 7.0 is now available
« Reply #39 on: June 11, 2021, 11:59:01 am »
Hi,
I tried to upgrade one of my machines with zentyal 6.2.9, but I get these log errors https://pastebin.com/w26wUnwf.
I was able to fix the grub error, but I could not fix the others "reconfigure". I tried both dpkg --configure -a and apt-get upgrade -f.
Any idea?

erotavlas

  • Zen Apprentice
  • *
  • Posts: 40
  • Karma: +9/-0
    • View Profile
Re: Upgrade from Zentyal 6.2 to 7.0 is now available
« Reply #40 on: June 15, 2021, 09:53:27 pm »
Hi,
I tried to upgrade one of my machines with zentyal 6.2.9, but I get these log errors https://pastebin.com/w26wUnwf.
I was able to fix the grub error, but I could not fix the others "reconfigure". I tried both dpkg --configure -a and apt-get upgrade -f.
Any idea?

Before, to upgrade my production system, I tried again via several installations of zentyal 6.2 on virtualbox 6.1. However, I cannot solve my issue. I also tried to follow this https://forum.zentyal.org/index.php?topic=34454.0.
  • original: without any further package or software. Only one time it worked without any error.
  • original+kernel hwe: same error.
  • original+apache+php: same error.

Could it be a problem of virtual box? Do you have any hint?



erotavlas

  • Zen Apprentice
  • *
  • Posts: 40
  • Karma: +9/-0
    • View Profile
Re: Upgrade from Zentyal 6.2 to 7.0 is now available
« Reply #41 on: June 22, 2021, 03:19:28 pm »
Hi,
I tried to upgrade one of my machines with zentyal 6.2.9, but I get these log errors https://pastebin.com/w26wUnwf.
I was able to fix the grub error, but I could not fix the others "reconfigure". I tried both dpkg --configure -a and apt-get upgrade -f.
Any idea?

Before, to upgrade my production system, I tried again via several installations of zentyal 6.2 on virtualbox 6.1. However, I cannot solve my issue. I also tried to follow this https://forum.zentyal.org/index.php?topic=34454.0.
  • original: without any further package or software. Only one time it worked without any error.
  • original+kernel hwe: same error.
  • original+apache+php: same error.

Could it be a problem of virtual box? Do you have any hint?

I finally managed to upgrade the server and I solved the various problems. Now zentyal 7.0.4 boots into command line version, I can move to GUI via CTRL+ALT+F7. Is there a way to change the default boot mode?
Thank you

gabor.strama

  • Zen Apprentice
  • *
  • Posts: 32
  • Karma: +5/-0
    • View Profile
Re: Upgrade from Zentyal 6.2 to 7.0 is now available
« Reply #42 on: July 03, 2021, 04:21:38 pm »
Hi!

Somebody done with a zentyal upgrade smoothly?

Because my system is showing the upgrade is available... :-)

I wish to avoid a system crash.... :-)

Best Regards,

GáborS.

webmaster

  • Zentyal Staff
  • Zen Apprentice
  • *****
  • Posts: 27
  • Karma: +2/-1
    • View Profile
Re: Upgrade from Zentyal 6.2 to 7.0 is now available
« Reply #43 on: July 05, 2021, 12:52:01 pm »
Hi Gabor,

Before moving forward with the upgrade, check out the fully updated upgrade docs at: https://doc.zentyal.org/en/upgrade.html

BR.

hjt

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +4/-0
    • View Profile
Re: Upgrade from Zentyal 6.2 to 7.0 is now available
« Reply #44 on: July 15, 2021, 08:22:40 pm »
Hangs during upgrade.

Code: [Select]
*** Preparing for upgrade to Zentyal 7.0...
+ echo

+ prepareZentyalRepositories
+ wget -qO - keys.zentyal.org/zentyal-7.0-packages.asc
+ sudo apt-key add -
OK
+ '[' -f /etc/apt/sources.list.d/zentyal-archive.list ']'
+ '[' -f /var/lib/zentyal/.commercial-edition ']'
+ sed -ri '/zentyal(.)6.2/d' /etc/apt/sources.list
+ echo 'deb http://packages.zentyal.org/zentyal 7.0 main extra'
+ grep -qR http://ppa.launchpad.net/oisf/suricata-stable/ubuntu /etc/apt/sources.list /etc/apt/sources.list~ /etc/apt/sources.list.d
+ echo 'deb http://ppa.launchpad.net/oisf/suricata-stable/ubuntu focal main'
+ apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D7F87B2966EB736F
Executing: /tmp/apt-key-gpghome.LfsjAz87zp/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys D7F87B2966EB736F

I had the same, solution was to deinstall IPS before upgrading to 7.