FTP Host: 192.168.*.* %%%, Error: ftp_rename(): /volume1/images %%%



  • When I try to upload an image to an NFS share mounted from an Synology everything works ok until:

    • Image uploaded

    • Task complete!

           * Unable to move /volume1/images/dev/% to /volume1/images/%
      

    FTP Host: 192.168.%.%, Error: ftp_rename(): /volume1/images/dev/*: No such file or directory

    %=placeholder

    FOG writes the data into the /dev/-folder but can not move it to the /images folder, is that right?

    The folder is there with the .img-files in it. I also tried to make an directory with the name of the image but the message is always the same.


  • Moderator

    Yeah I marked at solved a 3 years old topic !



  • @ch3i: I’m sorry, I don’t see my “images” directory permission are false, it’s ok now!

    @Tom-Elliott: Yeah, it’s ok now, I don’t understand why their permissions changed… but, it’s ok :)

    Thanks a lot for all !


  • Senior Developer

    Change the Folder permissions to ensure they are world writable (or if you’re that worried, ensure the folder and all contents are owned by fog);

    sudo chmod -R 777 /images (world writable)
    sudo chown -R fog /images (at least fog owned)


  • Moderator

    @aruhuno Check your your folders rights, all you need is on the wiki : https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP



  • Thanks @Wayne-Workman and @ch3i !

    I’m testing my ftp and have a problem

    root@fogsrv:~# ftp 192.168.0.39
    Connected to 192.168.0.39.
    220 (vsFTPd 2.3.5)
    Name (192.168.0.39:root): fog
    331 Please specify the password.
    Password:
    230 Login successful.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> ls
    200 PORT command successful. Consider using PASV.
    150 Here comes the directory listing.
    226 Directory send OK.
    ftp> cd /images
    250 Directory successfully changed.
    ftp> ls
    200 PORT command successful. Consider using PASV.
    150 Here comes the directory listing.
    drwxr-xr-x    2 0        0            4096 Jun 11  2014 2014-06-11_Win7ent64
    drwxrwxrwx    2 0        0            4096 Apr 17 07:16 2015-04_win7_Lenovo
    drwxr-xr-x    2 0        0            4096 Sep 24 12:17 2015-08_win10
    drwxrwxrwx    3 0        0            4096 Sep 24 10:51 dev
    drwxrwxrwx    5 0        0            4096 May 12 09:11 fog_boot
    drwxrwxrwx    2 0        0           16384 Nov 19  2012 lost+found
    drwxrwxrwx    2 0        0            4096 Oct 14  2014 postdownloadscripts
    226 Directory send OK.
    ftp> put test.txt
    local: test.txt remote: test.txt
    200 PORT command successful. Consider using PASV.
    553 Could not create file.
    ftp> ls
    200 PORT command successful. Consider using PASV.
    150 Here comes the directory listing.
    drwxr-xr-x    2 0        0            4096 Jun 11  2014 2014-06-11_Win7ent64
    drwxrwxrwx    2 0        0            4096 Apr 17 07:16 2015-04_win7_Lenovo
    drwxr-xr-x    2 0        0            4096 Sep 24 12:17 2015-08_win10
    drwxrwxrwx    3 0        0            4096 Sep 24 10:51 dev
    drwxrwxrwx    5 0        0            4096 May 12 09:11 fog_boot
    drwxrwxrwx    2 0        0           16384 Nov 19  2012 lost+found
    drwxrwxrwx    2 0        0            4096 Oct 14  2014 postdownloadscripts
    226 Directory send OK.
    ftp> quit
    221 Goodbye.
    

  • Moderator

    @aruhuno said:

    @ch3i Is on FOG server, thanks for your fast reply.

    Ok, follow @Wayne-Workman link. This article is very usefull ;)


  • Moderator

    @aruhuno Check this out, pay special attention to the credentials section: https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP



  • @ch3i Is on FOG server, thanks for your fast reply.


  • Moderator

    @aruhuno said:

    Hello,

    I’ve the same problem with FOG 1.2.0 and Debian 7.9. The complete message is :

    * FOGFTP: Failed to rename file. Remote_Path: /images/2015-08_win10, Local Path: /images/dev/0050569ad368, Error: ftp_rename(): Rename Failed.
    

    Thanks for your help.

    Hi, your storage is on the FOG server or a NAS ?



  • Hello,

    I’ve the same problem with FOG 1.2.0 and Debian 7.9. The complete message is :

    * FOGFTP: Failed to rename file. Remote_Path: /images/2015-08_win10, Local Path: /images/dev/0050569ad368, Error: ftp_rename(): Rename Failed.
    

    Thanks for your help.



  • Hey,

    what do I have to change at the named files do make it working?

    I found them but I cannot find the desired error message “Unable to move…” or something like that.

    Sebastian



  • hello, The NAS Synology share the NFS with “/volumex/” before the name share, and the FTP share only the name.
    This is the problem because in the firts time the image was sent to “/volume1/images/dev/MACADRESSE” and after it is over the FTP must move to “/images”.
    Dont forget there is not “/volume1/” when you acces to the FTP share.

    if you would like to spend a Synology must modify PHP programs (FOGFTP.class.php, Post_Stage2.php) on the 0.33 beta release.


Log in to reply
 

431
Online

39.3k
Users

11.0k
Topics

104.6k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.