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

    Multiple images with no title, no size, no storage node and no data

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    19
    5.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.
    • K
      kman1232
      last edited by

      Image2.JPG Image1.JPG
      Hi everyone. I’m new to this forum. I just noticed that in our image store there are probably over 100 blank entries for images. I am attaching two pictures. One which shows the blank image and the other with the specific image information. Does anyone know of a quick way to delete multiple entries? When I ssh to the image location none of these are showing up. Can anyone help this noob?

      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
      • JunkhackerJ
        Junkhacker Developer
        last edited by

        what version of fog are you running?

        signature:
        Junkhacker
        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

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

          Also, based on the pictures, this was an upgraded server from a prior version of FOG?

          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
          • K
            kman1232
            last edited by

            Tom thanks for the reply. This is version 1.2.0

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

              @kman1232 Still no answer to the question. Was this an upgrade from a prior install?

              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
              • K
                kman1232
                last edited by

                Tom we changed physical servers this summer. I did a full server install of version 1.2

                1 Reply Last reply Reply Quote 0
                • K
                  kman1232
                  last edited by

                  When I go to the host management screen and select the Host Image drop down I see the blank entries which what looks to be a database number. Attached is a picture. I have blank entries for 35-43, 3698, 45-7576Image3.png

                  1 Reply Last reply Reply Quote 0
                  • JunkhackerJ
                    Junkhacker Developer
                    last edited by

                    did you import your old database?

                    signature:
                    Junkhacker
                    We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                    1 Reply Last reply Reply Quote 0
                    • K
                      kman1232
                      last edited by

                      @Junkhacker We imported the host database. Of which we only imported mac address and hostname

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

                        @kman1232 What distribution of Linux?

                        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
                        • Tom ElliottT
                          Tom Elliott
                          last edited by

                          Would you be willing to update to trunk? I ask because while I have no clue why you are seeing these entries being made, it looks to me like something is wrong. The fact that you can view the images tells me that something is inject false entries into that particular table. Is this still happening? Or was this more of what I would say is a one off case that happened but is not continuously occurring? Upgrading to trunk wouldn’t fix this for you, but it would, hopefully, cleanup any invalid elements automatically. I guess maybe I’m partial to trunk but I know I can be of more help on it than 1.2.0. While I did code 1.2.0, it is over a year old and I have made a LOT of progress since that time.

                          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

                          K 1 Reply Last reply Reply Quote 1
                          • K
                            kman1232
                            last edited by

                            @Wayne-Workman We are using Ubuntu 14.04.2 currently. Does anyone know of a way to delete images besides having to go through the Image Management User Interface and having to click the delete button? If so this would save us a LOT of manual time in removing these entries. To answer your question Tom at this time we are not ready to upgrade to Trunk. I’ll have to read up on exactly what that entails.

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

                              @kman1232 Do you have any REAL image definitions on your server right now, or just the image definitions that appear to be “randomly created”?

                              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
                              • K
                                kman1232
                                last edited by

                                Yes we do have real images stored on the system and they are working fine. I’d say we have roughly 20 real images. If the only recourse is deleting all images I suppose we could recreate the images we had on the system. If there is a way around this that would be preferable. I’m not sure if the Trunk version has the ability to delete multiple images at one time but maybe a feature worth thinking about.

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

                                  @kman1232 Trunk DOES have multi delete. This goes for all fields, hosts, tasks, images, etc…

                                  That said, if you know how the blank named images are stored, you could do an sql statement to delete them all.

                                  For example:

                                  DELETE FROM fog.images WHERE imageName IN ('',NULL);

                                  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 @kman1232
                                    last edited by Wayne Workman

                                    @kman1232 said:

                                    Yes we do have real images stored on the system and they are working fine. I’d say we have roughly 20 real images. If the only recourse is deleting all images I suppose we could recreate the images we had on the system. If there is a way around this that would be preferable. I’m not sure if the Trunk version has the ability to delete multiple images at one time but maybe a feature worth thinking about.

                                    Do not delete all you images. That is ridiculous. We can help you fix it via TeamViewer if you need help. Follow Tom’s advice, be careful, and it’ll be fixed, or ask for help via TeamViewer from a Moderator or Developer.

                                    Take a backup of your DB before you make changes in case you make a mistake.
                                    FOG Configuration -> Configuration Save -> Export.

                                    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
                                    • Wayne WorkmanW
                                      Wayne Workman @kman1232
                                      last edited by

                                      @kman1232 had over 7,000 blank images that somehow was created in fog 1.2.0.

                                      I was able to find some data unique to these blanks and delete them all. Here’s what I used:

                                      delete from images where imageFormat is null;
                                      

                                      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
                                      • K
                                        kman1232 @Tom Elliott
                                        last edited by

                                        @Tom-Elliott You asked if we would upgrade to Trunk. I haven’t considered it since reading in the wiki https://wiki.fogproject.org/wiki/index.php/FOGUserGuide under the Upgrade to Trunk section states with yellow highlight that “Trunk installs are almost always buggy” If this is no longer the case I would advise making an edit to this section.

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

                                          @kman1232 said:

                                          @Tom-Elliott You asked if we would upgrade to Trunk. I haven’t considered it since reading in the wiki https://wiki.fogproject.org/wiki/index.php/FOGUserGuide under the Upgrade to Trunk section states with yellow highlight that “Trunk installs are almost always buggy” If this is no longer the case I would advise making an edit to this section.

                                          I wouldn’t advise it at this particular moment. the latest is in question.

                                          However, an older rev like 4571 seems fine to me. that’s what I’m using. I’d highly recommend virtualizing your FOG server if you’re going to use trunk, and you have to keep up on your DB and image backups and snapshots and server backups.

                                          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

                                          188

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project