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

    unable to update 22.01 to 22.05rc

    Scheduled Pinned Locked Moved Plus 22.05 Development Snapshots (Retired)
    7 Posts 3 Posters 1.1k 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.
    • M
      mcouture
      last edited by

      GUI update hangs on: Please wait while the update system initializes

      CommandLine: Another instance is already running... Aborting!

      pkg-static update -f
      Updating pfSense-core repository catalogue...
      Fetching meta.conf: 100% 163 B 0.2kB/s 00:01
      Fetching packagesite.pkg: 100% 2 KiB 2.3kB/s 00:01
      Processing entries: 100%
      pfSense-core repository update completed. 14 packages processed.
      Updating pfSense repository catalogue...
      Fetching meta.conf: 100% 163 B 0.2kB/s 00:01
      Fetching packagesite.pkg: 100% 157 KiB 160.3kB/s 00:01
      Processing entries: 0%
      Newer FreeBSD version for package base64:
      To ignore this error set IGNORE_OSVERSION=yes

      • package: 1203506
      • running kernel: 1203500
        Ignore the mismatch and continue? [y/N]:
        pkg-static: repository pfSense contains packages for wrong OS version: FreeBSD:12:amd64
        Processing entries: 100%
        Unable to update repository pfSense
        Error updating repositories!

      What to do???

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @mcouture
        last edited by

        When you see this :

        @mcouture said in unable to update 22.01 to 22.05rc:

        CommandLine: Another instance is already running... Aborting!

        then "Another instance is already running".
        That's like using "Windows Update" twice (normally not possible, I know).
        Ctrl-C the command you just started.

        Ask the system what 'pkg' process are running :

        ps ax | grep 'pkg'
        

        Use also

        pgrep 'pkg'
        

        ( less details, only the process numbers ).

        Now, wait a bit, re run one or both commands.
        The pkg proces(ses) should be stopped = dissapared.

        If not, kill them.

        Like

        kill xxxx
        

        where xxxx is the process number of a pkg process instance.
        Kill them all.

        Now, you've solved the "Another instance is already running... Aborting!" part.

        That is, if pkg can't reach the other side, will will try for a while, and this might last minutes.
        Or more : see here https://forum.netgate.com/topic/172838/ssl-certificate-subject-doesn-t-match-host - even that issue 'auto resolved' ;)

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        M 1 Reply Last reply Reply Quote 0
        • M
          mcouture @Gertjan
          last edited by

          @gertjan

          I have done a “ps grep” for pkg but it doesn’t return anything.

          I have not rebooted yet but….

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

            From the console or ssh CLI, try running pfSense-upgrade -dc and see what the update check finds.

            If that works, try pfSense-upgrade -d and see if the upgrade works from the console/ssh.

            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!

            M 1 Reply Last reply Reply Quote 0
            • M
              mcouture @jimp
              last edited by

              @jimp

              pfSense-upgrade -dc
              Another instance is already running... Aborting!

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

                Look at the full output of ps uxawwd and see if there are any other instances of pfSense-upgrade, pkg, or (more likely) pkg-static running and that ps output should make it easy to see what started it. Killing the process, e.g. killall -9 pkg-static may be sufficient but if it was started by something else, you might need to kill that, too.

                Using option 16 and then 11 from the console menu will restart PHP and the GUI service, which may also help if it was a GUI update check that got wedged.

                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!

                M 1 Reply Last reply Reply Quote 1
                • M
                  mcouture @jimp
                  last edited by

                  @jimp said in unable to update 22.01 to 22.05rc:

                  ps uxawwd

                  I found these:

                  root 14248 0.0 0.0 11244 2496 0 S+ 09:48 0:00.00 | -- grep upgr root 50870 0.0 0.0 11704 3072 - I 14:45 0:00.00 |-- /bin/sh /usr/local/sbin/pfSense-upgrade -y -l /cf/conf/upgrade_log.txt -p /tmp/pfSense-upgrade.sock root 58743 0.0 0.0 10588 2068 - I 14:45 0:00.00 | -- /usr/bin/lockf -s -t 5 /tmp/pfSense-upgrade.lock /usr/local/libexec/pfSense-upgrade -y -l /cf/conf/upgrade_log.txt -p /tmp/pfSense-upgrade.sock
                  root 58811 0.0 0.0 12472 3356 - S 14:45 0:29.41 | -- /bin/sh /usr/local/libexec/pfSense-upgrade -y -l /cf/conf/upgrade_log.txt -p /tmp/pfSense-upgrade.sock root 39126 0.0 0.0 11164 2132 - I 14:46 0:00.00 | -- nc -lU /tmp/pfSense-upgrade.sock

                  I killed them and restarted the upgrade via GUI and it is now starting....

                  Thanks all!

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