Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: fmoreira86 on November 25, 2018, 02:32:55 am

Title: Stuck Upgrading from 5.1.3 to 6.0
Post by: fmoreira86 on November 25, 2018, 02:32:55 am
Hi,

I'm getting stuck here:

2018/11/25 00:50:47 INFO> Service.pm:965 EBox::Module::Service::restartService - Restarting service for module: dns
2018/11/25 00:50:48 INFO> DNS.pm:91 EBox::DNS::appArmorProfiles - Setting DNS apparmor profile


Any hint?
Title: Re: Stuck Upgrading from 5.1.3 to 6.0
Post by: half_life on November 26, 2018, 01:09:34 am
Is it possible to kill the blocking thread to let the install continue?
Title: Re: Stuck Upgrading from 5.1.3 to 6.0
Post by: fmoreira86 on November 26, 2018, 10:44:53 am
You mean stop DNS?

I tried it and it kept stuck.
Title: Re: Stuck Upgrading from 5.1.3 to 6.0
Post by: fmoreira86 on November 30, 2018, 09:43:10 pm
nothing?
Title: Re: Stuck Upgrading from 5.1.3 to 6.0
Post by: BerT666 on December 03, 2018, 12:44:54 pm
is there anything in the syslog / DNS (Bind) Log?

Regards

BerT
Title: Re: Stuck Upgrading from 5.1.3 to 6.0
Post by: jrtaylor on December 05, 2018, 07:29:13 pm
I had something like this happen when upgrading from 5.0 to 6.01. Do a "ps -ef" or "ps -aux" and find the stuck process. In my case zentyal-core package would not finish running "dpkg --configure -a" so I kill the last process in the chain and the upgrade started to finish. I did have to do this several times to get it to finish. After it said the upgrade was done I rebooted the server and ran "sudo dpkg --configure -a" to make sure all the zentyal packages finished.
Title: Re: Stuck Upgrading from 5.1.3 to 6.0
Post by: fmoreira86 on December 08, 2018, 10:57:17 pm
Hi!

Tried that and kill some process at time.

The machine upgraded sucessfully.

I've other machine that is stuck on:

Setting up zentyal-core (6.0.1) ...
Installing new version of config file /etc/cron.daily/zentyal ...


any idea? :(
Title: Re: Stuck Upgrading from 5.1.3 to 6.0
Post by: SamE on February 11, 2019, 08:35:16 pm
I am having the same problem. Did you ever figure out what was causing this error?

I see this in the Zentyal.log file:

2019/02/11 13:23:13 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $action in string eq at /usr/share/perl5/EBox/CGI/ReleaseUpgrade.pm line 44.
2019/02/11 13:23:13 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $action in string eq at /usr/share/perl5/EBox/CGI/ReleaseUpgrade.pm line 49.
Title: Re: Stuck Upgrading from 5.1.3 to 6.0
Post by: maladrill on June 24, 2019, 01:49:06 pm
Setting up zentyal-core (6.0.1) ...
Installing new version of config file /etc/cron.daily/zentyal ...


Did you find a solution to this problem?
Title: Re: Stuck Upgrading from 5.1.3 to 6.0
Post by: Laurent Dinclaux on August 29, 2019, 12:33:19 pm
I've other machine that is stuck on:

Setting up zentyal-core (6.0.1) ...
Installing new version of config file /etc/cron.daily/zentyal ...


any idea? :(

Happening to me right now ...
Title: Re: Stuck Upgrading from 5.1.3 to 6.0
Post by: jacksonnguyen on September 04, 2019, 12:50:05 pm

I had the same situation as you last Saturday. Fortunately, the problem has been resolved
Title: Re: Stuck Upgrading from 5.1.3 to 6.0
Post by: a.chirkov on September 16, 2021, 09:25:38 am
Any solutions? After restart my server get  EBox::DNS::appArmorProfiles - Setting DNS apparmor profile  and i cant run it
Title: Re: Stuck Upgrading from 5.1.3 to 6.0
Post by: turalyon on September 17, 2021, 01:03:57 pm
Any solutions? After restart my server get  EBox::DNS::appArmorProfiles - Setting DNS apparmor profile  and i cant run it

You can try to locate the DNS process, kill it and then, reconfigure the broken or pending packages. And then, restart again the module.

Code: [Select]
## To detect a process
ps -ef | egrep -i 'dns|zentyal'
lslocks | grep -Ei 'dns|zentyal'

## To kill the process
kill -9 pid_of_the_process

## To reconfigure the broken or pending packages
## It is possible that you need to run this
## command more than once
dpkg --configure -a

## Restarting the module
zs dns restart

---
“This world is ours, and by the Holy Light we will keep it safe, now and forever".
Title: Re: Stuck Upgrading from 5.1.3 to 6.0
Post by: grolon on September 22, 2021, 08:06:12 pm
Hi all, trying to help
copy here my notes in spanish [ 07:00 jueves, ‎19‎ de ‎noviembre‎ de ‎2020 ]

Restaurar backup 5.1 x64   OK (Restore Backup)
Restauración Exitosa

INFO> Backup.pm:1224 EBox::Backup::restoreBackup - Restore successful

Salvar   (Save)
ERROR> GlobalImpl.pm:727 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: dns  at The following modules failed while saving their changes, their state is unknown: dns  at /usr/share/perl5/EBox/GlobalImpl.pm line 727
Error restarting service: root command kinit -k -t /var/lib/samba/private/dns.keytab dns-z51 failed
Error output: kinit: krb5_get_init_creds: unable to reach any KDC in realm EMPRESA.COM.PY
Reboot

kinit -k -t /var/lib/samba/private/dns.keytab dns-z51
tail -f /var/log/zentyal/zentyal.log
ERROR> Service.pm:967 EBox::Module::Service::restartService - root command kinit -k -t /var/lib/samba/private/dns.keytab dns-z51 failed.
ERROR> RestartService.pm:61 EBox::SysInfo::CGI::RestartService::_process - Restart of DNS from dashboard failed: root command kinit -k -t /var/lib/samba/private/dns.keytab dns-z51 failed.
Error output: Password has expired
dns-z51@EMPRESA.COM.PY's Password:
 
# samba-tool user setexpiry dns-z51 --noexpiry

Ejecutar a mano
# kinit -k -t /var/lib/samba/private/dns.keytab dns-z51
No arrojó ningún error
El módulo DNS se ha reiniciado correctamente

Reboot
El módulo DNS se ha iniciado correctamente
El módulo DNS se ha reiniciado correctamente

Genera error de DNS al cambiar IP
ERROR> GlobalImpl.pm:652 EBox::GlobalImpl::saveAllModules - Failed to save changes in module dns: root command kinit -k -t /var/lib/samba/private/dns.keytab dns-z51 failed.
Error output: kinit: krb5_get_init_creds: unable to reach any KDC in realm EMPRESA.COM.PY

Reboot               
Error restarting service: root command kinit -k -t /var/lib/samba/private/dns.keytab dns-z51 failed.
Error output: kinit: krb5_get_init_creds: unable to reach any KDC in realm EMPRESA.COM.PY

Web GUI
Estado de los módulos
Detener DNS
Iniciar DNS
Dashboard
Reiniciar módulo DNS
El módulo DNS se ha reiniciado correctamente

Reboot
El módulo DNS se ha iniciado correctamente
El módulo DNS se ha reiniciado correctamente

-> 6.0 Dev   6.0.3   18.04.5   LTS
tail -f /var/log/zentyal/upgrade.log   14:29 - 14:57
      
Zentyal upgrade finished! Please restart your server now.

Reboot
El módulo DNS se ha iniciado correctamente
El módulo DNS se ha reiniciado correctamente

-> 6.1 Dev   6.1.6   18.04.5   LTS
tail -f /var/log/zentyal/upgrade.log   15:01 - 15:03

*** Zentyal upgrade finished! Please restart your server now.

Reboot
El módulo DNS se ha iniciado correctamente
El módulo DNS se ha reiniciado correctamente

-> 6.2 Dev   6.2.4   18.04.5   LTS
tail -f /var/log/zentyal/upgrade.log   15:08 - 15:11
         
cat /etc/apt//sources.list.d/zentyal-packages.list
## deb http://packages.zentyal.org/zentyal 6.1 main extra
         
*** Zentyal upgrade finished! Please restart your server now.

Reboot
El módulo DNS se ha iniciado correctamente
El módulo DNS se ha reiniciado correctamente

I hope this is help
Title: Re: Stuck Upgrading from 5.1.3 to 6.0
Post by: grolon on September 22, 2021, 08:24:24 pm
dpkg -l | egrep -v '^(ii|rc)'

>> conflicto con samba
systemctl stop smbd
systemctl stop nmbd
systemctl stop winbind
apt-get purge zentyal-openchange                  
dpkg --configure -a      SI Resuelve (SOLVED)                  
systemctl disable smbd
systemctl disable nmbd
      
-> 6.1 Dev   6.1.6   18.04.5   LTS OK
-> 6.2 Dev   6.2.4   18.04.5   LTS OK