Package: matrix-synapse Version: 0.34.1.1-4 Severity: important Dear maintainer,
I installed Matrix Synapse on a new amd64 Debian testing machine. I was able to register a new account and use the application (automatically logged in). However, if I log out of this account and try to login again, an error is thrown. I am using the Riot web client provided at https://riot.im/app Error message in Riot UI: Error: Problem communicating with the given homeserver. (M_UNKNOWN) Error in server logs (from journald): see attached file A user who logs out gets permanently locked out. I didn't find any workaround for this. New user registrations still work though. -- Regards, Joseph Nuthalapati
Feb 06 06:48:00 ip-172-31-40-122 synapse[5913]: synapse.access.http.8008: [OPTIONS-4452] ::1 - 8008 - Received request: OPTIONS /_matrix/client/r0/login
Feb 06 06:48:00 ip-172-31-40-122 synapse[5913]: synapse.access.http.8008: [OPTIONS-4452] ::1 - 8008 - {None} Processed request: 0.002sec/0.000sec (0.002sec, 0.000sec) (0.000sec/0.000sec/0) 22B 200 "OPTIONS /_matrix/client/r0/login HTTP/1.1" "Mozilla/5.0 (X11; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0" [0 dbevts]
Feb 06 06:48:00 ip-172-31-40-122 synapse[5913]: synapse.access.http.8008: [POST-4453] ::1 - 8008 - Received request: POST /_matrix/client/r0/login
Feb 06 06:48:00 ip-172-31-40-122 synapse[5913]: synapse.rest.client.v1.login: [POST-4453] Got login request with identifier: {'type': 'm.id.user', 'user': 'tester'}, medium: None, address: None, user: 'tester'
Feb 06 06:48:00 ip-172-31-40-122 synapse[5913]: synapse.metrics: [] Collecting gc 0
Feb 06 06:48:00 ip-172-31-40-122 synapse[5913]: synapse.storage._base: [] Starting db txn 'get_users_by_id_case_insensitive' from sentinel context
Feb 06 06:48:00 ip-172-31-40-122 synapse[5913]: synapse.storage._base: [] Starting db connection from sentinel context: metrics will be lost
Feb 06 06:48:00 ip-172-31-40-122 synapse[5913]: synapse.http.server: [] Failed handle request via <function JsonResource._async_render at 0x7fcce98c71e0>: <SynapseRequest at 0x7fccceda9780 method='POST' uri='/_matrix/client/r0/login' clientproto='HTTP/1.1' site=8008>: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 654, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1475, in gotResult
_inlineCallbacks(r, g, status)
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 491, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
--- <exception caught here> ---
File "/usr/lib/python3/dist-packages/synapse/http/server.py", line 81, in wrapped_request_handler
yield h(self, request)
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 491, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/python3/dist-packages/synapse/http/server.py", line 316, in _async_render
callback_return = yield callback(request, **kwargs)
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 491, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/python3/dist-packages/synapse/rest/client/v1/login.py", line 140, in on_POST
result = yield self._do_other_login(login_submission)
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 491, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/python3/dist-packages/synapse/rest/client/v1/login.py", line 220, in _do_other_login
login_submission,
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 491, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/python3/dist-packages/synapse/handlers/auth.py", line 709, in validate_login
qualified_user_id, password,
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 491, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/python3/dist-packages/synapse/handlers/auth.py", line 743, in _check_local_password
result = yield self.validate_hash(password, password_hash)
File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 250, in inContext
result = inContext.theWork()
File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 266, in <lambda>
inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 85, in callWithContext
return func(*args,**kw)
File "/usr/lib/python3/dist-packages/synapse/util/logcontext.py", line 633, in g
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/synapse/util/logcontext.py", line 289, in __exit__
self.parent_context._resource_usage += self._resource_usage
builtins.AttributeError: 'Sentinel' object has no attribute '_resource_usage'
Feb 06 06:48:00 ip-172-31-40-122 synapse[5913]: synapse.access.http.8008: [POST-4453] ::1 - 8008 - {None} Processed request: 0.339sec/0.000sec (0.002sec, 0.000sec) (0.000sec/0.000sec/0) 67B 500 "POST /_matrix/client/r0/login HTTP/1.1" "Mozilla/5.0 (X11; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0" [0 dbevts]
signature.asc
Description: OpenPGP digital signature

