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

add: using a remote path doesn't load the configuration #2092

Closed
ghost opened this issue Jun 4, 2019 · 5 comments
Closed

add: using a remote path doesn't load the configuration #2092

ghost opened this issue Jun 4, 2019 · 5 comments
Labels
bug Did we break something? p1-important Important, aka current backlog of things to do

Comments

@ghost
Copy link

ghost commented Jun 4, 2019

version: 0.41.3

dvc remote add ssh ssh://localhost
dvc remote modify ssh user none
dvc remote modify ssh port 111
dvc config cache.ssh ssh
dvc add remote://ssh/something

ERROR: unexpected error - [Errno None] Unable to connect to port 111 on 127.0.0.1 or ::1

⚠️ Couldn't reproduce the issue ⚠️

More context:
https://discordapp.com/channels/485586884165107732/485596304961962003/585454599117471744

@ghost ghost added bug Did we break something? p1-important Important, aka current backlog of things to do labels Jun 4, 2019
@ghost ghost self-assigned this Jun 4, 2019
@ghost ghost closed this as completed Jun 5, 2019
@thomasryck
Copy link

I couldn't reproduce the issue with your command workflow.
The only difference I see, is that I was using:
dvc add ssh://sshcache/incident_old.csv
and
in your workflow it is:
dvc add remote://sshcache/incident_old.csv

@thomasryck
Copy link

thomasryck commented Jun 5, 2019

https://dvc.org/doc/user-guide/external-outputs

I guess the doc is misleading on that point

It says :

#Add data on SSH directly
$ dvc add ssh://[email protected]:/mydata

@ghost
Copy link
Author

ghost commented Jun 5, 2019

@thomasryck , thanks for the notice!

The problem here is that when you are using the ssh syntax you need to provide everything on the URI (user, port, etc.), however, with remote:// the configuration it is going to be fetched from such remote.

(cc: @jorgeorpinel maybe is worth to open an issue about this on the docs 🤔 )

@jorgeorpinel
Copy link
Contributor

jorgeorpinel commented Jun 5, 2019

Did I capture the issue correctly? iterative/dvc.org#411

@ryokugyu
Copy link

I couldn't reproduce the issue with your command workflow.
The only difference I see, is that I was using:
dvc add ssh://sshcache/incident_old.csv
and
in your workflow it is:
dvc add remote://sshcache/incident_old.csv
dvc-error
I am getting this error while running the dvc add ssh://sshcache/car.txt

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Did we break something? p1-important Important, aka current backlog of things to do
Projects
None yet
Development

No branches or pull requests

3 participants