Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR couldn't save state for user <>: user <> doesn't exist #211

Open
pjgoodall opened this issue Jul 25, 2021 · 2 comments
Open

ERROR couldn't save state for user <>: user <> doesn't exist #211

pjgoodall opened this issue Jul 25, 2021 · 2 comments

Comments

@pjgoodall
Copy link

pjgoodall commented Jul 25, 2021

Describe the bug
I tried save system state using documented command, error results

To Reproduce

% whoami                          
peterg

% zsysctl state save -vv
DEBUG /zsys.Zsys/SaveUserState() call logged as [efa327c7:194e653b] 
DEBUG Check if grpc request peer is authorized     
DEBUG Polkit call result, authorized: true         
INFO Requesting to save state for user "peterg"   
DEBUG ZFS: ending transaction                      
DEBUG ZFS: transaction done                        
ERROR couldn't save state for user "peterg": user "peterg" doesn't exist 

Expected behavior
system state should be saved as described in https://manpages.ubuntu.com/manpages/focal/man1/zsysctl-save.1.html

For ubuntu users, please run and copy the following:

  1. ubuntu-bug zsys --save=/tmp/report
  2. Copy paste below /tmp/report content:

report.txt

Screenshots
If applicable, add screenshots to help explain your problem.

Installed versions:

  • OS: (/etc/os-release)
% cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
  • Zsysd running version: (zsysctl version output)
% zsysctl version
zsysctl	0.4.8
zsysd	0.4.8

Additional context

#210
#204
#208

@vortigont
Copy link

vortigont commented Oct 5, 2022

maybe too old, but for whoever hits this again the solution was
check the value of zfs get com.ubuntu.zsys:bootfs-datasets rpool/USERDATA/<user>_xxxxx
it may be empty or contain some invalid value.
Fix it with setting proper system root dataset for the user. i.e.
zfs set com.ubuntu.zsys:bootfs-datasets=rpool/ROOT/ubuntu_xyzxyz rpool/USERDATA/youruser_x42x42

@TheGrave
Copy link

TheGrave commented Jul 14, 2024

maybe too old, but for whoever hits this again the solution was check the value of zfs get com.ubuntu.zsys:bootfs-datasets rpool/USERDATA/<user>_xxxxx it may be empty or contain some invalid value. Fix it with setting proper system root dataset for the user. i.e. zfs set com.ubuntu.zsys:bootfs-datasets=rpool/ROOT/ubuntu_xyzxyz rpool/USERDATA/youruser_x42x42

Tried this but it doesn't work. Had to re-install zsys instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants