OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.7 Legacy Series »
  • [Solved] Tar segfault upgrading to 19.7
« previous next »
  • Print
Pages: [1]

Author Topic: [Solved] Tar segfault upgrading to 19.7  (Read 3983 times)

putt1ck

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
    • View Profile
[Solved] Tar segfault upgrading to 19.7
« on: July 24, 2019, 12:08:19 pm »
Hi

Trying to upgrade to 19.7 from 19.1.10_1. Having unlocked the upgrade I get web UI output of

Code: [Select]
***GOT REQUEST TO UPGRADE***
Fetching packages-19.7-OpenSSL-amd64.tar: ... done
Extracting packages-19.7-OpenSSL-amd64.tar...***DONE***

and CLI output of:

Code: [Select]
Proceed with this action? [19.7/y/N]: 19.7

Fetching packages-19.7-OpenSSL-amd64.tar: ... done
Extracting packages-19.7-OpenSSL-amd64.tar...Segmentation fault (core dumped)

*** OPNsense.ourpack.eu: OPNsense 19.1.10_1 (amd64/OpenSSL) ***


Locating the downloaded file and manually running tar -xf successfully extracts the contents.

Any ideas?
« Last Edit: December 20, 2019, 11:19:37 am by putt1ck »
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1615
    • View Profile
Re: Tar segfault upgrading to 19.7
« Reply #1 on: July 25, 2019, 08:19:10 pm »
Can you run the verbose command instead?

#opnsense-update -ur 19.7 -V


Thanks,
Franco
Logged

putt1ck

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
    • View Profile
Re: Tar segfault upgrading to 19.7
« Reply #2 on: August 12, 2019, 09:50:33 am »
From the fetch start:

Code: [Select]
Fetching packages-19.7-OpenSSL-amd64.tar: .+ mkdir -p /var/cache/opnsense-update/70569
+ opnsense-fetch -a -T 30 -q -o /var/cache/opnsense-update/70569/packages-19.7-OpenSSL-amd64.tar.sig https://pkg.opnsense.org/FreeBSD:11:amd64/19.1/sets/packages-19.7-OpenSSL-amd64.tar.sig
.+ opnsense-fetch -a -T 30 -q -o /var/cache/opnsense-update/70569/packages-19.7-OpenSSL-amd64.tar https://pkg.opnsense.org/FreeBSD:11:amd64/19.1/sets/packages-19.7-OpenSSL-amd64.tar
...+ [ -n -V ]
+ opnsense-verify -q /var/cache/opnsense-update/70569/packages-19.7-OpenSSL-amd64.tar
+ echo ' done'
 done
+ [ '' '=' -b ]
+ [ '' '=' -k ]
+ [ '' '=' -k ]
+ [ -n '' -a -z -u ]
+ [ -p '=' -P -a -z -u ]
+ [ -p '=' -p -a -n -u ]
+ echo -n 'Extracting packages-19.7-OpenSSL-amd64.tar...'
Extracting packages-19.7-OpenSSL-amd64.tar...+ rm -rf /var/cache/opnsense-update/.sets.pending/packages-19.7
+ mkdir -p /var/cache/opnsense-update/.sets.pending/packages-19.7
+ pkg-static clean -qya
Segmentation fault (core dumped)

Running pkg-static manually, with no switches/commands also returns a segfault. This may be related to the health check returning the error
Code: [Select]
/usr/local/lib/libpkg.so.4: version LIBPKG_1.4 required by /usr/local/sbin/pkg not defined?
Logged

putt1ck

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
    • View Profile
Re: Tar segfault upgrading to 19.7
« Reply #3 on: August 17, 2019, 06:07:32 am »
Anybody any ideas how to solve this issue?
Logged

putt1ck

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
    • View Profile
Re: Tar segfault upgrading to 19.7
« Reply #4 on: December 19, 2019, 11:09:13 am »
Just spending some time investigating this issue and noting that many (most, all?) of the files on the affected system are date stamped "Jul 13" - is it possible the upgrade completed as such but failed to mark itself as complete?
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1615
    • View Profile
Re: Tar segfault upgrading to 19.7
« Reply #5 on: December 19, 2019, 02:51:53 pm »
The tar went through, but not "pkg-static" which is installed by package manager's own package "pkg" which is a static library so that missing shared objects are not a problem (as per your health check).

It would rather indicate that the file system integrity has an issue, maybe in relation to the installed operating system files being somehow damaged or unavailable.

Usually the following fixes it:

# pkg bootstrap -f


Cheers,
Franco
Logged

putt1ck

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
    • View Profile
Re: Tar segfault upgrading to 19.7
« Reply #6 on: December 20, 2019, 11:19:03 am »
Awesome, that fixed it :)
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1615
    • View Profile
Re: [Solved] Tar segfault upgrading to 19.7
« Reply #7 on: December 22, 2019, 09:47:25 am »
Yay, great to hear 8)
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.7 Legacy Series »
  • [Solved] Tar segfault upgrading to 19.7
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2