dvc push [Errno 1] Operation not permitted

Created on 8 Dec 2020  路  6Comments  路  Source: iterative/dvc

dvc push
ERROR: failed to upload '.dvc/cache/d7/84fa8b6d98d27699781bd9a7cf19f0' to '../../../../../mnt/t/Algo/DVC/d7/84fa8b6d98d27699781bd9a7cf19f0' - [Errno 1] Operation not permitted: '/mnt/t/Algo/DVC/d7/84fa8b6d98d27699781bd9a7cf19f0.CGNQ6ZG2pDfHWCXjVzhMZP.tmp'                                                         
ERROR: failed to push data to the cloud - 1 files failed to upload     

With -v

2020-12-08 20:42:26,999 ERROR: failed to upload '.dvc/cache/d7/84fa8b6d98d27699781bd9a7cf19f0' to '../../../../../mnt/t/Algo/DVC/d7/84fa8b6d98d27699781bd9a7cf19f0' - [Errno 1] Operation not permitted: '/mnt/t/Algo/DVC/d7/84fa8b6d98d27699781bd9a7cf19f0.XUhxTRCPgxpkJUzcAri3PW.tmp'                                 
------------------------------------------------------------                                                                                                                                                                                                                                                            
Traceback (most recent call last):
  File "dvc/remote/base.py", line 35, in wrapper
  File "dvc/tree/base.py", line 369, in upload
  File "dvc/tree/local.py", line 342, in _upload
  File "dvc/tree/local.py", line 301, in protect
  File "dvc/tree/local.py", line 249, in chmod
PermissionError: [Errno 1] Operation not permitted: '/mnt/t/Algo/DVC/d7/84fa8b6d98d27699781bd9a7cf19f0.XUhxTRCPgxpkJUzcAri3PW.tmp'
------------------------------------------------------------
2020-12-08 20:42:27,000 DEBUG: fetched: [(81,)]                                                                                                                                                                                                                                                                         
2020-12-08 20:42:27,008 ERROR: failed to push data to the cloud - 1 files failed to upload
------------------------------------------------------------
Traceback (most recent call last):
  File "dvc/command/data_sync.py", line 59, in run
  File "dvc/repo/__init__.py", line 60, in wrapper
  File "dvc/repo/push.py", line 35, in push
  File "dvc/data_cloud.py", line 69, in push
  File "dvc/remote/base.py", line 56, in wrapper
  File "dvc/remote/base.py", line 437, in push
  File "dvc/remote/base.py", line 401, in _process
dvc.exceptions.UploadError: 1 files failed to upload
------------------------------------------------------------
awaiting response question

All 6 comments

@dorp92 please share the contents of your .dvc/config file if possible to see what your default remote is. Can you also share the output of dvc version?

DVC version: 1.10.2 (deb)
---------------------------------
Platform: Python 3.7.9 on Linux-5.4.0-56-generic-x86_64-with-debian-buster-sid
Supports: All remotes
Cache types: hardlink, symlink
Cache directory: ext4 on /dev/nvme0n1p2
Caches: local
Remotes: None
Workspace directory: ext4 on /dev/nvme0n1p2
Repo: dvc, git

There is no .dvc/config

There is no .dvc/config

That's strange. How did you configure your remotes, did you use the --local, --global, or --system flags of dvc remote add/modify?

If you don't know please just show the output of dvc remote list as well as of dvc remote default.

In general, it's difficult to troubleshoot this with the very short messages you are providing. Please help us reproduce the problem with a full list of steps. Thanks

Sorry about that,
there is .dvc/config containing

[core]
    remote = storage
['remote "storage"']
    url = /mnt/t/Algo/DVC

I don't remember using those flags

Found the problem,
/mnt/t/Algo/DVC is a folder mounted by sshfs command.
Now I use directly the sshfs option in dvc and it works
Sorry for the waste of your time

Hey @dorp92 sorry for the delay in replying and thanks for the details. No waste of time at all, this issue may help other users in the future 馃檪

Found the problem, /mnt/t/Algo/DVC is a folder mounted by sshfs command

Glad you figured it out and yep, it makes sense that DVC can't push to that kinf of mount. However, I think maybe we can handle this error more gracefully/ be more informative? Cc @efiop

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gregfriedland picture gregfriedland  路  3Comments

ghost picture ghost  路  3Comments

mfrata picture mfrata  路  3Comments

shcheklein picture shcheklein  路  3Comments

shcheklein picture shcheklein  路  3Comments