Rsync failing

Hi,

I am running a rsync command from one server to another server. Source server is having user - bfdeploy and destination user is ftcjbd. Though ftcjbd is owner of /ftc/envs/static/includes/vehicles on destination server, it is still giving error "mkstemp - Permission denied". I am not able to figure out, what is failing in between, even if I make it 777. Somebody help.

[bfdeploy@vmgdft01 ~]$ rsync -r -v -u --progress -e ssh ftcjbd@vmgdfd01:/ftc/envs/static/includes/vehicles/ /ftc/envs/static/includes/vehicles/
receiving incremental file list
rsync: mkstemp "/ftc/envs/static/includes/vehicles/.test2_file.bvfz5X" failed: Permission denied (13)
           0 100%    0.00kB/s    0:00:00 (xfer#1, to-check=3/7)
 sent 30 bytes  received 217 bytes  494.00 bytes/sec
total size is 36368  speedup is 147.24
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1518) [generator=3.0.9]
[bfdeploy@vmgdft01 ~]$
 
 On vmgdfd01 :-
 [root@vmgdfd01 ~]# ls -ld /ftc/envs/static/includes/vehicles/
drwxrwxrwx 2 ftcjbd ftc 1024 Jul 22 15:48 /ftc/envs/static/includes/vehicles/
[root@vmgdfd01 ~]#

Can you create files on /ftc/envs/static/includes/vehicles/ as ftcjbd user ?

Confirm that files in directory are 777 as well ?

Perhaps the file in question (error) had some other permission other then 777 and/or user and group of that file are different than other files ?

777 is not a golden hammer to solve problems.
rsync can only operate within unix permissions, so i suspect that the file that failed to rsync has restrictive permission when accessed with ftcjbd user.

I created test file inside said directory, one with 777 also. But it is still failing.

[root@vmgdfd01 ~]# su -  ftcjbd
Last login: Thu Jul 23 07:11:39 PDT 2015 from 10.52.169.236 on pts/0
[ftcjbd@vmgdfd01 ~]$ cd /ftc/envs/static/includes/vehicles/
[ftcjbd@vmgdfd01 vehicles]$ touch test3_file
[ftcjbd@vmgdfd01 vehicles]$ ls -l
total 56
-rw-r--r-- 1 ftcjbd ftc  6216 Mar 31 14:16 avalon_livery_dealers.asp
-rw-r--r-- 1 ftcjbd ftc  3570 Nov 12  2014 subnav.asp
-rw-r--r-- 1 ftcjbd ftc     0 Jul 22 15:46 test2_file
-rw-r--r-- 1 ftcjbd ftc     0 Jul 24 08:52 test3_file
-rwxrwxrwx 1 ftcjbd ftc     0 Jul 22 15:41 test_file
-rw-r--r-- 1 ftcjbd ftc 17048 Nov 26  2014 vehicles_schedule.asp
-rw-r--r-- 1 ftcjbd ftc  9534 Feb 27 10:06 vehicles_thumbs.asp
[ftcjbd@vmgdfd01 vehicles]$

There is no file such file on either server - /ftc/envs/static/includes/vehicles/.test2_file.HAftdZ

Ok we got that covered i guess.
Just to be sure, this is solaris ?

Also, the rsync command looks strange, can you tell me exactly what are you trying to rsync from where.

Can you try the following and see if you get same error :

rsync -r -v -u --progress  ftcjbd@vmgdfd01:/ftc/envs/static/includes/vehicles/ /ftc/envs/static/includes/vehicles/ 

Basic rsync syntax is rsync options source destination
Where source and destination can be remote or local host depending which way you want to rsync.

Files will keep coming in vmgdfd01:/ftc/envs/static/includes/vehicles/. rsync command will be running from vmgdft01. If its /ftc/envs/static/includes/vehicles/ do not have files, which are present inside vmgdfd01:/ftc/envs/static/includes/vehicles/, command should pull those (only updated) files to vmgdft01:/ftc/envs/static/includes/vehicles/

[bfdeploy@vmgdft01 vehicles]$ rsync -r -v -u --progress  ftcjbd@vmgdfd01:/ftc/envs/static/includes/vehicles/ /ftc/envs/static/includes/vehicles/
receiving incremental file list
rsync: mkstemp "/ftc/envs/static/includes/vehicles/.test2_file.iGfar4" failed: Permission denied (13)
           0 100%    0.00kB/s    0:00:00 (xfer#1, to-check=5/9)
rsync: mkstemp "/ftc/envs/static/includes/vehicles/.test3_file.9GEcAg" failed: Permission denied (13)
           0 100%    0.00kB/s    0:00:00 (xfer#2, to-check=4/9)
rsync: mkstemp "/ftc/envs/static/includes/vehicles/.test4_file.trCmJs" failed: Permission denied (13)
           0 100%    0.00kB/s    0:00:00 (xfer#3, to-check=3/9)
 sent 68 bytes  received 327 bytes  790.00 bytes/sec
total size is 36368  speedup is 92.07
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1518) [generator=3.0.9]
[bfdeploy@vmgdft01 vehicles]$