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

    Imported images on new server not showing

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    17
    1.9k
    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.
    • FallingWaxF
      FallingWax
      last edited by

      Server
      • FOG Version: 1.3.0-RC-14
      • OS: Kubuntu 14.04
      Client NONE
      • Service Version:
      • OS:
      Description

      After creating new server. copied /images directory to new machine (connected drive externally and copied images), ran export images from old server and imported to new server. At this point i expected to see my images in the GUI. Followed steps to set permission on /images and still no change. Any help would be appreciated.

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

        This is a common question, and a common misconception is that simply copying the image files makes them show in the web interface, this isn’t the case.

        Image definitions are metadata about the actual image files. This data is stored in the database. The image definitions are what the web interface displays, regardless of what’s on the disk.

        What version of FOG is your old server? If it’s 1.2.0 or older, you’re going to need to manually re-create the image definitions. Manually doing it just involves making sure you type the image paths correctly, as they are case sensitive, and selecting the same options as the images had on the old server. If your old server is 1.3.0 Trunk, you can just export the image definitions via the web interface and import into the new server the same way.

        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/

        FallingWaxF 1 Reply Last reply Reply Quote 0
        • FallingWaxF
          FallingWax @Wayne Workman
          last edited by

          @Wayne-Workman The old server is trunk 1.3.0 -RC-14 (moving everything to new hardware). I ran export images on the old machine and imported them to the new, but I am still not seeing the images in the GUI on the new machine.

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

            @FallingWax Oh. Well that’s a problem. If there’s nothing sensitive about your image definitions, you can upload here for us to take a look at the file.

            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/

            FallingWaxF 2 Replies Last reply Reply Quote 0
            • FallingWaxF
              FallingWax @Wayne Workman
              last edited by

              @Wayne-Workman [0_1476905657234_image_export.csv](Uploading 100%)

              1 Reply Last reply Reply Quote 0
              • FallingWaxF
                FallingWax @Wayne Workman
                last edited by

                @Wayne-Workman I am not sure if that upload worked. Pop up said not enough privileges to perform this action

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

                  @FallingWax I messaged you, top right, the talk bubble.

                  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/

                  FallingWaxF 1 Reply Last reply Reply Quote 0
                  • FallingWaxF
                    FallingWax @Wayne Workman
                    last edited by

                    @Wayne-Workman looks like the csv format does not match up to the columns in mysql. If i try to add the .csv in manually its only taking the first row but all of the data is off. I think if i manipulate the csv I can get the images to come through correctly. Can you verify my findings? If so, any chance you know the command to copy the table to csv with headers? I tried SELECT * FROM images ‘OUTPUT FILE \images\test.csv’ but that gave me no result. said 1 row affect but no file was generated and I am sure it wouldn’t have the headers.

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

                      @FallingWax If you’re just wanting to know the field names you can do describe images;

                      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/

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

                        @FallingWax you say you exported images from an older version, but what is that older 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

                        FallingWaxF 1 Reply Last reply Reply Quote 0
                        • FallingWaxF
                          FallingWax @Tom Elliott
                          last edited by

                          @Tom-Elliott the old server is on 1.3.0-RC-14 as well. I had just updated prior to moving. Figured it was best to move to move to the same version.

                          1 Reply Last reply Reply Quote 0
                          • FallingWaxF
                            FallingWax @Wayne Workman
                            last edited by

                            @Wayne-Workman I ended up editing the CSV and manually importing it to SQL. I am not sure how the export/import is working but the exported file is missing a number of columns. imageID, imageProtect, imageMagnetUri, imageFormat
                            Once i added those I was able to import and everything is in the GUI now.

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

                              @FallingWax If it’s missing that many fields, I would like this is what’s causing the issue, though if you exported from 14 and imported into 14, I imagine you are seeing:

                              imageName,imageDesc,,,,,,,,, or similar.

                              Like people already said, the image ID is not exported, so that is fine. Data missing (but wrapped by blank comma’s) is fine.

                              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

                              FallingWaxF 1 Reply Last reply Reply Quote 0
                              • FallingWaxF
                                FallingWax @Tom Elliott
                                last edited by

                                @Tom-Elliot that explains why manually importing in to mysql I would need to fix the fields, but not why the initial import did not add to the table. It gave a good confirmation in the GUI after importing as well. I got everything in there now and it sees the images fine so I guess for now all is well. thanks

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

                                  i think we need an example file to give you more information.

                                  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

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

                                    @Tom-Elliott I emailed it to Wayne yesterday.

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

                                      @Tom-Elliott I just shared the file with you.

                                      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

                                      173

                                      Online

                                      12.0k

                                      Users

                                      17.3k

                                      Topics

                                      155.2k

                                      Posts
                                      Copyright © 2012-2024 FOG Project