A Bitnami VM boot log from 2021 showed a failed networking unit followed by systemd emergency mode. The emergency console then printed:
[FAILED] Failed to start Raise network interfaces.
See 'systemctl status networking.service' for details.
...
You are in emergency mode.
Cannot open access to console, the root account is locked.
The locked account explains why the emergency prompt could not open. The log excerpt also shows a networking failure, but it does not establish which dependency sent the machine into emergency mode. A failed network mount, missing disk, or invalid mount entry is worth checking if the full logs point there.
Start with the first failure
Use the provider’s console logs or an authorized recovery session to inspect the boot. If you can log in through an existing administrative account, these commands help narrow the cause:
sudo journalctl -xb -p err --no-pager
systemctl --failed
systemctl status networking.service
lsblk -f
findmnt --verify --verbose
The networking unit name varies by distribution. If a mount failed, compare the UUIDs in /etc/fstab with lsblk -f and check the availability of any required network storage.
If there’s no working login
- Snapshot the VM’s boot disk. Record which volume is attached as root and how it is attached.
- Use the cloud provider’s supported rescue workflow. Where supported, inspect a copy of the boot disk on a recovery VM, mounted read-only first. Review the affected VM’s configuration and any persistent journal on that disk.
- Correct the dependency identified in the logs. For example, restore a missing required mount or fix an incorrect UUID. For a genuinely optional volume, consider an appropriate
nofailconfiguration after checking that the application can run without it. - Boot the repaired instance and verify network access, required mounts, and the Bitnami application. Keep the snapshot until those checks pass.
On EC2, use AWS’s Linux instance recovery guidance. The provider’s rescue process can recover the boot disk while preserving the image’s normal root account policy.
Discover more from Juzhax Technology
Subscribe to get the latest posts sent to your email.
