• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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.
  • F
    FallingWax
    last edited by Oct 19, 2016, 7:13 PM

    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
    • W
      Wayne Workman
      last edited by Wayne Workman Oct 19, 2016, 1:23 PM Oct 19, 2016, 7:22 PM

      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/

      F 1 Reply Last reply Oct 19, 2016, 7:25 PM Reply Quote 0
      • F
        FallingWax @Wayne Workman
        last edited by Oct 19, 2016, 7:25 PM

        @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.

        W T 2 Replies Last reply Oct 19, 2016, 7:27 PM Reply Quote 0
        • W
          Wayne Workman @FallingWax
          last edited by Oct 19, 2016, 7:27 PM

          @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/

          F 2 Replies Last reply Oct 19, 2016, 7:34 PM Reply Quote 0
          • F
            FallingWax @Wayne Workman
            last edited by Oct 19, 2016, 7:34 PM

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

            1 Reply Last reply Reply Quote 0
            • F
              FallingWax @Wayne Workman
              last edited by Oct 19, 2016, 8:00 PM

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

              W 1 Reply Last reply Oct 19, 2016, 8:04 PM Reply Quote 0
              • W
                Wayne Workman @FallingWax
                last edited by Oct 19, 2016, 8:04 PM

                @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/

                F 1 Reply Last reply Oct 19, 2016, 9:33 PM Reply Quote 0
                • F
                  FallingWax @Wayne Workman
                  last edited by Oct 19, 2016, 9:33 PM

                  @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.

                  W 1 Reply Last reply Oct 19, 2016, 9:42 PM Reply Quote 0
                  • W
                    Wayne Workman @FallingWax
                    last edited by Oct 19, 2016, 9:42 PM

                    @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/

                    F 1 Reply Last reply Oct 20, 2016, 1:41 PM Reply Quote 0
                    • T
                      Tom Elliott @FallingWax
                      last edited by Oct 20, 2016, 1:23 AM

                      @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

                      F 1 Reply Last reply Oct 20, 2016, 1:02 PM Reply Quote 0
                      • F
                        FallingWax @Tom Elliott
                        last edited by Oct 20, 2016, 1:02 PM

                        @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
                        • F
                          FallingWax @Wayne Workman
                          last edited by Oct 20, 2016, 1:41 PM

                          @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.

                          T 1 Reply Last reply Oct 20, 2016, 2:08 PM Reply Quote 0
                          • T
                            Tom Elliott @FallingWax
                            last edited by Oct 20, 2016, 2:08 PM

                            @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

                            F 1 Reply Last reply Oct 20, 2016, 2:25 PM Reply Quote 0
                            • F
                              FallingWax @Tom Elliott
                              last edited by Oct 20, 2016, 2:25 PM

                              @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
                              • T
                                Tom Elliott
                                last edited by Oct 20, 2016, 2:31 PM

                                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

                                F W 2 Replies Last reply Oct 20, 2016, 2:52 PM Reply Quote 0
                                • F
                                  FallingWax @Tom Elliott
                                  last edited by Oct 20, 2016, 2:52 PM

                                  @Tom-Elliott I emailed it to Wayne yesterday.

                                  1 Reply Last reply Reply Quote 0
                                  • W
                                    Wayne Workman @Tom Elliott
                                    last edited by Oct 20, 2016, 3:02 PM

                                    @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
                                    1 / 1
                                    • First post
                                      1/17
                                      Last post

                                    160

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project