【问题标题】:Couldn't listen on :::8008: [Errno 97] Address family not supported by protocol无法在 :::8008 上收听:[Errno 97] 协议不支持地址系列
【发布时间】:2019-10-03 12:13:42
【问题描述】:

我正在使用 "docker.io/matrixdotorg/synapse:latest-py3" docker 映像,当我在本地运行它时,它按预期工作,但只有当我将其部署到我的集群并出现 无法监听 :::8008: [Errno 97] Address family not supported by protocol 错误。 有什么帮助吗?

- twisted - 242 - ERROR - - Traceback (most recent call last):

- twisted - 242 - ERROR - -   File "/usr/local/lib/python3.6/site-packages/twisted/internet/tcp.py", line 1356, in startListening

- twisted - 242 - ERROR - -     skt = self.createInternetSocket()

- twisted - 242 - ERROR - -   File "/usr/local/lib/python3.6/site-packages/twisted/internet/tcp.py", line 1340, in createInternetSocket

- twisted - 242 - ERROR - -     s = base.BasePort.createInternetSocket(self)

- twisted - 242 - ERROR - -   File "/usr/local/lib/python3.6/site-packages/twisted/internet/base.py", line 1188, in createInternetSocket

- twisted - 242 - ERROR - -     s = socket.socket(self.addressFamily, self.socketType)

- twisted - 242 - ERROR - -   File "/usr/local/lib/python3.6/socket.py", line 144, in __init__


- twisted - 242 - ERROR - -     _socket.socket.__init__(self, family, type, proto, fileno)

- twisted - 242 - ERROR - - OSError: [Errno 97] Address family not supported by protocol

- twisted - 242 - ERROR - - During handling of the above exception, another exception occurred:


- twisted - 242 - ERROR - - Traceback (most recent call last):

- twisted - 242 - ERROR - -   File "/usr/local/lib/python3.6/site-packages/synapse/app/_base.py", line 282, in start

- twisted - 242 - ERROR - -     hs.start_listening(listeners)

- twisted - 242 - ERROR - -   File "/usr/local/lib/python3.6/site-
packages/synapse/app/homeserver.py", line 261, in start_listening

- twisted - 242 - ERROR - -     self._listener_http(config, listener)

- twisted - 242 - ERROR - -   File "/usr/local/lib/python3.6/site-packages/synapse/app/homeserver.py", line 154, in _listener_http

- twisted - 242 - ERROR - -     reactor=self.get_reactor(),

- twisted - 242 - ERROR - -   File "/usr/local/lib/python3.6/site-packages/synapse/app/_base.py", line 190, in listen_tcp

- twisted - 242 - ERROR - -     check_bind_error(e, address, bind_addresses)

- twisted - 242 - ERROR - -   File "/usr/local/lib/python3.6/site-packages/synapse/app/__init__.py", line 49, in check_bind_error

- twisted - 242 - ERROR - -     raise e

- twisted - 242 - ERROR - -   File "/usr/local/lib/python3.6/site-packages/synapse/app/_base.py", line 186, in listen_tcp

- twisted - 242 - ERROR - -     address

- twisted - 242 - ERROR - -   File "/usr/local/lib/python3.6/site-packages/twisted/internet/posixbase.py", line 495, in listenTCP

- twisted - 242 - ERROR - -     p.startListening()

- twisted - 242 - ERROR - -   File "/usr/local/lib/python3.6/site-packages/twisted/internet/tcp.py", line 1363, in startListening

- twisted - 242 - ERROR - -     raise CannotListenError(self.interface, self.port, le)

- twisted - 242 - ERROR - - twisted.internet.error.CannotListenError: Couldn't listen on :::8008: [Errno 97] Address family not supported by protocol```
`

【问题讨论】:

    标签: synapse matrix-synapse


    【解决方案1】:

    您可能禁用了 ipv6,并且默认配置正在尝试同时侦听 ipv6 和 ipv4。如果您检查/etc/matrix-synapse/homeserver.yaml 配置文件的bind_addresses 部分,您应该将bind_addresses: ['::1', '127.0.0.1'] 更改为bind_addresses: ['127.0.0.1']

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-21
      • 2013-04-28
      • 2019-02-01
      • 1970-01-01
      • 2013-12-20
      • 1970-01-01
      相关资源
      最近更新 更多