-
Notifications
You must be signed in to change notification settings - Fork 3
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
Runtime error: "host network interface down" #38
Comments
Here is the traceback error:
|
All right:
So, (outside of Netrics), you can't just do |
|
Okay so I just uninstalled the antivirus software and tried again. Same error occurring. Also, here is the output when I run the execute command:
|
That looks like a different error. Could you try again with the netrics debug run ping |
Yeah I was getting the same error with the
|
Ok sure. (I only asked because the error you posted for the execute command
was a different thing – it was telling you to specify a host to ping, such
as localhost. But no matter.)
Thanks for the info. This does indeed appear to be specific to the version
of ping available on your system – that is, on MacOS – as opposed to on
Linux.
That appears to be why you can ping, but it fails in Netrics. In the latter
case, we specify arguments which your ping presumably does not accept.
To wit, I presume you can't:
ping -c 1 -w 5 localhost
But it looks like your system would be happy with the following
argumentation:
ping -c 1 -t 5 localhost
This could and should be handled. But I will say it's likely not so high a
priority as getting things working on our target platform.
We could perhaps do what might be a relatively cheap check in Python
against `sys.platform == 'darwin'` and then confirm that it's not the Linux
version of ping with a system call `ping -V` (which I don't believe MacOS
supports).
…On Fri, Apr 7, 2023, 10:11 AM Marc Richardson ***@***.***> wrote:
Yeah I was getting the same error with the debug run command. I also get
a different error with the debug execute command.
(venv) ***@***.*** test_netrics % netrics debug run ping
Name: ping
Command: /Users/marcwitasee/test_netrics/venv/bin/netrics-ping
Status: Error (Exit code 71)
Result: -
Logged (standard error):
<5> {"dest": "localhost", "status": "Error", "msg": "host network interface down"}
—
Reply to this email directly, view it on GitHub
<#38 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEBUNRSYFQGU5B7FTLRUL3XAAOAVANCNFSM6AAAAAAWUOZAMQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@jesteria yup I think you are right. I can run the |
I ran
netrics debug run ping
and received the following output:Running
netrics.d --foreground
also produces the error:The text was updated successfully, but these errors were encountered: