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

    pkg-static consuming 100% cpu

    Scheduled Pinned Locked Moved General pfSense Questions
    43 Posts 19 Posters 8.9k 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.
    • P
      poopypants78
      last edited by

      Noticed in the dashboard CPU was running 50%+ (dual core VM in HyperV), and found the same thing happening with pkg-static maxing out one of the cores as well.

      0_1548343956315_1_core_maxed.PNG

      1 Reply Last reply Reply Quote 0
      • chrismacmahonC
        chrismacmahon
        last edited by

        I would suggest following our Twitter feed; we will post updates there: https://twitter.com/NetgateUSA/status/1088455647807455232

        Need help fast? Our support is available 24/7 https://www.netgate.com/support/

        Do Not PM For Help!

        1 Reply Last reply Reply Quote 1
        • S
          smokers
          last edited by

          not everyone has twitter stuff, nor wants to have that. why not updating in https://www.netgate.com/blog/? this way all could use the dashboard widget :). or, maybe have the tweeter feed linked to a widget? :D

          1 Reply Last reply Reply Quote 1
          • T
            tobiasm
            last edited by tobiasm

            We're seeing this issue as well, every time we navigate to the Package Manager in the GUI.

            Pinning everyone's CPU cores if the update servers are down is not a great failure mechanism :-\

            0_1548349258221_Screenshot 2019-01-24 12.00.39.png

            1 Reply Last reply Reply Quote 0
            • X
              xtal
              last edited by

              We're also seeing this right now. This is obviously a bug.

              1 Reply Last reply Reply Quote 0
              • p1terP
                p1ter
                last edited by

                Same situation=-( Hello everybody

                1 Reply Last reply Reply Quote 0
                • KOMK
                  KOM
                  last edited by

                  Same here. Just started doing it today. Earlier this week, I had to take action because 'rate' was consuming 100% CPU on both cores on my dual-core VM. Now today, pkg-static was pegging one core until I killed its pid.

                  1 Reply Last reply Reply Quote 0
                  • A
                    amorphous
                    last edited by

                    Any temporary workarounds?

                    1 Reply Last reply Reply Quote 0
                    • V
                      veriqster
                      last edited by

                      I bumped into this accidentally, while trying to install iperf to run some tests.
                      It actually messed up my /var/db/pkg files and the pkg has been compaining about them since. partially fixed by setting the branch to development and saving then reverting to stable and saving again but not certain it fixed the issue. pkg doesn't complain about not finding files but I see nothing under packages available for install and running pkg update spits errors after about 30 min of being stuck. 1 core pegged to 100% but the system is still operational and routing (hopefully as supposed).
                      Agree, NOT a great way to fail for ANY process, I would actually go as far as saying not an acceptable way; I'm yet to see any other OS fail to update in this way.

                      1 Reply Last reply Reply Quote 0
                      • X
                        xtal
                        last edited by

                        None I am aware of. Process will return. Wait for the server to come up.

                        1 Reply Last reply Reply Quote 0
                        • V
                          veriqster
                          last edited by

                          I bet all it takes to fix this is a couple of lines at the beginning of a certain file, something along the lines of " ping.......; if/while........; else "try again at another time when server is up and running".
                          Wondering if this applies to community edition only or paid members are affected as well.

                          1 Reply Last reply Reply Quote 0
                          • X
                            xtal
                            last edited by

                            It's probably even simpler than that, this is a symptom of a common oversight.

                            1 Reply Last reply Reply Quote 0
                            • A
                              Artichost
                              last edited by

                              Just update the certificate and reboot the server. ;-)

                              p1terP 1 Reply Last reply Reply Quote 1
                              • p1terP
                                p1ter @Artichost
                                last edited by

                                @artichost said in Pkg-Static 100% CPU:

                                Just update the certificate and reboot the server. ;-)

                                Sorry. I'm not shure I understand what you mean. Can you explain please?

                                A 1 Reply Last reply Reply Quote 0
                                • G
                                  gonace
                                  last edited by

                                  Kind of a big oversight that a failing update-server(s) can cause pfSense to hog a process at 100% ;)

                                  GrimsonG 1 Reply Last reply Reply Quote 0
                                  • GrimsonG
                                    Grimson Banned @gonace
                                    last edited by

                                    @gonace said in Pkg-Static 100% CPU:

                                    Kind of a big oversight that a failing update-server(s) can cause pfSense to hog a process at 100% ;)

                                    Well the pkg system is part of FreeBSD, feel free to create a bug report at: https://bugs.freebsd.org

                                    1 Reply Last reply Reply Quote 0
                                    • G
                                      gonace
                                      last edited by

                                      @grimson said in Pkg-Static 100% CPU:

                                      @gonace said in Pkg-Static 100% CPU:

                                      Kind of a big oversight that a failing update-server(s) can cause pfSense to hog a process at 100% ;)

                                      Well the pkg system is part of FreeBSD, feel free to create a bug report at: https://bugs.freebsd.org

                                      I'm not sure since I've not confirmed it on multiple machines, but I can't reproduce it under FreeBSD 11.2 (clean install) so I'm not sure if it's a bug in FreeBSD rather than something specific when running pfSense.

                                      But yeah, just tried to reproduce it on one virtual machine.

                                      GrimsonG 1 Reply Last reply Reply Quote 0
                                      • GrimsonG
                                        Grimson Banned @gonace
                                        last edited by

                                        @gonace said in Pkg-Static 100% CPU:

                                        I'm not sure since I've not confirmed it on multiple machines, but I can't reproduce it under FreeBSD 11.2 (clean install) so I'm not sure if it's a bug in FreeBSD rather than something specific when running pfSense.

                                        Well the FreeBSD servers aren't down.

                                        G 1 Reply Last reply Reply Quote 0
                                        • G
                                          gonace @Grimson
                                          last edited by

                                          @grimson said in Pkg-Static 100% CPU:

                                          @gonace said in Pkg-Static 100% CPU:

                                          I'm not sure since I've not confirmed it on multiple machines, but I can't reproduce it under FreeBSD 11.2 (clean install) so I'm not sure if it's a bug in FreeBSD rather than something specific when running pfSense.

                                          Well the FreeBSD servers aren't down.

                                          Well, I blocked traffic to them and even blocked access to the internet on FreeBSD 11.2 (clean install) and did the same with a clean install of pfSense and the problem only arises on the clean install of pfSense.

                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            Artichost @p1ter
                                            last edited by

                                            @p1ter It´s a handshake problem ;-)

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