Zentyal Forum, Linux Small Business Server

News and Announcements => News and Announcements => Topic started by: blorente on March 08, 2021, 04:40:57 pm

Title: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: blorente on March 08, 2021, 04:40:57 pm
Hi all,

The upgrade path from Zentyal Server Development 6.2 to 7.0 has been published now. When you upgrade the 'zentyal-core' package to its latest version, "Upgrade button" will appear on the Dashboard.

We would recommend you to follow this checklist to avoid issues:

* Make sure you don't have pending updates
* Back up your server and data before upgrading
* Make sure that there are no errors in the /var/log/zentyal/zentyal.log file
* Make sure that there is space available on the disk
* Make sure that the server is updated
* Make sure that there are no broken packages
* Make sure that there are no errors in the internal Samba database or in the MySQL databases
* Make sure that you have Internet connectivity
* Click on the Upgrade button on the Dashboard
* Make sure that the packages have been updated

The official documentation for Zentyal Server 7.0 will include more detailed instructions (it will be published shortly).

Looking forward to receiving your feedback and comments.
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: Sand_man on March 08, 2021, 04:47:54 pm
Fine! Thank you, we will update.
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: gabor.strama on March 08, 2021, 10:56:23 pm
Hi All!

I run the upgrade from 6.2.2 to 7.0 and currently the webadmin is not started with a follwing error message:
nginx: [emerg] SSL_CTX_use_certificate("/var/lib/zentyal/conf/ssl/ssl.pem") failed (SSL: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small)

How can i solve this issue?

Can somebody help?

BR,
GáborS
Modify message
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: blorente on March 09, 2021, 10:27:17 am
Hi Gabor,

Please note that you should upgrade from Zentyal 6.2.7. This issue is handled by the release-upgrade script in this line https://github.com/zentyal/zentyal/blob/support/6.2/main/core/src/scripts/release-upgrade#L248, so... the issue probably occurred in a previous upgrade stage, anyway, you have to update every package of your system before launching the script, otherwise the script won't continue (this is handled by the "checkPendingPackages" in L:69). How did you do your upgrade?

 I think you used an outdated version of "release-upgrade"
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: gabor.strama on March 09, 2021, 11:03:19 am
Hi Blorente!

Sorry but nope, i use the web ui...

I update to the latest version before i tried the upgrade.
The upgrade is started from the web interface....
And under the upgrade i didn't see any major issue....
Some small dependency issue has been occurred but nothing bigger....

BR,
Gábor Strama
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: blorente on March 09, 2021, 11:26:15 am
Ok, thats the same, the button of the GUI runs a CGI that executes the release upgrade script, keep in mind that you used an outdated script because the latest and proved release script for 6.2 was released yesterday in zentyal-core 6.2.7 in https://github.com/zentyal/zentyal/commit/225ac49fd6c0aeeb9bba139aea290a7e2c4ca3c0

The issue that you suffer occurs because the new version of nginx needs a longer key than the old, if you already have an updated version of zentyal core (7.0.x) you'll need to run

rm -rf /var/lib/zentyal/conf/ssl
/usr/share/zentyal/create-certificate /var/lib/zentyal/conf/ssl `hostname --fqdn`

Anyway, if you have a backup, restore it, update your system to the latest 6.2.x version of every package and run again the upgrade.
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: gabor.strama on March 09, 2021, 12:08:07 pm
Dear Blorente!

Thank You!
The command is solve my problem.
But as i told earlier i run the apt update and apt upgrade command two times and i didn't see an pending update.

But THX again!

BR
GáborS

Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: Luke on March 10, 2021, 01:19:05 pm
Hi!

I upgraded our second server, everything seems fine with no errors. But the webgui and network is not working at all. Anyone who have some suggestions ? Thanks ! :)
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: AntiAntiSysOps on March 11, 2021, 05:49:42 am
Well as luck would have it I just hosed out my only server.
DNS wont upgrade:
Code: [Select]
sudo apt-get install zentyal-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
zentyal-core is already the newest version (7.0.0).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 zentyal-dns : Depends: zentyal-core (< 7.0.0) but 7.0.0 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

sudo apt --fix-broken install
attempts to upgrade zentyal-dns but fails
Code: [Select]
Preparing to unpack .../zentyal-dns_7.0.0_all.deb ...
Unpacking zentyal-dns (7.0.0) over (6.2.0) ...
dpkg: error processing archive /var/cache/apt/archives/zentyal-dns_7.0.0_all.deb (--unpack):
 trying to overwrite '/etc/bind/db.root', which is also in package bind9 1:9.11.3+dfsg-1ubuntu1.14
Errors were encountered while processing:
 /var/cache/apt/archives/zentyal-dns_7.0.0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo dpkg --configure -a does not solve it
sudo apt-get autoremove does not solve it:
Code: [Select]
sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 zentyal-dns : Depends: zentyal-core (< 7.0.0) but 7.0.0 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I attempted to update since I have been seeing the "Update to 7.0" in the gui for maybe 6 weeks.
But as I read that was just a screw up on the developers side and somehow that was popping up when it should not have been.

Not really sure what to do now, besides just rebuild and waste the rest of my week and the clients time.

DNS will not install, logins won't function, and Domain Controller and File Sharing is not installed now.

Any ideas???? Doubt I can roll back in any way.

UPDATE:
Success, I rolled back.
Edited sources.list, removed 7.0
removed Zentyal, sudo apt-get remove zentyal-core zentyal-software
re-installed it all
Had to hack DNS to get out and install again
Edited resolve.conf, added upstream router as DNS
sudo apt-get update (->>it worked so I know DNS is resolving)
sudo apt-get zentyal-core zentyal-software
Installs the basics, screws up resolve.conf again, so can't install Domain, NTP (what I use and need)
Edited resolve.conf again as above
Via the Zentyal Gui, install Domain Controller and File Sharing, NTP
Installs successfully.
All users, groups, computers are in place.
----
Only issue is I can't map drives. I assume I can re-attach the workstation(s) and that will fix it, which is a pain in the ass, but better than rebuilding the entire domain from scratch.
Working on the issue. Can't ping by FQDN, I'll go back though and test that path, make sure DNS is setup correctly.

Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: hexbary on March 11, 2021, 12:00:44 pm
When can I upgrade from 6.2 to 7.0 without any problems???
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: raydelgg on March 11, 2021, 10:34:27 pm
My zentyal-core is updated to 6.2.7 but not show the Upgrade button on the Dashboard
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: acon on March 12, 2021, 04:16:12 pm
The ugrade to Zen7 button is offered again, but if you pust it, in the upgrade windows it says "This will upgrade your Zentyal 6.0 to Zentyal 6.2 Community edition"...
Tested on 2 servers
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: blorente on March 12, 2021, 04:27:44 pm
Hi all,

Thanks for the feedback. Until now we have not been able to reproduce issues in the upgrade process itself (few issues that were affecting deployments with multiple DCs have been fixed now). What is very important is that you have the system fully updated and in the latest version (6.2.7) and also, that you have Internet connection (network connectivity issues might cause errors in the upgrade process). Please also make a full backup and have a roll-back procedure in place before upgrading.

BR.
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: blorente on March 12, 2021, 04:57:17 pm
The ugrade to Zen7 button is offered again, but if you pust it, in the upgrade windows it says "This will upgrade your Zentyal 6.0 to Zentyal 6.2 Community edition"...
Tested on 2 servers

Thanks! fixed in 6.2.8 ;)
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: Luke on March 12, 2021, 05:13:40 pm
We are up and running and fixed the issue with this commands!

sudo rm -rf /var/lib/zentyal/conf/ssl
sudo /usr/share/zentyal/create-certificate /var/lib/zentyal/conf/ssl `hostname --fqdn`
sudo systemctl start zentyal.webadmin-nginx.service


Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: blorente on March 15, 2021, 11:50:14 am
We are up and running and fixed the issue with this commands!

sudo rm -rf /var/lib/zentyal/conf/ssl
sudo /usr/share/zentyal/create-certificate /var/lib/zentyal/conf/ssl `hostname --fqdn`
sudo systemctl start zentyal.webadmin-nginx.service

That's exactly what the release-upgrade code does at L:248 Did you upgrade from >=6.2.7?

Just for curiosity, because these commands should not be needed.
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: turalyon on March 15, 2021, 12:13:09 pm
My zentyal-core is updated to 6.2.7 but not show the Upgrade button on the Dashboard

I got the same behavior and after checking the code, I saw that Zentyal requires Internet access to check if there is an upgrade available. Below you have the file which contains the methods: '_upgradeMessage' and '_getNewVersionFromCloud' that make the checks.
 
* https://github.com/zentyal/zentyal/blob/support/6.2/main/core/src/EBox/Dashboard/CGI/Index.pm

NOTE: Every time you refresh the Dashboard page in the web browser, it runs those methods.

Hope it helps.
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: jrtaylor on March 15, 2021, 04:58:44 pm
Just upgraded from 6.2.8 to 7.0 and the webadmin would not start because of the ssl problem. Ran these and the problem went away.

sudo rm -rf /var/lib/zentyal/conf/ssl
sudo /usr/share/zentyal/create-certificate /var/lib/zentyal/conf/ssl `hostname --fqdn`
sudo systemctl start zentyal.webadmin-nginx.service

Problem not fixed.

Ugdate:

I did have to roll back the upgrade. Lots of stuff did not update and the upgrade had a key error. I have seen this before with other 18.x to 20 upgrades.
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: Daniel Joven on March 16, 2021, 10:51:38 am
Ugdate:

I did have to roll back the upgrade. Lots of stuff did not update and the upgrade had a key error. I have seen this before with other 18.x to 20 upgrades.

Could you please provide us more details about the issues that you got after the upgrade? Do you remember the status of the packages (system and zentyal)? Which modules are you using? Are you using the CA module with a service certificate for Zentyal Webadmin service?

Also, I recommend to run the script itself to upgrade the system if the system adminitrator has knowledge enough to use the commandline, the reason is the details that you get when it is upgrading the server. Below two examples:

1. Basic execution:

sudo /usr/share/zentyal/release-upgrade

2. Execution with verbosity:

sudo bash -x /usr/share/zentyal/release-upgrade
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: mscfw on March 16, 2021, 12:56:40 pm
Hi Daniel,
I plan to start the upgrade on my second system soon. Manual update (by script) would be fine, just wondering if I missed this information, but should we/I upgrade ubuntu first and then Zentyal, or better the other way round?

My first Zentyal system fail with the upgrade, suricata repro key missing, then grub boot load "gone", ... took quite a while to fix it, but ok so far.

There was no responce on the "/usr/share/perl5/EBox/Samba/Model/PAM.pm" issue in https://forum.zentyal.org/index.php/topic,35173.0.html, perhaps also only a local problem.


Thanks for your support!
bye
Markus
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: jrtaylor on March 16, 2021, 10:42:45 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
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: jrtaylor on March 18, 2021, 01:02:29 pm
Removed failed source. Not sure where it came from. The upgrade still failed. I cannot upload the log file. This looks like the problem.

This seems to provide zentyal-ips.

Code: [Select]
apt update
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]                                                               
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]                                                                                   
Hit:4 http://packages.zentyal.org/zentyal 7.0 InRelease                                                                                                     
Get:5 http://ppa.launchpad.net/oisf/suricata-stable/ubuntu focal InRelease [17.5 kB]                           
Get:6 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]                     
Err:5 http://ppa.launchpad.net/oisf/suricata-stable/ubuntu focal InRelease                                                                                                                               
  Connection timed out [IP: 91.189.95.85 80]
Fetched 324 kB in 30s (10.6 kB/s)   
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://ppa.launchpad.net/oisf/suricata-stable/ubuntu/dists/focal/InRelease  Connection timed out [IP: 91.189.95.85 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: AntiAntiSysOps on March 18, 2021, 11:13:57 pm
We are up and running and fixed the issue with this commands!

sudo rm -rf /var/lib/zentyal/conf/ssl
sudo /usr/share/zentyal/create-certificate /var/lib/zentyal/conf/ssl `hostname --fqdn`
sudo systemctl start zentyal.webadmin-nginx.service

This is good info here.

Anyone got a link on a HowTo setup a secondary the quickest way. Since I am in a single server environment (I know I don't need your comments on that, its been rock solid for 3 years), I'd like to setup a secondary just for redundancy if this thing sh*ts the bed again.
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: ecc on March 23, 2021, 10:36:56 am
I tried that command and all I get is :

[0;32m - Checking the zentyal-core version...
 Your system is up to date

It does nothing clicking the button.
The documentation on this is very sparse.
Is there a reference to how to get from 6.2.4 to 6.2.8?
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: jrtaylor on March 24, 2021, 04:22:28 pm
I tried that command and all I get is :

[0;32m - Checking the zentyal-core version...
 Your system is up to date

It does nothing clicking the button.
The documentation on this is very sparse.
Is there a reference to how to get from 6.2.4 to 6.2.8?

You need to upgrade your 6.2.x to 6.2.8 by using the web interface or command line.

web interface
Software Management--> Zentyal Components--> Update tab
Software Management--> System Updates

command line (this will update both zentyal and system at the same time)
apt update
apt upgrade
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: erotavlas on March 26, 2021, 10:21:39 am
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
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: jpedrelli on March 26, 2021, 04:39:49 pm
After the upgrade dovecot IMAP service stopped working
In the mail.log file there are these warnings:
Code: [Select]
  dovecot: config: Warning: please set ssl_dh=</etc/dovecot/dh.pem
  config: Warning: You can generate it with: dd if=/var/lib/dovecot/ssl-parameters.dat bs=1 skip=88 | openssl dhparam -inform der > /etc/dovecot/dh.pem
I tried to regenerate the "dh.pem" file with these methods:
Code: [Select]
  dd if=/var/lib/dovecot/ssl-parameters.dat bs=1 skip=88 | openssl dhparam -inform der > dh.pem
  openssl dhparam -out dh.pem 4096
  openssl dhparam -out dh.pem 8192
  openssl genpkey -genparam -algorithm DH -out dh.pem -pkeyopt dh_paramgen_prime_len:4096
and modified ssl_dh option in  files /etc/dovecot/conf.d/10-ssl.conf and /usr/share/dovecot/conf.d/10-ssl.conf from /usr/share/dovecot/dh.pem to /etc/dovecot/dh.pem and his group from root to dovecot without success

I always got the error when mail client connect:
Code: [Select]
  dovecot: imap-login: Error: Failed to initialize SSL server context: Can't load DH parameters: error:1408518A:SSL routines:ssl3_ctx_ctrl:dh key too small: user=<>, rip=...
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: jrtaylor on March 26, 2021, 07:42:50 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.
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: Daniel Joven on March 29, 2021, 12:26:17 pm
Hi,

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.

The latest version is 6.2.9.

After the upgrade dovecot IMAP service stopped working
In the mail.log file there are these warnings:
Code: [Select]
  dovecot: config: Warning: please set ssl_dh=</etc/dovecot/dh.pem
  config: Warning: You can generate it with: dd if=/var/lib/dovecot/ssl-parameters.dat bs=1 skip=88 | openssl dhparam -inform der > /etc/dovecot/dh.pem
I tried to regenerate the "dh.pem" file with these methods:
Code: [Select]
  dd if=/var/lib/dovecot/ssl-parameters.dat bs=1 skip=88 | openssl dhparam -inform der > dh.pem
  openssl dhparam -out dh.pem 4096
  openssl dhparam -out dh.pem 8192
  openssl genpkey -genparam -algorithm DH -out dh.pem -pkeyopt dh_paramgen_prime_len:4096
and modified ssl_dh option in  files /etc/dovecot/conf.d/10-ssl.conf and /usr/share/dovecot/conf.d/10-ssl.conf from /usr/share/dovecot/dh.pem to /etc/dovecot/dh.pem and his group from root to dovecot without success

I always got the error when mail client connect:
Code: [Select]
  dovecot: imap-login: Error: Failed to initialize SSL server context: Can't load DH parameters: error:1408518A:SSL routines:ssl3_ctx_ctrl:dh key too small: user=<>, rip=...

Please, try to generate the key using the following command:

Code: [Select]
sudo openssl dhparam -out /etc/dovecot/dh.pem 4096

Then, set the correct permissions:

Code: [Select]
sudo chown root:root /etc/dovecot/dh.pem
sudo chmod 0644 /etc/dovecot/dh.pem

After that, add the following parameter to the stub '/usr/share/zentyal/stubs/mail/dovecot.conf.mas':

Code: [Select]
ssl_dh = </etc/dovecot/dh.pem

Finally, restart the Mail module:

Code: [Select]
sudo zs mail restart

Best regards, Daniel Joven.
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: jpedrelli on March 30, 2021, 02:44:19 pm
Thanks @Daniel Joven, problem solved!
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: jrtaylor 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.

Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: erotavlas 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 (https://postimg.cc/qzh702G1).
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: jrtaylor 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.

Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: Mr. Crux 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
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: Mr. Crux 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 (https://postimg.cc/qzh702G1).

Had the same issue. Check if it is related to Expired APT (GPG) Key (https://forum.zentyal.org/index.php/topic,35059.msg113870.html#msg113870) (webmaster's msg)
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: erotavlas 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 (https://postimg.cc/qzh702G1).

Had the same issue. Check if it is related to Expired APT (GPG) Key (https://forum.zentyal.org/index.php/topic,35059.msg113870.html#msg113870) (webmaster's msg)

It worked, thank you. Now I installed the version 6.2.9 and I can upgrade to 7.0.x.
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: sspeed 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 ...
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: Daniel Joven 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'.
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: sspeed 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 ...
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: erotavlas 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?
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: erotavlas 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 (https://forum.zentyal.org/index.php?topic=34454.0).

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


Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: erotavlas 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 (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
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: gabor.strama 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.
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: webmaster 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.
Title: Re: Upgrade from Zentyal 6.2 to 7.0 is now available
Post by: hjt 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.