Bug #7418

[SDKs] Unhelpful 404 stack trace when trying to arv-copy a collection without access

Added by Bryan Cosca almost 4 years ago. Updated almost 4 years ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
SDKs
Target version:
Start date:
09/30/2015
Due date:
% Done:

0%

Estimated time:
Story points:
-

Description

Trying to copy https://workbench.tb05z.arvadosapi.com/collections/tb05z-4zz18-ooocid07llbtdil

:~$ arv-copy --src tb05z --dst qr1hi tb05z-4zz18-ooocid07llbtdil
Traceback (most recent call last):
File "/usr/local/bin/arv-copy", line 4, in <module>
main()
File "/usr/local/lib/python2.7/dist-packages/arvados/commands/arv_copy.py", line 116, in main
set_src_owner_uuid(src_arv.collections(), args.object_uuid, args)
File "/usr/local/lib/python2.7/dist-packages/arvados/commands/arv_copy.py", line 148, in set_src_owner_uuid
c = resource.get(uuid=uuid).execute(num_retries=args.retries)
File "/usr/local/lib/python2.7/dist-packages/oauth2client/util.py", line 137, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/googleapiclient/http.py", line 729, in execute
raise HttpError(resp, content, uri=self.uri)
arvados.errors.ApiError: <HttpError 404 when requesting https://tb05z.arvadosapi.com/arvados/v1/collections/tb05z-4zz18-ooocid07llbtdil?alt=json returned "Path not found">

Inputting https://tb05z.arvadosapi.com/arvados/v1/collections/tb05z-4zz18-ooocid07llbtdil?alt=json in my browser gets me {"errors":["#<NoMethodError: undefined method `[]' for nil:NilClass>"],"error_token":"1443642113+421456db"}

History

#1 Updated by Bryan Cosca almost 4 years ago

also cannot ls it

:~/keep/by_id$ ls 2f365f077cb984b55ed38baf2d8f1168+91
ls: cannot access 2f365f077cb984b55ed38baf2d8f1168+91: No such file or directory

#2 Updated by Brett Smith almost 4 years ago

  • Subject changed from arv-copy log file did not work form tb05z to qr1hi to [SDKs] Unhelpful 404 stack trace when trying to arv-copy a collection without access
  • Category set to SDKs

The original error happened because the shell account user did not have permission to access the collection.

The error message is very long and includes effectively no information to hint at that. It needs improving.

#3 Updated by Brett Smith almost 4 years ago

  • Target version set to Arvados Future Sprints

Also available in: Atom PDF