Traceback (most recent call last):


 "/usr/lib/python3.6/socketserver.py", line 317, in _handle_request_noblock

self.process_request(request, client_address)


 "/usr/lib/python3.6/socketserver.py", line 348, in process_request

self.finish_request(request, client_address)


 "/usr/lib/python3.6/socketserver.py", line 361, in finish_request

self.RequestHandlerClass(request, client_address, self)


 "/usr/lib/python3.6/socketserver.py", line 696, in __init__

self.handle()


 "/usr/lib/python3.6/wsgiref/simple_server.py", line 133, in handle

handler.run(self.server.get_app())


 "/usr/lib/python3.6/wsgiref/handlers.py", line 144, in run

self.close()


 "/usr/lib/python3.6/wsgiref/simple_server.py", line 35, in close

self.status.split(' ',1)[0], self.bytes_sent
AttributeError: 'NoneType' object has no attribute 'split'

Traceback (most recent call last):


 "/usr/local/lib/python3.7/site-packages/synapse/storage/background_updates.py", line 111, in run_background_updates

self.BACKGROUND_UPDATE_DURATION_MS


 "/usr/local/lib/python3.7/site-packages/synapse/storage/background_updates.py", line 222, in do_next_background_update

await self._do_background_update(desired_duration_ms)


 "/usr/local/lib/python3.7/site-packages/synapse/storage/background_updates.py", line 255, in _do_background_update

items_updated = await update_handler(progress, batch_size)


 "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks

result = result.throwExceptionIntoGenerator(g)


 "/usr/local/lib/python3.7/site-packages/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator

return g.throw(self.type, self.value, self.tb)


 "/usr/local/lib/python3.7/site-packages/synapse/storage/data_stores/main/room.py", line 938, in _background_insert_retention

"insert_room_retention", _background_insert_retention_txn,


 "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks

result = result.throwExceptionIntoGenerator(g)


 "/usr/local/lib/python3.7/site-packages/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator

return g.throw(self.type, self.value, self.tb)


 "/usr/local/lib/python3.7/site-packages/synapse/storage/database.py", line 527, in runInteraction

**kwargs


 "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks

result = result.throwExceptionIntoGenerator(g)


 "/usr/local/lib/python3.7/site-packages/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator

return g.throw(self.type, self.value, self.tb)


 "/usr/local/lib/python3.7/site-packages/synapse/storage/database.py", line 575, in runWithConnection

self._db_pool.runWithConnection(inner_func, *args, **kwargs)


 "/usr/local/lib/python3.7/site-packages/twisted/python/threadpool.py", line 250, in inContext

result = inContext.theWork()


 "/usr/local/lib/python3.7/site-packages/twisted/python/threadpool.py", line 266, in <lambda>

inContext.theWork = lambda: context.call(ctx, func, *args, **kw)


 "/usr/local/lib/python3.7/site-packages/twisted/python/context.py", line 122, in callWithContext

return self.currentContext().callWithContext(ctx, func, *args, **kw)


 "/usr/local/lib/python3.7/site-packages/twisted/python/context.py", line 85, in callWithContext

return func(*args,**kw)


 "/usr/local/lib/python3.7/site-packages/twisted/enterprise/adbapi.py", line 306, in _runWithConnection

compat.reraise(excValue, excTraceback)


 "/usr/local/lib/python3.7/site-packages/twisted/python/compat.py", line 464, in reraise

raise exception.with_traceback(traceback)


 "/usr/local/lib/python3.7/site-packages/twisted/enterprise/adbapi.py", line 297, in _runWithConnection

result = func(conn, *args, **kw)


 "/usr/local/lib/python3.7/site-packages/synapse/storage/database.py", line 572, in inner_func

return func(conn, *args, **kwargs)


 "/usr/local/lib/python3.7/site-packages/synapse/storage/database.py", line 418, in new_transaction

r = func(cursor, *args, **kwargs)


 "/usr/local/lib/python3.7/site-packages/synapse/storage/data_stores/main/room.py", line 921, in _background_insert_retention_txn

"min_lifetime": retention_policy.get("min_lifetime"),
AttributeError: 'str' object has no attribute 'get'
