Locked out after upgrade

Started by interfaSys, February 04, 2017, 06:17:08 PM

Previous topic - Next topic
I upgraded via
# opnsense-update -ur 17.1 -l.

The box rebooted a couple of times.

Side effects:


  • The boot picture is gone
  • There is no console menu any more
  • root password is refused
  • network is not configure properly

This means that I'm locked out and the router seems to be bricked. The line above the login prompt is on point... : <something>/Amnesia



IIRC there is an issue with upgrades reverting to having the default console on serial instead of vga.

Does the machine you are running it on have a serial port?

Unfortunately, no :(

Can this be reverted in the boot console or in single-user mode?

OK, so the whole system is broken.
I enabled the vga console and changed the root password. That allowed me to login, but then nothing works as all the rc.initial files are missing. Copying them doesn't help as the dependencies are missing.
Trying to run opnsense-update doesn't help. It tells me everything is up to date.
I installed opnsense-stable-17.1 to see if it would give me the missing files and it kicked me out, preventing me from logging in again and re-installed all packages at next boot.

This post starts with a manual upgrade command "# opnsense-update -ur 17.1 -l.", but it fails to note which version it was upgraded from. The problem is: updates from anything before 16.7.14 will fail hard.

What was the original issue that led to typing the upgrade command copied from another thread? We're missing something...


Cheers,
Franco

>The problem is: updates from anything before 16.7.14 will fail hard.

That's probably the problem then. I think I was on one of the first 16.7 releases.

>What was the original issue that led to typing the upgrade command copied from another thread? We're missing something...

An issue I often had. When manually updating packages, I often end up with a broken PHP because phalcon is not loaded any more. I can re-install from a backed up package, but this time phalcon had a problem with a missing pdo symbol and configd would no longer run.
Installing the vanilla packages seemed like a better option than trying to fix things.


I see, you did install packages using the ports tree manually if I recall correctly?