[systemd-devel] [Help] Can't log in to homed user account: "No space left on device"

Andrei Borzenkov arvidjaar at gmail.com
Sun Aug 23 08:25:14 UTC 2020


23.08.2020 09:34, Andrii Zymohliad пишет:
> Hello! I've lost the ability to log in to my systemd-homed user account. I would be very grateful for any help!
> 
> If I log in as root and try to authenticate:
> 
> # homectl authenticate azymohliad
> 
> Then after typing my password I get the following output:
> 
> Operation on home azymohliad failed: Not enough disk space for home azymohliad
> 
> It also produces the following system logs:
> 
> сер 22 09:11:08 az-wolf-pc systemd-homed[425]: azymohliad: changing state inactive → authenticating
> 
> сер 22 09:11:08 az-wolf-pc systemd-homework[1215]: None of the supplied plaintext passwords unlocks the user record's hashed passwords.
> 
> сер 22 09:11:08 az-wolf-pc systemd-homed[425]: Authentication failed: Required key not available
> 
> сер 22 09:11:08 az-wolf-pc systemd-homed[425]: azymohliad: changing state authenticating → inactive
> 
> сер 22 09:11:23 az-wolf-pc systemd-homed[425]: azymohliad: changing state inactive → authenticating
> 
> сер 22 09:11:23 az-wolf-pc systemd-homework[1216]: Provided password unlocks user record.
> 
> сер 22 09:11:23 az-wolf-pc systemd-homed[425]: Authentication failed: No space left on device
> 
> сер 22 09:11:23 az-wolf-pc systemd-homed[425]: azymohliad: changing state authenticating → inactive
> 
> And here [https://pastebin.com/BwkkvbZr](https://pastebin.com/BwkkvbZr]here[/url) is the full log since the last boot.
> 
> My root filesystem is BTRFS, home is LUKS-encrypted BTRFS on a loopback file. Here's the details:
> 
> # homectl inspect azymohliad
> 
> User name: azymohliad
> State: inactive
> Disposition: regular
> Last Change: Thu 2020-06-25 17:41:52 EEST
> Last Passw.: Thu 2020-06-04 19:04:43 EEST
> Login OK: yes
> Password OK: yes
> UID: 60265
> GID: 60265 (azymohliad)
> Aux. Groups: audio
> docker
> wheel
> Real Name: Andrii Zymohliad
> Directory: /home/azymohliad
> Storage: luks (strong encryption)
> Image Path: /home/azymohliad.home
> Removable: no
> Shell: /usr/bin/fish
> LUKS Discard: online=no offline=yes
...>
> My root partition is 475G, and as you can see, home file size is ~400G (I guess it was stupid to leave only 75G for root in the first place). But for some reason `btrfs fi usage /` shows that only 352G are allocated on the device before I try to authenticate (every time after boot), and full 475G after authentication attempt.

As far as I can tell if discards are disabled, systemd tries to allocate
full size of backing file. It is possible that there is simply not
enough space to ensure full 400G (i.e. available space it consumed by
something else). Are there are snapshots

Try enabling debug log level, this will give more details about what
happens.

> 
> I've posted some more btrfs info outputs on Arch forum (https://bbs.archlinux.org/viewtopic.php?id=258382). I'm not sure how to properly format snippets on mail list and how convenient it is to read them here, first time on tech mail list.
> 
> I can unlock and mount my /home/azymohliad.home file manually, so that confirms that it's not corrupted. I haven't tried to resize it manually (outside of homectl), I'm afraid to do anything wrong.
> 
> Thanks for taking time to read this far! Is there anything obvious here that I can do to fix it? Or any hints where to look?
> 
> 
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
> 



More information about the systemd-devel mailing list