Can't reinstall packages after upgrade from 1.2.2 to 1.2.3



  • I upgraded one of my pfSense box (full install) via console and after upgrading I tried to reinstall the packages as suggested on the upgrade guide however after one hour or so have elapsed trying to reinstall squid the page is not refreshing and I noticed this error on the bottom of the page:

    Warning: delete_package(/usr/local/pkg/squid.inc): failed to open stream: No such file or directory in /etc/inc/pkg-utils.inc on line 754 Fatal error: delete_package(): Failed opening required '/usr/local/pkg/squid.inc' (include_path='.:/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg') in /etc/inc/pkg-utils.inc on line 754

    Obviously it failed, although clients behind the firewall can still surf but the packages are now broken, I can't reinstall nor uninstall any squid related packages. What are my options here? Would a command line uninstall via pkg_delete work? I don't want to do a fresh install because of the several openVPN and IPSec links I have painstakingly setup before.

    I also updated two other boxes from 1.2.3RC3 to 1.2.3-Release via browser > Firmware > AutoUpdate successfully, I did not encounter the issue aforementioned  but noticed a new one, package rate is no longer working but a simple reinstall did the trick however the same won't work for squid, squidguard and lightsquid.

    TIA


  • Rebel Alliance Developer Netgate

    When you tried to reinstall, did you click the "pkg" button to reinstall or the "xml" button? If you only tried one, try the other.

    As for IPsec and OpenVPN, all of that information is stored in the config.xml file which will come back exactly as it is now if you reinstall.

    That's the beauty of pfSense's configuration system :)

    If you have a spare USB thumb drive and a USB port on your pfSense box, you can restore the config during install, saving even more time:
    http://doc.pfsense.org/index.php/Automatically_Restore_During_Install

    I wiped and reloaded my test box the other day with probably less than 5 minutes total downtime.



  • @jimp:

    When you tried to reinstall, did you click the "pkg" button to reinstall or the "xml" button? If you only tried one, try the other.

    As for IPsec and OpenVPN, all of that information is stored in the config.xml file which will come back exactly as it is now if you reinstall.

    That's the beauty of pfSense's configuration system :)

    If you have a spare USB thumb drive and a USB port on your pfSense box, you can restore the config during install, saving even more time:
    http://doc.pfsense.org/index.php/Automatically_Restore_During_Install

    I wiped and reloaded my test box the other day with probably less than 5 minutes total downtime.

    I've tried all three buttons i.e. "X", "pkg", and "xml" and all of them don't work.

    As regards XML the following is the error:

    Fatal error: Call to undefined function: squid_deinstall_command() in /etc/inc/pkg-utils.inc(520) : eval()'d code on line 1

    As regards X(remove) the following is the error:

    Warning: delete_package(/usr/local/pkg/squid.inc): failed to open stream: No such file or directory in /etc/inc/pkg-utils.inc on line 754 Fatal error: delete_package(): Failed opening required '/usr/local/pkg/squid.inc' (include_path='.:/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg') in /etc/inc/pkg-utils.inc on line 754

    I'll try to fresh install perhaps during the weekend.


  • Rebel Alliance Developer Netgate

    Both of those messages imply that squid is not, in fact, actually installed. (XML settings are active but the .inc and associated files are missing)

    Try this:

    Diagnostics > Command:

    fetch -o /usr/local/pkg/squid.inc http://www.pfsense.org/packages/config/squid/squid.inc

    And then try it again



  • @jimp:

    Both of those messages imply that squid is not, in fact, actually installed. (XML settings are active but the .inc and associated files are missing)

    Try this:

    Diagnostics > Command:

    fetch -o /usr/local/pkg/squid.inc http://www.pfsense.org/packages/config/squid/squid.inc

    And then try it again

    This command did the trick but it only worked if I uninstalled LightSquid, SquidGuard and then Squid altogether then reinstall them again, if I just reinstalled by clicking pkg or xml it won't work.

    Thanks Jimp!



  • fetch -o /usr/local/pkg/squid.inc http://www.pfsense.org/packages/config/squid/squid.inc

    Thanks for this command! I was then able to uninstall both squid and squidguard then reinstall it also fixed my problem.

    Thank You,



  • The fetch trick also just let me fix an instance of HAproxy 0.30 that was similarly broken.


Locked