Bug 15112

Summary: Mageia 4.1 does not poweroff or reboot, but hangs
Product: Mageia Reporter: macxi <terraagua>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED OLD QA Contact:
Severity: major    
Priority: Normal CC: mageia, marja11
Version: 4   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description macxi 2015-01-22 10:55:56 CET
Description of problem: 
The Mageia 4 does not close or restart (Mageia 4.1 updated until January 21, 2015).
This error happens in Mageia 4.1 installed on the Desktop, but that does not occur in Mageia installed on the notebook.


Version-Release number of selected component (if applicable):
kernel-desktop-3.14.27-1.mga4-1-1.mga4.x86_64

How reproducible:
Every time I try to turn off the Mageia

Steps to Reproduce:
1.
2.
3.


Reproducible: 

Steps to Reproduce:
Comment 1 macxi 2015-01-22 21:21:31 CET
A first installation of Mageia 4.0, updated to 4.1.
When I try to reboot, Mageia freezes in "Checking for new hardware." I can turn off with the Ctrl + Alt + Del shortcut

Another installation of Mageia 4.1.
When I try to reboot, Mageia freezes in "Starting LSB: network monitoring daemon". I can turn off with the Ctrl + Alt + Del shortcut. 

In this same computer are installed Mageia 5 and the Mageia 3 and turn off and restart normally

Another installation of Mageia 4.0 on a notebook, turn off or reset normally.
Comment 2 Marja Van Waes 2015-01-22 21:42:24 CET
I vaguely remember having seen a similar bug report, or report on IRC, or a mail.

Does this happen regardless of how you turn Mageia 4 off or reboot it:

* in a konsole/terminal with the "poweroff" and "reboot" commands
* same on a text tty
* in your Desktop Environment (which one), by clicking ...? and ...?

CC: (none) => marja11
Summary: Mageia 4.1 does not turn off => Mageia 4.1 does not poweroff or reboot, but hangs

Comment 3 macxi 2015-01-23 10:31:24 CET
In both the Mageias  Mageia 4.0  and 4.1 desktop, typing the command "poweroff" or "reboot" in the terminal, a window appears with the warning: "Could not find the selected program"
Comment 4 Marja Van Waes 2015-01-23 18:09:01 CET
(In reply to macxi macxi from comment #3)
> In both the Mageias  Mageia 4.0  and 4.1 desktop, typing the command
> "poweroff" or "reboot" in the terminal, a window appears with the warning:
> "Could not find the selected program"

ouch!

What is the output of:

ls -al /usr/bin | grep systemctl


cc'ing Colin, because regardless of whether the output is what I think it should be, or not, I won't understand what is going on.

CC: (none) => mageia

Comment 5 macxi 2015-01-24 10:26:42 CET
Marja, 
In both installations, Mageia 4.0 and 4.1, the result was the same:

[root@localhost ~]# ls -al /usr/bin | grep systemctl
-rwxr-xr-x  1 root   root       329040 Abr 16  2014 systemctl*
Comment 6 Marja Van Waes 2015-01-24 10:45:05 CET
(In reply to macxi macxi from comment #5)
> Marja, 
> In both installations, Mageia 4.0 and 4.1, the result was the same:
> 
> [root@localhost ~]# ls -al /usr/bin | grep systemctl
> -rwxr-xr-x  1 root   root       329040 Abr 16  2014 systemctl*

Maybe I'm wrong to think that it should also show links, like in the output below, I only checked in cauldron and don't have a Mga4 at hand now:

lrwxrwxrwx   1 root root           16 Nov 10 15:40 halt -> ../bin/systemctl*
lrwxrwxrwx   1 root root           16 Nov 10 15:40 poweroff -> ../bin/systemctl*
lrwxrwxrwx   1 root root           16 Nov 10 15:40 reboot -> ../bin/systemctl*
-rwxr-xr-x   1 root root       560856 Nov 10 15:40 systemctl*

Do you mind checking your Mga4 notebook? (the one where reboot and poweroff works well)
Comment 7 Marja Van Waes 2015-01-24 10:46:51 CET
or. alternatively, what do the following commands show?

ls -al /usr/bin | grep reboot
ls -al /usr/bin | grep poweroff
Comment 8 macxi 2015-01-24 11:46:03 CET
Mageia 3, Mageia 4.1 (notebook) and Mageia 5 (beta): 

[mageia5@localhost ~]$ ls -al /usr/bin | grep systemctl
lrwxrwxrwx   1 root   root           16 Nov 10 12:40 halt -> ../bin/systemctl*
lrwxrwxrwx   1 root   root           16 Nov 10 12:40 poweroff -> ../bin/systemctl*
lrwxrwxrwx   1 root   root           16 Nov 10 12:40 reboot -> ../bin/systemctl*
-rwxr-xr-x   1 root   root       560856 Nov 10 12:40 systemctl*
[mageia5@localhost ~]$ 

[mageia5@localhost ~]$ ls -al /usr/bin | grep reboot
lrwxrwxrwx   1 root   root           16 Nov 10 12:40 reboot -> ../bin/systemctl*
[magia5@localhost ~]$ ls -al /usr/bin | grep poweroff
lrwxrwxrwx   1 root   root           16 Nov 10 12:40 poweroff -> ../bin/systemctl*
[mageia5@localhost ~]$ 


Mageia 4.0 and Mageia 4.1 (Desktop):

[mageia4@localhost ~]$ ls -al /usr/bin | grep systemctl
-rwxr-xr-x  1 root   root       329040 Abr 16  2014 systemctl*
[mageia4@localhost ~]$ ls -al /usr/bin | grep reboot
lrwxrwxrwx  1 root   root           13 Dez 28 13:31 reboot -> consolehelper*
[mageia4@localhost ~]$ ls -al /usr/bin | grep poweroff
lrwxrwxrwx  1 root   root           13 Dez 28 13:31 poweroff -> consolehelper*
[mageia4@localhost ~]$
Comment 9 Marja Van Waes 2015-01-24 14:15:07 CET
Thanks for checking it in all those installs, Macxi :-)

I suppose that letting reboot, poweroff and halt link to systemctl instead of to consolehelper fixes the problem?

If that fixes it, we still need to find out why those links weren't the same as in the Mageia installs without this bug.

If you did a classical install, then please attach /root/drakx/report.bug.xz of an install with the bug (check the date if it was an upgrade install)
Comment 10 macxi 2015-01-25 23:29:40 CET
Marja,

1 - I made the first installation of Mageia 4.0 Alpha 1 KDE (Desktop), with the ISO/media Mageia 4.0 Alpha 1, LiveDVD KDE 64-bit. 
--> This installation turn off and reboot normally, without error.  
Is updated with the kernel-desktop-3.14.27-1.mga4-1-1.mga4.x86_64
I checked in the  /root/drakx/ and only has the updates.log file

[mageia4@localhost ~]$ ls -al /usr/bin | grep systemctl
lrwxrwxrwx   1 root   root   16 Nov 10 12:40 halt -> ../bin/systemctl*
lrwxrwxrwx   1 root   root   16 Nov 10 12:40 poweroff -> ../bin/systemctl*
lrwxrwxrwx   1 root   root   16 Nov 10 12:40 reboot -> ../bin/systemctl*
-rwxr-xr-x   1 root   root   560856 Nov 10 12:40 systemctl*
[mageia4@localhost ~]$ 

2 - I made the second installation of Mageia 4.0 KDE (Notebook), with the ISO/media Mageia 4.0, 64-bit KDE (I do not remember if I used the LiveDVD KDE or DVD Classic).
--> This installation turn off and reboot normally, without error. 
Is updated with the kernel-desktop-3.14.27-1.mga4-1-1.mga4.x86_64

[mageia4@localhost ~]$ ls -al /usr/bin | grep systemctl
lrwxrwxrwx   1 root   root   16 Nov 10 12:40 halt -> ../bin/systemctl*
lrwxrwxrwx   1 root   root   16 Nov 10 12:40 poweroff -> ../bin/systemctl*
lrwxrwxrwx   1 root   root   16 Nov 10 12:40 reboot -> ../bin/systemctl*
-rwxr-xr-x   1 root   root   560856 Nov 10 12:40 systemctl*
[mageia4@localhost ~]$ 

the and the directory /root/drakx/ has the following files:

/drakx/README
/drakx/auto_inst.cfg.pl
/drakx/ddebug.log
/drakx/install.log
/drakx/package_list.pl
/drakx/replay_install.img
/drakx/report.bug.xz
/drakx/stage1.log

3 - I made the third installation of Mageia 4.0 KDE (Desktop), with the ISO/media Mageia 4.0, (I do not remember if I used the LiveDVD KDE ISO/media, 64-bit or DVD Media Classic). Is updated with the kernel-desktop-3.14.27-1.mga4-1-1.mga4.x86_64.
-->  This installation do not turn off or reboot properly.
I checked in the /root/drakx/ and only has the updates.log file

[mageia4@localhost ~]$ ls -al /usr/bin | grep systemctl
-rwxr-xr-x  1 root   root       329040 Abr 16  2014 systemctl*
[mageia4@localhost ~]$ ls -al /usr/bin | grep reboot
lrwxrwxrwx  1 root   root           13 Dez 28 13:31 reboot -> consolehelper*
[mageia4@localhost ~]$ ls -al /usr/bin | grep poweroff
lrwxrwxrwx  1 root   root           13 Dez 28 13:31 poweroff -> consolehelper*
[mageia4@localhost ~]$

4 - I made the fourth installation of Mageia 4.1 KDE (Desktop), with the ISO/media Mageia 4.1, LiveDVD, KDE, 64-bit. 
Is updated with the kernel-desktop-3.14.27-1.mga4-1 -1.mga4.x86_64
-->  This installation do not turn off or reboot properly.
I checked in the /root/drakx/ and only has the updates.log file

[mageia4@localhost ~]$ ls -al /usr/bin | grep systemctl
-rwxr-xr-x  1 root   root       329040 Abr 16  2014 systemctl*
[mageia4@localhost ~]$ ls -al /usr/bin | grep reboot
lrwxrwxrwx  1 root   root           13 Dez 28 13:31 reboot -> consolehelper*
[mageia4@localhost ~]$ ls -al /usr/bin | grep poweroff
lrwxrwxrwx  1 root   root           13 Dez 28 13:31 poweroff -> consolehelper*
[mageia4@localhost ~]$
Comment 11 Samuel Verschelde 2015-09-21 13:20:57 CEST
Mageia 4 changed to end-of-life (EOL) status on 2015-09-19. It is is no longer 
maintained, which means that it will not receive any further security or bug 
fix updates.

Package Maintainer: If you wish for this bug to remain open because you plan to 
fix it in a currently maintained version, simply change the 'version' to a later 
Mageia version.

Bug Reporter: Thank you for reporting this issue and we are sorry that we weren't 
able to fix it before Mageia 4's end of life. If you are able to reproduce it 
against a later version of Mageia, you are encouraged to click on "Version" and 
change it against that version of Mageia. If it's valid in several versions, 
select the highest and add MGAxTOO in whiteboard for each other valid release.
Example: it's valid in cauldron and Mageia 5, set to cauldron and add MGA5TOO.

Although we aim to fix as many bugs as possible during every release's lifetime, 
sometimes those efforts are overtaken by events. Often a more recent Mageia 
release includes newer upstream software that fixes bugs or makes them obsolete.

If you would like to help fixing bugs in the future, don't hesitate to join the
packager team via our mentoring program [1] or join the teams that fit you 
most [2].

[1] https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
[2] http://www.mageia.org/contribute/
Comment 12 Marja Van Waes 2015-10-27 06:58:06 CET
As announced over a month ago, Mageia 4 changed to end-of-life (EOL) status on 2015-09-19. It is is no longer maintained, which means that it will not receive any further security or bug fix updates.

This issue may have been fixed in a later Mageia release, so, if you still see it and didn't already do so: please upgrade to Mageia 5 (or, if you read this much later than this is written: make sure you run a currently maintained Mageia version)

If you are able to reproduce it against a maintained version of Mageia, you are encouraged to 
1. reopen this bug report, by changing the "Status" from "RESOLVED - OLD" to "REOPENED"
2. click on "Version" and change it against that version of Mageia. If you know it's valid in several versions, select the highest and add MGAxTOO in whiteboard for each other valid release.
Example: it's valid in cauldron and Mageia 5, set to cauldron and add MGA5TOO.
3. give as much relevant information as possible. If you're not an experienced bug reporter and have some time: please read this page:
https://wiki.mageia.org/en/How_to_report_a_bug_properly

If you see a similar issue, but are _not_sure_ it is the same, with the same cause, then please file a new bug report and mention this one in it (please include the bug number, too). 


If you would like to help fixing bugs in the future, don't hesitate to join the
packager team via our mentoring program [1] or join the teams that fit you 
most [2].
[1] https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
[2] http://www.mageia.org/contribute/

Status: NEW => RESOLVED
Resolution: (none) => OLD

Comment 13 macxi 2015-11-08 15:43:06 CET
(In reply to Marja van Waes from comment #12)
> As announced over a month ago, Mageia 4 changed to end-of-life (EOL) status
> on 2015-09-19. It is is no longer maintained, which means that it will not
> receive any further security or bug fix updates.

 
Hi Marja van Waes, 
I already updated to the Mageia 5
Thank you