Skip to content

Better way to check internet connectivity #664

@bitphage

Description

@bitphage

This is actually not resolved with the latest release. But it throws a different error.

2019-08-21 20:24:21,680 INFO Context impl SQLiteImpl.
2019-08-21 20:24:21,681 INFO Will assume non-transactional DDL.
Traceback (most recent call last):
  File "/home/dexbot/.local/bin/dexbot-cli", line 11, in <module>
    load_entry_point('dexbot==0.15.5', 'console_scripts', 'dexbot-cli')()
  File "/home/dexbot/.local/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/dexbot/.local/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/dexbot/.local/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/dexbot/.local/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/dexbot/.local/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/dexbot/.local/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/dexbot/.local/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/dexbot/.local/lib/python3.6/site-packages/dexbot-0.15.5-py3.6.egg/dexbot/ui.py", line 168, in new_func
    return ctx.invoke(f, *args, **kwargs)
  File "/home/dexbot/.local/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/dexbot/.local/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/dexbot/.local/lib/python3.6/site-packages/dexbot-0.15.5-py3.6.egg/dexbot/ui.py", line 102, in new_func
    if ping(host_ip, 3) is False:
  File "/home/dexbot/.local/lib/python3.6/site-packages/dexbot-0.15.5-py3.6.egg/dexbot/node_manager.py", line 43, in ping
    subprocess.run(args, check=True, shell=False)
  File "/usr/lib/python3.6/subprocess.py", line 423, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ping': 'ping'

Originally posted by @apaulb in #660 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions