# Using rucio and grid on SWAN

**URL:** <https://swan-community.web.cern.ch/t/using-rucio-and-grid-on-swan/528>\
**Category:** Software\
**Created:** [April 22, 2022, 1:25pm UTC](https://swan-community.web.cern.ch/t/using-rucio-and-grid-on-swan/528 "2022-04-22T13:25:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fcirotto](https://swan-community.web.cern.ch/letter_avatar_proxy/v4/letter/f/48db29/32.png) [@fcirotto](https://swan-community.web.cern.ch/u/fcirotto)\
**Post date:** [April 22, 2022, 1:25pm UTC](https://swan-community.web.cern.ch/t/using-rucio-and-grid-on-swan/528/1 "2022-04-22T13:25:19Z")

</div>

Dear experts,

I would like to develop on SWAN a notebook which uses rucio API client, so I should do several settings and I don’t know how.  
If working on lxplus I would

- setupATLAS
- lsetup rucio
- voms-proxy-init -voms atlas -valid=96:00

Then I can edit my python script and importing all I need. I would prefer doing it on notebook since it allows me to be faster with some checks. Do you think it’s possible?

Thanks for the attention.

Best regards,  
Francesco

---

<div class="post-metadata">

**Author:** ![etejedor](https://swan-community.web.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://swan-community.web.cern.ch/u/etejedor)\
**Post date:** [April 22, 2022, 1:53pm UTC](https://swan-community.web.cern.ch/t/using-rucio-and-grid-on-swan/528/2 "2022-04-22T13:53:42Z")

</div>

Dear Francesco,

Do you know what needs to be installed (and is installed on lxplus) for you to do the `setupATLAS` and `lsetup rucio` steps? The `voms-proxy-init` command should be already doable now (you can give it a try).

Perhaps some other ATLAS colleague managed to do this before?

We developed together with some ATLAS colleagues a Rucio extension for SWAN, but it’s not yet available. I’ll check with them about this.

---

<div class="post-metadata">

**Author:** ![etejedor](https://swan-community.web.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://swan-community.web.cern.ch/u/etejedor)\
**Post date:** [April 22, 2022, 2:02pm UTC](https://swan-community.web.cern.ch/t/using-rucio-and-grid-on-swan/528/3 "2022-04-22T14:02:01Z")

</div>

I got this from an ATLAS colleague:

- The user can just do `pip install --user rucio-clients` and when instantiating do:

```auto
from rucio.client import Client
c = Client(rucio_host='https://rucio-lb-prod.cern.ch:443', auth_host='https://rucio-auth-prod.cern.ch:443')
res = c.whoami()
res = c.list_dids(...
res = c.list_replicas(...`

```

---

<div class="post-metadata">

**Author:** ![fcirotto](https://swan-community.web.cern.ch/letter_avatar_proxy/v4/letter/f/48db29/32.png) [@fcirotto](https://swan-community.web.cern.ch/u/fcirotto)\
**Post date:** [April 22, 2022, 2:25pm UTC](https://swan-community.web.cern.ch/t/using-rucio-and-grid-on-swan/528/4 "2022-04-22T14:25:23Z")

</div>

Dear Enric,

thanks for the prompt reply! `setupATLAS` is only an alias which execute an initial script which set a configuration for ATLAS users, but it could be avoided if I could manage to setup grid and rucio.

- For this `voms-proxy-init -voms atlas -valid=96:00` I got an error, “No credentials found”, I think that I should pass the grid keys?
- I installed rucio, but has some problems, also for a simple ping test I got “RuntimeError: Could not load Rucio configuration file. Rucio looked in the following paths for a configuration file, in order:  
/opt/rucio/etc/rucio.cfg”

Cheers,  
Francesco

---

<div class="post-metadata">

**Author:** ![etejedor](https://swan-community.web.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://swan-community.web.cern.ch/u/etejedor)\
**Post date:** [April 22, 2022, 3:16pm UTC](https://swan-community.web.cern.ch/t/using-rucio-and-grid-on-swan/528/5 "2022-04-22T15:16:21Z")

</div>

> - For this `voms-proxy-init -voms atlas -valid=96:00` I got an error, “No credentials found”, I think that I should pass the grid keys?

I think you need to have your main grid certificate placed somewhere in SWAN (e.g. in your CERNBox) to be able to generate the proxy, right?

> I installed rucio, but has some problems, also for a simple ping test I got “RuntimeError: Could not load Rucio configuration file. Rucio looked in the following paths for a configuration file, in order:  
> /opt/rucio/etc/rucio.cfg”

Is that configuration file somewhere on lxplus? Can you take it from there and make it available in SWAN (e.g. put it on your CERNBox, and point Rucio to it?).
