Skip to content

Stapled won't open any sockets

  • Published latest artifact to our repo
  • Purged old package on testproxy
  • Installed version 0.5-1 on testproxy
  • Added: haproxy-config=[/etc/haproxy/haproxy.le-213.108.104.96.cfg] to /etc/stapled/stapled.conf

Upon starting:

<snip>
Mar 28 14:01:04 [CRITICAL]    proxy-adder/stapled.core.excepthPrevented thread from being killed by uncaught exception: [Errno 111] Connection refused
Context None will be dropped as a result of the exception.
A stack trace has been saved in /var/log/stapled/stapled_exception20180328-14011522245664087225.trace
Please report this error to the developers so the exception can be handled in a future release, thank you!
Mar 28 14:01:04 [CRITICAL]    proxy-adder/stapled.core.excepthPrevented thread from being killed by uncaught exception: [Errno 111] Connection refused
Context None will be dropped as a result of the exception.
A stack trace has been saved in /var/log/stapled/stapled_exception20180328-14011522245664093438.trace
Please report this error to the developers so the exception can be handled in a future release, thank you!
Mar 28 14:01:04 [CRITICAL]    proxy-adder/stapled.core.excepthPrevented thread from being killed by uncaught exception: append() takes exactly one argument (0 given)
Context None will be dropped as a result of the exception.
A stack trace has been saved in /var/log/stapled/stapled_exception20180328-14011522245664106245.trace
Please report this error to the developers so the exception can be handled in a future release, thank you!
Mar 28 14:01:04 [CRITICAL]    proxy-adder/stapled.core.excepthPrevented thread from being killed by uncaught exception: [Errno 111] Connection refused
Context None will be dropped as a result of the exception.
A stack trace has been saved in /var/log/stapled/stapled_exception20180328-14011522245664159394.trace
Please report this error to the developers so the exception can be handled in a future release, thank you!
Mar 28 14:01:04 [CRITICAL]    proxy-adder/stapled.core.excepthPrevented thread from being killed by uncaught exception: [Errno 111] Connection refused
Context None will be dropped as a result of the exception.
A stack trace has been saved in /var/log/stapled/stapled_exception20180328-14011522245664163898.trace
Please report this error to the developers so the exception can be handled in a future release, thank you!
Mar 28 14:01:04 [CRITICAL]    proxy-adder/stapled.core.excepthPrevented thread from being killed by uncaught exception: append() takes exactly one argument (0 given)
Context None will be dropped as a result of the exception.
A stack trace has been saved in /var/log/stapled/stapled_exception20180328-14011522245664172466.trace
Please report this error to the developers so the exception can be handled in a future release, thank you!
Mar 28 14:01:04 [CRITICAL]    proxy-adder/stapled.core.excepthPrevented thread from being killed by uncaught exception: [Errno 111] Connection refused
Context None will be dropped as a result of the exception.
A stack trace has been saved in /var/log/stapled/stapled_exception20180328-14011522245664223982.trace
Please report this error to the developers so the exception can be handled in a future release, thank you!
Mar 28 14:01:04 [CRITICAL]    proxy-adder/stapled.core.excepthPrevented thread from being killed by uncaught exception: [Errno 111] Connection refused
Context None will be dropped as a result of the exception.
A stack trace has been saved in /var/log/stapled/stapled_exception20180328-14011522245664230629.trace
Please report this error to the developers so the exception can be handled in a future release, thank you!
Mar 28 14:01:04 [CRITICAL]    proxy-adder/stapled.core.excepthPrevented thread from being killed by uncaught exception: append() takes exactly one argument (0 given)
Context None will be dropped as a result of the exception.
A stack trace has been saved in /var/log/stapled/stapled_exception20180328-14011522245664244434.trace
Please report this error to the developers so the exception can be handled in a future release, thank you!
Mar 28 14:01:04 [CRITICAL]    proxy-adder/stapled.core.excepthPrevented thread from being killed by uncaught exception: [Errno 111] Connection refused
Context None will be dropped as a result of the exception.
A stack trace has been saved in /var/log/stapled/stapled_exception20180328-14011522245664288017.trace
Please report this error to the developers so the exception can be handled in a future release, thank you!
Mar 28 14:01:04 [CRITICAL]    proxy-adder/stapled.core.excepthPrevented thread from being killed by uncaught exception: [Errno 111] Connection refused
Context None will be dropped as a result of the exception.
A stack trace has been saved in /var/log/stapled/stapled_exception20180328-14011522245664293079.trace
Please report this error to the developers so the exception can be handled in a future release, thank you!
Mar 28 14:01:04 [CRITICAL]    proxy-adder/stapled.core.excepthPrevented thread from being killed by uncaught exception: append() takes exactly one argument (0 given)
Context None will be dropped as a result of the exception.
A stack trace has been saved in /var/log/stapled/stapled_exception20180328-14011522245664294859.trace
Please report this error to the developers so the exception can be handled in a future release, thank you!
Mar 28 14:01:04 [CRITICAL]    proxy-adder/stapled.core.excepthPrevented thread from being killed by uncaught exception: [Errno 111] Connection refused
Context None will be dropped as a result of the exception.
A stack trace has been saved in /var/log/stapled/stapled_exception20180328-14011522245664333803.trace
Please report this error to the developers so the exception can be handled in a future release, thank you!
Mar 28 14:01:04 [CRITICAL]    proxy-adder/stapled.core.excepthPrevented thread from being killed by uncaught exception: [Errno 111] Connection refused
Context None will be dropped as a result of the exception.
A stack trace has been saved in /var/log/stapled/stapled_exception20180328-14011522245664335166.trace
Please report this error to the developers so the exception can be handled in a future release, thank you!
Mar 28 14:01:04 [CRITICAL]    proxy-adder/stapled.core.excepthPrevented thread from being killed by uncaught exception: append() takes exactly one argument (0 given)
Context None will be dropped as a result of the exception.
A stack trace has been saved in /var/log/stapled/stapled_exception20180328-14011522245664336564.trace
Please report this error to the developers so the exception can be handled in a future release, thank you!

latest trace:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/stapled/core/stapleadder.py", line 204, in send
    sock.sendall((command + "\n").encode())
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/stapled/core/stapleadder.py", line 203, in send
    sock = self.socks[path]
KeyError: '/'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/stapled/core/excepthandler.py", line 72, in stapled_except_handle
    yield  # do the "with stapled_except_handle(ctx):" code block
  File "/usr/lib/python3/dist-packages/stapled/core/stapleadder.py", line 213, in send
    sock = self.socks[path] = self._open_socket(path)
  File "/usr/lib/python3/dist-packages/stapled/core/stapleadder.py", line 99, in _open_socket
    sock.connect(path)
ConnectionRefusedError: [Errno 111] Connection refused
Edited by Chris Snijder