Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Pfsense upgrade to 2.3 fail (An error occurred on pkg execution rc=70)

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    7 Posts 5 Posters 3.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      henryvu
      last edited by

      Hi guys,

      I am upgrading my pfsense box to 2.3 and it now become a disaster.

      The upgrade path is fine but when PfSense try to update PFSENSE-Core and Pfsense-repository, it has fail and now keeping in a loop trying to connect to pkg.pfsense.org

      The following message is displaying :
      " An error occurred on pkg execution rc 70 with parameter 'update-f' . pkg : http://pkg.pfsense.org/pfsense_v2_3_0_amd64-core/meta.txz : no route to host"
      " An error occurred on pkg execution rc 70 with parameter 'update-f' . pkg : http://pkg.pfsense.org/pfsense_v2_3_0_amd64-core/packagesite.txz : no route to host"

      Crash Log as below

      –-----
      Crash report begins.  Anonymous machine information:

      amd64
      10.3-RELEASE
      FreeBSD 10.3-RELEASE #6 05adf0a(RELENG_2_3_0): Mon Apr 11 18:52:07 CDT 2016    root@ce23-amd64-builder:/builder/pfsense-230/tmp/obj/builder/pfsense-230/tmp/FreeBSD-src/sys/pfSense

      Crash report details:

      PHP Errors:
      [13-Apr-2016 18:42:36 Australia/Melbourne] PHP Stack trace:
      [13-Apr-2016 18:42:36 Australia/Melbourne] PHP  1. {main}() /usr/local/www/pkg_edit.php:0
      [13-Apr-2016 18:42:36 Australia/Melbourne] PHP  2. eval() /usr/local/www/pkg_edit.php:142
      [13-Apr-2016 18:42:36 Australia/Melbourne] PHP  3. squid_before_form_general() /usr/local/www/pkg_edit.php(142) : eval()'d code:1
      [13-Apr-2016 18:42:36 Australia/Melbourne] PHP  4. get_dir() /usr/local/pkg/squid.inc:284
      [13-Apr-2016 18:42:36 Australia/Melbourne] PHP  5. dir() /etc/inc/pfsense-utils.inc:505
      [13-Apr-2016 18:42:36 Australia/Melbourne] PHP Fatal error:  Call to a member function read() on boolean in /etc/inc/pfsense-utils.inc on line 506
      [13-Apr-2016 18:42:36 Australia/Melbourne] PHP Stack trace:
      [13-Apr-2016 18:42:36 Australia/Melbourne] PHP  1. {main}() /usr/local/www/pkg_edit.php:0
      [13-Apr-2016 18:42:36 Australia/Melbourne] PHP  2. eval() /usr/local/www/pkg_edit.php:142
      [13-Apr-2016 18:42:36 Australia/Melbourne] PHP  3. squid_before_form_general() /usr/local/www/pkg_edit.php(142) : eval()'d code:1
      [13-Apr-2016 18:42:36 Australia/Melbourne] PHP  4. get_dir() /usr/local/pkg/squid.inc:284
      [13-Apr-2016 18:49:13 Australia/Melbourne] PHP Stack trace:
      [13-Apr-2016 18:49:13 Australia/Melbourne] PHP  1. {main}() /usr/local/www/pkg_edit.php:0
      [13-Apr-2016 18:49:13 Australia/Melbourne] PHP  2. require_once() /usr/local/www/pkg_edit.php:94
      [13-Apr-2016 18:49:13 Australia/Melbourne] PHP  3. convert_pfxml_to_sgxml() /usr/local/pkg/squidguard.inc:100
      [13-Apr-2016 18:49:13 Australia/Melbourne] PHP  4. file_put_contents() /usr/local/pkg/squidguard.inc:1045
      [13-Apr-2016 18:49:17 Australia/Melbourne] PHP Stack trace:
      [13-Apr-2016 18:49:17 Australia/Melbourne] PHP  1. {main}() /usr/local/www/pkg_edit.php:0
      [13-Apr-2016 18:49:17 Australia/Melbourne] PHP  2. require_once() /usr/local/www/pkg_edit.php:94
      [13-Apr-2016 18:49:17 Australia/Melbourne] PHP  3. convert_pfxml_to_sgxml() /usr/local/pkg/squidguard.inc:100
      [13-Apr-2016 18:49:17 Australia/Melbourne] PHP  4. file_put_contents() /usr/local/pkg/squidguard.inc:1045
      [13-Apr-2016 18:49:18 Australia/Melbourne] PHP Stack trace:
      [13-Apr-2016 18:49:18 Australia/Melbourne] PHP  1. {main}() /usr/local/www/pkg_edit.php:0
      [13-Apr-2016 18:49:18 Australia/Melbourne] PHP  2. eval() /usr/local/www/pkg_edit.php:255
      [13-Apr-2016 18:49:18 Australia/Melbourne] PHP  3. squidguard_resync() /usr/local/www/pkg_edit.php(255) : eval()'d code:1
      [13-Apr-2016 18:49:18 Australia/Melbourne] PHP  4. convert_pfxml_to_sgxml() /usr/local/pkg/squidguard.inc:325
      [13-Apr-2016 18:49:18 Australia/Melbourne] PHP  5. file_put_contents() /usr/local/pkg/squidguard.inc:1045
      [13-Apr-2016 18:49:18 Australia/Melbourne] PHP Stack trace:
      [13-Apr-2016 18:49:18 Australia/Melbourne] PHP  1. {main}() /usr/local/www/pkg_edit.php:0
      [13-Apr-2016 18:49:18 Australia/Melbourne] PHP  2. eval() /usr/local/www/pkg_edit.php:255
      [13-Apr-2016 18:49:18 Australia/Melbourne] PHP  3. squidguard_resync() /usr/local/www/pkg_edit.php(255) : eval()'d code:1
      [13-Apr-2016 18:49:18 Australia/Melbourne] PHP  4. sg_reconfigure() /usr/local/pkg/squidguard.inc:343
      [13-Apr-2016 18:49:18 Australia/Melbourne] PHP  5. file_put_contents() /usr/local/pkg/squidguard_configurator.inc:414
      [13-Apr-2016 18:54:24 Australia/Melbourne] PHP Stack trace:
      [13-Apr-2016 18:54:24 Australia/Melbourne] PHP  1. {main}() /usr/local/www/pkg_edit.php:0
      [13-Apr-2016 18:54:24 Australia/Melbourne] PHP  2. eval() /usr/local/www/pkg_edit.php:142
      [13-Apr-2016 18:54:24 Australia/Melbourne] PHP  3. squid_before_form_general() /usr/local/www/pkg_edit.php(142) : eval()'d code:1
      [13-Apr-2016 18:54:24 Australia/Melbourne] PHP  4. get_dir() /usr/local/pkg/squid.inc:284
      [13-Apr-2016 18:54:24 Australia/Melbourne] PHP  5. dir() /etc/inc/pfsense-utils.inc:505
      [13-Apr-2016 18:54:24 Australia/Melbourne] PHP Fatal error:  Call to a member function read() on boolean in /etc/inc/pfsense-utils.inc on line 506
      [13-Apr-2016 18:54:24 Australia/Melbourne] PHP Stack trace:
      [13-Apr-2016 18:54:24 Australia/Melbourne] PHP  1. {main}() /usr/local/www/pkg_edit.php:0
      [13-Apr-2016 18:54:24 Australia/Melbourne] PHP  2. eval() /usr/local/www/pkg_edit.php:142
      [13-Apr-2016 18:54:24 Australia/Melbourne] PHP  3. squid_before_form_general() /usr/local/www/pkg_edit.php(142) : eval()'d code:1
      [13-Apr-2016 18:54:24 Australia/Melbourne] PHP  4. get_dir() /usr/local/pkg/squid.inc:284
      [13-Apr-2016 18:57:07 Australia/Melbourne] PHP Stack trace:
      [13-Apr-2016 18:57:07 Australia/Melbourne] PHP  1. {main}() /usr/local/www/pkg_edit.php:0
      [13-Apr-2016 18:57:07 Australia/Melbourne] PHP  2. eval() /usr/local/www/pkg_edit.php:142
      [13-Apr-2016 18:57:07 Australia/Melbourne] PHP  3. squid_before_form_general() /usr/local/www/pkg_edit.php(142) : eval()'d code:1
      [13-Apr-2016 18:57:07 Australia/Melbourne] PHP  4. get_dir() /usr/local/pkg/squid.inc:284
      [13-Apr-2016 18:57:07 Australia/Melbourne] PHP  5. dir() /etc/inc/pfsense-utils.inc:505
      [13-Apr-2016 18:57:07 Australia/Melbourne] PHP Fatal error:  Call to a member function read() on boolean in /etc/inc/pfsense-utils.inc on line 506
      [13-Apr-2016 18:57:07 Australia/Melbourne] PHP Stack trace:
      [13-Apr-2016 18:57:07 Australia/Melbourne] PHP  1. {main}() /usr/local/www/pkg_edit.php:0
      [13-Apr-2016 18:57:07 Australia/Melbourne] PHP  2. eval() /usr/local/www/pkg_edit.php:142
      [13-Apr-2016 18:57:07 Australia/Melbourne] PHP  3. squid_before_form_general() /usr/local/www/pkg_edit.php(142) : eval()'d code:1
      [13-Apr-2016 18:57:07 Australia/Melbourne] PHP  4. get_dir() /usr/local/pkg/squid.inc:284
      –---------------------

      Any idea how to fix it ?

      Thanks

      1 Reply Last reply Reply Quote 0
      • C
        colin
        last edited by

        I had a similar issue due to my default gateway not being set during the upgrade process.

        1 Reply Last reply Reply Quote 0
        • S
          stompro
          last edited by

          I just ran into this.  I'm used to restoring configs that WAN info that will only work once I'm on site at a remote location.  So after I used a second pfsense box to have the correct wan network, it seemed to work fine.

          Kind of annoying that there is no way to proceed without WAN access.

          Josh

          Hardware used: Alix 2D13 X 10, APU2D4 X 10, SG-2200 X 10, SG-2440 X 4

          1 Reply Last reply Reply Quote 0
          • R
            robi
            last edited by

            @stompro:

            Kind of annoying that there is no way to proceed without WAN access.

            Same here. What I do in the production environment, is to prepare a second box with the same config, and swap the boxes at the location. I can't replicate WAN always in the lab, because local WAN at those locations can be anything, like PPPoE or fixed IP, etc.

            There should be some clever possibility to do the update on an offline box.

            I'm going to open a thread/ticket on this as soon as things calm down on this new release.

            1 Reply Last reply Reply Quote 0
            • H
              henryvu
              last edited by

              , i tried to add both gateway back into console and modify resolver.conf file to local dns and google dns , still doesnt work. i ended up reinstalling it from snapshot

              1 Reply Last reply Reply Quote 0
              • S
                stompro
                last edited by

                One possibility is to swap in a generic DHCP WAN config before you upload the config to restore.  Then setup the actual WAN settings once you are on site.

                Edit the xml and replace the customized wan with this, then put back your customized wan after the upgrade is done.

                
                                <wan><if>re2</if>
                			 <blockbogons><enable><blockpriv><ipaddr>dhcp</ipaddr>
                			 <subnet><gateway>WANGW</gateway></subnet></blockpriv></enable></blockbogons></wan> 
                
                

                Hardware used: Alix 2D13 X 10, APU2D4 X 10, SG-2200 X 10, SG-2440 X 4

                1 Reply Last reply Reply Quote 0
                • T
                  TnIan
                  last edited by

                  @Colin:

                  I had a similar issue due to my default gateway not being set during the upgrade process.

                  Same here. Did you find a workaround?

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.