piwebcam / PiWebcam

Turn a Raspberry Pi into a fully-featured and dummy-proof webcam
https://piwebcam.github.io
52 stars 13 forks source link

Error on boot: Cannot open access to console, the root account is locked #53

Closed remcovg89 closed 2 years ago

remcovg89 commented 2 years ago

When I boot the device I get the error (right after "started Update UTMP about Runlevel Changes"):

You are in rescue mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to boot into default mode.

Cannot open access to console, the root account is locked.
See sulogin(8) man page for more details.

Press Enter to continue.

And if I press enter, everything boots just fine, but obviously I don't want a keyboard/screen attached all the time to boot it. What can be done about this?

remcovg89 commented 2 years ago

After doing some more research I figured out where I went wrong and was able to resolve my issue.

I'm posting my mistake and solution to help others:

I resolved this issue by making a backup of my 'PiWebcam.conf' and simply reapply the piwebcam image to my SD card, then put back my 'PiWebcam.conf', and voilla.

I've tested a few boots and they all seem to go well now.

user2684 commented 2 years ago

Thanks for sharing the fix!