Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

AttributeError: 'ServerReplicationStreamProtocol' object has no attribute 'replication_streams' #7189

Closed
Terbium-135 opened this issue Mar 31, 2020 · 3 comments

Comments

@Terbium-135
Copy link

Description

Using the latest dev build I am getting several of these errors in the homeserver.log

2020-03-31 18:02:31,862 - synapse.replication.tcp.protocol - 163 - INFO -  - [anon-dQsVA] Connection established
2020-03-31 18:02:31,880 - synapse.replication.tcp.protocol - 421 - INFO - replication-NAME-10 - [anon-dQsVA] Renamed to 'synapse.app.appservice'
2020-03-31 18:02:32,915 - synapse.metrics - 76 - ERROR -  - Exception running callback for LaterGauge(synapse_replication_tcp_resource_connections_per_stream)
Traceback (most recent call last):
  File "/opt/synapse/synapse/synapse/metrics/__init__.py", line 74, in collect
    calls = self.caller()
  File "/opt/synapse/synapse/synapse/replication/tcp/resource.py", line 114, in <lambda>
    for stream_name in self.streams_by_name
  File "/opt/synapse/synapse/synapse/replication/tcp/resource.py", line 114, in <dictcomp>
    for stream_name in self.streams_by_name
  File "/opt/synapse/synapse/synapse/replication/tcp/resource.py", line 111, in <listcomp>
    if stream_name in conn.replication_streams
AttributeError: 'ServerReplicationStreamProtocol' object has no attribute 'replication_streams'
2020-03-31 18:02:37,707 - synapse.replication.tcp.protocol - 163 - INFO -  - [anon-zCRCR] Connection established
2020-03-31 18:02:37,723 - synapse.replication.tcp.protocol - 421 - INFO - replication-NAME-11 - [anon-zCRCR] Renamed to 'synapse.app.client_reader'
2020-03-31 18:02:43,427 - synapse.replication.tcp.protocol - 163 - INFO -  - [anon-NHvgG] Connection established
2020-03-31 18:02:43,464 - synapse.replication.tcp.protocol - 421 - INFO - replication-NAME-12 - [anon-NHvgG] Renamed to 'synapse.app.synchrotron'
2020-03-31 18:02:47,925 - synapse.metrics - 76 - ERROR -  - Exception running callback for LaterGauge(synapse_replication_tcp_resource_connections_per_stream)
Traceback (most recent call last):
  File "/opt/synapse/synapse/synapse/metrics/__init__.py", line 74, in collect
    calls = self.caller()
  File "/opt/synapse/synapse/synapse/replication/tcp/resource.py", line 114, in <lambda>
    for stream_name in self.streams_by_name
  File "/opt/synapse/synapse/synapse/replication/tcp/resource.py", line 114, in <dictcomp>
    for stream_name in self.streams_by_name
  File "/opt/synapse/synapse/synapse/replication/tcp/resource.py", line 111, in <listcomp>
    if stream_name in conn.replication_streams
AttributeError: 'ServerReplicationStreamProtocol' object has no attribute 'replication_streams'
2020-03-31 18:02:49,166 - synapse.replication.tcp.protocol - 163 - INFO -  - [anon-ZGMih] Connection established

Steps to reproduce

  • download latest dev build
  • using a worker environment
  • start homeserver and check log

Version information

  • Version:
    homeserver.py version 1.12.0 (b=develop,2e826cd80)
    Twisted is 20.3.0 (in case that matters)
  • Install method:
    git pull
  • Platform:
    Debian 9, ARM64
@richvdh
Copy link
Member

richvdh commented Mar 31, 2020

broken by #7024 presumably

@richvdh
Copy link
Member

richvdh commented Apr 1, 2020

fixed by #7195

@richvdh richvdh closed this as completed Apr 1, 2020
@richvdh
Copy link
Member

richvdh commented Apr 1, 2020

thanks for the report!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants