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

No such file or directory: '/etc/resolv.conf' #1000

felipellrocha opened this issue Apr 18, 2019 · 2 comments · Fixed by #1128


Copy link

commented Apr 18, 2019

What were you trying to do?

(please tell us)

What did you expect to happen?

(please tell us)

What happened instead?

(please tell us - the traceback is automatically included, see below.
use to pass along full telepresence.log)

Automatically included information

Command line: ['/usr/local/bin/telepresence', '--run-shell', '--swap-deployment', 'master-api']
Version: 0.99
Python version: 3.7.3 (default, Mar 27 2019, 09:23:15) [Clang 10.0.1 (clang-1001.0.46.3)]
kubectl version: Client Version: v1.13.4 // Server Version: v1.13.4
oc version: (error: [Errno 2] No such file or directory: 'oc': 'oc')
OS: Darwin fllr-pro-15.local 18.2.0 Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64 x86_64

Traceback (most recent call last):
  File "/usr/local/bin/telepresence/telepresence/", line 136, in crash_reporting
  File "/usr/local/bin/telepresence/telepresence/", line 60, in main
    remote_info = start_proxy(runner)
  File "/usr/local/bin/telepresence/telepresence/proxy/", line 89, in start_proxy
    runner_, deployment_arg, args.expose, add_custom_ns
  File "/usr/local/bin/telepresence/telepresence/proxy/", line 173, in supplant_deployment
  File "/usr/local/bin/telepresence/telepresence/proxy/", line 292, in new_swapped_deployment
  File "/usr/local/bin/telepresence/telepresence/", line 56, in get_alternate_nameserver
    banned = get_resolv_conf_namservers()
  File "/usr/local/bin/telepresence/telepresence/", line 46, in get_resolv_conf_namservers
    with open("/etc/resolv.conf") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/etc/resolv.conf'


ations see
   0.3 TEL | Found sshfs -> /usr/local/bin/sshfs
   0.3 TEL | Found umount -> /sbin/umount
   0.3 >>> | Volumes are rooted at $TELEPRESENCE_ROOT. See for details.
   0.3 TEL | [8] Running: kubectl --context minikube --namespace default get pods telepresence-connectivity-check --ignore-not-found
   0.4 TEL | [8] ran in 0.07 secs.
   0.4 TEL | Scout info: {'latest_version': '0.99', 'FAILED': '<urlopen error [Errno 8] nodename nor servname provided, or not known>'}
   0.4 >>> | Starting network proxy to cluster by swapping out Deployment master-api with a proxy
   0.4 TEL | [9] Capturing: kubectl --context minikube --namespace default get deployment -o json master-api
   0.5 TEL | [9] captured in 0.07 secs.
   0.5 TEL | END SPAN    0.1s


This comment has been minimized.

Copy link

commented Apr 18, 2019

Sorry about the crash. Did you recently update MacOS?

@ark3 ark3 added this to To do in Tel Tracker via automation Apr 18, 2019

This comment has been minimized.

Copy link

commented Apr 18, 2019

Have not. If it helps, things worked just fine by just try to run telepresence again without any other changes.

@ark3 ark3 moved this from To do to In progress in Tel Tracker Sep 26, 2019
@ark3 ark3 closed this in #1128 Sep 26, 2019
Tel Tracker automation moved this from In progress to Done Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.