OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: KingDigweed on January 14, 2023, 03:44:44 pm

Title: [SOLVED] Error Installing Update to Base Package - chflags Invalid Argument
Post by: KingDigweed on January 14, 2023, 03:44:44 pm
Hi All,

Hoping for a bit of guidance here as to what OPNsense is getting stuck on.

I just tried to update my virtualised OPNsense router running version 22.7.8, but I am seeing the following error once it gets to the upgrade of the base & kernel packages:

Code: [Select]
!!!!!!!!!!!! ATTENTION !!!!!!!!!!!!!!!
! A critical upgrade is in progress. !
! Please do not turn off the system. !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Installing kernel-22.7.9-amd64.txz... done
Installing base-22.7.9-amd64.txz...chflags: /sbin/kldconfig: Invalid argument
 failed, chflags error 0
***DONE***

My Google-Fu is failing me on this one and I've been unsuccessful in finding anything similar here on the forums, which has surprised me.

Apart from this error, all else seems to be working flawlessly...

Can anyone lend a hand in helping any further? It would be much appreciated.

Kind regards,

Chris
Title: Re: Error Installing Update to Base Package - chflags Invalid Argument
Post by: KingDigweed on January 14, 2023, 03:52:53 pm
Perhaps I could add the following info:

No reboot happens like usual, the update process just ends here.

If I check for updates again, the only package that shows is:
Code: [Select]
Package name: base
Current version: 22.7.7
New version: 22.7.9

Running a health audit reveals the following:
Code: [Select]
***GOT REQUEST TO AUDIT HEALTH***
Currently running OPNsense 22.7.10_2 (amd64/OpenSSL) at Sat Jan 14 14:51:34 GMT 2023
>>> Check installed kernel version
Version 22.7.9 is correct.
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 22.7.7 is incorrect, expected: 22.7.9
>>> Check for missing or altered base files
Missing files: 1
mtree: sbin/kldconfig: Invalid argument
./sbin/kldconfig missing
>>> Check installed repositories
OPNsense
>>> Check installed plugins
os-qemu-guest-agent 1.1_1
os-upnp 1.4_2
>>> Check locked packages
No locks found.
>>> Check for missing package dependencies
Checking all packages: .......... done
>>> Check for missing or altered package files
Checking all packages: .......... done
>>> Check for core packages consistency
Core package "opnsense" has 63 dependencies to check.
Checking packages: ................................................................. done
***DONE***
Title: Re: Error Installing Update to Base Package - chflags Invalid Argument
Post by: KingDigweed on January 21, 2023, 04:45:12 pm
Bump anyone? Thank you for any help should I receive it!
Title: Re: Error Installing Update to Base Package - chflags Invalid Argument
Post by: KingDigweed on January 24, 2023, 03:31:13 am
Hello,

Thought I'd update the thread in case anyone stumbles across this in future.

I had another go at attempting to fix and it seems like all that was needed was to run an fsck on the root file system. I booted into the OS under single user mode (option 2 during boot) and simply ran fsck, following the prompts through as you normally would until the cleanup was complete. I suspect the corruption was due to a hard crash of the hypervisor a while back.

I rebooted and re-attempted the upgrade via the web GUI and it succeeded!

Cheers,

Chris