Netgate SG-1000 microFirewall

Author Topic: Segmentation Fault on Update  (Read 248 times)

0 Members and 1 Guest are viewing this topic.

Offline Stewart

  • Full Member
  • ***
  • Posts: 252
  • Karma: +16/-2
    • View Profile
Segmentation Fault on Update
« on: November 08, 2017, 04:15:31 pm »
The router has 2.3.3 and I'm looking to update it but can't seem to.  Everything appears to be working normally except updates and the package manager.  I went to check packages and found:
Code: [Select]
Unable to retrieve package information.
OK.  Let's look at Updates:
Code: [Select]
Unable to check for updates
That's not good.  So I launch the shell and try option 13 to update from the console:
Code: [Select]
>>> Updating repositories metadata...
Updating pfSense-core repository catalogue...
pkg: Repository pfSense-core load error: access repo file(/var/db/pkg/repo-pfSense-core.sqlite) failed: No such file or directory
Fetching meta.txz: . done
Child process pid=75907 terminated abnormally: Segmentation fault

Code: [Select]
[2.3.3-RELEASE][pfSense]/root: pkg update; pkg upgrade pkg
Updating pfSense-core repository catalogue...
pkg: Repository pfSense-core load error: access repo file(/var/db/pkg/repo-pfSense-core.sqlite) failed: No such file or directory
Fetching meta.txz: 100%    944 B   0.9kB/s    00:01
Child process pid=48408 terminated abnormally: Segmentation fault
Updating pfSense-core repository catalogue...
pkg: Repository pfSense-core load error: access repo file(/var/db/pkg/repo-pfSense-core.sqlite) failed: No such file or directory
Fetching meta.txz: 100%    944 B   0.9kB/s    00:01
Child process pid=48748 terminated abnormally: Segmentation fault

I also found this:
Code: [Select]
ls -lah /var/db/pkg/
total 47768
drwxr-xr-x   2 root  wheel   512B Nov  8 17:10 .
drwxr-xr-x  21 root  wheel   1.0K Nov  8 17:06 ..
-rw-r--r--   1 root  wheel   246B Apr 11  2017 FreeBSD.meta
-rw-r--r--   1 root  wheel   5.7M Jun 23 10:53 local.sqlite
-rw-r--r--   1 root  wheel   246B Nov  8 17:10 pfSense-core.meta
-rw-r--r--   1 root  wheel   246B Jun 20 12:38 pfSense-core.meta.bak
-rw-r--r--   1 root  wheel   246B May  8  2017 pfSense.meta.bak
-rw-r--r--   1 root  wheel    41M Apr 10  2017 repo-FreeBSD.sqlite.bak

Any help would be appreciated.

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 21312
  • Karma: +1423/-26
    • View Profile
Re: Segmentation Fault on Update
« Reply #1 on: November 09, 2017, 01:35:40 pm »
What do you have for the repository configurations?

Code: [Select]
ls -l /usr/local/share/pfSense/pkg/repos/
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline Stewart

  • Full Member
  • ***
  • Posts: 252
  • Karma: +16/-2
    • View Profile
Re: Segmentation Fault on Update
« Reply #2 on: November 09, 2017, 03:10:44 pm »
Code: [Select]
ls -l /usr/local/share/pfSense/pkg/repos/
total 48
-rw-r--r--  1 root  wheel   17 Mar  3  2017 pfSense-repo-devel.abi
-rw-r--r--  1 root  wheel   18 Mar  3  2017 pfSense-repo-devel.altabi
-rw-r--r--  1 root  wheel  458 Mar  3  2017 pfSense-repo-devel.conf
-rw-r--r--  1 root  wheel   37 Mar  3  2017 pfSense-repo-devel.descr
-rw-r--r--  1 root  wheel   17 Mar  3  2017 pfSense-repo-next.abi
-rw-r--r--  1 root  wheel   18 Mar  3  2017 pfSense-repo-next.altabi
-rw-r--r--  1 root  wheel  463 Mar  3  2017 pfSense-repo-next.conf
-rw-r--r--  1 root  wheel   41 Mar  3  2017 pfSense-repo-next.descr
-rw-r--r--  1 root  wheel   17 Mar  3  2017 pfSense-repo.abi
-rw-r--r--  1 root  wheel   18 Mar  3  2017 pfSense-repo.altabi
-rw-r--r--  1 root  wheel  444 Apr 11  2017 pfSense-repo.conf
-rw-r--r--  1 root  wheel   17 Mar  3  2017 pfSense-repo.descr

Offline mki

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Segmentation Fault on Update
« Reply #3 on: November 23, 2017, 05:26:18 am »
Hi

I have the same issue with 2.4.1.
Current Release: 2.4.1
Can't update to 2.4.2


  • GUI Dashboard: Unable to check for updates
  • GUI Update Settings Branch: two empty lines
  • Package Manager doesn't show installed packages

CLI

pkg update -f
Code: [Select]
[2.4.1-RELEASE][root@pfsense]/root: pkg update -f
Child process pid=27635 terminated abnormally: Segmentation fault
[2.4.1-RELEASE][root@pfsense]/root:

ls -la /usr/local/share/pfSense/keys/pkg/trusted/
Code: [Select]
[2.4.1-RELEASE][root@pfsense]/root: ls -la /usr/local/share/pfSense/keys/pkg/trusted/
total 16
drwxr-xr-x  2 root  wheel  512 Nov  7 07:33 .
drwxr-xr-x  4 root  wheel  512 Oct 19 15:51 ..
-rw-r--r--  1 root  wheel   95 Oct 19 15:51 beta.pfsense.org.20151223
-rw-r--r--  1 root  wheel   95 Oct 19 15:51 pkg.pfsense.org.20160406
[2.4.1-RELEASE][root@pfsense]/root:

ls -la /usr/local/share/pfSense/pkg/repos/
Code: [Select]
[2.4.1-RELEASE][root@pfsense]/root: ls -la /usr/local/share/pfSense/pkg/repos/
total 12
drwxr-xr-x  2 root  wheel  1536 Nov 10 14:07 .
drwxr-xr-x  3 root  wheel   512 Jul 19  2016 ..
-rw-r--r--  1 root  wheel   444 Nov 10 13:59 .pfSense-repo.conf.3Nec7jR9yBmc
-rw-r--r--  1 root  wheel     0 Nov 10 14:07 pfSense-repo-devel.abi
-rw-r--r--  1 root  wheel     0 Nov 10 14:07 pfSense-repo-devel.altabi
-rw-r--r--  1 root  wheel     0 Nov 10 14:07 pfSense-repo-devel.conf
-rw-r--r--  1 root  wheel     0 Nov 10 14:07 pfSense-repo-devel.descr
-rw-r--r--  1 root  wheel     0 Nov 10 14:07 pfSense-repo.abi
-rw-r--r--  1 root  wheel     0 Nov 10 14:07 pfSense-repo.altabi
-rw-r--r--  1 root  wheel     0 Nov 10 14:07 pfSense-repo.conf
-rw-r--r--  1 root  wheel     0 Nov 10 14:07 pfSense-repo.descr

Offline PiBa

  • Hero Member
  • *****
  • Posts: 743
  • Karma: +123/-1
  • PiBa-NL(on IRC)
    • View Profile
Re: Segmentation Fault on Update
« Reply #4 on: Yesterday at 02:19:35 pm »
Try this?:
Code: [Select]
pkg add -f https://files00.netgate.com/pfSense_v2_4_1_amd64-pfSense_v2_4_1/All/pfSense-repo-2.4.1_6.txz

Offline mki

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Segmentation Fault on Update
« Reply #5 on: Yesterday at 02:58:59 pm »
Try this?:
Code: [Select]
pkg add -f https://files00.netgate.com/pfSense_v2_4_1_amd64-pfSense_v2_4_1/All/pfSense-repo-2.4.1_6.txz

Hi PiBa.
Thanks for your help.
I get again a segmentation fault
Code: [Select]
[2.4.1-RELEASE][root@pfsense]/root: pkg add -f https://files00.netgate.com/pfSense_v2_4_1_amd64-pfSense_v2_4_1/All/pfSense-repo-2.4.1_6.txz
Child process pid=90184 terminated abnormally: Segmentation fault

Offline PiBa

  • Hero Member
  • *****
  • Posts: 743
  • Karma: +123/-1
  • PiBa-NL(on IRC)
    • View Profile
Re: Segmentation Fault on Update
« Reply #6 on: Yesterday at 03:44:26 pm »
Any empty files in?: /var/cache/pkg
Perhaps run this to clean cache up.. pkg clean -a

Or if you see any zero byte files in the directories below, such as a file named ".empty", remove them.
/usr/local/share/pfSense/keys/pkg/trusted/
/usr/local/share/pfSense/keys/pkg/revoked/

if none of that helps, try and get a log that might tell where it fails.
Code: [Select]
truss -Hdfo /tmp/truss-pkg.log pkg add -f https://files00.netgate.com/pfSense_v2_4_1_amd64-pfSense_v2_4_1/All/pfSense-repo-2.4.1_6.txz