问题描述
从错误消息中,我认为第二台计算机只是缺少某个软件包或某些内容,但是最明显的可疑“ httplib”已经安装。消息本身有点多,我很难避免迷失在巨大的音量中。有什么引起你们所有人的注意吗?有人更有经验吗?
File "/home/Boxursa/.local/share/virtualenvs/Metagenapp-master-cR0L49Yy/lib/python3.8/site-packages/urllib3/connectionpool.py",line 670,in urlopen
httplib_response = self._make_request(
File "/home/Boxursa/.local/share/virtualenvs/Metagenapp-master-cR0L49Yy/lib/python3.8/site-packages/urllib3/connectionpool.py",line 392,in _make_request
conn.request(method,url,**httplib_request_kw)
File "/usr/lib/python3.8/http/client.py",line 1230,in request
self._send_request(method,body,headers,encode_chunked)
File "/usr/lib/python3.8/http/client.py",line 1276,in _send_request
self.endheaders(body,encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py",line 1225,in endheaders
self._send_output(message_body,line 1004,in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py",line 944,in send
self.connect()
File "/home/Boxursa/.local/share/virtualenvs/Metagenapp-master-cR0L49Yy/lib/python3.8/site-packages/docker/transport/unixconn.py",line 43,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 "/home/Boxursa/.local/share/virtualenvs/Metagenapp-master-cR0L49Yy/lib/python3.8/site-packages/requests/adapters.py",line 439,in send
resp = conn.urlopen(
File "/home/Boxursa/.local/share/virtualenvs/Metagenapp-master-cR0L49Yy/lib/python3.8/site-packages/urllib3/connectionpool.py",line 726,in urlopen
retries = retries.increment(
File "/home/Boxursa/.local/share/virtualenvs/Metagenapp-master-cR0L49Yy/lib/python3.8/site-packages/urllib3/util/retry.py",line 403,in increment
raise six.reraise(type(error),error,_stacktrace)
File "/home/Boxursa/.local/share/virtualenvs/Metagenapp-master-cR0L49Yy/lib/python3.8/site-packages/urllib3/packages/six.py",line 734,in reraise
raise value.with_traceback(tb)
File "/home/Boxursa/.local/share/virtualenvs/Metagenapp-master-cR0L49Yy/lib/python3.8/site-packages/urllib3/connectionpool.py",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 "./MetagenApp.py",line 38,in <module>
Metagen_net = start_network(dockerclient)
File "/home/Boxursa/Desktop/Metagenapp-master/MetagenApp/network.py",line 15,in start_network
Metagen_net = client.networks.create("Metagen_net",File "/home/Boxursa/.local/share/virtualenvs/Metagenapp-master-cR0L49Yy/lib/python3.8/site-packages/docker/models/networks.py",line 156,in create
resp = self.client.api.create_network(name,*args,**kwargs)
File "/home/Boxursa/.local/share/virtualenvs/Metagenapp-master-cR0L49Yy/lib/python3.8/site-packages/docker/api/network.py",line 152,in create_network
res = self._post_json(url,data=data)
File "/home/Boxursa/.local/share/virtualenvs/Metagenapp-master-cR0L49Yy/lib/python3.8/site-packages/docker/api/client.py",line 289,in _post_json
return self._post(url,data=json.dumps(data2),**kwargs)
File "/home/Boxursa/.local/share/virtualenvs/Metagenapp-master-cR0L49Yy/lib/python3.8/site-packages/docker/utils/decorators.py",line 46,in inner
return f(self,**kwargs)
File "/home/Boxursa/.local/share/virtualenvs/Metagenapp-master-cR0L49Yy/lib/python3.8/site-packages/docker/api/client.py",line 226,in _post
return self.post(url,**self._set_request_timeout(kwargs))
File "/home/Boxursa/.local/share/virtualenvs/Metagenapp-master-cR0L49Yy/lib/python3.8/site-packages/requests/sessions.py",line 578,in post
return self.request('POST',data=data,json=json,**kwargs)
File "/home/Boxursa/.local/share/virtualenvs/Metagenapp-master-cR0L49Yy/lib/python3.8/site-packages/requests/sessions.py",line 530,in request
resp = self.send(prep,**send_kwargs)
File "/home/Boxursa/.local/share/virtualenvs/Metagenapp-master-cR0L49Yy/lib/python3.8/site-packages/requests/sessions.py",line 643,in send
r = adapter.send(request,**kwargs)
File "/home/Boxursa/.local/share/virtualenvs/Metagenapp-master-cR0L49Yy/lib/python3.8/site-packages/requests/adapters.py",line 498,in send
raise ConnectionError(err,request=request)
requests.exceptions.ConnectionError: ('Connection aborted.','No such file or directory'))```
解决方法
程序试图连接到Unix套接字,但是该文件不存在。
为什么不呢?另一个程序应该已经在Unix套接字的另一端运行并正在监听。