reggiep (27th July 2009)
Hi All,
I am nearing the time when I will need to image all my now non CC3 machines. Typically I now notice a slight issue with my fog server. I have installe fog 0.27 and all appears OK until I try to upload a single partition NTFS resizable image. It fails after trying to resize the partition with an error like this...
ftp_rename() [<a href='function.ftp-rename' >function.ftp-rename</a>: RNFR command failed in var/www/fog/service/Post_Stage2.php on line 133.
having looked on line 133 it says...
if (ftp_rename ( $ftp, $src, $dest ) || ftp_rename ( $ftp, $srcdd, $dest ))
I can see that the renaming of the file is failing but not sure how I can fix this
Does anyone have any suggestions or come across this before?
It looks like the error is coming from the ftp server. If thats the case it's probably the underlying filesystem thats causing the problem. I suspect you've got messed up permissions. Check that the fog user has full access to the /images folder/files/subfolders.
reggiep (27th July 2009)
Your not trying to ghost a stone computer are you?
If not change ownership of the /images file to fog.
reggiep (27th July 2009)
Now I know I need to chown for that but I'm not suer what the fog user is called. Is there a linux way to see who has ownership of folders so I could take it from there?
Code:root@fog-storage:/images# ls -l total 13479228 drwxrwxrwx 2 fog root 4096 2009-07-23 16:01 DellD505_Full_Sysprep_230709 drwxrwxr-x 2 fog root 4096 2009-07-24 16:17 dev -rwxrwxrwx 1 fog root 5665436712 2009-07-15 12:27 Generic_IT_150709 -rwxrwxrwx 1 fog root 2249057780 2009-07-22 14:40 hp_dx2400_base_ghost_curriclulum_060309 drwxrwxrwx 2 fog root 4096 2009-07-24 16:16 HPDX2420_Complete_240709 drwxrwxrwx 2 fog root 4096 2009-07-24 12:40 HPDX2420_Full_240709 drwxr-xr-x 2 fog root 4096 2009-07-07 11:36 OFFPC01-Base-030709 -rwxrwxrwx 1 fog root 5874706679 2009-07-14 10:11 ShuttleXPC-Full-140709
I have chowned the ownership so all images are owned by fog root but still the same error!
I may go back to 0.26 for now.![]()
Did you find a solution?
I'm having the same problem.
I've checked a few things,
The storage password and ftp config seem ok.
I've watched fog create the image file in /images/dev
However it seems when it comes to move and rename the image file to /images it come up with the rename error on the console of the machine uploading.
I checked the right on the directories (/images and /images/dev)
They were set correctly, but I ran thease commands just in case:
(Adds file ownership for fog and group ownership to root to all images dir and below).Code:chown -R fog:root /images
Still didn't work.
The file seems to get deleted rather than moved.
So, I've tried adding global write access (security risk of course) with:
This has worked on a small image upload (~2G), just trying a larger one (~30G)Code:chmod -R 777 /images
The specs of my system:
Virtual machine, running debian5
FOG version 0.29
Ok I tried uploading a larger image - didn't work.
However there were two other variables:
The small image was a newly created one.
The large image wasn't (existed before).
The large image also has a "." in the file name.
Looks like something must be corrupted with my installations or database - time to reinstall the server and FOG.
There are currently 1 users browsing this thread. (0 members and 1 guests)