Netgate SG-1000 microFirewall

Author Topic: After 2.4 upgrade, console tools not working  (Read 447 times)

0 Members and 1 Guest are viewing this topic.

Offline widmark

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
After 2.4 upgrade, console tools not working
« on: October 19, 2017, 11:45:51 am »
Hello, updated a SG-2440 to 2.4 the other day. Noticed some weird behavior on the console. Tools like top is not working anymore. Example:
Code: [Select]
# top
top: sysctl(vm.stats.vm.v_laundry_count...) failed: No such file or directory
# vmstat
procs  memory       page                    disks     faults         cpu
r b w  avm   fre   flt  re  pi  po    fr   sr md0 md1   in    sy    cs us sy id
vmstat: sysctl(vm.stats.vm.v_pdshortfalls): No such file or directory

This is worrying, did something go wrong with the update?
The web interface is also very slow, takes 30 seconds to log on to the fw. Recommendations?

Offline ivor

  • Administrator
  • Hero Member
  • *****
  • Posts: 733
  • Karma: +154/-135
    • View Profile
    • Netgate
Re: After 2.4 upgrade, console tools not working
« Reply #1 on: October 19, 2017, 12:00:52 pm »
Maybe a hard drive issue. Try doing a clean install.
Need help fast? Commercial support: https://www.netgate.com/support/

Offline widmark

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: After 2.4 upgrade, console tools not working
« Reply #2 on: October 19, 2017, 12:02:04 pm »
Yes, will probably be doing a clean install. Something is wrong<tm>. Firewall seems to be working, but I guess it might break any time.

Edit: I did try a pkg update -f and pkg upgrade -f
Those commands executed without issue, but after a reboot the problem persists.
« Last Edit: October 19, 2017, 05:57:27 pm by widmark »

Offline widmark

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: After 2.4 upgrade, console tools not working [SOLVED]
« Reply #3 on: October 20, 2017, 04:43:14 am »
The problem seems to be that all packages updated fine to 2.4, but not the kernel package. So no wonder top, systat etc didn't work. A wonder that it even booted I'd say, lucky me indeed  :)

Code: [Select]
fw/root: uname -a
FreeBSD fw 10.3-RELEASE-p19 FreeBSD 10.3-RELEASE-p19 #0 bbfdb9a1d(RELENG_2_3_4): Wed May  3 16:12:24 CDT 2017     root@factory23-amd64-builder:/builder/factory-234/tmp/obj/builder/factory-234/tmp/FreeBSD-src/sys/pfSense  amd64

And:

Code: [Select]
fw/root: pkg-static version -vL=
Updating pfSense-core repository catalogue...
pfSense-core repository is up to date.
Updating pfSense repository catalogue...
pfSense repository is up to date.
All repositories are up to date.
libpdel-0.5.3_6                    ?   orphaned: devel/libpdel
pfSense-kernel-pfSense-2.3.4       <   needs updating (remote has 2.4.0)

After a:
Code: [Select]
[/root: pfSense-upgrade -d
And a reboot everything seems to be working! So if anyone else manage to mess up their update, this might help.
...
I'm not sure what went wrong during the update, I think I messed up a temporary netconfig. Always check twice before pushing into production...  ::)

Offline jayjanssen

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: After 2.4 upgrade, console tools not working
« Reply #4 on: November 20, 2017, 10:12:37 am »
THANK YOU -- just got into this exact situation and your commands did the trick.  Much appreciated.

Offline creiss

  • Jr. Member
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
    • alpha-labs.net
Re: After 2.4 upgrade, console tools not working
« Reply #5 on: January 16, 2018, 07:25:06 am »
Hey folks,

I am in the exact same situation:

Code: [Select]
/root: uname -a
FreeBSD cerberus 10.3-RELEASE-p19 FreeBSD 10.3-RELEASE-p19 #0 bbfdb9a1d(RELENG_2_3_4): Wed May  3 16:09:14 CDT 2017

But:

Code: [Select]
]/root: pfSense-upgrade -d
>>> Updating repositories metadata...
Updating pfSense-core repository catalogue...
pfSense-core repository is up to date.
Updating pfSense repository catalogue...
pfSense repository is up to date.
All repositories are up to date.
>>> Locking package pkg...
Locking pkg-1.10.1_1
Your packages are up to date
>>> Unlocking package pkg...
Unlocking pkg-1.10.1_1

And:

Code: [Select]
]/root: pkg info | grep -i kernel
bwi-firmware-kmod-3.130.20     Broadcom AirForce IEEE 802.11 Firmware Kernel Module
pfSense-kernel-pfSense-2.4.2_1 pfSense kernel (pfSense)

Code: [Select]
]/root: pkg-static version -vL=
Updating pfSense-core repository catalogue...
pfSense-core repository is up to date.
Updating pfSense repository catalogue...
pfSense repository is up to date.
All repositories are up to date.

All went peachy-- but the kernel. Any option on forcing the upgrade on that single component?

Cheers,
Christian.

Offline creiss

  • Jr. Member
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
    • alpha-labs.net
Re: After 2.4 upgrade, console tools not working
« Reply #6 on: January 16, 2018, 07:36:32 am »
D'oh.

I had a GEOM mirror that I deactivated prior to upgrade for emergency fallback. Turns out everything is fine; after syncing the right kernel was booted from the primary ssd. Oooookay.

Thanks :)

-Chris.