• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Upgrading to Linux Kernel 2.6.32-358.6.2.el6.x86_64 or higher not possible

tmighty

New Pleskian
Hello!

I am trying to upgrade the Linux kernel of my vServer.

In general, all works fine, but during the installation I get the following 2 errors, and the update will not take place, the linux kernel stays the old version.

"grubby fatal error: unable to find a suitable template"

and

": command not foundel: line 4:"

My symbolic grub.conf file looks like this:
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
serial --unit=0 --speed=57600
terminal --timeout=10 serial console

timeout=5

title CentOS (2.6.32-358.6.1.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-358.6.1.el6.x86_64 ro root=/dev/sda1 console=tty0 console=ttyS0,57600
	initrd /boot/initramfs-2.6.32-358.6.1.el6.x86_64.img

Can anybody help? Thank you.

Below I have attached the entire log of my update attempt:

Code:
login as: root
root@XXXXXXX's password:
Last login: Wed Jul 30 20:27:16 2014 from ip-84-118-114-134.unity-media.net
[root@XXXXXXX ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base                                                     | 3.7 kB     00:00
extras                                                   | 3.4 kB     00:00
updates                                                  | 3.4 kB     00:00
updates/primary_db                                       | 4.7 MB     00:00
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package ca-certificates.noarch 0:2013.1.95-65.1.el6_5 will be updated
---> Package ca-certificates.noarch 0:2014.1.98-65.0.el6_5 will be an update
---> Package kernel.x86_64 0:2.6.32-431.23.3.el6 will be installed
---> Package kernel-devel.x86_64 0:2.6.32-431.23.3.el6 will be installed
---> Package kernel-firmware.noarch 0:2.6.32-431.20.5.el6 will be updated
---> Package kernel-firmware.noarch 0:2.6.32-431.23.3.el6 will be an update
---> Package kernel-headers.x86_64 0:2.6.32-431.20.5.el6 will be updated
---> Package kernel-headers.x86_64 0:2.6.32-431.23.3.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch        Version                    Repository    Size
================================================================================
Installing:
 kernel               x86_64      2.6.32-431.23.3.el6        updates       28 M
 kernel-devel         x86_64      2.6.32-431.23.3.el6        updates      8.8 M
Updating:
 ca-certificates      noarch      2014.1.98-65.0.el6_5       updates      1.1 M
 kernel-firmware      noarch      2.6.32-431.23.3.el6        updates       13 M
 kernel-headers       x86_64      2.6.32-431.23.3.el6        updates      2.9 M

Transaction Summary
================================================================================
Install       2 Package(s)
Upgrade       3 Package(s)

Total download size: 54 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): ca-certificates-2014.1.98-65.0.el6_5.noarch.rpm   | 1.1 MB     00:00
(2/5): kernel-2.6.32-431.23.3.el6.x86_64.rpm             |  28 MB     00:00
(3/5): kernel-devel-2.6.32-431.23.3.el6.x86_64.rpm       | 8.8 MB     00:00
(4/5): kernel-firmware-2.6.32-431.23.3.el6.noarch.rpm    |  13 MB     00:00
(5/5): kernel-headers-2.6.32-431.23.3.el6.x86_64.rpm     | 2.9 MB     00:00
--------------------------------------------------------------------------------
Total                                            43 MB/s |  54 MB     00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : kernel-firmware-2.6.32-431.23.3.el6.noarch                   1/8
  Installing : kernel-2.6.32-431.23.3.el6.x86_64                            2/8
: command not foundel: line 4:
grubby fatal error: unable to find a suitable template
  Installing : kernel-devel-2.6.32-431.23.3.el6.x86_64                      3/8
: command not foundel: line 4:
  Updating   : kernel-headers-2.6.32-431.23.3.el6.x86_64                    4/8
  Updating   : ca-certificates-2014.1.98-65.0.el6_5.noarch                  5/8
  Cleanup    : kernel-firmware-2.6.32-431.20.5.el6.noarch                   6/8
  Cleanup    : kernel-headers-2.6.32-431.20.5.el6.x86_64                    7/8
  Cleanup    : ca-certificates-2013.1.95-65.1.el6_5.noarch                  8/8
  Verifying  : ca-certificates-2014.1.98-65.0.el6_5.noarch                            1/8
  Verifying  : kernel-headers-2.6.32-431.23.3.el6.x86_64                              2/8
  Verifying  : kernel-devel-2.6.32-431.23.3.el6.x86_64                                3/8
  Verifying  : kernel-firmware-2.6.32-431.23.3.el6.noarch                             4/8
  Verifying  : kernel-2.6.32-431.23.3.el6.x86_64                                      5/8
  Verifying  : kernel-firmware-2.6.32-431.20.5.el6.noarch                             6/8
  Verifying  : ca-certificates-2013.1.95-65.1.el6_5.noarch                            7/8
  Verifying  : kernel-headers-2.6.32-431.20.5.el6.x86_64                              8/8

Installed:
  kernel.x86_64 0:2.6.32-431.23.3.el6      kernel-devel.x86_64 0:2.6.32-431.23.3.el6

Updated:
  ca-certificates.noarch 0:2014.1.98-65.0.el6_5
  kernel-firmware.noarch 0:2.6.32-431.23.3.el6
  kernel-headers.x86_64 0:2.6.32-431.23.3.el6

Complete!
[root@XXXXXXX ~]# shutdown -rf now
[root@XXXXXXX ~]#
Broadcast message from [email protected]
        (/dev/pts/0) at 17:30 ...

The system is going down for reboot NOW!
login as: root
Last login: Fri Aug  1 17:26:17 2014 from ip-XXXXXXX.unity-media.net
[root@XXXXXXX ~]# uname -a
Linux XXXXXXX.onlinehome-server.info 2.6.32-358.6.1.el6.x86_64 #1 SMP Tue Apr 23 19:29:00 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[root@XXXXXXX ~]#
 
Does anybody think that the empty lines in grub.conf may be the problem? I guess not. I removed them, the system boots fine, but the update is still not possible, resulting in the 2 errors I mentioned above.
 
Last edited:
Hi, I have the same problem (grubby fatal error: unable to find a suitable template) from some months; With CentOS 6+Plesk 11.x every kernel update, with CentOS 6+ Plesk 12.x every kernel update ...
More links about "grubby fatal error: unable to find a suitable template";

https://www.centos.org/forums/viewtopic.php?t=31723 I have tried "Template Stanza" but dont work for me
http://www.itekhost.net/grubby-fatal-error/ I have updated the kernel without the Grubby Fatal Error, but I think that this isn't the best solution...
https://www.centos.org/forums/viewtopic.php?f=13&t=47547 It's seem that not work with UPDATEDEFAULT=yes
http://centos.distrosfaqs.org/centos/grubby-fatal-error-unable-to-find-a-suitable-template/ ...

My checks...

[root]# ls -la /etc/grub.conf
lrwxrwxrwx 1 root root 22 Sep 5 2012 /etc/grub.conf -> ../boot/grub/grub.conf
[root]# vim /boot/grub/menu.lst
[root]# vim /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
serial --unit=0 --speed=57600
terminal --timeout=10 serial console

timeout=5

title CentOS (2.6.32-431.17.5.el6.x86_64)
root (hd0,0)
kernel /boot/vmlinuz-2.6.32-431.20.5.el6.x86_64 ro root=/dev/sda1 console=tty0 console=ttyS0,57600
initrd /boot/initramfs-2.6.32-431.20.5.el6.x86_64.img





[root]# grubby --version
grubby version 7.0.15
[root]# grub --version
grub (GNU GRUB 0.97)
[root]# uname -a
Linux sxxxxxx.onlinehome-server.info 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Any other solution?
 
Last edited:
Yes, and I contacted with 1&1 with this info but they said me "We have others servers with same configuration and without "grubby fatal error: unable to find a suitable template")..." and they didn't solved it.

Everybody with "grubby fatal error: unable to find a suitable template" have 1&1 servers?
 
Back
Top