Skip to content

Cannot authenticate to account with given credentials [x509 proxy] #98

@tommasodiotalevi

Description

@tommasodiotalevi

I installed the rucio jupyterlab extensions, with the following versions:

rucio==37.7.1 
rucio-clients==37.7.1 
rucio-jupyterlab==1.4.0

I correctly loaded the X509 proxy in the Settings section of the extension.
After searching for any DID (they appear by autocompletion), and selecting one, clicking on Make available results in the message Something went wrong.

The detailed log resides in the jupyterlab logs:

Details: Cannot authenticate to account todiotal with given credentials
2025-10-13 19:40:41,634 - rucio_jupyterlab.rucio.download - ERROR - Writing error file to '/root/rucio/cms/downloads/mnwxgorpjvjvgtlcmjas2sdjm5txgvdpjv2u25k7jvas2mjqgayf6vdbnzrc2mjql4ytgvdfkzpxa6lunbuwcobpkj2w4skjkn2w23lfoiytmttbnzxuct2eoy3s2ucvjvxxe2lpnzsdcn27jzqw43zqgjaxa4rsgazdaxzrgazfqx3nmnjhk3rsl5qxg6lnob2g65djmnpxmobnoyys6tsbjzhuct2ekneu2/error.json' with details: {'success': False, 'error': 'DownloadFailed', 'exception_class': 'CannotAuthenticate', 'exception_message': 'Cannot authenticate.\nDetails: Cannot authenticate to account todiotal with given credentials'}
2025-10-13 19:40:41,633 - DownloadProcess-cms:/----/----/NANOAODSIM - ERROR - Download failed for DID 'cms:/----/----/NANOAODSIM': Cannot authenticate.
Details: Cannot authenticate to account todiotal with given credentials
Traceback (most recent call last):
  File "/opt/conda/lib/python3.11/site-packages/rucio_jupyterlab/rucio/download.py", line 61, in start_download_target
    results = RucioFileDownloader.download(dest_folder, did)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/rucio_jupyterlab/rucio/download.py", line 114, in download
    client = Client()
             ^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/rucio/client/client.py", line 128, in __init__
    super(Client, self).__init__(**args)
  File "/opt/conda/lib/python3.11/site-packages/rucio/client/baseclient.py", line 235, in __init__
    self.__authenticate()
  File "/opt/conda/lib/python3.11/site-packages/rucio/client/baseclient.py", line 1022, in __authenticate
    self.__get_token()
  File "/opt/conda/lib/python3.11/site-packages/rucio/client/baseclient.py", line 911, in __get_token
    if not self.__get_token_x509():
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/rucio/client/baseclient.py", line 782, in __get_token_x509
    raise exc_cls(exc_msg)
rucio.common.exception.CannotAuthenticate: Cannot authenticate.
Details: Cannot authenticate to account todiotal with given credentials

The authentication on the same system, but using the Rucio CLI, is executed correctly (for instance using rucio download ...).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions