• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Possible Database issue: All registered hosts gone and graphs are inaccurate

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    2
    6
    1.1k
    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.
    • fry_pF
      fry_p Moderator
      last edited by

      Hey guys,
      I logged into my fog GUI this morning and much to my horror all of my hosts (1000+) were gone. We use FOG for inventory as well so this kinda stinks. I’ve been on RC8 for a while now, but it appears something is amiss with some connection (database or storage node?). I really hope my hosts are not gone for good…

      Here is what clued me into something being up:

      0_1472572103104_Capturefoggy.PNG

      We haven’t imaged anything for days. Let me know which logs are needed.

      Thanks!

      Like open source community computing? Why not do it for a good cause?
      Use your computer/server for humanitarian projects when it is idle!
      https://join.worldcommunitygrid.org?recruiterId=1026912

      1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman
        last edited by Wayne Workman

        If it were a db connection issue, you would be unable to login, the web interface would not work in it’s entirety. It’s something else.

        The first thing to do is a sanity check. Via CLI on the server, enter into MySQL and check your hosts.

        mysql
        use fog;
        select hostID,hostName,hostPending from hosts;
        

        You don’t need to give us this output, we just need to know if it has anything there or not.

        Next, check your MAC addresses, again we don’t need the output, we just need to know if there is anything there at this point.

        select hmHostID,hmMAC,hmPending from hostMAC;
        

        However, do look over the results of these two queries. Particularly, the pending fields for each.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        1 Reply Last reply Reply Quote 0
        • fry_pF
          fry_p Moderator
          last edited by

          Hi Wayne,
          I did both queries and got 61 rows in the first one, with about 25% with a 1 in the pending field. For the second one there were quite a few more (2745 rows) but there are all 0’s or blanks for pending. I’m glad it isn’t my database. Sanity restored 🙂 So what next?

          Like open source community computing? Why not do it for a good cause?
          Use your computer/server for humanitarian projects when it is idle!
          https://join.worldcommunitygrid.org?recruiterId=1026912

          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
          • Wayne WorkmanW
            Wayne Workman @fry_p
            last edited by Wayne Workman

            @fry_p 61 rows from the first one is definitely not good, since you said you had over one-thousand hosts…

            I’d say restore the DB from backup. Look for backups in /home

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
            Daily Clean Installation Results:
            https://fogtesting.fogproject.us/
            FOG Reporting:
            https://fog-external-reporting-results.fogproject.us/

            fry_pF 1 Reply Last reply Reply Quote 0
            • fry_pF
              fry_p Moderator @Wayne Workman
              last edited by

              @Wayne-Workman Restored from a 3 day old backup. Phew I’m lucky. Wonder what happened… We have barely touched FOG in the last 3 days.

              Like open source community computing? Why not do it for a good cause?
              Use your computer/server for humanitarian projects when it is idle!
              https://join.worldcommunitygrid.org?recruiterId=1026912

              Wayne WorkmanW 1 Reply Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman @fry_p
                last edited by Wayne Workman

                @fry_p I have no idea but it’s pretty concerning. Please do regular exports of your DB using the web interface via FOG Configuration -> Configuration Save -> Export, do this once a day, keep the files safe.

                If it happens again, do another export - so we can see what is in it, then move to the last good export.

                Also pinging @Tom-Elliott so he reads through this thread.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                Daily Clean Installation Results:
                https://fogtesting.fogproject.us/
                FOG Reporting:
                https://fog-external-reporting-results.fogproject.us/

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post

                151

                Online

                12.1k

                Users

                17.3k

                Topics

                155.4k

                Posts
                Copyright © 2012-2024 FOG Project