make sure that home folders are mounted correctly before write/read keyfile