Author Topic: error updating zentyal-core  (Read 2110 times)

JLLEWELYN

  • Zen Monk
  • **
  • Posts: 65
  • Karma: +5/-0
    • View Profile
error updating zentyal-core
« on: August 04, 2020, 02:44:58 am »
Tengo este error en zentyal-core al actualizar los paquetes.
Code: [Select]
administrator@servidor:~$ sudo apt upgrade
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Calculando la actualización... Hecho
Los paquetes indicados a continuación se instalaron de forma automática y ya no son necesarios.
  libllvm9 linux-headers-4.15.0-111 linux-headers-4.15.0-111-generic
  linux-image-4.15.0-111-generic linux-modules-4.15.0-111-generic
  linux-modules-extra-4.15.0-111-generic
Utilice «sudo apt autoremove» para eliminarlos.
Se instalarán los siguientes paquetes NUEVOS:
  linux-headers-4.15.0-112 linux-headers-4.15.0-112-generic
  linux-image-4.15.0-112-generic linux-modules-4.15.0-112-generic
  linux-modules-extra-4.15.0-112-generic
Se actualizarán los siguientes paquetes:
  firefox grub-common grub-pc grub-pc-bin grub2-common libllvm10 libmysqlclient20
  librsvg2-2 librsvg2-common libseccomp2 linux-generic linux-headers-generic
  linux-image-generic linux-libc-dev mysql-server python3-apt python3-distupgrade
  ubuntu-release-upgrader-core zentyal-dhcp zentyal-dns zentyal-software
21 actualizados, 5 nuevos se instalarán, 0 para eliminar y 0 no actualizados.
16 no instalados del todo o eliminados.
Se necesita descargar 0 B/142 MB de archivos.
Se utilizarán 334 MB de espacio de disco adicional después de esta operación.
¿Desea continuar? [S/n] s
Preconfigurando paquetes ...
Configurando zentyal-core (6.1.6) ...
Connection DB Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
dpkg: error al procesar el paquete zentyal-core (--configure):
 installed zentyal-core package post-installation script subprocess returned error exit status 2
Se encontraron errores al procesar:
 zentyal-core
E: Sub-process /usr/bin/dpkg returned an error code (1)
administrator@servidor:~$ sudo zentyal-core --configure
sudo: zentyal-core: command not found

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: error updating zentyal-core
« Reply #1 on: August 04, 2020, 04:04:35 pm »
 :)

You shouldn't upgrade your Zentyal server from the command line (it's possible, but Zentyal uses some special options as Dpkg::Options:="--force-confdef" Dpkg::Options:="--force-confold" which modify the behavior of apt. If you want  learn about this, read your /var/log/apt/history.log files) Use the "software Management" module instead.

In your case, zentyal-core post-installation script throws an error. It can't connect to the MySQL server ( MySQL server is one of the most annoying dependencies in the zentyal-core package :P)

So you have to fix your MySQL server in order to fix your zentyal-core package.

First, you have to check if the MySQL server is running:

Code: [Select]
root@kh:~# systemctl status mysql
● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: en
   Active: active (running) since Tue 2020-08-04 15:37:43 CEST; 12min ago
 Main PID: 849 (mysqld)
    Tasks: 32 (limit: 4678)
   CGroup: /system.slice/mysql.service
           └─849 /usr/sbin/mysqld --daemonize --pid-file=/run/mysqld/mysqld.pid

ago 04 15:37:29 kh systemd[1]: Starting MySQL Community Server...
ago 04 15:37:43 kh systemd[1]: Started MySQL Community Server.

If this mysql service is down try starting it:

Code: [Select]
sudo systemctl start mysql
# check the service an other time to be sure that the MySQL is running

You can see the UNIX socket used by MySQL this way:

Code: [Select]
zenadmin@kh:~$ ss -unix | grep mysql
u_str ESTAB  0        0                      /var/run/mysqld/mysqld.sock 26047                                            * 24943 

PS: the command needed to configure an half-configured package is:

Code: [Select]
sudo dpkg --configure <package-name>

Let me know if you need some more detailed help.  ;)

Cheers!



- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,

assistencia@vscomp.com.br

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: error updating zentyal-core
« Reply #2 on: August 22, 2023, 11:05:06 pm »
Doncamilo obrigado!

Com os comandos sudo systemctl start mysql recuperei o acesso à interface web do meu zentyal.
Posteriormente tambem foi necessário um sudo systemctl start zentyal, pois os 2 serviços estavam parados.

Mas tenho outra instalação de zentyal que estou com os mesmos serviços parados e não estou conseguindo iniciar por ssh os serviços... bem estranho.