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

can't create rooms with with an alias when createRoom is on a worker #10716

@cremesk

Description

@cremesk

Description

Hello,

i can not create new rooms with the new generic_worker location ^/_matrix/client/(api/v1|r0|unstable)/createRoom$.

Steps to reproduce

Version information

  • Homeserver: envs.net
  • Version: 1.41.0
  • Install method: apt
  • Platform: Debian 11 / VM

Log:

2021-08-28 18:31:05,066 - synapse.http.server - 93 - ERROR - POST-192338 - Failed handle request via 'RoomCreateRestServlet': <XForwardedForRequest at 0x7f907639c550 method='POST' uri='/_matrix/client/r0/createRoom' clientproto='HTTP/1.0' site=8513>
Traceback (most recent call last):
  File "/opt/venvs/matrix-synapse/lib/python3.9/site-packages/synapse/http/server.py", line 258, in _async_render_wrapper
    callback_return = await self._async_render(request)
  File "/opt/venvs/matrix-synapse/lib/python3.9/site-packages/synapse/http/server.py", line 446, in _async_render
    callback_return = await raw_callback_return
  File "/opt/venvs/matrix-synapse/lib/python3.9/site-packages/synapse/rest/client/room.py", line 84, in on_POST
    info, _ = await self._room_creation_handler.create_room(
  File "/opt/venvs/matrix-synapse/lib/python3.9/site-packages/synapse/handlers/room.py", line 726, in create_room
    await directory_handler.create_association(
  File "/opt/venvs/matrix-synapse/lib/python3.9/site-packages/synapse/handlers/directory.py", line 162, in create_association
    await self._create_association(room_alias, room_id, servers, creator=user_id)
  File "/opt/venvs/matrix-synapse/lib/python3.9/site-packages/synapse/handlers/directory.py", line 88, in _create_association
    await self.store.create_room_alias_association(
AttributeError: 'GenericWorkerSlavedStore' object has no attribute 'create_room_alias_association'

Metadata

Metadata

Assignees

Labels

S-MinorBlocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions