AlmaLinux8 update error
Hi team,
We are trying to upgrade our WHM system to AlmaLinux 8 from CentOS v7.9.2009. We performed a test upgrade on a backup of our server so that if everything goes well, we can repeat the process on the production server. However, the upgrade failed on the backup server.
During the process, after updating to AlmaLinux 8, we noticed that it remains stuck for a significant amount of time at an intermediate point in the upgrade, while booting the system:
[ 8.764378] selinux-autorelabel[9841]: *** Warning -- SELinux targeted policy relabel is required.
[ 8.766880] selinux-autorelabel[9841]: *** Relabeling could take a very long time, depending on file system size and speed of hard drives.
[ 8.766386] selinux-autorelabel[9841]: *** system size and speed of hard drives.
[ 30.691439] selinux-autorelabel[9941]: Warning: Skipping the following R/O filesystems: /sys/fs/cgroup
[ 30.692365] selinux-autorelabel[9941]: Relabeling /boot /dev /dev/hugepages /dev/mqueue /dev/pts /dev/shm /home /run /sys /sys/fs/cgroup/blkio /sys/fs/cgroup/cpu,cpuacct /sys/fs/cgroup/cpuset /sys/fs/cgroup/devices /sys/fs/cgroup/freezer /sys/fs/cgroup/hugetlb /sys/fs/cgroup/memory /sys/fs/cgroup/net_cls,net_prio /sys/fs/cgroup/perf_event /sys/fs/cgroup/pids /sys/fs/cgroup/rdma /sys/fs/cgroup/systemd /sys/fs/pstore /sys/kernel/debug /sys/kernel/tracing
[ 56.681362] selinux-autorelabel[11628]: /sbin/setfiles: conflicting specifications for /var/spool/plymouth/boot.log and /var/log/boot.log, using system_u:object_r:plymouthd_var_log_t:s0.
After staying at this point for 2:30 hours, we decided to cancel the process by forcing the machine to shut down. After rebooting, it returned to the same point. After waiting several minutes, the following messages appeared:
[ 261.051148] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-revert and /usr/local/cpanel/3rdparty/libexec/git-core/git-revert: bin_t:s0.
[ 261.051144] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-rm and /usr/local/cpanel/3rdparty/libexec/git-core/git-rm: bin_t:s0.
[ 261.051140] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-send-pack and /usr/local/cpanel/3rdparty/libexec/git-core/git-send-pack: bin_t:s0.
[ 261.059543] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-shortlog and /usr/local/cpanel/3rdparty/libexec/git-core/git-shortlog: bin_t:s0.
[ 261.062437] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-show and /usr/local/cpanel/3rdparty/libexec/git-core/git-show: bin_t:s0.
[ 261.063540] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-show-branch and /usr/local/cpanel/3rdparty/libexec/git-core/git-show-branch: bin_t:s0.
[ 261.065391] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-show-ref and /usr/local/cpanel/3rdparty/libexec/git-core/git-show-ref: bin_t:s0.
[ 261.068091] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-stage and /usr/local/cpanel/3rdparty/libexec/git-core/git-stage: bin_t:s0.
[ 261.073655] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-status and /usr/local/cpanel/3rdparty/libexec/git-core/git-status: bin_t:s0.
[ 261.073181] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-stripspace and /usr/local/cpanel/3rdparty/libexec/git-core/git-stripspace: bin_t:s0.
[ 261.073810] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-submodule--helper and /usr/local/cpanel/3rdparty/libexec/git-core/git-submodule--helper: bin_t:s0.
[ 261.073810] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-symbolic-ref and /usr/local/cpanel/3rdparty/libexec/git-core/git-symbolic-ref: bin_t:s0.
[ 261.073810] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-tag and /usr/local/cpanel/3rdparty/libexec/git-core/git-tag: bin_t:s0.
[ 261.073810] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-unpack-file and /usr/local/cpanel/3rdparty/libexec/git-core/git-unpack-file: bin_t:s0.
[ 261.073810] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-unpack-objects and /usr/local/cpanel/3rdparty/libexec/git-core/git-unpack-objects: bin_t:s0.
[ 261.073810] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-update-index and /usr/local/cpanel/3rdparty/libexec/git-core/git-update-index: bin_t:s0.
[ 261.073810] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-update-ref and /usr/local/cpanel/3rdparty/libexec/git-core/git-update-ref: bin_t:s0.
[ 261.073810] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-update-server-info and /usr/local/cpanel/3rdparty/libexec/git-core/git-update-server-info: bin_t:s0.
[ 261.073810] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-upload-archive and /usr/local/cpanel/3rdparty/libexec/git-core/git-upload-archive: bin_t:s0.
[ 261.073810] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-upload-pack and /usr/local/cpanel/3rdparty/libexec/git-core/git-upload-pack: bin_t:s0.
[ 261.073810] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-var and /usr/local/cpanel/3rdparty/libexec/git-core/git-var: bin_t:s0.
[ 261.073810] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-verify-commit and /usr/local/cpanel/3rdparty/libexec/git-core/git-verify-commit: bin_t:s0.
[ 261.073810] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-verify-tag and /usr/local/cpanel/3rdparty/libexec/git-core/git-verify-tag: bin_t:s0.
[ 261.073810] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-whatchanged and /usr/local/cpanel/3rdparty/libexec/git-core/git-whatchanged: bin_t:s0.
[ 261.073810] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-commit-graph and /usr/local/cpanel/3rdparty/libexec/git-core/git-commit-graph: bin_t:s0.
[ 261.073810] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-switch and /usr/local/cpanel/3rdparty/libexec/git-core/git-switch: bin_t:s0.
[ 261.073810] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-hook and /usr/local/cpanel/3rdparty/libexec/git-core/git-hook: bin_t:s0.
[ 261.073810] selinux-autorelabel[16281]: /sbin/setfiles: conflicting specifications for /usr/local/cpanel/3rdparty/libexec/git-core/git-diagnose and /usr/local/cpanel/3rdparty/libexec/git-core/git-diagnose: bin_t:s0.
Information about our server:
[root@h3 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs 7.8G 8.0K 7.8G 1% /dev/shm
tmpfs 7.8G 90M 7.7G 2% /run
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/mapper/cl-root 50G 47G 3.3G 94% /
/dev/vda1 1014M 242M 773M 24% /boot
/dev/mapper/cl-home 1.5T 1.2T 262G 82% /home
/dev/loop0 2.2G 3.5M 2.0G 1% /tmp
172.20.10.10:/volume1/EPGs 26T 25T 319G 99% /home/telfysky/public_html/EPGs
172.20.3.39:/volume2/backupH3 15T 1.6T 13T 11% /mnt/backup2
tmpfs 1.6G 0 1.6G 0% /run/user/0
Virtual machine on oVirt with the following specifications:
RAM: 16GB
CPU Cores: 16
Is it normal for this point in the upgrade to take so long?
Is there a way to skip or optimize this step? We cannot afford to leave our customers without email and services for such a long time.
Thanks in advance,
Best regards.
-
Disable selinux before the upgrade. Edit /etc/sysconfig/selinux file and change the status to disabled then reboot the server to take affect and only then start the upgrade.
Andrew N. - cPanel Plesk VMWare Certified Professional
Do you need immediate assistance? 20 minutes response time!* Open a ticket
EmergencySupport - Professional Server Management and One-time Services0
Please sign in to leave a comment.
Comments
1 comment