[OpenSIPS-Users] SIPssert test tool tryout
Yonge Liu
yonge.liu at moz.com
Wed Jan 10 15:46:34 UTC 2024
Hi All,
I am trying to experiment with SIPssert test tool.
By following the guide here: https://github.com/OpenSIPS/SIPssert, I am
having issue to run the tool:
ubuntu:~$ *sipssert /home/ubuntu/tests/opensips/*
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line
700, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line
395, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3.10/http/client.py", line 1283, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1329, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1278, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1038, in _send_output
self.send(msg)
File "/usr/lib/python3.10/http/client.py", line 976, in send
self.connect()
File "/usr/lib/python3/dist-packages/docker/transport/unixconn.py", line
30, in connect
sock.connect(self.unix_socket)
FileNotFoundError: [Errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in
send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line
756, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 532, in
increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/lib/python3/dist-packages/six.py", line 718, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line
700, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line
395, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3.10/http/client.py", line 1283, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1329, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1278, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1038, in _send_output
self.send(msg)
File "/usr/lib/python3.10/http/client.py", line 976, in send
self.connect()
File "/usr/lib/python3/dist-packages/docker/transport/unixconn.py", line
30, in connect
sock.connect(self.unix_socket)
urllib3.exceptions.ProtocolError: ('Connection aborted.',
FileNotFoundError(2, 'No such file or directory'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 214, in
_retrieve_server_version
return self.version(api_version=False)["ApiVersion"]
File "/usr/lib/python3/dist-packages/docker/api/daemon.py", line 181, in
version
return self._result(self._get(url), json=True)
File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line
46, in inner
return f(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 237, in
_get
return self.get(url, **self._set_request_timeout(kwargs))
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 557, in
get
return self.request('GET', url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 544, in
request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 657, in
send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 498, in
send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.',
FileNotFoundError(2, 'No such file or directory'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/sipssert", line 4, in <module>
__import__('pkg_resources').run_script('sipssert==0.1.0', 'sipssert')
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
656, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
1453, in run_script
exec(code, namespace, namespace)
File
"/usr/local/lib/python3.10/dist-packages/sipssert-0.1.0-py3.10.egg/EGG-INFO/scripts/sipssert",
line 9, in <module>
run_test_sipssert()
File
"/usr/local/lib/python3.10/dist-packages/sipssert-0.1.0-py3.10.egg/EGG-INFO/scripts/sipssert",
line 6, in run_test_sipssert
main.main()
File
"/usr/local/lib/python3.10/dist-packages/sipssert-0.1.0-py3.10.egg/sipssert/main.py",
line 77, in main
ctrl = controller.Controller(args)
File
"/usr/local/lib/python3.10/dist-packages/sipssert-0.1.0-py3.10.egg/sipssert/controller.py",
line 56, in __init__
self.docker = docker.from_env()
File "/usr/lib/python3/dist-packages/docker/client.py", line 96, in
from_env
return cls(
File "/usr/lib/python3/dist-packages/docker/client.py", line 45, in
__init__
self.api = APIClient(*args, **kwargs)
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 197, in
__init__
self._version = self._retrieve_server_version()
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 221, in
_retrieve_server_version
raise DockerException(
docker.errors.DockerException: Error while fetching server API version:
('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
Attachments are the files in /home/ubuntu/tests/opensips/. Not sure what I
am missing. Appreciate any guide to make this tool work.
Thank you very much,
Yonge
--
This email, its contents and attachments contain information from Ziff
Davis, Inc. and/or its affiliates which may be privileged, confidential or
otherwise protected from disclosure. The information is intended to be for
the addressee(s) only. If you are not an addressee, any disclosure, copy,
distribution or use of the contents of this message is prohibited. If you
have received this email in error, please notify the sender by reply email
and delete the original message and any copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20240110/507faf08/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scenario.yml
Type: application/octet-stream
Size: 75 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20240110/507faf08/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.yml
Type: application/octet-stream
Size: 58 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20240110/507faf08/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: global.yml
Type: application/octet-stream
Size: 87 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20240110/507faf08/attachment-0002.obj>
More information about the Users
mailing list