OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: interfaSys on February 04, 2017, 06:17:08 pm

Title: Locked out after upgrade
Post by: interfaSys on February 04, 2017, 06:17:08 pm
I upgraded via
Code: [Select]
# opnsense-update -ur 17.1 -l.
The box rebooted a couple of times.

Side effects:


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


Title: Re: Locked out after upgrade
Post by: GurliGebis on February 04, 2017, 09:02:07 pm
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?
Title: Re: Locked out after upgrade
Post by: interfaSys on February 04, 2017, 09:14:24 pm
Unfortunately, no :(

Can this be reverted in the boot console or in single-user mode?
Title: Re: Locked out after upgrade
Post by: interfaSys on February 04, 2017, 10:55:37 pm
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.
Title: Re: Locked out after upgrade
Post by: franco on February 05, 2017, 08:00:01 pm
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
Title: Re: Locked out after upgrade
Post by: interfaSys on February 06, 2017, 01:39:18 am
>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.

Title: Re: Locked out after upgrade
Post by: franco on February 06, 2017, 05:39:10 am
I see, you did install packages using the ports tree manually if I recall correctly?