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
Users missing on /etc/passwd #2488
Comments
Hello nianyush, I'm a bot, an experiment of @mudler and @jimmykarily. Thank you for reporting this issue with Kairos version 2.4.5. I can see that the sshd service is failing to start after boot and that the sshd user does not exist in /etc/passwd. This information is helpful in diagnosing the problem. Please consider providing the following additional details to help us better understand and reproduce the issue:
Once we have all the necessary information, we will be able to better assess the issue and take appropriate action. We appreciate your patience and cooperation. Best regards, |
This might be related to this: #2492 |
Missing here is the info that the sshd user did indeed disappeared from the /etc/passwd |
@nianyush can you confirm that this is also the same issue you experienced with the fully deleted |
@mauromorales yes it's exactly the same issue. Only sshd user is lost from /etc/passwd and rest looks fine |
@nianyush thanks for the extra info. To which version did you upgrade to? the same? |
@mauromorales yes there is no difference in kairos or os version |
@nianyush do you by any chance have this system still online? if so, could you share the mounts? |
While this was detected becasue of the lack of ssh access, the issue is not related to sshd, but to the fact that a bunch of users are missing from the /etc/passwd. I've renamed the ticket to reflect this. |
@nianyush if you still got access to the machines would it be possible to extract the logs from it? Also, is there any metadata attached to the machine? cdrom/usb with a config drive? |
@nianyush also if possible, can you check for any other units breaking in systemd? And is it possible to compare the user list vrs a system that is working correctly, want to validate my previous comment |
Managed to reproduce after several runs
|
Looking at the previous yip analysis, it seems like 2 of the user creation get executed in parallel, when normally they should be done in serial (they are all touching the I think this somehow comes from having those
|
I think that the problem comes because of the duplicated name of those user creations, if the names are different, the analysis is similar to the one in the previous comment. However, because the names are the same, when yip starts adding dependencies, it uses the name as the identifier of the dependency, which when inverting the graph will group them together see how below we have a
so in the end both |
relates to kairos-io/kairos#2488 Signed-off-by: Mauro Morales <contact@mauromorales.com>
Glad to hear you can reproduce it! I don't have that 2.4.5 vm anymore :( |
@nianyush thanks a lot for opening the issue and providing all the info though, if it wasn't for your screenshots I wouldn't have had an idea where to look |
fixes kairos-io/kairos#2488 Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
The fix for this issue is now in the latest Kairos release (artifacts building, give it a couple of hours) |
@mauromorales @Itxaka facing this issue again with 3.0.10 kairos |
@nianyush could you paste the system's |
Kairos version 2.4.5
Seems to be a very corner case for us. I have only seen this once.
Config file that triggered this:
The text was updated successfully, but these errors were encountered: