Author Topic: Stuck Upgrading from 5.1.3 to 6.0  (Read 4630 times)

fmoreira86

  • Zen Apprentice
  • *
  • Posts: 31
  • Karma: +2/-0
    • View Profile
Stuck Upgrading from 5.1.3 to 6.0
« 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?

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 866
  • Karma: +59/-0
    • View Profile
Re: Stuck Upgrading from 5.1.3 to 6.0
« Reply #1 on: November 26, 2018, 01:09:34 am »
Is it possible to kill the blocking thread to let the install continue?

fmoreira86

  • Zen Apprentice
  • *
  • Posts: 31
  • Karma: +2/-0
    • View Profile
Re: Stuck Upgrading from 5.1.3 to 6.0
« Reply #2 on: November 26, 2018, 10:44:53 am »
You mean stop DNS?

I tried it and it kept stuck.

fmoreira86

  • Zen Apprentice
  • *
  • Posts: 31
  • Karma: +2/-0
    • View Profile
Re: Stuck Upgrading from 5.1.3 to 6.0
« Reply #3 on: November 30, 2018, 09:43:10 pm »
nothing?

BerT666

  • Zen Warrior
  • ***
  • Posts: 230
  • Karma: +17/-0
    • View Profile
Re: Stuck Upgrading from 5.1.3 to 6.0
« Reply #4 on: December 03, 2018, 12:44:54 pm »
is there anything in the syslog / DNS (Bind) Log?

Regards

BerT

jrtaylor

  • Zen Apprentice
  • *
  • Posts: 22
  • Karma: +6/-0
    • View Profile
Re: Stuck Upgrading from 5.1.3 to 6.0
« Reply #5 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.

fmoreira86

  • Zen Apprentice
  • *
  • Posts: 31
  • Karma: +2/-0
    • View Profile
Re: Stuck Upgrading from 5.1.3 to 6.0
« Reply #6 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? :(

SamE

  • Zen Apprentice
  • *
  • Posts: 31
  • Karma: +2/-0
    • View Profile
Re: Stuck Upgrading from 5.1.3 to 6.0
« Reply #7 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.
« Last Edit: February 11, 2019, 08:37:08 pm by SamE »

maladrill

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Stuck Upgrading from 5.1.3 to 6.0
« Reply #8 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?

Laurent Dinclaux

  • Zen Monk
  • **
  • Posts: 82
  • Karma: +5/-0
    • View Profile
    • Gecka
Re: Stuck Upgrading from 5.1.3 to 6.0
« Reply #9 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 ...
Laurent

jacksonnguyen

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Stuck Upgrading from 5.1.3 to 6.0
« Reply #10 on: September 04, 2019, 12:50:05 pm »

I had the same situation as you last Saturday. Fortunately, the problem has been resolved
Web Designer : https://tungphat.com/thiet-ke-website . Thiet Ke Website Tung Phat

a.chirkov

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Stuck Upgrading from 5.1.3 to 6.0
« Reply #11 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

turalyon

  • Zen Apprentice
  • *
  • Posts: 42
  • Karma: +11/-0
    • View Profile
Re: Stuck Upgrading from 5.1.3 to 6.0
« Reply #12 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".

grolon

  • Zen Apprentice
  • *
  • Posts: 38
  • Karma: +2/-0
    • View Profile
Re: Stuck Upgrading from 5.1.3 to 6.0
« Reply #13 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
« Last Edit: September 22, 2021, 08:12:59 pm by grolon »

grolon

  • Zen Apprentice
  • *
  • Posts: 38
  • Karma: +2/-0
    • View Profile
Re: Stuck Upgrading from 5.1.3 to 6.0
« Reply #14 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