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

Upgrade to synapse-1.27.0 fails #9455

Closed
michaelschefczyk opened this issue Feb 20, 2021 · 2 comments
Closed

Upgrade to synapse-1.27.0 fails #9455

michaelschefczyk opened this issue Feb 20, 2021 · 2 comments

Comments

@michaelschefczyk
Copy link

Running docker container locally on Debian Buster on Pcengines APU2 hardware did work well until synapse-1.26.0. Upgrading to synapse-1.27.0 led to the following error for which I did not find documentation or upgrade hints:

2021-02-20 09:10:02,153 - synapse.metrics.background_process_metrics - 210 - ERROR - user_directory.notify_new_event-8- Background process 'user_directory.notify_new_event' threw an exception
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/synapse/metrics/background_process_metrics.py", line 208, in run
return await maybe_awaitable(func(*args, **kwargs))
File "/usr/local/lib/python3.8/site-packages/synapse/handlers/user_directory.py", line 110, in process
await self._unsafe_process()
File "/usr/local/lib/python3.8/site-packages/synapse/handlers/user_directory.py", line 158, in _unsafe_process
max_pos, deltas = await self.store.get_current_state_deltas(
File "/usr/local/lib/python3.8/site-packages/synapse/storage/databases/main/state_deltas.py", line 51, in get_current_state_deltas
prev_stream_id = int(prev_stream_id)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Can someone who knows how to resolve this please be so kind to share some insight?

Regards,

Michael Schefczyk

@dklimpel
Copy link
Contributor

See also: #9420
It is a duplicate.

@clokep
Copy link
Member

clokep commented Feb 22, 2021

Yes, this is a duplicate of #9420, there seems to be a workaround at #9420 (comment), but this will be fixed in v1.28.0.

@clokep clokep closed this as completed Feb 22, 2021
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

3 participants