Netgate SG-1000 microFirewall

Author Topic: Issues updating from 2.3-RC (or older 2.3 installs) to 2.3-RELEASE  (Read 47629 times)

0 Members and 1 Guest are viewing this topic.

Offline Rajko Ray

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Issues updating from 2.3-RC (or older 2.3 installs) to 2.3-RELEASE
« Reply #60 on: July 13, 2017, 06:12:08 am »
After upgrade:
Version   2.3-RELEASE (amd64)
built on Mon Apr 11 18:28:29 CDT 2016
FreeBSD 10.3-RELEASE

Unable to check for updates
-------------------------------------------------------------------
pkg info -x pfSense
pfSense-2.3
pfSense-Status_Monitoring-1.0_1
pfSense-base-nanobsd-2.3
pfSense-default-config-serial-2.3
pfSense-kernel-pfSense-2.3
pfSense-pkg-AutoConfigBackup-1.43_1
pfSense-pkg-aws-wizard-0.5_1
pfSense-pkg-ipsec-profile-wizard-0.9_1
pfSense-pkg-openvpn-client-export-1.4.3
pfSense-rc-2.3
pfSense-repo-2.3
php56-pfSense-module-0.12
-------------------------------------------------------------------
pkg upgrade -f
Nothing happens
-------------------------------------------------------------------
rm /usr/local/etc/pkg/repos/pfSense.conf
rm: /usr/local/etc/pkg/repos/pfSense.conf: Read-only file system
-------------------------------------------------------------------
fetch -qo /usr/local/share/pfSense/keys/pkg/trusted/ https://raw.githubusercontent.com/pfsense/pfsense/RELENG_2_3_0/src/usr/local/share/pfSense/keys/pkg/trusted/pkg.pfsense.org.20160406
fetch: /usr/local/share/pfSense/keys/pkg/trusted//pkg.pfsense.org.20160406: mkstemps(): Read-only file system
-------------------------------------------------------------------
Error: /usr/local/etc/pkg/repos/pfSense.conf: Read-only file system.
Error: /var/tmp/vi.recover/: Permission denied; Modifications not recoverable if the session fails
-------------------------------------------------------------------

Last here is present content of /usr/local/etc/pkg/repos/pfSense.conf

FreeBSD: { enabled: no }

pfSense-core: {
  url: "pkg+http://firmware.netgate.com/pkg/pfSense_factory-v2_3_0_amd64-core",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/local/share/pfSense/keys/pkg"
  enabled: yes
}

pfSense: {
  url: "pkg+http://firmware.netgate.com/pkg/pfSense_factory-v2_3_0_amd64-pfSense_factory-v2_3_0",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/local/share/pfSense/keys/pkg"
  enabled: yes
}


Simple question which step am I missing here?

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 21300
  • Karma: +1418/-26
    • View Profile
Re: Issues updating from 2.3-RC (or older 2.3 installs) to 2.3-RELEASE
« Reply #61 on: July 13, 2017, 08:02:42 am »
rm /usr/local/etc/pkg/repos/pfSense.conf
rm: /usr/local/etc/pkg/repos/pfSense.conf: Read-only file system
[...]
Simple question which step am I missing here?

You have a filesystem problem which needs addressed. Failing to update is a symptom of some other problem you have, it's most likely not a problem with your updates.

Reboot into single user mode (option 2 at the boot menu IIRC) and then run "fsck -y /" repeatedly until it does not find any problems. Don't stop when it says the filesystem is clean, keep going until it finds no problems/makes no corrections. If that doesn't help, you might have a disk issue, or may need to reinstall. Start a new thread if you need more help with that since it isn't directly related to this thread.
Need help fast? Commercial Support!

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

Do not PM for help!

Offline Rajko Ray

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Issues updating from 2.3-RC (or older 2.3 installs) to 2.3-RELEASE
« Reply #62 on: August 01, 2017, 03:27:57 am »
Using admin username which isn't built-in admin behaves differently on pfsense.

Once I re-enabled "admin" account and logged to firewall via SSH console, I was able to complete update.

2 firewalls fixed with these steps so far.

File system was fine.

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 21300
  • Karma: +1418/-26
    • View Profile
Re: Issues updating from 2.3-RC (or older 2.3 installs) to 2.3-RELEASE
« Reply #63 on: August 09, 2017, 09:35:25 am »
Using admin username which isn't built-in admin behaves differently on pfsense.

Once I re-enabled "admin" account and logged to firewall via SSH console, I was able to complete update.

2 firewalls fixed with these steps so far.

File system was fine.

When you used a non-root/admin account, did you run the update via sudo?

I would expect it to fail without sudo from an unprivileged user. That also explains the errors.
Need help fast? Commercial Support!

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

Do not PM for help!