OARS-SAFS / resources

Open and Reproducible Science Resources
17 stars 0 forks source link

rsync error: permission denied for some files & dirs #8

Closed nclowell closed 4 years ago

nclowell commented 4 years ago

I'm moving files from hyak to my computer using rsync, most files moved fine. But I got the following error:

rsync: send_files failed to open "/gscratch/scrubbed/sr320/cragig_wdn6/reference.fasta.original.gz": Permission denied (13)
logfiles/
logfiles/trim_reports/
raw.vcf/

sent 9,768 bytes  received 109,102 bytes  4,851.84 bytes/sec
total size is 253,714,179,834  speedup is 2,134,383.61
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1677) [generator=3.1.3]

I tried rerunning the rsync command and I get the same error. @kubu4 or @sr320 has this ever happened to you? Do you know why permission is being denied to specific files and folders, but not the rest?

kubu4 commented 4 years ago

Can you please post the command you ran to initiatersync?

nclowell commented 4 years ago
rsync --archive --verbose --progress nclowell@198.48.92.25:/gscratch/scrubbed/sr320/cragig_wdn6/* /mnt/hgfs/E/dD_cragig_mox_20191205/
kubu4 commented 4 years ago

The answer is that you don't have read permissions on that file. Only the owner (sr320) can read that file:

ls -l /gscratch/scrubbed/sr320/cragig_wdn6/reference.fasta.original.gz

-rw------- 1 sr320 hyak-coenv 0 Dec  5 02:00 /gscratch/scrubbed/sr320/cragig_wdn6/reference.fasta.original.gz

As far as why, who knows...

If you want that file, you'll need @sr320 to change permissions so that other people can read it.

sr320 commented 4 years ago

@kubu4 I could also just transfer to /gscratch/scrubbed/nclowell?

kubu4 commented 4 years ago

I don't think that will alter the permissions.

sr320 commented 4 years ago

@nclowell should be good now...

for reference I ran chmod -R 777 cragig_wdn6

nclowell commented 4 years ago

Worked - thank you!!