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

    fog creates thousands of new empty images - after one deletion

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    image database fog deletion mysql
    3
    16
    3.0k
    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.
    • H
      Handtuch
      last edited by Handtuch

      Hi community,
      at this very moment, fog is producing new database-entries for images - more than 5 of them every second, each one of them completely blank.

      Step 0: My fog-server together with one fog-node have been configured more than a year ago and they were doing a good job - until now.

      Step 1: Today I was going to delete some old images to free some diskspace. So I logged into the WebUI and went to “Images”->“list of images”. I marked one entry and chose to delete them: the database-entry including the corresponding files. I repeated this step for two more images. The database-entries vanished from the list of images and the files vanished from the filesystem, as expected.

      Step 2: But beginning with the first deletion, the list of images got filled with additional entries for fog-images, each of them completely blank (lacking any data). Within this process, no files have been created in the images-directory of the filesystem.
      In this very moment, more than 5 new entries are appearing every second (To state it clearer: Log into the WebUI, choose “images”->“list of images”. A few minutes after Step 1, I needed to scroll down several thousand empty entries to see the “real” ones.)

      Even after a reboot, this process went on. This is very disturbing and I really don’t want to re-install an re-configure fog from the very beginning.

      Could you help me to
      1.) Stop the creation of new empty images (the database entries)
      2.) Delete these empty images from the database without starting that nightmare again
      3.) Delete any valid images from the database without starting that nightmare again

      I really appreciate your support!
      Kindly,
      Handtuch

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

        This sounds like a fun one…
        Turn off apache first. Ubuntu is service apache2 stop centos/fedora/RHEL is systemctl stop httpd or for older centos iit’s the same as ubuntu.

        From here, we must wait for the bug fix, and clean up images manually in MySQL.

        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/

        H 1 Reply Last reply Reply Quote 1
        • Tom ElliottT
          Tom Elliott
          last edited by

          What version of fog are you running?

          THis sounds like a bug that was in 1.2 (albeit very rarely did it happen).

          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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          H 1 Reply Last reply Reply Quote 2
          • H
            Handtuch @Tom Elliott
            last edited by

            @Tom-Elliott this if fog 1.2.0. Install date 28 Jul 2014

            Tom ElliottT 1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott @Handtuch
              last edited by

              @Handtuch Yours is only the second case of this I’ve heard of. I’m pretty sure this is fixed in trunk.

              I’m almost going to guess you’re on an imaging spree right now? I’ll even further guess you have a bunch of systems waiting to checkin, and some of them are likely reporting node failures.

              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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              H 1 Reply Last reply Reply Quote 0
              • H
                Handtuch @Wayne Workman
                last edited by

                @Wayne-Workman thanks. apache2 is now stopped. We’re going to deploy images to hundreds of computers this week…

                1 Reply Last reply Reply Quote 0
                • H
                  Handtuch @Tom Elliott
                  last edited by

                  @Tom-Elliott We’re indeed on an imaging-spree. Up- and download continued to work normally - at least within the first hour after the start of this nightmare. A bunch of systems were waiting to checkin, but that might be the normal consequence of out host limit.

                  Tom ElliottT 1 Reply Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott @Handtuch
                    last edited by

                    @Handtuch It kind of is, and it’s the only situation in which I can see this issue even being potentially possible of happening. Please try upgrading to trunk. All should be well, of course feel free to take a snapshot or make a backup before. Trunk, while not necessarily perfect, is MUCH faster and overall more stable than 1.2.0 was. Yes 1.2.0 was released, but there’s a reason development continues moving forward.

                    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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    H 1 Reply Last reply Reply Quote 1
                    • H
                      Handtuch @Tom Elliott
                      last edited by

                      @Tom-Elliott thanks for this idea. Do you assume upgrading will fix this problem - or will it “only” prevent it to re-appear again?

                      Tom ElliottT Wayne WorkmanW 2 Replies Last reply Reply Quote 0
                      • Tom ElliottT
                        Tom Elliott @Handtuch
                        last edited by

                        @Handtuch It won’t fix what went strange, but it should prevent it from re-appearing.

                        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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

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

                          @Handtuch it will fix it in the sense that fake images will stop being made. You will still need to play the cleanup game in MySQL. When I’m at a real computer I can provide commands for this.

                          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/

                          H 2 Replies Last reply Reply Quote 0
                          • H
                            Handtuch @Wayne Workman
                            last edited by

                            @Wayne-Workman @Tom-Elliott thanks for your advice. I’m in the process of upgrading right now.

                            1 Reply Last reply Reply Quote 0
                            • H
                              Handtuch @Wayne Workman
                              last edited by

                              @Wayne-Workman @Tom-Elliott
                              You were wrong 🙂 After upgrading to trunk, the empty images disappeared automagically. Let’s hope everything will work like expected on tomorrow’s next imaging-spree. At least, this specific problem has been solved.
                              Thanks a lot. I really mean it.

                              Tom ElliottT Wayne WorkmanW 2 Replies Last reply Reply Quote 2
                              • Tom ElliottT
                                Tom Elliott @Handtuch
                                last edited by

                                @Handtuch I have been working hard and I don’t remember all the work I’ve done.

                                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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

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

                                  @Handtuch cool. Glad to be wrong in this case lol.

                                  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
                                  • H
                                    Handtuch @Tom Elliott
                                    last edited by

                                    @Tom-Elliott And you can’t calculate all the hours you’ve saved for other admins.

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

                                    159

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project