Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when adding dataset with lifetime #244

Closed
vingar opened this issue Nov 30, 2017 · 2 comments
Closed

Error when adding dataset with lifetime #244

vingar opened this issue Nov 30, 2017 · 2 comments
Assignees

Comments

@vingar
Copy link
Contributor

vingar commented Nov 30, 2017

Motivation

$ rucio -v add-dataset user.briedel:test_test_test --lifetime 100
2017-11-30 16:01:50,357 ERROR [No JSON object could be decoded]
2017-11-30 16:01:50,357 ERROR [Rucio exited with an unexpected/unknown error. Please rerun the last command with the '-v' option and submit a ticket with all the necessary information at https://its.cern.ch/jira/browse/RUCIO]
2017-11-30 16:01:50,359 DEBUG [Traceback (most recent call last):
  File "/usr/bin/rucio", line 161, in new_funct
    return function(*args, **kwargs)
  File "/usr/bin/rucio", line 423, in add_dataset
    client.add_dataset(scope=scope, name=name, statuses={'monotonic': args.monotonic}, lifetime=args.lifetime)
  File "/usr/lib/python2.7/site-packages/rucio/client/didclient.py", line 131, in add_dataset
    lifetime=lifetime, dids=files, rse=rse)
  File "/usr/lib/python2.7/site-packages/rucio/client/didclient.py", line 100, in add_did
    exc_cls, exc_msg = self._get_exception(headers=r.headers, status_code=r.status_code, data=r.content)
  File "/usr/lib/python2.7/site-packages/rucio/client/baseclient.py", line 191, in _get_exception
    data = parse_response(data)
  File "/usr/lib/python2.7/site-packages/rucio/common/utils.py", line 193, in parse_response
    return json.loads(data, object_hook=datetime_parser)
  File "/usr/lib64/python2.7/json/__init__.py", line 351, in loads
    return cls(encoding=encoding, **kw).decode(s)
  File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.7/json/decoder.py", line 383, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
]
Completed in 0.0916 sec.
@vingar vingar added the Clients label Nov 30, 2017
@bari12
Copy link
Member

bari12 commented Dec 1, 2017

What's the exact command you did?

@bari12 bari12 added this to the 1.14.1 milestone Dec 1, 2017
@bari12 bari12 added the bug label Dec 1, 2017
@vingar
Copy link
Contributor Author

vingar commented Dec 1, 2017

it's there but hidden in the code formatting:

rucio -v add-dataset user.briedel:test_test_test --lifetime 100

@bari12 bari12 self-assigned this Dec 1, 2017
@bari12 bari12 changed the title error when adding dataset with lifetime Error when adding dataset with lifetime Dec 1, 2017
bari12 added a commit to bari12/rucio that referenced this issue Dec 1, 2017
@bari12 bari12 modified the milestones: 1.14.1, 1.14.1-clients Dec 1, 2017
bari12 added a commit that referenced this issue Dec 1, 2017
…etime_bug

Clients: Fixed bug adding datasets with lifetime; Fix #244
bari12 added a commit that referenced this issue Dec 1, 2017
…etime_bug

Clients: Fixed bug adding datasets with lifetime; Fix #244
rucio pushed a commit that referenced this issue Feb 6, 2018
…etime_bug

Clients: Fixed bug adding datasets with lifetime; Fix #244
yuyiguo pushed a commit to yuyiguo/rucio that referenced this issue Sep 20, 2023
Set disable links in the links script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants