Project

General

Profile

Actions

Bug #7418

open

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

Added by Bryan Cosca about 9 years ago. Updated 10 months ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
SDKs
Target version:
Story points:
-
Release:
Release relationship:
Auto

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"}

Actions #1

Updated by Bryan Cosca about 9 years ago

also cannot ls it

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

Actions #2

Updated by Brett Smith about 9 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.

Actions #3

Updated by Brett Smith about 9 years ago

  • Target version set to Arvados Future Sprints
Actions #4

Updated by Ward Vandewege over 3 years ago

  • Target version deleted (Arvados Future Sprints)
Actions #5

Updated by Peter Amstutz almost 2 years ago

  • Release set to 60
Actions #6

Updated by Peter Amstutz 10 months ago

  • Target version set to Future
Actions

Also available in: Atom PDF