Announcement

Collapse
No announcement yet.

CloudLinux stuck: Reboot to upgrade kernel

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CloudLinux stuck: Reboot to upgrade kernel

    I'm having trouble with CloudLinux, saying I need to reboot my system to update the kernel.

    After rebooting, the prompt continually remains.

    Steps I've taken to resolve:

    1. Checked my other server with CL thats working fine. I ran uname -r on the working server and it says:
    4.18.0-477.15.1.lve.2.el8.x86_64

    2. Check this server and I run uname -r and it says:
    4.18.0-477.21.1.el8_8.x86_64

    3. OK, so I need to downgrade the kernel.

    4. I enter: grubby --set-default "/boot/vmlinuz-4.18.0-477.15.1.lve.2.el8.x86_64" and I get an error:

    grep: /boot/grub2/grubenv: No such file or directory
    grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such file or directory.
    The default is /boot/loader/entries/9deea67894474409aac46b279c5f4ed9-4.18.0-477.15.1.lve.2.el8.x86_64.conf with index 1 and kernel /boot/vmlinuz-4.18.0-477.15.1.lve.2.el8.x86_64

    5. OK, I look in this forum and find this topic: https://forum.cloudlinux.com/forum/c...kernel-problem and I try..
    https://forum.cloudlinux.com/forum/c...l-problemuname -r

    rpm -qa| grep kernel​

    grub2-mkconfig -o /etc/grub2.cfg
    grub2-mkconfig -o /etc/grub2-efi.cfg
    grub2-mkconfig -o /boot/grub2/grub.cfg
    grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg​

    rsync -avP /boot/efi/EFI/centos/ /boot/efi/EFI/almalinux/
    grubby --set-default /boot/vmlinuz-4.18.0-477.13.1.lve.1.el8.x86_64
    cp -rp /boot/efi/EFI/almalinux/grubenv /boot/efi/EFI/centos/grubenv​

    and I get this error:

    kernel-4.18.0-477.21.1.el8_8.x86_64
    kernel-core-4.18.0-477.21.1.el8_8.x86_64
    kernel-4.18.0-477.15.1.lve.2.el8.x86_64
    kernel-tools-4.18.0-477.15.1.lve.2.el8.x86_64
    kernel-tools-libs-4.18.0-477.15.1.lve.2.el8.x86_64
    kernel-headers-4.18.0-477.15.1.lve.2.el8.x86_64
    kernel-modules-4.18.0-477.15.1.lve.2.el8.x86_64
    kernel-modules-4.18.0-477.10.1.el8_8.x86_64
    kernel-4.18.0-477.10.1.el8_8.x86_64
    kernel-modules-4.18.0-477.21.1.el8_8.x86_64
    kernel-core-4.18.0-477.10.1.el8_8.x86_64
    kernel-core-4.18.0-477.15.1.lve.2.el8.x86_64
    [root@firefly ~]# grub2-mkconfig -o /etc/grub2.cfg
    /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such file or directory.
    Generating grub configuration file ...

    /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such file or directory.
    [root@firefly ~]# grub2-mkconfig -o /etc/grub2-efi.cfg
    /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such file or directory.
    Generating grub configuration file ...
    /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such file or directory.
    [root@firefly ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
    /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such file or directory.
    Generating grub configuration file ...
    /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such file or directory.
    [root@firefly ~]# grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg​
    /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such file or directory.
    /sbin/grub2-mkconfig: line 274: /boot/efi/EFI/centos/grub.cfg​.new: No such file or directory
    [root@firefly ~]#
    [root@firefly ~]# rsync -avP /boot/efi/EFI/centos/ /boot/efi/EFI/almalinux/
    sending incremental file list
    rsync: change_dir "/boot/efi/EFI/centos" failed: No such file or directory (2)

    sent 20 bytes received 12 bytes 64.00 bytes/sec
    total size is 0 speedup is 0.00
    rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]

    6. OK, so I will open a support ticket with CL. But when I create an account, the password email never arrives.

    7. So now I'm here, at my wits end. I wish you guys would streamline this installation better. It's been frustrating. I purchased the CL license through cPanel and even they have no idea.

    ---

    Server Specs:

    OVH provider, bare metal, AlmaLinux8 + cPanel, upgraded to CloudLinux using:

    wget https://repo.cloudlinux.com/cloudlin...s/cln/cldeploy
    sh cldeploy -i
    reboot​​​​




    Click image for larger version

Name:	Screenshot 2023-08-24 at 11.55.33 AM.png
Views:	1333
Size:	55.3 KB
ID:	39443

  • #2
    Thanks for sharing these solutions. They help to solve my problem.

    Comment


    • #3
      Hi,
      have you fix the problem, if yes, how? i have the same broblem.

      Comment

      Working...
      X