OPNsense Forum

Archive => 20.1 Legacy Series => Topic started by: urmel on July 04, 2020, 11:38:55 pm

Title: health audit shows wrong version and missing shared library after upgrade
Post by: urmel on July 04, 2020, 11:38:55 pm
I upgrades to 20.1.8 and applied the hotfix. Health audit gives following message
Quote
***GOT REQUEST TO AUDIT HEALTH***
>>> Check installed kernel version
Version 20.1.7 is correct.
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 20.1.7 is correct.
>>> Check for missing or altered base files
No problems detected.
>>> Check for and install missing package dependencies
Checking all packages: .......... done
netdata is missing a required shared library: libjson-c.so.4
>>> Check for missing or altered package files
Checking all packages: .......... done
>>> Check for core packages consistency
Checking core packages: ..................................................................... done
***DONE***

Why is it telling that the kernel version is 20.1.7 if it is 20.1.8-1 ?
How can I solve the missing shared library problem ?

Any help is highly appreciated
Regards, Urmel
Title: Re: health audit shows wrong version and missing shared library after upgrade
Post by: urmel on July 05, 2020, 12:12:00 am
could solve the missing lib problem meanwhile - reinstalled netdata package from gui

The versioning topic is still active
Title: Re: health audit shows wrong version and missing shared library after upgrade
Post by: pouakai on July 05, 2020, 07:37:52 am
Yes, I think I have the same problem.

I upgraded from 20.1.7 to 20.1.8-1 today. The package manager only seemed apply the hotfix, and not all the packages in 20.1.8.

The package manager says I have 20.1.8-1, but it's also aborting with internal errors quite a lot of the time.  Haven't tried audit health.     
Title: Re: health audit shows wrong version and missing shared library after upgrade
Post by: hushcoden on July 05, 2020, 11:04:18 am
I also upgraded to 20.1.8-1 and checking on system -> firmware -> packages the 'base' version is still 20.1.7, strange...
Running the audit health no errors reported, but I don't understand why it says that base version is 20.1.7:
Code: [Select]
***GOT REQUEST TO AUDIT HEALTH***
>>> Check installed kernel version
Version 20.1.7 is correct.
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 20.1.7 is correct.
>>> Check for missing or altered base files
No problems detected.
>>> Check for and install missing package dependencies
Checking all packages: .......... done
>>> Check for missing or altered package files
Checking all packages: .......... done
>>> Check for core packages consistency
Checking core packages: ..................................................................... done
***DONE***
Title: Re: health audit shows wrong version and missing shared library after upgrade
Post by: zaggynl on July 05, 2020, 11:46:38 am
Same for me, did a health check as my opnsense box didn't come up after upgrade.
On console it was showing tar errors, I might have forced a reboot to soon?
After a ctrl+c it continued with boot and functioned normally.
Title: Re: health audit shows wrong version and missing shared library after upgrade
Post by: urmel on July 05, 2020, 04:48:10 pm
could solve the missing lib problem meanwhile - reinstalled netdata package from gui

As I said above the missing lib problem was solved by reinstalling netdata via gui.
Now I checked the System: Firmware: Log File  and see:

Quote
2020-07-05T00:09:16   pkg-static: netdata downgraded: 1.21.1 -> 1.20.0_3

Now I am wondering why the reinstall of the package leads to a downgrade. Should not the latest package version being offered in the package manager ?

Curious. Seeking help to ensure that all is properly installed.

Wanted also to say that I do not have any other problems with the upgrade - it went smooth as it was always in the past - but the versioning and missing lib thing is something I would like to clarify.

Thanks Urmel
Title: Re: health audit shows wrong version and missing shared library after upgrade
Post by: miroco on July 05, 2020, 05:50:56 pm
Me too

Code: [Select]
***GOT REQUEST TO AUDIT HEALTH***
>>> Check installed kernel version
Version 20.1.7 is correct.
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 20.1.7 is correct.
>>> Check for missing or altered base files
No problems detected.
>>> Check for and install missing package dependencies
Checking all packages: .......... done
>>> Check for missing or altered package files
Checking all packages: .......... done
>>> Check for core packages consistency
Checking core packages: .
beep-1.0_1 has no upstream equivalent
Checking core packages: .
bsdinstaller-20.1 has no upstream equivalent
Checking core packages: .
ca_root_nss-3.53 has no upstream equivalent
Checking core packages: .
choparp-20150613 has no upstream equivalent
Checking core packages: .
cpustats-0.1 has no upstream equivalent
Checking core packages: .
dhcp6c-20200512 has no upstream equivalent
Checking core packages: .
dhcpleases-0.2 has no upstream equivalent
Checking core packages: .
dnsmasq-2.81_2,1 has no upstream equivalent
Checking core packages: .
dpinger-3.0 has no upstream equivalent
Checking core packages: .
expiretable-0.6_1 has no upstream equivalent
Checking core packages: .
filterlog-0.3 has no upstream equivalent
Checking core packages: .
flock-2.30.1 has no upstream equivalent
Checking core packages: .
flowd-0.9.1_3 has no upstream equivalent
Checking core packages: .
hostapd-2.9_2 has no upstream equivalent
Checking core packages: .
ifinfo-10.1 has no upstream equivalent
Checking core packages: .
isc-dhcp44-relay-4.4.2 has no upstream equivalent
Checking core packages: .
isc-dhcp44-server-4.4.2 has no upstream equivalent
Checking core packages: .
lighttpd-1.4.55_1 has no upstream equivalent
Checking core packages: .
monit-5.26.0 has no upstream equivalent
Checking core packages: .
mpd5-5.8_10 has no upstream equivalent
Checking core packages: .
ntp-4.2.8p15 has no upstream equivalent
Checking core packages: .
openssh-portable-8.2.p1_1,1 has no upstream equivalent
Checking core packages: .
openvpn-2.4.9_2 has no upstream equivalent
Checking core packages: .
opnsense-20.1.8_1 has no upstream equivalent
Checking core packages: .
opnsense-lang-20.1.4 has no upstream equivalent
Checking core packages: .
opnsense-update-20.1.7 has no upstream equivalent
Checking core packages: .
pam_opnsense-19.1.3 has no upstream equivalent
Checking core packages: .
pftop-0.7_9 has no upstream equivalent
Checking core packages: .
php73-ctype-7.3.19 has no upstream equivalent
Checking core packages: .
php73-curl-7.3.19 has no upstream equivalent
Checking core packages: .
php73-dom-7.3.19 has no upstream equivalent
Checking core packages: .
php73-filter-7.3.19 has no upstream equivalent
Checking core packages: .
php73-gettext-7.3.19 has no upstream equivalent
Checking core packages: .
php73-google-api-php-client-2.4.0 has no upstream equivalent
Checking core packages: .
php73-hash-7.3.19 has no upstream equivalent
Checking core packages: .
php73-json-7.3.19 has no upstream equivalent
Checking core packages: .
php73-ldap-7.3.19 has no upstream equivalent
Checking core packages: .
php73-openssl-7.3.19 has no upstream equivalent
Checking core packages: .
php73-pdo-7.3.19 has no upstream equivalent
Checking core packages: .
php73-pecl-radius-1.4.0.b1 has no upstream equivalent
Checking core packages: .
php73-phalcon-3.4.5 has no upstream equivalent
Checking core packages: .
php73-phpseclib-2.0.23 has no upstream equivalent
Checking core packages: .
php73-session-7.3.19 has no upstream equivalent
Checking core packages: .
php73-simplexml-7.3.19 has no upstream equivalent
Checking core packages: .
php73-sockets-7.3.19 has no upstream equivalent
Checking core packages: .
php73-sqlite3-7.3.19 has no upstream equivalent
Checking core packages: .
php73-xml-7.3.19 has no upstream equivalent
Checking core packages: .
php73-zlib-7.3.19 has no upstream equivalent
Checking core packages: .
pkg-1.12.0_1 has no upstream equivalent
Checking core packages: .
py37-Jinja2-2.10.1 has no upstream equivalent
Checking core packages: .
py37-dnspython-1.16.0 has no upstream equivalent
Checking core packages: .
py37-netaddr-0.7.19_1 has no upstream equivalent
Checking core packages: .
py37-requests-2.22.0 has no upstream equivalent
Checking core packages: .
py37-sqlite3-3.7.7_7 has no upstream equivalent
Checking core packages: .
py37-ujson-3.0.0 has no upstream equivalent
Checking core packages: .
radvd-2.18_1 has no upstream equivalent
Checking core packages: .
rate-0.9_1 has no upstream equivalent
Checking core packages: .
rrdtool-1.7.2_3 has no upstream equivalent
Checking core packages: .
samplicator-1.3.8.r1_1 has no upstream equivalent
Checking core packages: .
squid-4.11_2 has no upstream equivalent
Checking core packages: .
sshlockout_pf-0.0.2_2 has no upstream equivalent
Checking core packages: .
strongswan-5.8.4_1 has no upstream equivalent
Checking core packages: .
sudo-1.9.1 has no upstream equivalent
Checking core packages: .
suricata-4.1.8 has no upstream equivalent
Checking core packages: .
syslog-ng325-3.25.1_1 has no upstream equivalent
Checking core packages: .
syslogd-11.2 has no upstream equivalent
Checking core packages: .
unbound-1.10.1 has no upstream equivalent
Checking core packages: .
wpa_supplicant-2.9_7 has no upstream equivalent
Checking core packages: .
zip-3.0_1 has no upstream equivalent
***DONE***

miroco
Title: Re: health audit shows wrong version and missing shared library after upgrade
Post by: Gary7 on July 05, 2020, 07:18:54 pm
For what it's worth, Audit Health agrees with the packages that are listed in the Packages tab.

kernel   20.1.7   112.8MiB   BSD2CLAUSE   HardenedBSD kernel set

base      20.1.7   449.4MiB   BSD2CLAUSE   HardenedBSD userland set

Also:
opnsense-update   20.1.7   160KiB   BSD2CLAUSE   OPNsense update utilities
opnsense         20.1.8_1   20.6MiB   BSD2CLAUSE   OPNsense release package

Title: Re: health audit shows wrong version and missing shared library after upgrade
Post by: urmel on July 06, 2020, 09:14:14 am
For what it's worth, Audit Health agrees with the packages that are listed in the Packages tab.

Yes you are right - have seen that just now.

IMHO the packages in that tab should show the latest packages from the latest installed version - not something historical...
Title: Re: health audit shows wrong version and missing shared library after upgrade
Post by: Gary7 on July 06, 2020, 05:26:49 pm
I believe that the list of packages is accurate.

HardenedBSD kernel and base files were not updated between OPNsense 20.1.7 and 20.1.8
If the HardenedBSD kernel had been updated, a reboot would be required (not optional).
I didn't reboot between OPNsense 20.1.7 and 20.1.8 (and 20.1.8_1).
Apparently, HardenedBSD and OPNsense versions are not always the same.