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

    [SOLVED] Bug while updating System_Patches

    Scheduled Pinned Locked Moved pfSense Packages
    7 Posts 3 Posters 1.7k 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.
    • EveningStarNME
      EveningStarNM
      last edited by EveningStarNM

      We are running pfsense 2.4.4-RELEASE-p3 (amd64) built on Wed May 15 18:53:44 EDT 2019 FreeBSD 11.2-RELEASE-p10.

      We used the System Patches package to install the update that fixes the bug in which users in the Administrator group could not perform certain administrative functions (although that patch didn't fix the problem for Suricata: members of the administrator group still cannot disable or enable rules.)

      Upon being notified that an update was available for the System_Patches package to version 1.2_2, we attempted to install it. The installation log returned an error:

      >>> Installing pfSense-pkg-System_Patches... 
      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.
      Checking integrity... done (0 conflicting)
      The following 1 package(s) will be affected (of 0 checked):
      
      New packages to be INSTALLED:
      	pfSense-pkg-System_Patches: 1.2_2 [pfSense]
      
      Number of packages to be installed: 1
      [1/1] Installing pfSense-pkg-System_Patches-1.2_2...
      [1/1] Extracting pfSense-pkg-System_Patches-1.2_2: ......... done
      Saving updated package information...
      done.
      Loading package configuration... done.
      Configuring package components...
      Loading package instructions...
      
      Parse error: syntax error, unexpected ')' in /usr/local/pkg/patches.inc on line 241
      pkg-static: POST-INSTALL script failed
      >>> Cleaning up cache... done.
      Success.
      

      The system log reports the error this way:

      [23-Oct-2019 18:19:20 America/Denver] PHP Parse error:  syntax error, unexpected ')' in /usr/local/pkg/patches.inc on line 241
      

      System Packages shows that version1.2_2 has been installed, but the post-installation update script failed with a syntax error, as noted above. We tried uninstalling the package and reinstalling it, but received the same result.

      1 Reply Last reply Reply Quote 0
      • NogBadTheBadN
        NogBadTheBad
        last edited by

        https://redmine.pfsense.org/issues/9844

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

        1 Reply Last reply Reply Quote 1
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          This should be fixed now

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 2
          • NogBadTheBadN
            NogBadTheBad
            last edited by NogBadTheBad

            @jimp Still seem to be getting the Parse error with the update:-

            Upgrading pfSense-pkg-System_Patches...
            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.
            The following 1 package(s) will be affected (of 0 checked):

            Installed packages to be UPGRADED:
            pfSense-pkg-System_Patches: 1.2_2 -> 1.2_3 [pfSense]

            Number of packages to be upgraded: 1

            11 KiB to be downloaded.
            [1/1] Fetching pfSense-pkg-System_Patches-1.2_3.txz: .. done
            Checking integrity... done (0 conflicting)
            [1/1] Upgrading pfSense-pkg-System_Patches from 1.2_2 to 1.2_3...
            [1/1] Extracting pfSense-pkg-System_Patches-1.2_3: ......... done
            Removing System_Patches components...
            Menu items... done.
            Loading package instructions...

            Parse error: syntax error, unexpected ')' in /usr/local/pkg/patches.inc on line 241
            pkg-static: DEINSTALL script failed
            Saving updated package information...
            overwrite!
            Loading package configuration... done.
            Configuring package components...
            Loading package instructions...
            Custom commands...
            Executing custom_php_install_command()...done.
            Menu items... done.
            Writing configuration... done.

            Cleaning up cache... done.
            Success

            Andy

            1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

            NogBadTheBadN 1 Reply Last reply Reply Quote 0
            • NogBadTheBadN
              NogBadTheBad @NogBadTheBad
              last edited by NogBadTheBad

              @Jimp But a reinstall seems to be fine:-

              Upgrading pfSense-pkg-System_Patches...
              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.
              Checking integrity... done (0 conflicting)
              The following 1 package(s) will be affected (of 0 checked):

              Installed packages to be REINSTALLED:
              pfSense-pkg-System_Patches-1.2_3 [pfSense]

              Number of packages to be reinstalled: 1
              [1/1] Reinstalling pfSense-pkg-System_Patches-1.2_3...
              [1/1] Extracting pfSense-pkg-System_Patches-1.2_3: ......... done
              Removing System_Patches components...
              Menu items... done.
              Loading package instructions...
              Deinstall commands... done.
              Saving updated package information...
              overwrite!
              Loading package configuration... done.
              Configuring package components...
              Loading package instructions...
              Custom commands...
              Executing custom_php_install_command()...done.
              Menu items... done.
              Writing configuration... done.

              Cleaning up cache... done.
              Success

              Andy

              1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

              1 Reply Last reply Reply Quote 1
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                That's expected, if you had the broken copy installed, during removal it tries to run a function from there, which fails. But the actual install part worked, and a later reinstall would work. It was fine after that first attempt where you saw the error, if you read the output.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                EveningStarNME 1 Reply Last reply Reply Quote 2
                • EveningStarNME
                  EveningStarNM @jimp
                  last edited by

                  @jimp Thank you, and to everyone else who replied here, too. I uninstalled v1.2_2 and installed v1..2_3, and everything worked as expected.

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