Skip to content

better message when trying to link from files that belong to another user #2992

@qiuwei

Description

@qiuwei

Please provide information about your setup
DVC version(i.e. dvc --version), Platform and method of installation (pip, homebrew, pkg Mac, exe (Windows), DEB(Linux), RPM(Linux))
DVC version: 0.77.3, Platform linux, method of installation: anaconda

Problem:
Our team has a shared data directory, all of the files and directories belong to the same group.
The members of the group have full read and write access.

I create dvc repository with --no-scm option successfully. However when I add any file whose owner is not the current user, dvc fails very badly.
It panics with the following error,

ERROR: unexpected error - [Errno 1] Operation not permitted: '/gendata/.dvc/cache/80/b1aeab28f6ddf9ba779b2681923442.ZKMhApEkd5VrDDarerdKmU'

However, the file which I was adding is removed from the directory.

Maybe at the moment dvc doesn't support shared repository?
However, I consider the error message is not clear enough, and it should never remove user's files when it fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhances DVCp2-mediumMedium priority, should be done, but less important

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions