Bug 21846

Summary: drakboot crashed (update-grub2 failed: at /usr/lib/libDrakX/any.pm line 622.)
Product: Mageia Reporter: Peter Potrowl <peter017>
Component: RPM PackagesAssignee: Mageia tools maintainers <mageiatools>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: marja11, peter017, thierry.vignaud, zen25000
Version: 6Keywords: NEEDINFO
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: drakxtools-17.88-1.mga6, grub2 CVE:
Status comment:
Attachments: journalctl -a | grep grub | grep RPM > journal.txt
journalctl -a --since="2017-09-19 09:00" --until="2017-09-19 11:00"

Description Peter Potrowl 2017-10-13 11:08:18 CEST
The "drakboot" program crashed. Drakbug-17.88 caught it.

Reconfiguring Grub in the Mageia Control Center. The crash happened when clicking the "Next" button of the 1st screen.

update-grub2 failed:  at /usr/lib/libDrakX/any.pm line 622.
	...propagated at /usr/libexec/drakboot line 49.
Perl's trace:
drakbug::bug_handler() called from /usr/libexec/drakboot:49

Theme name: Adwaita
Kernel version = 4.9.50-desktop-1.mga6
Distribution=Mageia release 6 (Official) for x86_64
CPU=AMD Ryzen 7 1700 Eight-Core Processor
Comment 1 Peter Potrowl 2017-10-13 11:10:02 CEST
NB: it also fails/crashes in the CLI:

[root@pwork peter]# drakboot --verbose
Too late to run INIT block at /usr/lib/perl5/vendor_perl/5.22.2/x86_64-linux-thread-multi/Glib/Object/Introspection.pm line 257.
Ignore the following Glib::Object::Introspection & Gtk3 warnings
Subroutine Gtk3::main redefined at /usr/lib/perl5/vendor_perl/5.22.3/Gtk3.pm line 525.
Ignore the following Glib::Object::Introspection & Gtk3 warnings
Subroutine Gtk3::main redefined at /usr/lib/perl5/vendor_perl/5.22.3/Gtk3.pm line 525.
Comment 2 Peter Potrowl 2017-10-13 11:11:42 CEST
[root@pwork peter]# lspcidrake -v
shpchp          : Advanced Micro Devices, Inc. [AMD]|Device 43b4 [BRIDGE_PCI] (vendor:1022 device:43b4) (rev: 02)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 1452 [BRIDGE_HOST] (vendor:1022 device:1452)
nvme            : Samsung Electronics Co Ltd|NVMe SSD Controller SM961/PM961 (vendor:144d device:a804 subv:144d subd:a801)
unknown         : Advanced Micro Devices, Inc. [AMD]|FCH LPC Bridge [BRIDGE_ISA] (vendor:1022 device:790e subv:1849 subd:ffff) (rev: 51)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 1452 [BRIDGE_HOST] (vendor:1022 device:1452)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 1452 [BRIDGE_HOST] (vendor:1022 device:1452)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 1461 [BRIDGE_HOST] (vendor:1022 device:1461)
iwlwifi         : Intel Corporation|Device 24fb [NETWORK_OTHER] (vendor:8086 device:24fb subv:8086 subd:2110) (rev: 10)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 1463 [BRIDGE_HOST] (vendor:1022 device:1463)
shpchp          : Advanced Micro Devices, Inc. [AMD]|Device 43b4 [BRIDGE_PCI] (vendor:1022 device:43b4) (rev: 02)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 1452 [BRIDGE_HOST] (vendor:1022 device:1452)
xhci_pci        : Advanced Micro Devices, Inc. [AMD]|USB3 Host Controller [SERIAL_USB] (vendor:1022 device:145c subv:1849 subd:ffff)
xhci_pci        : Advanced Micro Devices, Inc. [AMD]|USB 3.1 XHCI Controller [SERIAL_USB] (vendor:1022 device:43bb subv:1b21 subd:1142) (rev: 02)
shpchp          : Advanced Micro Devices, Inc. [AMD]|Device 1453 [BRIDGE_PCI] (vendor:1022 device:1453)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 1465 [BRIDGE_HOST] (vendor:1022 device:1465)
snd_hda_intel   : Advanced Micro Devices, Inc. [AMD/ATI]|Caicos HDMI Audio [Radeon HD 6450 / 7450/8450/8490 OEM / R5 230/235/235X OEM] [MULTIMEDIA_AUDIO_DEV] (vendor:1002 device:aa98 subv:174b subd:aa98)
shpchp          : Advanced Micro Devices, Inc. [AMD]|Device 43b2 [BRIDGE_PCI] (vendor:1022 device:43b2) (rev: 02)
i2c_piix4       : Advanced Micro Devices, Inc. [AMD]|FCH SMBus Controller [SERIAL_SMBUS] (vendor:1022 device:790b subv:1849 subd:ffff) (rev: 59)
snd_hda_intel   : Advanced Micro Devices, Inc. [AMD]|Device 1457 [MULTIMEDIA_AUDIO_DEV] (vendor:1022 device:1457 subv:1849 subd:1221)
shpchp          : Advanced Micro Devices, Inc. [AMD]|Device 43b4 [BRIDGE_PCI] (vendor:1022 device:43b4) (rev: 02)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 1467 [BRIDGE_HOST] (vendor:1022 device:1467)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 1452 [BRIDGE_HOST] (vendor:1022 device:1452)
shpchp          : Advanced Micro Devices, Inc. [AMD]|Device 1454 [BRIDGE_PCI] (vendor:1022 device:1454)
shpchp          : Advanced Micro Devices, Inc. [AMD]|Device 43b4 [BRIDGE_PCI] (vendor:1022 device:43b4) (rev: 02)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 1460 [BRIDGE_HOST] (vendor:1022 device:1460)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 145a (vendor:1022 device:145a)
shpchp          : Advanced Micro Devices, Inc. [AMD]|Device 43b4 [BRIDGE_PCI] (vendor:1022 device:43b4) (rev: 02)
igb             : Intel Corporation|I211 Gigabit Network Connection [NETWORK_ETHERNET] (vendor:8086 device:1539 subv:1849 subd:1539) (rev: 03)
shpchp          : Advanced Micro Devices, Inc. [AMD]|Device 1453 [BRIDGE_PCI] (vendor:1022 device:1453)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 1462 [BRIDGE_HOST] (vendor:1022 device:1462)
ccp             : Advanced Micro Devices, Inc. [AMD]|Device 1456 [CRYPT_OTHER] (vendor:1022 device:1456)
shpchp          : Advanced Micro Devices, Inc. [AMD]|Device 43b4 [BRIDGE_PCI] (vendor:1022 device:43b4) (rev: 02)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 1452 [BRIDGE_HOST] (vendor:1022 device:1452)
shpchp          : Advanced Micro Devices, Inc. [AMD]|Device 1453 [BRIDGE_PCI] (vendor:1022 device:1453)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 1455 (vendor:1022 device:1455)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 1464 [BRIDGE_HOST] (vendor:1022 device:1464)
Card:ATI Radeon HD 5000 to HD 6300 (radeon/fglrx): Advanced Micro Devices, Inc. [AMD/ATI]|Caicos XTX [Radeon HD 8490 / R5 235X OEM] [DISPLAY_VGA] (vendor:1002 device:6771 subv:174b subd:a01e)
shpchp          : Advanced Micro Devices, Inc. [AMD]|Device 1454 [BRIDGE_PCI] (vendor:1022 device:1454)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 43b7 [STORAGE_SATA] (vendor:1022 device:43b7 subv:1b21 subd:1062) (rev: 02)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 1450 [BRIDGE_HOST] (vendor:1022 device:1450 subv:1849 subd:1450)
unknown         : Advanced Micro Devices, Inc. [AMD]|FCH SATA Controller [AHCI mode] [STORAGE_SATA] (vendor:1022 device:7901) (rev: 51)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 1466 [BRIDGE_HOST] (vendor:1022 device:1466)
unknown         : Advanced Micro Devices, Inc. [AMD]|Device 1451 (vendor:1022 device:1451)
hub             : Linux 4.9.50-desktop-1.mga6 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
btusb           : Intel Corp.|Unknown [Wireless|Radio Frequency|Bluetooth] (vendor:8087 device:0aa7)
usbhid          : CHICONY|HP USB Multimedia Keyboard [Human Interface Device|Boot Interface Subclass|Keyboard] (vendor:04f2 device:0841)
usbhid          : Logitech|USB Optical Mouse [Human Interface Device|Boot Interface Subclass|Mouse] (vendor:046d device:c05a)
hub             : Linux 4.9.50-desktop-1.mga6 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0003)
hub             : Linux 4.9.50-desktop-1.mga6 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
hub             : Linux 4.9.50-desktop-1.mga6 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0003)
hid_generic     : CHICONY HP USB Multimedia Keyboard
hid_generic     : Logitech USB Optical Mouse
hid_generic     : CHICONY HP USB Multimedia Keyboard



[root@pwork peter]# blkid
/dev/sda1: LABEL="ROOT" UUID="e5bc6b47-82bd-4681-a12e-88d3ea90edf3" TYPE="ext4"
/dev/sda5: UUID="21c2ba87-c7a4-409d-a84e-b3085cc5ca1b" TYPE="crypto_LUKS"
/dev/sda6: UUID="78213c98-98a4-4f65-b8fd-d961ac57a98d" TYPE="crypto_LUKS"
/dev/sda7: UUID="1b4f430b-cbcc-4afa-8b43-5a64f3b95207" TYPE="crypto_LUKS"
/dev/nvme0n1: PTTYPE="dos"
/dev/nvme0n1p1: LABEL="SYSTEM" UUID="dde699e2-42f1-41a9-9627-c3f1ce9b90f5" TYPE="ext4"
/dev/nvme0n1p2: UUID="14b9bd0f-5c74-40b8-bc17-1cd8004f6c09" TYPE="swap"
/dev/nvme0n1p3: UUID="1919b1fa-8817-48b0-b864-76e6fd1af9ec" TYPE="crypto_LUKS"
/dev/mapper/crypt_nvme0n1p3: LABEL="SPYRIT" UUID="320d928d-030a-4a25-998e-30f839c2216c" TYPE="ext4"
/dev/mapper/crypt_sda5: LABEL="HOME" UUID="6c5062ea-932e-450f-81e1-b2aedd38af2a" TYPE="ext4"
/dev/mapper/crypt_sda6: LABEL="WORK" UUID="1b25e58c-4fca-4ac1-863c-d3fb7cc92017" TYPE="ext4"
/dev/mapper/crypt_sda7: LABEL="SAFE" UUID="111ee521-a9f5-4467-883c-87cf8bfb4542" TYPE="ext4"
Marja Van Waes 2017-10-13 11:16:07 CEST

Source RPM: drakxtools-17.88-1.mga6 => drakxtools-17.88-1.mga6, grub2
CC: (none) => marja11, zen25000
Summary: drakboot crashed => drakboot crashed (update-grub2 failed: at /usr/lib/libDrakX/any.pm line 622.)
Assignee: bugsquad => mageiatools

Comment 3 Thierry Vignaud 2017-10-13 12:00:27 CEST
What are you doing? switching from grub to grub2? Or just reconfiguring grub2?

What happens if you manually run as root:
update-grub2; echo $?

CC: (none) => thierry.vignaud
Keywords: (none) => NEEDINFO

Comment 4 Peter Potrowl 2017-10-13 14:09:34 CEST
I am trying to change de OS that will boot by default. This is done on the 2nd screen of drakboot but I can't access that 2nd screen.

[root@pwork peter]# update-grub2; echo $?
bash: update-grub2 : commande introuvable
127

So I did:

[root@pwork peter]# urpmi grub2-common
Afin de satisfaire les dépendances de « grub2bootloader[== 2.02-0.git10463.8.mga6] », un des paquetages suivants est nécessaire :
 1- grub2-2.02-0.git10463.8.mga6.x86_64 : Bootloader with support for Linux, Multiboot and more (à installer)
 2- grub2-efi-2.02-0.git10463.8.mga6.x86_64 : Boot-loader with support for EFI (à installer)
Que choisissez-vous ? (1-2) 1

And now:

[root@pwork peter]# update-grub2; echo $?                                                                                                                                                                                                    
Création du fichier de configuration GRUB…                                                                                                                                                                                                   
Image Linux trouvée : /boot/vmlinuz-4.9.50-desktop-1.mga6                                                                                                                                                                                    
Image mémoire initiale trouvée : /boot/initrd-4.9.50-desktop-1.mga6.img                                                                                                                                                                      
Image Linux trouvée : /boot/vmlinuz-4.9.43-desktop-1.mga6
Image mémoire initiale trouvée : /boot/initrd-4.9.43-desktop-1.mga6.img
Image Linux trouvée : /boot/vmlinuz-desktop
Image mémoire initiale trouvée : /boot/initrd-desktop.img
fait
0

After that, drakboot works fine.

[root@pwork peter]# drakboot 
Too late to run INIT block at /usr/lib/perl5/vendor_perl/5.22.2/x86_64-linux-thread-multi/Glib/Object/Introspection.pm line 257.
Ignore the following Glib::Object::Introspection & Gtk3 warnings
Subroutine Gtk3::main redefined at /usr/lib/perl5/vendor_perl/5.22.3/Gtk3.pm line 525.

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

      If you want to list systemd services use 'systemctl list-unit-files'.
      To see services enabled on particular target use
      'systemctl list-dependencies [target]'.

Failed to enable unit: No such file or directory

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

      If you want to list systemd services use 'systemctl list-unit-files'.
      To see services enabled on particular target use
      'systemctl list-dependencies [target]'.

I could change my boot priority.

Best regards
Comment 5 Marja Van Waes 2017-10-13 14:25:49 CEST
What is the output of, as root:

   journalctl -a | grep grub | grep RPM

(please attach the output if it's many lines)
Comment 6 Peter Potrowl 2017-10-13 14:30:07 CEST
Created attachment 9727 [details]
journalctl -a | grep grub | grep RPM > journal.txt

CC: (none) => peter017

Comment 7 Barry Jackson 2017-10-13 15:13:06 CEST
Comment on attachment 9727 [details]
journalctl -a | grep grub | grep RPM > journal.txt

Guess that explains it.

sept. 19 10:50:51 pwork [RPM][15078]: erase grub2-common-2.02-0.git10463.8.mga6.x86_64: success
Comment 8 Marja Van Waes 2017-10-13 15:15:19 CEST
Comment on attachment 9727 [details]
journalctl -a | grep grub | grep RPM > journal.txt

Thanks :-)

It amazes me that grub2-common-2.02-0.git10463.8.mga6.x86_64 could be erased on Sept. 19.

Do you mind attaching log.txt that is the result of running, as root:

  journalctl -a --since="2017-09-19 09:00" --until="2017-09-19 11:00" > log.txt

If it's too large to attach, then please compress like this:
  xz log.txt
Comment 9 Peter Potrowl 2017-10-13 15:21:37 CEST
Created attachment 9728 [details]
journalctl -a --since="2017-09-19 09:00" --until="2017-09-19 11:00"
Comment 10 Peter Potrowl 2017-10-13 15:23:21 CEST
I may have an explanation: 2-3 weeks ago, I changed my graphic card and my system was "broken" meaning that I could not start in graphics mode anymore.

So, I reinstalled Mageia 6 from a USB drive without reformatting my root partition. After that, my system was working fine again, but I had to reinstall some RPM that were gone...

Regards
Comment 11 Marja Van Waes 2017-10-13 15:32:59 CEST
(In reply to Peter Potrowl from comment #9)
> Created attachment 9728 [details]
> journalctl -a --since="2017-09-19 09:00" --until="2017-09-19 11:00"

The transaction in which grub2-common was removed, was transcation number 15078. That transaction started with:

sept. 19 10:50:30 pwork urpme[15078]: called with: --auto-orphans

Please read https://wiki.mageia.org/en/Removing_packages#Warning

Status: UNCONFIRMED => RESOLVED
Resolution: (none) => INVALID

Comment 12 Marja Van Waes 2017-10-13 16:01:15 CEST
Btw, Peter, please don't stop filing bug reports because one is closed as invalid.

It just means that there is nothing Mageia can fix and that what happened is expected behaviour.

You're in good company, 13 of the bugs I filed were closed as invalid, too ;-)