How do I `rucio get` one file?

I have a dataset:

mc16_13TeV:mc16_13TeV.410470.PhPy8EG_A14_ttbar_hdamp258p75_nonallhad.merge.AOD.e6337_e5984_s3126_r10201_r10210_tid14774488_00

and my job is failing on the file

AOD.14774488._000007.pool.root.1

in that dataset. How do I download this file alone?

I tried

rucio get AOD.14774488._000007.pool.root.1

and

rucio get mc16_13TeV:mc16_13TeV.410470.PhPy8EG_A14_ttbar_hdamp258p75_nonallhad.merge.AOD.e6337_e5984_s3126_r10201_r10210_tid14774488_00/AOD.14774488._000007.pool.root.1

but both print something like

2019-07-17 08:53:22,099	INFO	Processing 1 item(s) for input
2019-07-17 08:53:22,099	INFO	Getting sources of DIDs
2019-07-17 08:53:22,244	INFO	Using main thread to download 0 file(s)
2019-07-17 08:53:22,244	ERROR	None of the requested files have been downloaded.

Hi @dguest

I first checked that the file you are requesting exists in the dataset by doing,

rucio list-files mc16_13TeV:mc16_13TeV.410470.PhPy8EG_A14_ttbar_hdamp258p75_nonallhad.merge.AOD.e6337_e5984_s3126_r10201_r10210_tid14774488_00

and get the following output (truncated and ending at the sought-for file):

+---------------------------------------------+--------------------------------------+-------------+------------+----------+
| SCOPE:NAME                                  | GUID                                 | ADLER32     | FILESIZE   |   EVENTS |
|---------------------------------------------+--------------------------------------+-------------+------------+----------|
| mc16_13TeV:AOD.14774488._000001.pool.root.1 | C8842E3F-5D5C-844D-B706-29220DABF825 | ad:790d2061 | 7.039 GB   |    10000 |
| mc16_13TeV:AOD.14774488._000002.pool.root.1 | 7D2BC081-0911-E44A-A055-0348C07FF13B | ad:32fc9de2 | 7.045 GB   |    10000 |
| mc16_13TeV:AOD.14774488._000003.pool.root.1 | 72734C72-A200-FE43-B3EC-A169D39989EA | ad:7c395d3f | 7.024 GB   |    10000 |
| mc16_13TeV:AOD.14774488._000004.pool.root.1 | 6D5F62A7-1034-9A40-AD44-39CFE6200241 | ad:dbdc45a1 | 7.038 GB   |    10000 |
| mc16_13TeV:AOD.14774488._000005.pool.root.1 | 9AE5DF0C-F403-D740-ACE1-AB685D48B7B4 | ad:b0d84939 | 7.007 GB   |    10000 |
| mc16_13TeV:AOD.14774488._000006.pool.root.1 | CEC71168-A775-F84E-8E07-AD602760793F | ad:93438f41 | 7.019 GB   |    10000 |
| mc16_13TeV:AOD.14774488._000007.pool.root.1 | 0A057B1B-10AB-E246-9A0E-F7A9FE18595B | ad:006d59a7 | 7.015 GB   |    10000 |

You can see from this that to download the files you likely need the scope “mc16_13TeV”. Attempting to download the single file as follows,

rucio download mc16_13TeV:AOD.14774488._000007.pool.root.1

Works and I get the output:

|2019-07-17 00:26:31,899|INFO|Processing 1 item(s) for input|
|---|---|---|
|2019-07-17 00:26:31,899|INFO|Getting sources of DIDs|
|2019-07-17 00:26:33,140|INFO|Using main thread to download 1 file(s)|
|2019-07-17 00:26:33,140|INFO|Preparing download of mc16_13TeV:AOD.14774488._000007.pool.root.1|
|2019-07-17 00:26:33,990|INFO|Trying to download with root from IN2P3-LPC_DATADISK: mc16_13TeV:AOD.14774488._000007.pool.root.1|

Hope this helps,
d

I see, the only difference in what I tried was that the scope prefix (mc16_13TeV:) was missing.