OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: mittelhirn on September 26, 2020, 11:28:46 am

Title: Update from 20.7.1 to 20.7.3 hangs ?
Post by: mittelhirn on September 26, 2020, 11:28:46 am
Hi,

Update hangs for an hour now:

Code: [Select]
***GOT REQUEST TO UPGRADE: all***
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 (105 candidates): .......... done
Processing candidates (105 candidates): ..... done
The following 45 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
ca_root_nss: 3.55 -> 3.57
curl: 7.71.1 -> 7.72.0
iperf3: 3.8.1 -> 3.9
isc-dhcp44-relay: 4.4.2 -> 4.4.2_1
isc-dhcp44-server: 4.4.2 -> 4.4.2_1
json-c: 0.14 -> 0.15
libffi: 3.3 -> 3.3_1
libunwind: 20200331 -> 20200331_1
maltrail: 0.22 -> 0.24
mpd5: 5.8_10 -> 5.9
net-snmp: 5.7.3_20,1 -> 5.9,1
nspr: 4.27 -> 4.29
nss: 3.55 -> 3.57
openldap-sasl-client: 2.4.50 -> 2.4.51
opnsense: 20.7.1 -> 20.7.3
opnsense-update: 20.7.1 -> 20.7.3
os-dyndns: 1.22 -> 1.23
php73: 7.3.20 -> 7.3.22
php73-ctype: 7.3.20 -> 7.3.22
php73-curl: 7.3.20 -> 7.3.22
php73-dom: 7.3.20 -> 7.3.22
php73-filter: 7.3.20 -> 7.3.22
php73-gettext: 7.3.20 -> 7.3.22
php73-hash: 7.3.20 -> 7.3.22
php73-json: 7.3.20 -> 7.3.22
php73-ldap: 7.3.20 -> 7.3.22
php73-openssl: 7.3.20 -> 7.3.22
php73-pdo: 7.3.20 -> 7.3.22
php73-session: 7.3.20 -> 7.3.22
php73-simplexml: 7.3.20 -> 7.3.22
php73-sockets: 7.3.20 -> 7.3.22
php73-sqlite3: 7.3.20 -> 7.3.22
php73-xml: 7.3.20 -> 7.3.22
php73-zlib: 7.3.20 -> 7.3.22
py37-cffi: 1.14.1 -> 1.14.3
py37-six: 1.14.0 -> 1.15.0
py37-sqlite3: 3.7.8_7 -> 3.7.9_7
py37-urllib3: 1.25.7,1 -> 1.25.10,1
python37: 3.7.8_1 -> 3.7.9
rate: 0.9_1 -> 0.9_2
sqlite3: 3.32.3_2,1 -> 3.33.0,1
squid: 4.12 -> 4.13
syslog-ng327: 3.27.1_1 -> 3.27.1_2
unbound: 1.10.1 -> 1.11.0

Installed packages to be REINSTALLED:
nut-2.7.4_14 (needed shared library changed)

Number of packages to be upgraded: 44
Number of packages to be reinstalled: 1

The process will require 2 MiB more space.
43 MiB to be downloaded.
[1/45] Fetching unbound-1.11.0.txz: .......... done
[2/45] Fetching syslog-ng327-3.27.1_2.txz: .......... done
[3/45] Fetching squid-4.13.txz: .......... done
[4/45] Fetching sqlite3-3.33.0,1.txz: .......... done
[5/45] Fetching rate-0.9_2.txz: ....... done
[6/45] Fetching python37-3.7.9.txz: .......... done
[7/45] Fetching py37-urllib3-1.25.10,1.txz: .......... done
[8/45] Fetching py37-sqlite3-3.7.9_7.txz: .... done
[9/45] Fetching py37-six-1.15.0.txz: ... done
[10/45] Fetching py37-cffi-1.14.3.txz: .......... done
[11/45] Fetching php73-zlib-7.3.22.txz: ... done
[12/45] Fetching php73-xml-7.3.22.txz: ... done
[13/45] Fetching php73-sqlite3-7.3.22.txz: ... done
[14/45] Fetching php73-sockets-7.3.22.txz: ..... done
[15/45] Fetching php73-simplexml-7.3.22.txz: ... done
[16/45] Fetching php73-session-7.3.22.txz: ..... done
[17/45] Fetching php73-pdo-7.3.22.txz: ...... done
[18/45] Fetching php73-openssl-7.3.22.txz: ........ done
[19/45] Fetching php73-ldap-7.3.22.txz: .... done
[20/45] Fetching php73-json-7.3.22.txz: ... done
[21/45] Fetching php73-hash-7.3.22.txz: .......... done
[22/45] Fetching php73-gettext-7.3.22.txz: . done
[23/45] Fetching php73-filter-7.3.22.txz: ... done
[24/45] Fetching php73-dom-7.3.22.txz: ........ done
[25/45] Fetching php73-curl-7.3.22.txz: .... done
[26/45] Fetching php73-ctype-7.3.22.txz: . done
[27/45] Fetching php73-7.3.22.txz: .......... done
[28/45] Fetching os-dyndns-1.23.txz: .... done
[29/45] Fetching opnsense-update-20.7.3.txz: ........ done
[30/45] Fetching opnsense-20.7.3.txz: .......... done
[31/45] Fetching openldap-sasl-client-2.4.51.txz: .......... done
[32/45] Fetching nut-2.7.4_14.txz: .......... done
[33/45] Fetching nss-3.57.txz: .......... done
[34/45] Fetching nspr-4.29.txz: .......... done
[35/45] Fetching net-snmp-5.9,1.txz: .......... done
[36/45] Fetching mpd5-5.9.txz: .......... done
[37/45] Fetching maltrail-0.24.txz: .......... done
[38/45] Fetching libunwind-20200331_1.txz: .......... done
[39/45] Fetching libffi-3.3_1.txz: ..... done
[40/45] Fetching json-c-0.15.txz: ......... done
[41/45] Fetching isc-dhcp44-server-4.4.2_1.txz: .......... done
[42/45] Fetching isc-dhcp44-relay-4.4.2_1.txz: .......... done
[43/45] Fetching iperf3-3.9.txz: .......... done
[44/45] Fetching curl-7.72.0.txz: .......... done
[45/45] Fetching ca_root_nss-3.57.txz: .......... done
Checking integrity... done (0 conflicting)
[1/45] Upgrading libffi from 3.3 to 3.3_1...
[1/45] Extracting libffi-3.3_1: .......... done
[2/45] Upgrading python37 from 3.7.8_1 to 3.7.9...
[2/45] Extracting python37-3.7.9: .......... done
[3/45] Upgrading py37-six from 1.14.0 to 1.15.0...
[3/45] Extracting py37-six-1.15.0: .......... done
[4/45] Upgrading py37-cffi from 1.14.1 to 1.14.3...
[4/45] Extracting py37-cffi-1.14.3: .......... done
[5/45] Upgrading sqlite3 from 3.32.3_2,1 to 3.33.0,1...
[5/45] Extracting sqlite3-3.33.0,1: .......... done
[6/45] Upgrading php73 from 7.3.20 to 7.3.22...
[6/45] Extracting php73-7.3.22: .......... done
[7/45] Upgrading nspr from 4.27 to 4.29...
[7/45] Extracting nspr-4.29: .......... done
[8/45] Upgrading ca_root_nss from 3.55 to 3.57...
[8/45] Extracting ca_root_nss-3.57: ...... done
You may need to manually remove /usr/local/etc/ssl/cert.pem if it is no longer needed.
You may need to manually remove /usr/local/openssl/cert.pem if it is no longer needed.
[9/45] Upgrading py37-urllib3 from 1.25.7,1 to 1.25.10,1...
[9/45] Extracting py37-urllib3-1.25.10,1: .......... done
[10/45] Upgrading php73-pdo from 7.3.20 to 7.3.22...
[10/45] Extracting php73-pdo-7.3.22: .......... done
[11/45] Upgrading php73-json from 7.3.20 to 7.3.22...
[11/45] Extracting php73-json-7.3.22: .......... done
[12/45] Upgrading php73-hash from 7.3.20 to 7.3.22...
[12/45] Extracting php73-hash-7.3.22: .......... done
[13/45] Upgrading openldap-sasl-client from 2.4.50 to 2.4.51...
[13/45] Extracting openldap-sasl-client-2.4.51: .......... done
[14/45] Upgrading nss from 3.55 to 3.57...
[14/45] Extracting nss-3.57: .......... done
[15/45] Upgrading json-c from 0.14 to 0.15...
[15/45] Extracting json-c-0.15: .......... done
[16/45] Upgrading curl from 7.71.1 to 7.72.0...
[16/45] Extracting curl-7.72.0: .......... done
[17/45] Upgrading unbound from 1.10.1 to 1.11.0...
===> Creating groups.
Using existing group 'unbound'.
===> Creating users
Using existing user 'unbound'.
[17/45] Extracting unbound-1.11.0: .......... done
[18/45] Upgrading syslog-ng327 from 3.27.1_1 to 3.27.1_2...
[18/45] Extracting syslog-ng327-3.27.1_2: .......... done
You may need to manually remove /usr/local/etc/syslog-ng.conf if it is no longer needed.
[19/45] Upgrading squid from 4.12 to 4.13...
===> Creating groups.
Using existing group 'squid'.
===> Creating users
Using existing user 'squid'.
===> Creating homedir(s)
===> Pre-installation configuration for squid-4.13
[19/45] Extracting squid-4.13: .......... done
You may need to manually remove /usr/local/etc/squid/squid.conf if it is no longer needed.
[20/45] Upgrading rate from 0.9_1 to 0.9_2...
[20/45] Extracting rate-0.9_2: ..... done
[21/45] Upgrading py37-sqlite3 from 3.7.8_7 to 3.7.9_7...
[21/45] Extracting py37-sqlite3-3.7.9_7: ........ done
[22/45] Upgrading php73-zlib from 7.3.20 to 7.3.22...
[22/45] Extracting php73-zlib-7.3.22: ....... done
[23/45] Upgrading php73-xml from 7.3.20 to 7.3.22...
[23/45] Extracting php73-xml-7.3.22: ........ done
[24/45] Upgrading php73-sqlite3 from 7.3.20 to 7.3.22...
[24/45] Extracting php73-sqlite3-7.3.22: ........ done
[25/45] Upgrading php73-sockets from 7.3.20 to 7.3.22...
[25/45] Extracting php73-sockets-7.3.22: .......... done
[26/45] Upgrading php73-simplexml from 7.3.20 to 7.3.22...
[26/45] Extracting php73-simplexml-7.3.22: ......... done
[27/45] Upgrading php73-session from 7.3.20 to 7.3.22...
[27/45] Extracting php73-session-7.3.22: .......... done
[28/45] Upgrading php73-openssl from 7.3.20 to 7.3.22...
[28/45] Extracting php73-openssl-7.3.22: ....... done
[29/45] Upgrading php73-ldap from 7.3.20 to 7.3.22...
[29/45] Extracting php73-ldap-7.3.22: ....... done
[30/45] Upgrading php73-gettext from 7.3.20 to 7.3.22...
[30/45] Extracting php73-gettext-7.3.22: ....... done
[31/45] Upgrading php73-filter from 7.3.20 to 7.3.22...
[31/45] Extracting php73-filter-7.3.22: ........ done
[32/45] Upgrading php73-dom from 7.3.20 to 7.3.22...
[32/45] Extracting php73-dom-7.3.22: .......... done
[33/45] Upgrading php73-curl from 7.3.20 to 7.3.22...
[33/45] Extracting php73-curl-7.3.22: ....... done
[34/45] Upgrading php73-ctype from 7.3.20 to 7.3.22...
[34/45] Extracting php73-ctype-7.3.22: ....... done
[35/45] Upgrading opnsense-update from 20.7.1 to 20.7.3...
[35/45] Extracting opnsense-update-20.7.3: .......... done
[36/45] Upgrading net-snmp from 5.7.3_20,1 to 5.9,1...
[36/45] Extracting net-snmp-5.9,1: .......... done
[37/45] Upgrading mpd5 from 5.8_10 to 5.9...
[37/45] Extracting mpd5-5.9: ......... done
[38/45] Upgrading isc-dhcp44-server from 4.4.2 to 4.4.2_1...
===> Creating groups.
Using existing group 'dhcpd'.
===> Creating users
Using existing user 'dhcpd'.
[38/45] Extracting isc-dhcp44-server-4.4.2_1: .......... done
[39/45] Upgrading isc-dhcp44-relay from 4.4.2 to 4.4.2_1...
[39/45] Extracting isc-dhcp44-relay-4.4.2_1: ....... done
[40/45] Upgrading os-dyndns from 1.22 to 1.23...
[40/45] Extracting os-dyndns-1.23: .......... done
Stopping configd...done
Starting configd.
Reloading plugin configuration
Configuring system logging...done.

I have no pysical access ... OpenVPN connection is still online
What should i do - Some advice please

Thanks
Title: Re: Update from 20.7.1 to 20.7.3 hangs ?
Post by: mittelhirn on September 26, 2020, 01:25:02 pm
I appied the 20.7.3 update on two other devices (APU) - and there was no problem. Maybe because they already on 20.7.2 ....

Just read im not alone with this problem. Cause i do not have pysical access atm and one user had issue : no Kernel found ....

Im afraid a reboot will brick it  :(

What to do ?

Title: Re: Update from 20.7.1 to 20.7.3 hangs ?
Post by: mimugmail on September 26, 2020, 01:45:42 pm
From the log it has not installed kernel yet, but if unsure just wait
Title: Re: Update from 20.7.1 to 20.7.3 hangs ?
Post by: mittelhirn on September 26, 2020, 04:52:17 pm
I think it hangs forever - no change - seems it stopped at 'Configuring system logging...done.'

Should i reboot or hit 'Check for updates' again ?

Title: Re: Update from 20.7.1 to 20.7.3 hangs ?
Post by: gpk481 on September 26, 2020, 08:37:50 pm
I'm facing the same problem trying to automate building a VirtualBox image. As part of the install process I update from 20.7.0 to 20.7.3, and this hangs at the same spot in the update script. It worked once (the first time, heh), but after that I've ran out of luck.

I noticed that it hangs running /usr/local/opnsense/scripts/syslog/lockout_handler, so I decided to restart syslog-ng in the console (the automated process is using ssh): service syslog-ng restart. After that, the installation continues as normal, and the output is equal to the output of that first (successful) time.

So you might want to try restarting syslog-ng, but caveat emptor: I'm a total newbie to OPNsense, and if I brick my image it's likely not as bad as you bricking your installation.
Title: Re: Update from 20.7.1 to 20.7.3 hangs ?
Post by: glasi on September 26, 2020, 10:28:43 pm
I have the same problem.

Restarting the syslog-ng service as suggested by gpk481 did solve the issue for me.

@gpk481: Many thanks.  :)
Title: Re: Update from 20.7.1 to 20.7.3 hangs ?
Post by: robgnu on September 26, 2020, 11:24:35 pm
Same here... the first upgrade 20.7.2 -> 20.7.3 works perfect. The 2nd machine was hanging while upgrading from 20.7.1.
The solution from @gpk481 works perfectly!
Title: Re: Update from 20.7.1 to 20.7.3 hangs ?
Post by: mittelhirn on September 27, 2020, 10:35:07 am
confirmed !
From Web UI it doesnt work

ssh login -> console : service syslog-ng restart

It continued updating - even after hours  :D

thanks to gpk481 !
Title: Re: Update from 20.7.1 to 20.7.3 hangs ?
Post by: mittelhirn on September 27, 2020, 10:48:00 am
big relief:

Code: [Select]
***GOT REQUEST TO AUDIT HEALTH***
>>> Check installed kernel version
Version 20.7.3 is correct.
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 20.7.3 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: ...
maltrail-0.24: checksum mismatch for /usr/local/share/maltrail/maltrail.conf
Checking all packages.......... done
>>> Check for core packages consistency
Checking core packages: .................................................................... done
***DONE***

Title: Re: Update from 20.7.1 to 20.7.3 hangs ?
Post by: mimugmail on September 29, 2020, 02:37:11 pm
It seems to be related to the pkg update from 1.12 to 1.15 which stucks somewhere.
Title: Re: Update from 20.7.1 to 20.7.3 hangs ?
Post by: capri on October 02, 2020, 07:30:38 am
confirmed !
From Web UI it doesnt work

ssh login -> console : service syslog-ng restart

It continued updating - even after hours  :D

thanks to gpk481 !

I can confirm that as well. Was stuck at the point for two days and was looking for help this morning and tried this.

After the service restart the update continued and I'm now up an running again.

Thanks a lot