Forum: 

Reboot Yields "First Boot Configuration"

pjdurham's picture

I stood up a TKL LAMP stack box (Dell Precision 670) last fall and have had no significant problems.

During this week the UPS this box was connected to began intermittent whining. I attributed it to recent power outage and UPS switch seemingly getting stuck. But now I know the battery is dead.

Today I did a system shutdown of all 3 boxes that were connected to that UPS.

I reconfigured my power. Then I rebooted all 3 boxes (the other 2 are Dell Precision 650 running TKL & ancient Gateway 500 running pfSense).

The GW/pfSense box came up fine. The DP650/TKL came up fine. The DP670/TKL did not come up fine. On reboot, it began the "First Boot Configuration" sequence.

So I thought maybe I had some media somewhere it wasn't supposed to be - nope. 3 iterations of reboot have yielded the same results.

In the past I've rebooted this machine on occasion. And as I stated at the top, the issue instigating this reboot was a UPS. (The box had gone off line once or twice in the last week because of that. But had always reboot smoothly.)

I've spent ~30min searching for similar problems but haven't found any.

Can someone point my in the direction of what might be going on?

Thanks

/perry

Jeremy Davis's picture

Power outages (ie unclean shutdown) can cause disk corruption (especially if the system was writing to HDD when the poser was lost) so first thing I would do, would be to run an fsck on your filesystem. Probably best way to do that would be with a Linux LiveCD.

After you've run the fsck (still running from the LiveCD) mount your filesystem and check the firstboot config flag. If you check /etc/default/inithooks it should include "RUN_FIRSTBOOT=false" if it is 'true' then change it to 'false' and reboot with your fingers crossed.

TBH I have no idea why your server should have reenabled firstboot scripts, but hopefully this will fix it and you haven't lost any data.

AlSam's picture

I am trying to install the x86 debian 7 fileserver appliance in a proxmox 2.1 server and keep getting "first boot configuration".  At the end of the install, all IP addresses are 127.0.0.2 despite the assigned IP address at time of container creation.  I'm aware this might be a PVE issue, but this is the only forum I found where this type of issue was addressed in any way.

Jeremy Davis's picture

But I guess better late than never huh!?!

FWIW it sounds like either a corrupted ISO or some other strange thing going on... The other option in Proxmox is to use the OpenVZ templates that are available to download from within the Proxmox WebUI.

Jory's picture

I am having the same issue as OP. I don't have any media inserted into the machine. This leaves me unable to reboot as I lose my data by running the configuration utility.

Jeremy Davis's picture

It's weird that they want to keep rerunning. If you complete them then it shouldn't want/need to rerun them. So it sounds like for some reason they weren't totally finalising. However you can manually disable them from re-running. The file to edit is /etc/default/inithooks. Change the
RUN_FIRSTBOOT=true
to
RUN_FIRSTBOOT=false

Post new comment