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

    Again: how to best figure out which package causes issues?

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    7 Posts 4 Posters 2.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.
    • rcfaR
      rcfa
      last edited by

      I wrote about this before, but no answer. I figure someone's got to know this:

      Ever since that screwy build that hosed various systems, and the subsequent restore from backup, I have the issue that after a system upgrade, the package installer lock is not getting cleared. (This may or may not be a coincidence).

      All the functionality of the system I actively use seems to be working fine.

      When I manually execute the reinstall all packages, it seems to complete just fine; but with the next system upgrade, it's back to the same issue: package lock isn't getting cleared.

      As it is, it doesn't seem to interfere with the system's functionality, but it's certainly a rough edge that's irritating and something I'd not want to experience in real production system. So how can I track down what is causing this so I can either fix it (if it's a problem on my side) or it can get fixed (if it's a problem in the recent builds that just happens to be triggered by my config).

      Any help and hints highly appreciated.

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        What hardware are you using? In particular, how much memory?
        I have this issue on Alix 2D3/2D13 systems that have 256MB real memory and run some OpenVPN connections. The upgrade downloads, installs, reboots, internet comes up, OpenVPN server/clients start. Then the package downloads are happening, but sometimes (often) there is not enough memory and a process dies "out of swap space" message. This leaves the package lock there.

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • rcfaR
          rcfa
          last edited by

          @phil.davis:

          What hardware are you using? In particular, how much memory?
          I have this issue on Alix 2D3/2D13 systems that have 256MB real memory and run some OpenVPN connections. The upgrade downloads, installs, reboots, internet comes up, OpenVPN server/clients start. Then the package downloads are happening, but sometimes (often) there is not enough memory and a process dies "out of swap space" message. This leaves the package lock there.

          It's a Lanner box with an Atom D510, 4GB RAM, 60GB SSD (which is about 50% full (most of it backups)), and that uses essentially no swap, at least during regular operations. Not sure if something during the install does something funky, but not while I can look at the dashboard.

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by

            Atom D510, 4GB RAM, 60GB SSD

            Well that blows my idea - you are not going to run out 4GB memory installing packages in the background!
            One would hope there is an error in a system log somewhere to tell you what happened to cause the package installation process to die early, before clearing the package lock file.

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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

              connect to the console (serial or video, if you have it) and watch the reboot after the next upgrade.

              It will print the error to the console when the package fails.

              It doesn't log that, however, it only prints to the console.

              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 0
              • rcfaR
                rcfa
                last edited by

                @jimp:

                connect to the console (serial or video, if you have it) and watch the reboot after the next upgrade.

                It will print the error to the console when the package fails.

                It doesn't log that, however, it only prints to the console.

                No console access on that system. I have to open the lid of the box, and get a video monitor there to do that, and that's only because I have some rather non-standard optional cable that plugs on some pins on the mainboard. It's a network appliance, not some desktop PC…

                How about adding a an option to allow logging these things that can be toggled on/off in the settings somewhere?

                Also, why would reinstalling packages from the web interface go smoothly, but automatic reinstall after an upgrade fail?

                1 Reply Last reply Reply Quote 0
                • M
                  mikeisfly
                  last edited by

                  Maybe you can add a serial to usb adapter. When building Pfsense routers I try to choose motherboards that have a serial port just for situations like this.

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