Skip to content

Hard-link creation fails when downloading to NFS mounts #519

@fangpingmu

Description

@fangpingmu

I am using hca dss to download data.
hca dss download-manifest --manifest 1M_Neurons.tsv
--replica 'aws'
--layout bundle

There are lots of hard link problems.

File "/home/user001/.local/lib/python3.7/site-packages/hca/dss/init.py", line 584, in _download_and_link_to_filestore
hardlink(file_store_path, file_path)
File "/home/user001/.local/lib/python3.7/site-packages/hca/dss/util/init.py", line 50, in hardlink
os.link(source, link_name)
PermissionError: [Errno 1] Operation not permitted: '.hca/v2/files_2_4/8f/aec6/8faec66817969ae6f847b0c649e7328af6085d88e71b32b0e3a8284df4cd88f7' -> '33855cf6-6f3e-4b8f-9cb4-c2b2ea9f528d.2019-05-16T211813.099000Z/dissociation_protocol_0.json'

My file systems do not support hard link across directories. Is there an option to use soft link?

Why is the data downloaded to .hca, and then link to the target directory using hardlink? Can hca download directly to the target directory or move the files from .hca to the target directory?

Metadata

Metadata

Assignees

Labels

BUGno demoorangeDone by the Azul, Data Browser and Portal team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions