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

Network is unreachable exception from usage_tracking module #70

yadudoc opened this Issue Jan 18, 2018 · 1 comment


None yet
1 participant

yadudoc commented Jan 18, 2018

When a parsl script is executed on a system without network connectivity, the usage_tracking module throws a Network is unreachable exception. This should be caught and silently handled.

ERROR: Failure: OSError ([Errno 101] Network is unreachable)

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/nose/", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/usr/local/lib/python3.5/dist-packages/nose/", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/usr/local/lib/python3.5/dist-packages/nose/", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/local/lib/python3.5/dist-packages/nose/", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib/python3.5/", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib/python3.5/", line 172, in load_source
module = _load(spec)
File "", line 693, in _load
File "", line 673, in _load_unlocked
File "", line 665, in exec_module
File "", line 222, in _call_with_frames_removed
File "/home/yadu/src/parsl/parsl/tests/test_data/", line 10, in
dfk = DataFlowKernel(executors=[workers])
File "/home/yadu/src/parsl/parsl/dataflow/", line 75, in init
File "/home/yadu/src/parsl/parsl/dataflow/usage_tracking/", line 159, in send_message
x = self.send_UDP_message(message)
File "/home/yadu/src/parsl/parsl/dataflow/usage_tracking/", line 137, in send_UDP_message
x = sock.sendto(bytes(message, "utf-8"), (self.UDP_IP, self.UDP_PORT))
OSError: [Errno 101] Network is unreachable

@yadudoc yadudoc added the bug label Jan 18, 2018

@yadudoc yadudoc added this to the Parsl-0.4.0 milestone Jan 18, 2018

@yadudoc yadudoc self-assigned this Jan 18, 2018

yadudoc added a commit that referenced this issue Jan 18, 2018

Fixes for network connectivity bug in usage tracking #70
Added a try catch for the message send logic to simply report
network connectivity issue in log.

This comment has been minimized.


yadudoc commented Jan 22, 2018

A reasonable error message is now presented to the user.

@yadudoc yadudoc closed this Jan 22, 2018

benclifford pushed a commit that referenced this issue Aug 9, 2018

annawoodard pushed a commit that referenced this issue Sep 24, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment