Unable to upgrade from OPNsense 21.1.9_1-amd64 to 21.7

Started by allebone, July 28, 2021, 02:39:50 PM

Previous topic - Next topic
Quote from: hvleest on August 09, 2021, 12:30:24 PM
Also the default password opnsense does not work
Quote from: athurdent on August 09, 2021, 12:18:53 PM
Quote from: hvleest on August 09, 2021, 12:01:58 PM
HELP...
After my update to the latest version from 21.1.9 to 21.7, nothing happens. It rebooted after the update, then it was quiet. Connected it to mouse, keyboard and screen. Not even a bios on the display.
Connected it back in the network and tried to access it by ssh on the WAN and LAN ports. Ssh is enabled and worked previously. Unfortunally it doesn't allow me access.
Is there another way to access it by SSH?
Thx
Sounds like a hardware problem if you don't even see the BIOS screen or boot messages.


Also the default password opnsense does not work

UPDATE. old install was corrupt after update. New install boots.
Also, make sure when you connect a screen, its a small screen. 22inch is to big. 19inch works perfect

Quote from: wleeb1010 on August 17, 2021, 05:15:16 PM
I am blocked from upgrading 21.1.9_1-amd64 to 21.7 and none of the workarounds listed in this thread are working.

[...]

Not sure where to go from here, any ideas Franco?

Try changing the mirror and make sure that IPv6 works or is otherwise turned off.


Cheers,
Franco

I disabled IPv6 and the upgrade completed successfully.

Thanks Franco!

I have tried all of the solutions in this topic and am still stuck and my system does not see an upgrade path. I have tried a variety of mirrors.


Type opnsense
Version 21.1.9_1
Architecture amd64
Flavour OpenSSL
Commit e10896164
Mirror https://pkg.opnsense.org/FreeBSD:12:amd64/21.1
Repositories OPNsense
Updated on Wed Jul 28 11:47:08 EDT 2021
Checked on N/A


And when I run update in console or at CLI:

  0) Logout                              7) Ping host
  1) Assign interfaces                   8) Shell
  2) Set interface IP address            9) pfTop
  3) Reset the root password            10) Firewall log
  4) Reset to factory defaults          11) Reload all services
  5) Power off system                   12) Update from console
  6) Reboot system                      13) Restore a backup

Enter an option: 12

Fetching change log information, please wait... done

This will automatically fetch all available updates and apply them.

Proceed with this action? [y/N]: y

Updating OPNsense repository catalogue...
OPNsense repository is up to date.
All repositories are up to date.
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
All repositories are up to date.
Checking for upgrades (0 candidates): . done
Processing candidates (0 candidates): . done
Checking integrity... done (0 conflicting)
Your packages are up to date.
Checking integrity... done (0 conflicting)
Nothing to do.
Checking all packages: .......... done
The following package files will be deleted:
/var/cache/pkg/opnsense-update-21.1.8_2~7e3799d419.txz
/var/cache/pkg/opnsense-update-21.1.8_2.txz
The cleanup will free 63 KiB
Deleting files: .. done
All done
Your system is up to date.


Is there any way to see more detailed logs or otherwise troubleshoot why it cannot see the upgrade?

Please run a health audit. This doesn't look right?

> Proceed with this action? [y/N]: y

That's not how to invoke a major upgrade and also it should tell you about "21.7" which is the correct input...


Cheers,
Franco

September 07, 2021, 09:15:03 PM #65 Last Edit: September 07, 2021, 09:21:54 PM by beyondzero
EDIT: I am good to go, see below.

Quote from: franco on September 07, 2021, 09:01:06 PM
Please run a health audit. This doesn't look right?

> Proceed with this action? [y/N]: y

That's not how to invoke a major upgrade and also it should tell you about "21.7" which is the correct input...

Thanks. So this is probably my fault, as I deleted these files based on another post related to the signature issue...before I found this topic.


opnsense-21.1.9_1: missing file /usr/local/opnsense/firmware-message
opnsense-21.1.9_1: missing file /usr/local/opnsense/firmware-upgrade


I assume I can manually pull those files down from a mirror?

EDIT: I reinstalled the opnsense package and it replaced those files. Then I checked for an upgrade and everything went smoothly!

Thanks for the prompt reply and help!

Full health check output:
***GOT REQUEST TO AUDIT HEALTH***
Currently running OPNsense 21.1.9_1 (amd64/OpenSSL) at Tue Sep  7 15:07:54 EDT 2021
>>> Check installed kernel version
Version 21.1.8 is correct.
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 21.1.8 is correct.
>>> Check for missing or altered base files
No problems detected.
>>> Check for missing package dependencies
Checking all packages: .......... done
>>> Check for missing or altered package files
Checking all packages: ....
opnsense-21.1.9_1: missing file /usr/local/opnsense/firmware-message
opnsense-21.1.9_1: missing file /usr/local/opnsense/firmware-upgrade
Checking all packages......... done
>>> Check for core packages consistency
Core package "opnsense" has 66 dependencies to check.
Checking packages: .................................................................... done
***DONE***

Ok, good. Just reinstall "opnsense" package from System: Firmware: Packages tab. Or from the shell:

# opnsense-revert opnsense

Could be that you're back to a previous error but need to look at this one too.

Also can you share your "uname -v" output to see if you are in a partial upgrade state or if it never started in the first place.


Cheers,
Franco

Quote from: franco on September 07, 2021, 09:26:25 PM
Ok, good. Just reinstall "opnsense" package from System: Firmware: Packages tab. Or from the shell:

# opnsense-revert opnsense


That did it, thanks! Now running 21.7.2 with no issues!