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

    [SOLVED] Package installer incorrectly reporting failure

    Scheduled Pinned Locked Moved 2.3-RC Snapshot Feedback and Issues - ARCHIVED
    14 Posts 3 Posters 1.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.
    • S Offline
      Steve_B Netgate
      last edited by

      I have not been able to reproduce this either.

      Would you mind running another installation please and then posting the last few lines from the files:

      • /tmp/webgui-log.txt

      • /tmp/webgui-log.json

      That should provide some clues.

      Thanks!

      Als ik kan

      1 Reply Last reply Reply Quote 0
      • P Offline
        PantsManUK
        last edited by

        [2.3-ALPHA][root@pfSense.pantsmanuk.org]/root: tail /tmp/webgui-log.txt 
        	pfSense-pkg-AutoConfigBackup: 1.29 [pfSense]
        
        The process will require 49 KiB more space.
        10 KiB to be downloaded.
        Fetching pfSense-pkg-AutoConfigBackup-1.29.txz: . done
        Checking integrity... done (0 conflicting)
        [1/1] Installing pfSense-pkg-AutoConfigBackup-1.29...
        [1/1] Extracting pfSense-pkg-AutoConfigBackup-1.29: ......... done
        >>> Cleaning up cache... done.
        __RC=0
        
        
        [2.3-ALPHA][root@pfSense.pantsmanuk.org]/root: tail /tmp/webgui-log.json 
        { "type": "INFO_PROGRESS_TICK", "data": { "current": 3, "total" : 0}}
        { "type": "INFO_PROGRESS_TICK", "data": { "current": 4, "total" : 0}}
        { "type": "INFO_PROGRESS_TICK", "data": { "current": 5, "total" : 0}}
        { "type": "INFO_PROGRESS_TICK", "data": { "current": 6, "total" : 0}}
        { "type": "INFO_PROGRESS_TICK", "data": { "current": 7, "total" : 0}}
        { "type": "INFO_PROGRESS_TICK", "data": { "current": 8, "total" : 0}}
        { "type": "INFO_PROGRESS_TICK", "data": { "current": 9, "total" : 0}}
        { "type": "INFO_PROGRESS_TICK", "data": { "current": 9, "total" : 0}}
        { "type": "INFO_EXTRACT_FINISHED", "data": { "pkgname": "pfSense-pkg-AutoConfigBackup", "pkgversion": "1.29"}}
        { "type": "INFO_INSTALL_FINISHED", "data": { "pkgname": "pfSense-pkg-AutoConfigBackup", "pkgversion": "1.29", "message": ""}}
        

        Note: This was against a brand new install of today's build of full memstick i386 (2015-10-27T02:26). Same behaviour exhibited.

        1 Reply Last reply Reply Quote 0
        • P Offline
          PantsManUK
          last edited by

          bump

          1 Reply Last reply Reply Quote 0
          • S Offline
            Steve_B Netgate
            last edited by

            Thanks for that. The problem is that for some reason your system is reporting that 9 steps of 0 required have been completed:

            { "type": "INFO_PROGRESS_TICK", "data": { "current": 9, "total" : 0}}

            and the code is looking for $current == $total to call it a success.

            We will investigate.

            Als ik kan

            1 Reply Last reply Reply Quote 0
            • S Offline
              Steve_B Netgate
              last edited by

              Would you please run:  "pkg clean -ay" from the command line to clear the package cache?

              Als ik kan

              1 Reply Last reply Reply Quote 0
              • P Offline
                PantsManUK
                last edited by

                @Steve_B:

                Would you please run:  "pkg clean -ay" from the command line to clear the package cache?

                Done.

                1 Reply Last reply Reply Quote 0
                • S Offline
                  Steve_B Netgate
                  last edited by

                  Did it help?

                  We think this may be a bug in the pkg system. I have just made a change to pkg_mgr_install.php to accommodate it.

                  Would you please test before and after syncing?

                  Als ik kan

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    PantsManUK
                    last edited by

                    Oops. Should have said - no, same behaviour after cleaning the cache. Will grab the updated php file and try again.

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      PantsManUK
                      last edited by

                      Assuming you mean commit 3985bb3 in github, that does make it report success. Thnx.

                      [Solved]

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        Steve_B Netgate
                        last edited by

                        Cool. Thank you for testing.

                        We have passed the "pkg" bug report upstream.

                        Als ik kan

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