Jump to content

Recommended Posts

Posted

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() [function.ftp-rename: 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?

Posted
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.
  • Thanks 1
Posted
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?
Posted
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

  • 4 months later...
  • 9 months later...
Posted

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:

chown -R fog:root /images

(Adds file ownership for fog and group ownership to root to all images dir and below).

 

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:

chmod -R 777 /images

 

This has worked on a small image upload (~2G), just trying a larger one (~30G)

 

The specs of my system:

Virtual machine, running debian5

FOG version 0.29

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...