SG-1000 BAD update 07/10/2017



  • Hi All,
    Over the weekend I install latest 2.4.0RC update which put my device in unhappy state, in the end I discovered that the pkg folder on server had been renamed .BAD.

    _Repository pfSense-core missing. 'pkg update' required
    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
    pkg: Repository pfSense-core missing. 'pkg update' required

    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
    pkg: https://firmware.netgate.com/pkg/pfSense_factory-v2_4_0_armv6-core/meta.txz: Not Found
    repository pfSense-core has no meta file, using default settings
    pkg: https://firmware.netgate.com/pkg/pfSense_factory-v2_4_0_armv6-core/packagesite.txz: Not Found
    Unable to update repository pfSense-core
    Updating pfSense repository catalogue...
    pkg: Repository pfSense load error: access repo file(/var/db/pkg/repo-pfSense.sqlite) failed: No such file or directory
    pkg: https://firmware.netgate.com/pkg/pfSense_factory-v2_4_0_armv6-pfSense_factory-v2_4_0/meta.txz: Not Found
    repository pfSense has no meta file, using default settings
    pkg: https://firmware.netgate.com/pkg/pfSense_factory-v2_4_0_armv6-pfSense_factory-v2_4_0/packagesite.txz: Not Found
    Unable to update repository pfSense
    Error updating repositories!
    Netgate SG-1000 - Serial: XX_

    I can now only connect via Serial connection. I waited until last night when the packages were available again, now the error above no longer appears although
    I have a different one seen below.

    pkg: Unable to determine ABI
    pkg: Cannot parse configuration file!
    pkg: Unable to determine ABI
    pkg: Cannot parse configuration file!
    ERROR: It was not possible to identify which pfSense kernel is installed
    Netgate SG-1000 - Serial: XX

    If I open shell and run pkg update manually I get

    [2.4.0-RC][root@drawbridge.acomalocal]/root: pkg update -f
    Child process pid=32940 terminated abnormally: Segmentation fault

    also tried restoring previous configs

    I don't know what to do to fix this, can anybody provide some guidance?
    Regards
    Gareth


  • Rebel Alliance Developer Netgate

    The best course of action would be to reinstall.

    You could try something like this first:

    pkg-static update -f; pkg-static upgrade -f
    

    But reinstalling from a current recovery image and then updating again would be faster.



  • Ok thanks I will try this. Is it easy to copy over my old config? I don't want to have to re-configure everything from scratch.
    Many Thanks
    Gareth


  • Rebel Alliance Developer Netgate

    If you have a local backup, yes. If you do not have a local backup, try to get connected to the GUI to use Diagnostics > Backup/Restore, or even scp/ssh on the current system and see if you can download /conf/config.xml from the box