Rsync failing


 
Thread Tools Search this Thread
Operating Systems Solaris Rsync failing
# 1  
Old 07-22-2015
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.
Code:
[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 ~]#

# 2  
Old 07-24-2015
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.
# 3  
Old 07-24-2015
I created test file inside said directory, one with 777 also. But it is still failing.
Code:
[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
# 4  
Old 07-24-2015
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 :
Code:
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.
# 5  
Old 07-24-2015
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/
Code:
[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]$


Last edited by solaris_1977; 07-24-2015 at 02:44 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Rsync Error: rsync: link_stat failed: No such file or directory (2)

I wish to copy all the files & folder under /web/Transfer_Files/data/ on mymac1 (Linux) to remote server mybank.intra.com (Solaris 10) /tmp/ location I am using Ansible tool synchronize module which triggers the unix rsync command as below:rsync --delay-updates -F --compress --archive --rsh=ssh... (2 Replies)
Discussion started by: mohtashims
2 Replies

2. UNIX for Beginners Questions & Answers

Sorting failing cause not known

Hi All, Below is the message I am getting and the process is failing after the child process. The exit status is 11 and the job it is doing is sorting. Is it the status 11 is because of space unavailability. I am sure about the status 11. Below is the success message I got last on... (4 Replies)
Discussion started by: arunkumar_mca
4 Replies

3. AIX

Backupios Failing

Hi Team, Please help me to resolve the below backup (backupios) issue on my VIO. My VIO is a SAN booted from EMC and powerpath has been installed on this. We already run pprootdev fix and linked the /dev/ipldevice to rootvg hdisk. ... (2 Replies)
Discussion started by: Nazar_KA
2 Replies

4. Shell Programming and Scripting

ps -ef failing sometimes

Hi Everyone, we have a shell script "DLP_recv.sh" that has below command which is supposed to return the number of active instances of itself, which means of there is no other instance then commad would return 1 (for the current instance). The problem is that it sometimes it returns 0 which is... (3 Replies)
Discussion started by: guycool
3 Replies

5. Shell Programming and Scripting

Display which test in the if/else is failing

So I have a script that monitors my drives (/dev/sda and /dev/sdb) using smartctl (smartmontools). I'm by no means an expert in scripting, so this was my attempt at creating a way to email me if one of the values in smartctl output goes above a set threshold. My question is, I'm trying to edit... (5 Replies)
Discussion started by: bound4h
5 Replies

6. UNIX for Advanced & Expert Users

sudo using at failing.

Hi, I'm hopin' ya can give me an idea or two here. I'm writing a file transfer tracking program. Users login via FTP or https. These users have NO shell access. I'll get to that in a minute. When they upload or download a file, a script is invoked to log the transfer in a database,... (9 Replies)
Discussion started by: mph
9 Replies

7. AIX

failing drive

I posted some errpt output,see Phone Support, that this forum graciously looked at and confirmed what we suspected, that one of our RAID5 disks is failing. I have a replacement, but am having trouble downing the old disk. If I try and run Remove a Disk from smit, it says the device is busy. The... (4 Replies)
Discussion started by: markper
4 Replies

8. Solaris

umount is failing

I am trying to umount a NFS share. When I do the following: # umount syrupg21 umount: /oebs/syrupg21: device is busy device bussy so I like to check what is working on the system.... # fuser -muv /oebs/syrupg21/ # So no locks should be there... any clue? Regards, Johan... (3 Replies)
Discussion started by: suntac
3 Replies

9. Shell Programming and Scripting

ssh - rm failing

Hi, Please help me... I am creating a string of filenames with absolute path and deleting those files situated in the remote server using ssh .. but it doesnot work.. Can anyone help me... here is my code for FileName in ${myDire} do Tmp=`basename... (4 Replies)
Discussion started by: shihabvk
4 Replies

10. HP-UX

dd command failing

I am new to HP-UX. I have an 8GB drive that is my root drive, contained in a Volume Group. I would like to clone that drive to another drive, which is 18.4GB. The other drive is not in a volume group. I am using this simple command:# dd if=/dev/dsk/c0t6d0 of=/dev/dsk/c0t5d0The command... (4 Replies)
Discussion started by: emsecrist
4 Replies
Login or Register to Ask a Question