Traceback (most recent call last):


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/synapse/storage/persist_events.py", line 172, in handle_queue_loop

ret = await per_item_callback(item)


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/synapse/storage/persist_events.py", line 325, in persisting_queue

item.events_and_contexts, backfilled=item.backfilled


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/synapse/storage/persist_events.py", line 537, in _persist_events

backfilled=backfilled,


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/synapse/storage/databases/main/events.py", line 177, in _persist_events_and_state_updates

new_forward_extremeties=new_forward_extremeties,


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/synapse/storage/database.py", line 664, in runInteraction

**kwargs,


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/synapse/storage/database.py", line 740, in runWithConnection

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


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/twisted/python/threadpool.py", line 250, in inContext

result = inContext.theWork()


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/twisted/python/threadpool.py", line 266, in <lambda>

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


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/twisted/python/context.py", line 122, in callWithContext

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


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/twisted/python/context.py", line 85, in callWithContext

return func(*args,**kw)


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/twisted/enterprise/adbapi.py", line 306, in _runWithConnection

compat.reraise(excValue, excTraceback)


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/twisted/python/compat.py", line 464, in reraise

raise exception.with_traceback(traceback)


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/twisted/enterprise/adbapi.py", line 297, in _runWithConnection

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


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/synapse/storage/database.py", line 734, in inner_func

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


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/synapse/storage/database.py", line 534, in new_transaction

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


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/synapse/logging/utils.py", line 71, in wrapped

return f(*args, **kwargs)


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/synapse/storage/databases/main/events.py", line 394, in _persist_events_txn

backfilled=backfilled,


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/synapse/storage/databases/main/events.py", line 1362, in _update_metadata_tables_txn

self._store_room_message_txn(txn, event)


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/synapse/storage/databases/main/events.py", line 1653, in _store_room_message_txn

txn, event, "content.body", event.content["body"]


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/synapse/storage/databases/main/events.py", line 1707, in store_event_search_txn

origin_server_ts=event.origin_server_ts,


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/synapse/storage/databases/main/search.py", line 66, in store_search_entries_txn

txn.executemany(sql, args)


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/synapse/storage/database.py", line 291, in executemany

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


 "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/synapse/storage/database.py", line 314, in _do_execute

return func(sql, *args)
ValueError: A string literal cannot contain NUL (0x00) characters.

Traceback (most recent call last):


 "test.py", line 47, in <module>

main(parse_arguments(sys.argv[1:]))


 "test.py", line 16, in main

saver.restore(sess,tf.train.latest_checkpoint('./model'))


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 1557, in restore

raise ValueError("Can't load save_path when it is None.")
ValueError: Can't load save_path when it is None.
