Skip to content

ssh get-url throws ERROR: unexpected error - 'NoneType' object has no attribute 'cache' #4174

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

Closed
mathias3 opened this issue Jul 7, 2020 · 6 comments
Labels
awaiting response we are waiting for your reply, please respond! :) bug Did we break something?

Comments

@mathias3
Copy link

mathias3 commented Jul 7, 2020

Bug Report

Please provide information about your setup

Output of dvc version:

$ dvc version

DVC version: 1.0.1
Python version: 3.7.1
Platform: Linux-5.3.0-62-generic-x86_64-with-debian-buster-sid
Binary: True
Package: deb
Supported remotes: azure, gdrive, gs, hdfs, http, https, s3, ssh, oss
Filesystem type (workspace): ('ext4', '/dev/mapper/ubuntu--vg-root')

Additional Information (if any):

If applicable, please also provide a --verbose output of the command, eg: dvc add --verbose.

2020-07-07 09:42:34,195 ERROR: unexpected error - 'NoneType' object has no attribute 'cache'
------------------------------------------------------------
Traceback (most recent call last):
  File "dvc/main.py", line 53, in main
  File "dvc/command/get_url.py", line 17, in run
  File "dvc/repo/get_url.py", line 19, in get_url
  File "dvc/output/base.py", line 264, in save
  File "dvc/output/base.py", line 192, in save_info
  File "dvc/remote/base.py", line 756, in save_info
  File "dvc/remote/base.py", line 323, in save_info
  File "dvc/remote/base.py", line 291, in get_hash
  File "dvc/remote/base.py", line 304, in get_dir_hash
  File "dvc/remote/base.py", line 183, in cache
AttributeError: 'NoneType' object has no attribute 'cache'
@ghost ghost added the triage Needs to be triaged label Jul 7, 2020
@efiop
Copy link
Contributor

efiop commented Jul 7, 2020

Hi @mathias3 . Could you please upgrade to the latest version (1.1.7 as of right now) and try again?

@efiop efiop added awaiting response we are waiting for your reply, please respond! :) bug Did we break something? labels Jul 7, 2020
@ghost ghost removed the triage Needs to be triaged label Jul 7, 2020
@mathias3
Copy link
Author

mathias3 commented Jul 7, 2020

Hi @mathias3 . Could you please upgrade to the latest version (1.1.7 as of right now) and try again?

sudo apt-get install --only-upgrade dvc
returns
dvc is already the newest version (1.0.1).

I am installing from deb directllu from github then

@efiop
Copy link
Contributor

efiop commented Jul 7, 2020

@mathias3 I think you need to sudo apt update first. I can confirm that 1.1.7 is in our deb repo already.

@mathias3
Copy link
Author

mathias3 commented Jul 7, 2020

DVC version: 1.1.7
Python version: 3.7.1
Platform: Linux-5.3.0-62-generic-x86_64-with-debian-buster-sid
Binary: True
Package: deb
Supported remotes: azure, gdrive, gs, hdfs, http, https, s3, ssh, oss
Filesystem type (workspace): ('ext4', '/dev/mapper/ubuntu--vg-root')```

dvc get-url -v ssh://[email protected]/dvc/test2
still returns

2020-07-07 13:09:02,481 DEBUG: Establishing ssh connection with '116.xxxxxxxxxx' through port '22' as user 'root'
2020-07-07 13:09:03,515 ERROR: unexpected error - 'NoneType' object has no attribute 'cache'
------------------------------------------------------------
Traceback (most recent call last):
  File "dvc/main.py", line 53, in main
  File "dvc/command/get_url.py", line 17, in run
  File "dvc/repo/get_url.py", line 19, in get_url
  File "dvc/output/base.py", line 268, in save
  File "dvc/output/base.py", line 192, in save_info
  File "dvc/remote/base.py", line 769, in save_info
  File "dvc/remote/base.py", line 334, in save_info
  File "dvc/remote/base.py", line 302, in get_hash
  File "dvc/remote/base.py", line 315, in get_dir_hash
  File "dvc/remote/base.py", line 184, in cache
AttributeError: 'NoneType' object has no attribute 'cache'
------------------------------------------------------------

Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!```

When  I use push pull  add remote- in one repo 'tutorial like' everything works fine. but when I try to use it as a "data repository" fucntion , and then use get-url  like described this happens and kills whole functionality

@efiop
Copy link
Contributor

efiop commented Jul 7, 2020

@mathias3 Thanks! Indeed, it is a known bug when trying to get-url a directory. #4144 For now, you could just use scp or rsync with the same effect.

@efiop
Copy link
Contributor

efiop commented Jul 7, 2020

I'll close this issue as a duplicate of #4144. Thank you for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response we are waiting for your reply, please respond! :) bug Did we break something?
Projects
None yet
Development

No branches or pull requests

2 participants