Bug 1645814 - Hibernation to disk fails after root password is changed
Summary: Hibernation to disk fails after root password is changed
Keywords:
Status: CLOSED DUPLICATE of bug 1645870
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 29
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-04 00:20 UTC by Aaron Earl
Modified: 2019-01-11 15:22 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-11 15:22:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 10613 0 None None None 2018-11-04 00:20:29 UTC

Description Aaron Earl 2018-11-04 00:20:30 UTC
Description of problem:
After a password has been manually-changed for the root user, Fedora 29 fails to hibernate to disk.

Version-Release number of selected component (if applicable): Fedora 29


How reproducible:
Performed two clean installs of Fedora 29 and tested hibernation function after changing the root password

Steps to Reproduce:
Performed the following steps twice:

1. Performed clean installation of Fedora 29, confirmed hibernation was working
2. ran
 
sudo passwd root 

to change the root account password
3. attempted hibernation and observed that it was no longer working

Actual results:
The command

$ sudo systemctl hibernate

results in the error:

"Failed to hibernate system via logind: Resume is not configured, can't hibernate"

Expected results:
The computer should have entered hibernation to disk

Additional info:
/proc/cmdline contains the line:
resume=/dev/mapper/luks-3cefe394-815d-4b54-8189-10657ed78b51

the /dev info for the swap in /proc/cmdline matches that found in /etc/fstab:
dev/mapper/luks-3cefe394-815d-4b54-8189-10657ed78b51 swap

/sys/power/disk contains the line:
[platform] shutdown reboot suspend test_resume

Comment 1 Aaron Earl 2018-11-04 00:30:28 UTC
The version of systemd is

systemd 239
+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid

Comment 2 Zbigniew Jędrzejewski-Szmek 2018-11-04 10:06:19 UTC
Hi,

there is no way for the root password to be related to any of the hibernation checks. I'm 99.9% sure that this was just a coincidence.

What is the rpm version that you have?

Please install 'systemd-tests' rpm and execute:
   sudo SYSTEMD_LOG_LEVEL=debug /usr/lib/systemd/tests/test-sleep
and paste or attach the output here.

Comment 3 Aaron Earl 2018-11-06 04:04:22 UTC
The RPM version is 4.14.2.1


The results of running $ sudo SYSTEMD_LOG_LEVEL=debug /usr/lib/systemd/tests/test-sleep:


Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
/* configuration */
Standby configured: no
Suspend configured: yes
Hibernate configured: yes
Hibernate+Suspend (Hybrid-Sleep) configured: yes
Hibernate+Reboot configured: yes
Hibernate+Platform configured: yes
Hibernate+Shutdown configured: yes
Freeze configured: yes
/* running system */
Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
Suspend configured and possible: yes
Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
Enough swap for hibernation, Active(anon)=1164604 kB, size=67106812 kB, used=0 kB, threshold=98%
Found container virtualization none.
Failed to open "/boot/efi/loader/loader.conf": No such file or directory
Failed to read boot config from "/boot/efi/loader/loader.conf": No such file or directory
Failed to load bootspec config from "/boot/efi/loader": No such file or directory
Cannot read boot configuration from ESP, assuming hibernation is not possible.
Hibernation configured and possible: Advertise error
Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
Enough swap for hibernation, Active(anon)=1164896 kB, size=67106812 kB, used=0 kB, threshold=98%
Failed to open "/boot/efi/loader/loader.conf": No such file or directory
Failed to read boot config from "/boot/efi/loader/loader.conf": No such file or directory
Failed to load bootspec config from "/boot/efi/loader": No such file or directory
Cannot read boot configuration from ESP, assuming hibernation is not possible.
Hybrid-sleep configured and possible: Advertise error
Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
Enough swap for hibernation, Active(anon)=1165188 kB, size=67106812 kB, used=0 kB, threshold=98%
Failed to open "/boot/efi/loader/loader.conf": No such file or directory
Failed to read boot config from "/boot/efi/loader/loader.conf": No such file or directory
Failed to load bootspec config from "/boot/efi/loader": No such file or directory
Cannot read boot configuration from ESP, assuming hibernation is not possible.
Unable to hibernate system.
Suspend-then-Hibernate configured and possible: no
extent map information for /usr/lib/systemd/tests/test-sleep:
     start: 0
     length: 20248
     flags: 1
     number of mapped extents: 1
     extent count: 1
     first extent location: 61973632

Comment 4 Aaron Earl 2018-11-10 00:36:24 UTC
I have followed a suggestion supplied by Krause.Markus [Bug 1645870] and downgraded my systemd package from systemd-239-6.git9f3aed1.fc29 to systemd-239-3.fc29 and can report that my hibernation functionality is restored.


The results of running $ sudo SYSTEMD_LOG_LEVEL=debug /usr/lib/systemd/tests/test-sleep:

Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
/* configuration */
Standby configured: no
Suspend configured: yes
Hibernate configured: yes
Hibernate+Suspend (Hybrid-Sleep) configured: yes
Hibernate+Reboot configured: yes
Hibernate+Platform configured: yes
Hibernate+Shutdown configured: yes
Freeze configured: yes
/* running system */
Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
Suspend configured and possible: yes
Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
Hibernation is possible, Active(anon)=785388 kB, size=67106812 kB, used=0 kB, threshold=98%
Hibernation configured and possible: yes
Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
Hibernation is possible, Active(anon)=785388 kB, size=67106812 kB, used=0 kB, threshold=98%
Hybrid-sleep configured and possible: yes
Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
Failed to open configuration file '/etc/systemd/sleep.conf': No such file or directory
Hibernation is possible, Active(anon)=785388 kB, size=67106812 kB, used=0 kB, threshold=98%
Suspend-then-Hibernate configured and possible: yes
extent map information for /usr/lib/systemd/tests/test-sleep:
	 start: 0
	 length: 21016
	 flags: 1
	 number of mapped extents: 1
	 extent count: 1
	 first extent location: 61962682

Comment 5 Zbigniew Jędrzejewski-Szmek 2019-01-11 15:22:21 UTC
This should be fixed now.

*** This bug has been marked as a duplicate of bug 1645870 ***


Note You need to log in before you can comment on or make changes to this bug.