Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 545482

Summary: Wrong permissions on RAP repo cause eclipse mirror rsync errors
Product: [RT] RAP Reporter: Carsten Reckord <reckord>
Component: RelengAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mknauer
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:

Description Carsten Reckord CLA 2019-03-18 06:03:16 EDT
Hi there,

I'm currently getting this error in the nightly update of our Eclipse mirror via rsync:

So 17. Mär 16:43:50 CET 2019    rsync command: /usr/bin/rsync --filter='. /home/eclipse-mirror/.eclipse-mirror-filters' -c --timeout=3600 -rtlivH --relative "download.eclipse.org::eclipseMirror/rt/rap/" "/home/eclipse-mirror/eclipse.org/work/rsync/"

receiving incremental file list
rsync: send_files failed to open "/rt/rap/tools/3.4/SR2-20180404-1914/artifacts.jar" (in eclipseMirror): Permission denied (13)
rsync: send_files failed to open "/rt/rap/tools/3.4/SR2-20180404-1914/artifacts.xml.xz" (in eclipseMirror): Permission denied (13)

sent 7738 bytes  received 1635716 bytes  5095.98 bytes/sec
total size is 9954789534  speedup is 6057.24
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1536) [generator=3.0.9]
So 17. Mär 16:49:12 CET 2019  - Finished rsync for "full eclipse - rt/rap" with exit code 23


Looking at /rt/rap/tools/3.4/SR2-20180404-1914/ via ssh, I see this:

creckord@build:~/downloads/rt/rap/tools/3.4/SR2-20180404-1914> ls -l
total 40
-rw-rw----+ 1 mknauer rt.rap 1840 Apr 14  2018 artifacts.jar
-rw-rw-r--+ 1 mknauer rt.rap 1704 Apr  4  2018 artifacts.jar.0
-rw-rw----+ 1 mknauer rt.rap 1628 Apr 14  2018 artifacts.xml.xz
-rw-rw-r--+ 1 mknauer rt.rap 1548 Apr  4  2018 artifacts.xml.xz.0
-rw-rw-r--+ 1 mknauer rt.rap 6091 Apr  4  2018 content.jar
-rw-rw-r--+ 1 mknauer rt.rap 5556 Apr  4  2018 content.xml.xz
drwxrwsr-x+ 2 mknauer rt.rap   75 Apr  4  2018 features
-rw-rw-r--+ 1 mknauer rt.rap  172 Apr  4  2018 p2.index
drwxrwsr-x+ 2 mknauer rt.rap 4096 Apr  4  2018 plugins

Looks like the read permission for "other" got lost somewhere...
Comment 1 Markus Knauer CLA 2019-03-18 08:18:06 EDT
Thanks, this is fixed now.

There were some inconsistencies... are you sure that this is a new error, or did this happen unnoticed in the past?

chgrp -R rt.rap 3.* tools/3*
find 3.* tools/3.* -type d -exec chmod 2775 {} \;
find 3.* tools/3.* -type f -exec chmod 664 {} \;
Comment 2 Carsten Reckord CLA 2019-03-18 08:47:30 EDT
It also happened in the past. I only noticed now because I tightened the error checking of my rsync script.