Hello Team
Yes unfortunately sometimes these issues occur. Really nothing to do with the iso per se. Mostly related to an interruption in dpkg. This is why the tool suggests --configure -a in order to check and fix inconsistencies in the packages.
Of course, we can check to see where the update failed and see what we can do to improve.
We will need logs to understand what happened on these instances.
Can you please collect the following logs:
Bash:
/var/log/dpkg.log
/var/log/apt/term.log
/var/log/syslog
/var/log/postgresql
/var/lib/3cxpbx/Instance1/Data/Logs/
/var/lib/3cxpbx/Data/Logs/
+ the output of journal -xe
Lets agree that any time you have a failure, send a support ticket and add this info.
Added a bash script that collects all these logs for you. A directory called collected_logs is created and copies the specified log files into it. + captures the output of journal -xe and saves it to a file within the same directory.
Bash:
#!/bin/bash
output_dir="collected_logs"
mkdir -p "$output_dir"
log_files=(
"/var/log/dpkg.log"
"/var/log/apt/term.log"
)
log_directories=(
"/var/log/syslog"
"/var/log/postgresql"
"/var/lib/3cxpbx/Instance1/Data/Logs/"
"/var/lib/3cxpbx/Data/Logs/"
)
# Copy log files to the output directory
for log_file in "${log_files[@]}"; do
if [ -e "$log_file" ]; then
cp "$log_file" "$output_dir/"
else
echo "File not found: $log_file"
fi
done
# Recursively copy contents of log directories to the output directory
for log_dir in "${log_directories[@]}"; do
if [ -e "$log_dir" ]; then
cp -r "$log_dir" "$output_dir/"
else
echo "Directory not found: $log_dir"
fi
done
# journalctl
journalctl -xe > "$output_dir/journalctl_output.txt"
echo "Logs collected successfully. Check the '$output_dir' directory."
1. nano collect_logs.sh and paste script
2. Run chmod to make an exe
3. execute
You should end up with this
View attachment 38654
Package everything and send over for investigation. Upload them somewhere and send me link in pm to download. Or if you have support contracts, open a support request and send us this information.
At your disposal on this one