pixelated / pixelated-user-agent

User facing components of Pixelated: a JavaScript single page app and a RESTful service.
GNU Affero General Public License v3.0
159 stars 72 forks source link

Generated packages fail with leap.soledad.client._crypto.InvalidBlob #1072

Closed varac closed 7 years ago

varac commented 7 years ago

I am reviewing locally generated packages (see https://github.com/pixelated/pixelated-user-agent/pull/1071). I installed the pixelated-user-agent package on unstable, but it fails with:


May 16 14:43:17 unstable1 pixelated-user-agent[7101]: 2017-05-16 14:43:17 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting write-ahead logging
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: 2017-05-16 14:43:17 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting synchronous normal
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: 2017-05-16 14:43:17 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting write-ahead logging
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: 2017-05-16 14:43:17 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting synchronous normal
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: 2017-05-16 14:43:17 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting write-ahead logging
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: 2017-05-16 14:43:17 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting synchronous normal
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: 2017-05-16 14:43:17 [leap.soledad.client.sync] DEBUG target replica uid: a908e136ea4c4f6695e26f66efad59bd
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: 2017-05-16 14:43:17 [leap.soledad.client.sync] DEBUG target generation: 65
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: 2017-05-16 14:43:17 [leap.soledad.client.sync] DEBUG target trans id: T-dc9b87935c6d49dfaba7ade769879930
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: 2017-05-16 14:43:17 [leap.soledad.client.sync] DEBUG target my gen: 0
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: 2017-05-16 14:43:17 [leap.soledad.client.sync] DEBUG target my trans_id:
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: 2017-05-16 14:43:17 [leap.soledad.client.sync] DEBUG source replica_uid: c235c831be0f4d2f8d93a26f0ab46017
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: 2017-05-16 14:43:17 [leap.soledad.client.sync] DEBUG there are 0 documents to send
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: 2017-05-16 14:43:17 [leap.soledad.client.sync] DEBUG last known target gen: 0
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: 2017-05-16 14:43:17 [leap.soledad.client.sync] DEBUG last known target trans_id:
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: 2017-05-16 14:43:17 [twisted.web.client._HTTP11ClientFactory] INFO Starting factory <twisted.web.client._HTTP11ClientFactory instance at 0x7f6c7435f7a0>
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: 2017-05-16 14:43:17 [twisted.web.client._HTTP11ClientFactory] INFO Stopping factory <twisted.web.client._HTTP11ClientFactory instance at 0x7f6c743e41b8>
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: 2017-05-16 14:43:17 [leap.soledad.client.api] ERROR got exception when syncing!
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: *--- Failure #38 ---
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/twisted/internet/defer.py:434: errback(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/twisted/internet/defer.py:501: _startRunCallbacks(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/twisted/internet/defer.py:588: _runCallbacks(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/twisted/internet/defer.py:1184: gotResult(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: [Capture of Locals and Globals disabled (use captureVars=True)]
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: --- <exception caught here> ---
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/twisted/internet/defer.py:1126: _inlineCallbacks(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/twisted/python/failure.py:389: throwExceptionIntoGenerator(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/src/leap.soledad.client/client/src/leap/soledad/client/sqlcipher.py:468: sync(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/twisted/internet/defer.py:1126: _inlineCallbacks(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/twisted/python/failure.py:389: throwExceptionIntoGenerator(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/src/leap.soledad.client/client/src/leap/soledad/client/sync.py:151: sync(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/twisted/internet/defer.py:1126: _inlineCallbacks(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/twisted/python/failure.py:389: throwExceptionIntoGenerator(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/src/leap.soledad.client/client/src/leap/soledad/client/http_target/api.py:218: sync_exchange(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/twisted/internet/defer.py:1126: _inlineCallbacks(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/twisted/python/failure.py:389: throwExceptionIntoGenerator(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/src/leap.soledad.client/client/src/leap/soledad/client/http_target/fetch.py:66: _receive_docs(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/twisted/internet/defer.py:1126: _inlineCallbacks(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/twisted/python/failure.py:389: throwExceptionIntoGenerator(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/src/leap.soledad.client/client/src/leap/soledad/client/http_target/fetch.py:112: _doc_parser(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/twisted/internet/defer.py:1126: _inlineCallbacks(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/twisted/python/failure.py:389: throwExceptionIntoGenerator(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/src/leap.soledad.client/client/src/leap/soledad/client/http_target/fetch.py:118: __atomic_doc_parse(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/local/lib/python2.7/site-packages/twisted/internet/defer.py:588: _runCallbacks(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/src/leap.soledad.client/client/src/leap/soledad/client/_crypto.py:324: <lambda>(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: /usr/share/python/pixelated-user-agent/src/leap.soledad.client/client/src/leap/soledad/client/_crypto.py:313: _end_stream(...)
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: [Capture of Locals and Globals disabled (use captureVars=True)]
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: leap.soledad.client._crypto.InvalidBlob: Invalid Tag. Blob authentication failed.
May 16 14:43:17 unstable1 pixelated-user-agent[7101]: *--- End of Failure #38 ---

You can also use the package artifact archive from last successful build here.

deniscostadsc commented 7 years ago

I didn't work. I got this error:

May 24 17:32:11 unstable1 pixelated-user-agent[16463]: 2017-05-24 17:32:11 [twisted.web.client._HTTP11ClientFactory] INFO Starting factory <twisted.web.client._HTTP11ClientFactory instance at 0x7fdb740bfa70>
May 24 17:32:11 unstable1 pixelated-user-agent[16463]: 2017-05-24 17:32:11 [leap.soledad.client.api] ERROR got exception when syncing!
May 24 17:32:11 unstable1 pixelated-user-agent[16463]: *--- Failure #47 ---
May 24 17:32:11 unstable1 pixelated-user-agent[16463]: Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.
May 24 17:32:11 unstable1 pixelated-user-agent[16463]: *--- End of Failure #47 ---
May 24 17:32:11 unstable1 pixelated-user-agent[16463]: 2017-05-24 17:32:11 [pixelated.config.leap] WARN ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.. Closing session for user: thais
May 24 17:32:11 unstable1 pixelated-user-agent[16463]: 2017-05-24 17:32:11 [pixelated.resources.login_resource] ERROR Login error during thais services setup: Connection was refused by other side: 111: Connection refused.
May 24 17:32:11 unstable1 pixelated-user-agent[16463]: Traceback (most recent call last):
May 24 17:32:11 unstable1 pixelated-user-agent[16463]: Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused.
May 24 17:32:11 unstable1 pixelated-user-agent[16463]: 2017-05-24 17:32:11 [twisted.web.client._HTTP11ClientFactory] INFO Stopping factory <twisted.web.client._HTTP11ClientFactory instance at 0x7fdb740bfa70>
May 24 17:32:11 unstable1 pixelated-user-agent[16463]: 2017-05-24 17:32:11 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting write-ahead logging
May 24 17:32:11 unstable1 pixelated-user-agent[16463]: 2017-05-24 17:32:11 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting synchronous normal
May 24 17:32:11 unstable1 pixelated-user-agent[16463]: 2017-05-24 17:32:11 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting write-ahead logging
May 24 17:32:11 unstable1 pixelated-user-agent[16463]: 2017-05-24 17:32:11 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting synchronous normal
May 24 17:32:11 unstable1 pixelated-user-agent[16463]: 2017-05-24 17:32:11 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting write-ahead logging
May 24 17:32:11 unstable1 pixelated-user-agent[16463]: 2017-05-24 17:32:11 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting synchronous normal
varac commented 7 years ago

@deniscostadsc We agreed to do QA on dev.pix not on unstable, because unstable was the env that was involved in the soledad merge and I think my encountered errors were due to that.

deniscostadsc commented 7 years ago

@varac yeah, I QAed that on DEV and it works. I was able to send and receive emails.

varac commented 7 years ago

@deniscostadsc great!