Traceback (most recent call last):


 "/usr/local/lib/python2.7/dist-packages/synapse/http/server.py", line 118, in wrapped_request_handler

yield request_handler(self, request)


 "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1299, in _inlineCallbacks

result = result.throwExceptionIntoGenerator(g)


 "/usr/local/lib/python2.7/dist-packages/twisted/python/failure.py", line 393, in throwExceptionIntoGenerator

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


 "/usr/local/lib/python2.7/dist-packages/synapse/rest/media/v1/thumbnail_resource.py", line 71, in _async_render_GET

width, height, method, m_type


 "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1299, in _inlineCallbacks

result = result.throwExceptionIntoGenerator(g)


 "/usr/local/lib/python2.7/dist-packages/twisted/python/failure.py", line 393, in throwExceptionIntoGenerator

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


 "/usr/local/lib/python2.7/dist-packages/synapse/rest/media/v1/thumbnail_resource.py", line 194, in _select_or_generate_remote_thumbnail

desired_height, desired_method, desired_type


 "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1299, in _inlineCallbacks

result = result.throwExceptionIntoGenerator(g)


 "/usr/local/lib/python2.7/dist-packages/twisted/python/failure.py", line 393, in throwExceptionIntoGenerator

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


 "/usr/local/lib/python2.7/dist-packages/synapse/rest/media/v1/media_repository.py", line 318, in generate_remote_exact_thumbnail

t_width, t_height, t_type, t_method, t_len


 "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1299, in _inlineCallbacks

result = result.throwExceptionIntoGenerator(g)


 "/usr/local/lib/python2.7/dist-packages/twisted/python/failure.py", line 393, in throwExceptionIntoGenerator

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


 "/usr/local/lib/python2.7/dist-packages/synapse/storage/_base.py", line 406, in _simple_insert

self._simple_insert_txn, table, values,


 "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1299, in _inlineCallbacks

result = result.throwExceptionIntoGenerator(g)


 "/usr/local/lib/python2.7/dist-packages/twisted/python/failure.py", line 393, in throwExceptionIntoGenerator

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


 "/usr/local/lib/python2.7/dist-packages/synapse/storage/_base.py", line 319, in runInteraction

inner_func, *args, **kwargs


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

result = inContext.theWork()


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

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


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

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


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

return func(*args,**kw)


 "/usr/local/lib/python2.7/dist-packages/twisted/enterprise/adbapi.py", line 307, in _runWithConnection

compat.reraise(excValue, excTraceback)


 "/usr/local/lib/python2.7/dist-packages/twisted/enterprise/adbapi.py", line 298, in _runWithConnection

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


 "/usr/local/lib/python2.7/dist-packages/synapse/storage/_base.py", line 313, in inner_func

func, *args, **kwargs


 "/usr/local/lib/python2.7/dist-packages/synapse/storage/_base.py", line 242, in _new_transaction

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


 "/usr/local/lib/python2.7/dist-packages/synapse/storage/_base.py", line 426, in _simple_insert_txn

txn.execute(sql, vals)


 "/usr/local/lib/python2.7/dist-packages/synapse/storage/_base.py", line 80, in execute

self._do_execute(self.txn.execute, sql, *args)


 "/usr/local/lib/python2.7/dist-packages/synapse/storage/_base.py", line 110, in _do_execute

sql, *args
IntegrityError: duplicate key value violates unique constraint "remote_media_cache_thumbnails_media_origin_media_id_thumbna_key"

Traceback (most recent call last):

 "webtest.py", line 7, in <module>
result = dill.dumps(driver)

 "C:\Python27\lib\site-packages\dill\dill.py", line 243, in dumps
dump(obj, file, protocol, byref, fmode, recurse)#, strictio)

 "C:\Python27\lib\site-packages\dill\dill.py", line 236, in dump
pik.dump(obj)

 "C:\Python27\lib\pickle.py", line 224, in dump
self.save(obj)

 "C:\Python27\lib\pickle.py", line 331, in save
self.save_reduce(obj=obj, *rv)

 "C:\Python27\lib\pickle.py", line 425, in save_reduce
save(state)

 "C:\Python27\lib\pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self

 "C:\Python27\lib\site-packages\dill\dill.py", line 835, in save_module_dict
StockPickler.save_dict(pickler, obj)

 "C:\Python27\lib\pickle.py", line 655, in save_dict
self._batch_setitems(obj.iteritems())

 "C:\Python27\lib\pickle.py", line 687, in _batch_setitems
save(v)

 "C:\Python27\lib\pickle.py", line 331, in save
self.save_reduce(obj=obj, *rv)

 "C:\Python27\lib\pickle.py", line 425, in save_reduce
save(state)

 "C:\Python27\lib\pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self

 "C:\Python27\lib\site-packages\dill\dill.py", line 835, in save_module_dict
StockPickler.save_dict(pickler, obj)

 "C:\Python27\lib\pickle.py", line 655, in save_dict
self._batch_setitems(obj.iteritems())

 "C:\Python27\lib\pickle.py", line 687, in _batch_setitems
save(v)

 "C:\Python27\lib\pickle.py", line 331, in save
self.save_reduce(obj=obj, *rv)

 "C:\Python27\lib\pickle.py", line 425, in save_reduce
save(state)

 "C:\Python27\lib\pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self

 "C:\Python27\lib\site-packages\dill\dill.py", line 835, in save_module_dict
StockPickler.save_dict(pickler, obj)

 "C:\Python27\lib\pickle.py", line 655, in save_dict
self._batch_setitems(obj.iteritems())

 "C:\Python27\lib\pickle.py", line 687, in _batch_setitems
save(v)

 "C:\Python27\lib\pickle.py", line 313, in save
(t.__name__, obj))pickle.PicklingError: Can't pickle '_subprocess_handle' object: <_subprocess_han