Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Installation and Upgrades / Zentyal 8 breaks when trying to update packages
« Last post by cursor on April 09, 2024, 08:16:24 pm »
I have a Zentyal 8 (Development) server running on a VM.  Whenever I try to upgrade any package via Software Management -> System Updates my installation breaks.  I get the following error:

The package installation has not finished correctly. More information on the logs
dkpg was interrupted, you must manually run 'sudo dpkg --configure  -a' to correct the problem.

It does not matter which package I select form the list of available updates, I always get this same error.  Running dpkg does not fix the problem:

dpkg: error processing package zentyal (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for dbus (1.12.20-2ubuntu4.1) ...
Errors were encountered while processing:
 zentyal-core
 zentyal-ntp
 zentyal-firewall
 zentyal-radius
 zentyal-software
 zentyal-samba
 zentyal-dns
 zentyal-network
 zentyal

I have to restore the VM to get everything working again but now I cannot upgrade anything.  What can I try to get updates working again?
22
Good morning,

Stuck there too...

sed: can't read /etc/apt/apt.conf.d/20auto-upgrades: No such file or directory <------- This file is provided by the .deb.package unattended-upgrades, which will be downloaded and installed manually.

dpkg: error processing package zentyal-core (--configure):
 installed zentyal-core package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 zentyal-core
E: Sub-process /usr/bin/dpkg returned an error code (1)


Solution:
cd /tmp
sudo apt download unattended-upgrades
sudo dpkg -i unattended-upgrades.deb (fill correct name of the pack downloaded previously)
sudo dpkg zentyal-core --configure


The stalled deb packs and unfinished configs have just gone after that,

HTH,

RSalles


23
I have it checked in the log configuration :access to samba, administration session, vpn. Try turning off others. CPU usage is  - one server ~40-55% ( primary - top display cpu use - user ~`1-10%, sys - 1-17%, idle 70-96% ), additional 3-10% . Next primary server 30-50% ( top display cpu use - user ~`1-10%, sys - 1-17%).

Maybe its bug in display ? Try in console : top
24
Thanks! I managed to update but it was not straightforward some packaged where left broken but i forced them to install and that worked for me. I noticed after update ubuntu and Zentyal 8.0 my CPU usage whas high almost 90 percent and it was caused by loggerd so i disabled all logs in Zentyal and the problem was gone. Think there must be a Bug with Zentyal log module?
25
Many thanks zyzio
27
Sorry for my english..

I managed to update 4 servers.
The problems I encountered were solved - in version 7.1.1 I installed the package  ( you need to install, if skip = problems with upgrade)
apt-get install unattended-upgrades apt-listchanges
dpkg-reconfigure -plow unattended-upgrades

Now using "upgrade now". If it finish, restart and check mysql is working:
systemctl status mysql.service

If not -> sudo mkdir -p /var/log/mysql/
sudo chown mysql:mysql -R /var/log/mysql
systemctl start mysql.service.
28
Installation and Upgrades / Looking for reassurance before upgrading 7.1.1 to 8.0
« Last post by trvaa on April 02, 2024, 05:47:19 pm »
After reading of problems both here and on github, can anyone confirm a successful upgrade from 7.1.1 to 8.0 using the "Upgrade Now" button on the Dashboard?
29
Hi scottdr,

I have had the same issues although I didn’t close any dialog boxes until I was sure it had finished all tasks. Eventually you have to reboot into the new server and antivirus was stoped but the rest was working. I managed to set the 20autostart and 50xxxx files to get to work, but the update process of zentyal-core never finished and is now stuck on expecting the unattended package which is not installed and can not be installed because of the unfinished installation proces of zentyal-core. I think that this is the bottleneck of all the problems.

I would advise to install the Debian unattended package before upgrading to Zentyal 8. Probably this will help to upgrade without issues. Once I have fixed my upgrade I will check this approach but maybe someone has a chance to test this theory before I can.

I also hope the the Zentyal community finds a way to finish the stuck unattended installation so we don’t have to fall back or restore to the earlier version.

C.
30
I wanted to upload a PDF attachment to show dialogue boxes with this report, but was unable to do so. The PDF was 179KB but there was no upload space.
Hope it helps



My attempt at carrying out an upgrade to Zentyal Version 8 from an up to date version of Zentyal 7.1.1
Platform: QEMU-KVM Hypervsisor host on HPE Proliant DL380 Gen9 running Ubuntu 22.04.4 LTS server with updates to 28th March 2024 including ESM updates.
VM 8vCPU, 8G Ram scsi drives on *.qcow2 2 x virtio bridge network connections

 
The dialogue below is misleading as it suggests that the Upgrade is finished and you can click close, but leave it open, In a separate shell monitor dpkg.log for progress ‘tail -f /var/log/dkpg.log’


 
 
Even though it will display ‘Finishing the upgrade’ watch the dpkg.log for the update finished message before clicking on ‘Close’
From dkpg.log
 
Click Close on Upgrading to Zentyal 8.0 dialogue and then reboot the system.
A stop job for Zentyal will delay the reboot for 1min 30sec
When the system restarted, the Zentyal logger daemon repeatedly stopped and started which might be a clue to issues ahead.
 
 
On restart, the Dashboard looked OK, but the Antivirus service failed to start. Also, the mysql service also failed due to permission issues on lock directory and missing log folder /var/log/mysql
This prevented the zentyal-core update script running to complete the install process.

Mar 29 11:23:28 hcs-zentyal6 systemd[1]: mysql.service: Start request repeated too quickly.
Mar 29 11:23:28 hcs-zentyal6 systemd[1]: mysql.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ The unit mysql.service has entered the 'failed' state with result 'exit-code'.
Mar 29 11:23:28 hcs-zentyal6 systemd[1]: Failed to start MySQL Community Server.
░░ Subject: A start job for unit mysql.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ A start job for unit mysql.service has finished with a failure.
░░ The job identifier is 9012 and the job result is failed.
Setting up zentyal-core (8.0.0) ...
Connection DB Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
dpkg: error processing package zentyal-core (--configure):
 installed zentyal-core package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 zentyal-core
E: Sub-process /usr/bin/dpkg returned an error code (1)

Had to create a folder for mysql /var/log/mysql and chown mysql to that folder for mysql to start
Now clamav failing
Unable to work out clamav issues
Removed Antivirus module from Zentyal and rebooted
Mysql failed again, so had to chown mysql /var/log/mysql
Setting up zentyal-core (8.0.0) ...
Synchronizing state of apparmor.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable apparmor
sed: can't read /etc/apt/apt.conf.d/20auto-upgrades: No such file or directory
dpkg: error processing package zentyal-core (--configure):
 installed zentyal-core package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 zentyal-core
E: Sub-process /usr/bin/dpkg returned an error code (1)
Removed Antivirus module, mailfilter and antivirus

Unable to process /etc/apt/apt.conf.d/20auto-upgrades: No such file or directory

Gave up!! Reverted VM to V7.1.1 with no outstanding updates as at 29th March 2024

Hope this helps somebody.

Thank you Zentyal for the community version.

Pages: 1 2 [3] 4 5 ... 10