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

dtool copy --resume results in IndexError #7

tjelvar-olsson opened this issue Feb 21, 2018 · 2 comments


Copy link

commented Feb 21, 2018

dtool copy --resume symlink:/my_ds yirods:/zone/colllection
Copying dataset
Traceback (most recent call last):
 File "/usr/local/bin/dtool", line 11, in <module>
 File "/usr/local/lib/python2.7/dist-packages/click/", line 722, in __call__
   return self.main(*args, **kwargs)
 File "/usr/local/lib/python2.7/dist-packages/click/", line 697, in main
   rv = self.invoke(ctx)
 File "/usr/local/lib/python2.7/dist-packages/click/", line 1066, in invoke
   return _process_result(sub_ctx.command.invoke(sub_ctx))
 File "/usr/local/lib/python2.7/dist-packages/click/", line 895, in invoke
   return ctx.invoke(self.callback, **ctx.params)
 File "/usr/local/lib/python2.7/dist-packages/click/", line 535, in invoke
   return callback(*args, **kwargs)
 File "/usr/local/lib/python2.7/dist-packages/dtool_create/", line 369, in copy
 File "/usr/local/lib/python2.7/dist-packages/dtoolcore/", line 207, in copy_resume
   _copy_content(dataset, proto_dataset, progressbar)
 File "/usr/local/lib/python2.7/dist-packages/dtoolcore/", line 137, in _copy_content
   dest_sizes = get_dest_sizes(dest_proto_dataset)
 File "/usr/local/lib/python2.7/dist-packages/dtoolcore/", line 131, in get_dest_sizes
   for handle in dest_proto_dataset._storage_broker.iter_item_handles():
 File "/usr/local/lib/python2.7/dist-packages/dtool_irods/", line 533, in iter_item_handles
   relpath = self._get_metadata_with_cache(abspath, "handle")
 File "/usr/local/lib/python2.7/dist-packages/dtool_irods/", line 273, in _get_metadata_with_cache
   value = value_line.split(":")[1]
IndexError: list index out of range

This comment has been minimized.

Copy link
Contributor Author

commented Apr 30, 2018

This defect arises when a file is put into iRODS, but the connection to iRODS breaks before the subsequent task of adding the "handle" metadata to the file has been performed.


This comment has been minimized.

Copy link
Contributor Author

commented Apr 30, 2018

Fixed in 50287d9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.