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

Room Creation inside Community Failed with 500 #5470

Closed
devilankur18 opened this issue Jun 17, 2019 · 1 comment
Closed

Room Creation inside Community Failed with 500 #5470

devilankur18 opened this issue Jun 17, 2019 · 1 comment

Comments

@devilankur18
Copy link

devilankur18 commented Jun 17, 2019

Description

When trying to create a new room inside synapse community. Its failing

Steps to reproduce

  • Create a new community
  • Invite users
  • Create a new Room inside the community

its giving 500 error. Here is the server log

2019-06-17 04:27:19,910 - synapse.access.http.8008 - 233 - INFO - OPTIONS-88202 - - - 8008 - Received request: OPTIONS /_matrix/client/r0/groups/%2Bcompany-team%3Achat.example.com/admin/rooms/!team1%3Achat
2019-06-17 04:27:19,912 - synapse.access.http.8008 - 302 - INFO - OPTIONS-88202 - - - 8008 - {None} Processed request: 0.001sec/0.001sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 2B 200 "OPTIONS /_matrix/client/r0/groups/%2Bcompany-team%3Achat.example.com/admin/rooms/!team1%3Achat HTTP/1.1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3822.0 Safari/537.36" [0 dbevts]
2019-06-17 04:27:19,941 - synapse.access.http.8008 - 233 - INFO - OPTIONS-88203 - - - 8008 - Received request: OPTIONS /_matrix/client/r0/groups/%2Bcompany-team%3Achat.example.com/admin/rooms/!team1%3Achat.example.com
2019-06-17 04:27:19,943 - synapse.access.http.8008 - 302 - INFO - OPTIONS-88203 - - - 8008 - {None} Processed request: 0.001sec/0.001sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 2B 200 "OPTIONS /_matrix/client/r0/groups/%2Bcompany-team%3Achat.example.com/admin/rooms/!team1%3Achat.example.com HTTP/1.1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3822.0 Safari/537.36" [0 dbevts]
2019-06-17 04:27:19,952 - synapse.access.http.8008 - 233 - INFO - PUT-88204 - - - 8008 - Received request: PUT /_matrix/client/r0/groups/%2Bcompany-team%3Achat.example.com/admin/rooms/!team1%3Achat
2019-06-17 04:27:19,985 - synapse.access.http.8008 - 233 - INFO - PUT-88205 - - - 8008 - Received request: PUT /_matrix/client/r0/groups/%2Bcompany-team%3Achat.example.com/admin/rooms/!team1%3Achat.example.com
2019-06-17 04:27:20,003 - synapse.access.http.8008 - 302 - INFO - PUT-88204 - - - 8008 - {@admin:chat.example.com} Processed request: 0.050sec/0.001sec (0.003sec, 0.000sec) (0.005sec/0.041sec/4) 2B 200 "PUT /_matrix/client/r0/groups/%2Bcompany-team%3Achat.example.com/admin/rooms/!team1%3Achat HTTP/1.1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3822.0 Safari/537.36" [0 dbevts]
2019-06-17 04:27:20,005 - synapse.metrics - 372 - INFO -  - Collecting gc 0
2019-06-17 04:27:20,019 - synapse.access.http.8008 - 302 - INFO - PUT-88205 - - - 8008 - {@admin:chat.example.com} Processed request: 0.034sec/0.001sec (0.002sec, 0.000sec) (0.017sec/0.014sec/4) 2B 200 "PUT /_matrix/client/r0/groups/%2Bcompany-team%3Achat.example.com/admin/rooms/!team1%3Achat.example.com HTTP/1.1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3822.0 Safari/537.36" [0 dbevts]
2019-06-17 04:27:20,046 - synapse.access.http.8008 - 233 - INFO - OPTIONS-88206 - - - 8008 - Received request: OPTIONS /_matrix/client/r0/groups/%2Bcompany-team%3Achat.example.com/rooms
2019-06-17 04:27:20,048 - synapse.access.http.8008 - 302 - INFO - OPTIONS-88206 - - - 8008 - {None} Processed request: 0.001sec/0.001sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 2B 200 "OPTIONS /_matrix/client/r0/groups/%2Bcompany-team%3Achat.example.com/rooms HTTP/1.1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3822.0 Safari/537.36" [0 dbevts]
2019-06-17 04:27:20,088 - synapse.access.http.8008 - 233 - INFO - GET-88207 - - - 8008 - Received request: GET /_matrix/client/r0/groups/%2Bcompany-team%3Achat.example.com/rooms

2019-06-17 04:27:20,101 - synapse.http.server - 112 - ERROR - GET-88207 - Failed handle request via 'GroupRoomServlet': <XForwardedForRequest at 0x7f0a44d09550 method='GET' uri='/_matrix/client/r0/groups/%2Bcompany-team%3Achat.example.com/rooms' clientproto='HTTP/1.1' site=8008>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
    result = g.send(result)
  File "/usr/local/lib/python3.6/site-packages/synapse/storage/_base.py", line 527, in runWithConnection
    defer.returnValue(result)
  File "/usr/local/lib/python3.6/site-packages/twisted/internet/defer.py", line 1362, in returnValue
    raise _DefGen_Return(val)
twisted.internet.defer._DefGen_Return: {}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
    result = g.send(result)
  File "/usr/local/lib/python3.6/site-packages/synapse/storage/_base.py", line 487, in runInteraction
    defer.returnValue(result)
  File "/usr/local/lib/python3.6/site-packages/twisted/internet/defer.py", line 1362, in returnValue
    raise _DefGen_Return(val)
twisted.internet.defer._DefGen_Return: {}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/synapse/http/server.py", line 81, in wrapped_request_handler
    yield h(self, request)
  File "/usr/local/lib/python3.6/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/local/lib/python3.6/site-packages/synapse/http/server.py", line 316, in _async_render
    callback_return = yield callback(request, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/local/lib/python3.6/site-packages/synapse/rest/client/v2_alpha/groups.py", line 355, in on_GET
    result = yield self.groups_handler.get_rooms_in_group(group_id, requester_user_id)
  File "/usr/local/lib/python3.6/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/local/lib/python3.6/site-packages/synapse/groups/groups_server.py", line 547, in get_rooms_in_group
    room_id, len(joined_users), with_alias=False, allow_private=True,
  File "/usr/local/lib/python3.6/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
    result = g.send(result)
  File "/usr/local/lib/python3.6/site-packages/synapse/handlers/room_list.py", line 401, in generate_room_entry
    result["m.federate"] = create_event.content.get("m.federate", True)
AttributeError: 'NoneType' object has no attribute 'content'

Version information

  • Homeserver:

If not matrix.org:

  • Version:
    Synapse/0.99.5.2
  • Install method:
    Docker Image
  • Platform:
    Docker Image: docker.io/matrixdotorg/synapse:v0.99.5.2
@richvdh
Copy link
Member

richvdh commented Jun 18, 2019

seems to be a dup of #4891

@richvdh richvdh closed this as completed Jun 18, 2019
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