FTP Connection error, 99% of image upload
Scott Carlson last edited by
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.
Matt, generally when the upload fails partway through it’s because of a hardware issue with the client. Have you tried running chkdsk?
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?
Scott Carlson last edited by
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.
Thanks, That seems to have done the trick
[CODE]sudo chown -R fog.fog /images[/CODE]
[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?
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.
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.