question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dvc exp list origin: unexpected error - [Errno 111] Connect call failed

See original GitHub issue

Bug Report

Description

I have a simple setup with a git repo and single HDFS dvc remote. DVC is correctly pushing to the remote. However when I try to use dvc exp to list experiments from the git repo, I see a connection error.

Reproduce

dvc exp list origin

Expected

List of experiments as shown at https://dvc.org/doc/user-guide/experiment-management/sharing-experiments

Environment information

Output of dvc doctor:

$ dvc doctor

DVC version: 2.8.3 (pip)
---------------------------------
Platform: Python 3.7.10 on Linux-4.18.0-15-generic-x86_64-with-debian-buster-sid
Supports:
	hdfs (fsspec = 2021.11.0, pyarrow = 3.0.0),
	webhdfs (fsspec = 2021.11.0),
	http (aiohttp = 3.8.1, aiohttp-retry = 2.4.6),
	https (aiohttp = 3.8.1, aiohttp-retry = 2.4.6)
Cache types: hardlink, symlink
Cache directory: zfs on zpmain/home
Caches: local
Remotes: hdfs
Workspace directory: zfs on zpmain/home
Repo: dvc, git

Additional Information (if any):

$ dvc exp list origin -v
2021-11-25 11:27:03,065 ERROR: unexpected error - [Errno 111] Connect call failed (<COMPANY_IP>, 0)
------------------------------------------------------------
Traceback (most recent call last):
  File "/home2/spark/spark_env/lib/python3.7/site-packages/dvc/main.py", line 55, in main
    ret = cmd.do_run()
  File "/home2/spark/spark_env/lib/python3.7/site-packages/dvc/command/base.py", line 45, in do_run
    return self.run()
  File "/home2/spark/spark_env/lib/python3.7/site-packages/dvc/command/experiments.py", line 707, in run
    all_=self.args.all,
  File "/home2/spark/spark_env/lib/python3.7/site-packages/dvc/repo/experiments/__init__.py", line 1013, in ls
    return ls(self.repo, *args, **kwargs)
  File "/home2/spark/spark_env/lib/python3.7/site-packages/dvc/repo/__init__.py", line 50, in wrapper
    return f(repo, *args, **kwargs)
  File "/home2/spark/spark_env/lib/python3.7/site-packages/dvc/repo/scm_context.py", line 14, in run
    return method(repo, *args, **kw)
  File "/home2/spark/spark_env/lib/python3.7/site-packages/dvc/repo/experiments/ls.py", line 40, in ls
    for info in gen:
  File "/home2/spark/spark_env/lib/python3.7/site-packages/dvc/repo/experiments/utils.py", line 76, in remote_exp_refs_by_baseline
    for ref in scm.iter_remote_refs(url, base=str(ref_info)):
  File "/home2/spark/spark_env/lib/python3.7/site-packages/dvc/scm/git/backend/dulwich/__init__.py", line 379, in iter_remote_refs
    for ref in client.get_refs(path)
  File "/home2/spark/spark_env/lib/python3.7/site-packages/dulwich/client.py", line 1068, in get_refs
    proto, _, stderr = self._connect(b"upload-pack", path)
  File "/home2/spark/spark_env/lib/python3.7/site-packages/dulwich/client.py", line 1688, in _connect
    self.host, argv, port=self.port, username=self.username, **kwargs
  File "/home2/spark/spark_env/lib/python3.7/site-packages/fsspec/asyn.py", line 91, in wrapper
    return sync(self.loop, func, *args, **kwargs)
  File "/home2/spark/spark_env/lib/python3.7/site-packages/fsspec/asyn.py", line 71, in sync
    raise return_result
  File "/home2/spark/spark_env/lib/python3.7/site-packages/fsspec/asyn.py", line 25, in _runner
    result[0] = await coro
  File "/home2/spark/spark_env/lib/python3.7/site-packages/dvc/scm/git/backend/dulwich/asyncssh_vendor.py", line 87, in _run_command
    encoding=None,
  File "/home2/spark/spark_env/lib/python3.7/site-packages/asyncssh/connection.py", line 6895, in connect
    timeout=options.connect_timeout)
  File "/opt/conda/lib/python3.7/asyncio/tasks.py", line 414, in wait_for
    return await fut
  File "/home2/spark/spark_env/lib/python3.7/site-packages/asyncssh/connection.py", line 300, in _connect
    local_addr=local_addr)
  File "/opt/conda/lib/python3.7/asyncio/base_events.py", line 962, in create_connection
    raise exceptions[0]
  File "/opt/conda/lib/python3.7/asyncio/base_events.py", line 949, in create_connection
    await self.sock_connect(sock, address)
  File "/opt/conda/lib/python3.7/asyncio/selector_events.py", line 473, in sock_connect
    return await fut
  File "/opt/conda/lib/python3.7/asyncio/selector_events.py", line 503, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed (<COMPANY_IP>, 0)
------------------------------------------------------------

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cbracegirdlecommented, Nov 25, 2021

Sure, based on https://askubuntu.com/a/362287

I ran

$ ssh-agent bash

then

$ ssh-add /home/username/.ssh/id_rsa
Enter passphrase for /home/username/.ssh/id_rsa: 
Identity added: /home/username/.ssh/id_rsa (/home/username/.ssh/id_rsa)
$ dvc exp list origin
0reactions
efiopcommented, Nov 25, 2021

@cbracegirdle Could you elaborate, please, on how you’ve fixed it? Trying to see if there is anything we can do here on dvc side to improve.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dvc push: [Errno 111] Connect call failed · Issue #6813 - GitHub
Upon calling dvc push this error appears: $ dvc push ERROR: unexpected error - [Errno 111] Connect call failed (COMPANY_SERVER_IP, PORT) Having ...
Read more >
Unexpected error when push to SSH remote - Questions - DVC
System: Ubuntu 20.04 $ dvc remote add --default dataRepo ... dvc push ERROR: unexpected error - [Errno -2] Name or service not known...
Read more >
Multiple exceptions: [Errno 111] Connect call failed ('127.0.0.1 ...
I had the same exact error running a Python FastAPI app in a Docker container trying to connect to another container with http3....
Read more >
how to install express in console Code Example
[rejected] master -> master (non-fast-forward) error: failed to push some refs ... Connection was reset, errno 10054 send-pack: unexpected disconnect while ...
Read more >
Diff - kernel/common.git - Google Git
-0,0 +1,22 @@ +What: /sys/firmware/acpi/pm_profile +Date: 03-Nov-2011 +KernelVersion: v3.2 +Contact: linux-acpi@vger.kernel.org +Description: The ACPI ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found