brouberol/izk

Timeout on zk connection at startup

Open

#15 opened on Apr 3, 2018

 (0 comments) (0 reactions) (0 assignees)Python (2 forks)auto 404
enhancementgood first issue

Repository metrics

Stars
 (27 stars)
PR merge metrics
 (PR metrics pending)

Description

This is just bad XP

(izk) λ  izk git:(master) ✗ izk
Connection dropped: socket connection error: Connection refused
Connection dropped: socket connection error: Connection refused
Connection dropped: socket connection error: Connection refused
Connection dropped: socket connection error: Connection refused
Connection dropped: socket connection error: Connection refused
Connection dropped: socket connection error: Connection refused
^CTraceback (most recent call last):
  File "/Users/balthazarrouberol/dd/.envs/izk/bin/izk", line 11, in <module>
    load_entry_point('izk', 'console_scripts', 'izk')()
  File "/Users/balthazarrouberol/code/izk/izk/prompt.py", line 71, in main
    read_only=not args.write
  File "/Users/balthazarrouberol/code/izk/izk/zk.py", line 8, in __enter__
    self.start()
  File "/Users/balthazarrouberol/dd/.envs/izk/lib/python3.6/site-packages/kazoo/client.py", line 563, in start
    event.wait(timeout=timeout)
  File "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 551, in wait
    signaled = self._cond.wait(timeout)
  File "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 299, in wait
    gotit = waiter.acquire(True, timeout)
KeyboardInterrupt

Fail with a helpful error message instead.

Contributor guide