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

FTP Connection error, 99% of image upload

Scheduled Pinned Locked Moved
FOG Problems
4
9
3.6k
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.
  • S
    Scott Carlson
    last edited by Aug 16, 2012, 2:49 PM

    Hello all,

    I have been using fog for a awhile now. So far, I’ve been able to rectify all the little issues I’ve had with it through google, these forums, or just browsing around the log files.

    Recently I had to rebuild fog due to a disaster. I was able to resurect a few images to use and I can images machines just fine. The issue I am running in to is when I attempt to capture an image. The image upload process starts fine, up until it hits 99% complete. At 99%, the client machine gives the following error. This is not the exact message.

    • FTP Connection to server has failed.

    When I look on the fog server in /images/dev I can see a large file, what looks like it would contain the image upload.

    I am not sure what process Fog is trying to attempt that is failing. Thank you in advance for your help.

    1 Reply Last reply Reply Quote 0
    • C
      chad-bisd Moderator
      last edited by Sep 14, 2012, 2:07 AM

      Decompress the init.gz file and look in the /bin/fog script for the error message. It will clue you in to what is wrong. Make sure ownership and permissions to /images are correct. Owner is fog. Group is root.


      If you would like to make a donation to the Fog project, please do so [U][COLOR=#0000ff][URL='http://sourceforge.net/dona…

      1 Reply Last reply Reply Quote 0
      • B
        BryceZ
        last edited by Sep 14, 2012, 2:19 PM

        If I recall correctly, that message occurs directly after the image has uploaded when FOG is trying to remove the client file /tftpboot/pxelinux.cfg/<MAC-Address>. At this point you have a successful image uploaded, but rebooting the client will start the task again because the task file still exists. The one time fix is to just browse on the server to /tftpboot/pxelinux.cfg/ and delete the file named 01-<MAC address>, that will end the task.

        1 Reply Last reply Reply Quote 0
        • M
          Matt Bishop
          last edited by Sep 25, 2012, 12:03 PM

          [quote=“chad-bisd, post: 8632, member: 18”]Decompress the init.gz file and look in the /bin/fog script for the error message. It will clue you in to what is wrong. Make sure ownership and permissions to /images are correct. Owner is fog. Group is root.[/quote]

          I have the owner of images set to root, and every directory down to the folder I want to store the images in,

          I have tried setting the owner to fog in terminal using the following

          [CODE] # sudo chown fog /images [/CODE]

          and its not changing the owner… any suggestions?

          1 Reply Last reply Reply Quote 0
          • B
            BryceZ
            last edited by Sep 25, 2012, 1:11 PM

            Try…
            [CODE]sudo chown -R fog.fog /images[/CODE]

            1 Reply Last reply Reply Quote 0
            • M
              Matt Bishop
              last edited by Sep 25, 2012, 2:08 PM

              Thanks, That seems to have done the trick

              1 Reply Last reply Reply Quote 0
              • S
                Scott Carlson
                last edited by Sep 25, 2012, 2:18 PM

                The owner of the /images folder is root:root but the folder has 777 permissions. I’ll try changing it to fog:root and see if that helps.

                I am able to take the file created in /images/dev, move it to /images, rename it and it works fine as an image though.

                1 Reply Last reply Reply Quote 0
                • M
                  Matt Bishop
                  last edited by Sep 26, 2012, 8:05 AM

                  sorry to piggy back on someone elses thread but the above solution worked as far as it let me change the permissions, but now I’m still getting the problem of the upload falling over after about 350mb on a 16gb image and fog seems to think it’s done :S (ie, image uploaded shows on the screen) … and thoughts?

                  1 Reply Last reply Reply Quote 0
                  • B
                    BryceZ
                    last edited by Sep 26, 2012, 2:51 PM

                    Matt, generally when the upload fails partway through it’s because of a hardware issue with the client. Have you tried running chkdsk?

                    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