InvalidAuthTokenError after a long time syncing
I left soledad syncing during a long time (>1 day). When I came back to it, I saw this bt on every sync. I think we should recover from this situation somehow. Probably we should plan for the events channel so that they can notify back to the client backend and obtain a new token.
GETTING SYNC INFO (HTTP SYNC TARGET) Unhandled Error Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap self.__bootstrap_inner() File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 763, in run self.__target(*self.__args, **self.__kwargs) --- --- File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/twisted/python/threadpool.py", line 196, in _worker result = context.call(ctx, function, *args, **kwargs) File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext return func(*args,**kw) File "/home/kali/leap/soledad/client/src/leap/soledad/client/sqlcipher.py", line 669, in _sync defer_decryption=defer_decryption) File "/home/kali/leap/soledad/client/src/leap/soledad/client/sync.py", line 82, in sync defer_decryption=defer_decryption) File "/home/kali/leap/soledad/client/src/leap/soledad/client/sync.py", line 103, in _sync sync_target.get_sync_info(self.source._replica_uid) File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/u1db-13.09-py2.7.egg/u1db/remote/http_target.py", line 47, in get_sync_info res, _ = self._request_json('GET', ['sync-from', source_replica_uid]) File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/u1db-13.09-py2.7.egg/u1db/remote/http_client.py", line 217, in _request_json content_type) File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/u1db-13.09-py2.7.egg/u1db/remote/http_client.py", line 209, in _request return self._response() File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/u1db-13.09-py2.7.egg/u1db/remote/http_client.py", line 156, in _response self._error(respdic) File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/u1db-13.09-py2.7.egg/u1db/remote/http_client.py", line 142, in _error raise exc_cls(message) leap.soledad.common.errors.InvalidAuthTokenError:
(from redmine: created on 2015-03-08, closed on 2016-03-31)
- Relations:
- relates #6790 (closed)
- relates #6794
- relates #7095 (closed)
- relates #6677 (closed)
- relates #7430