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

HTTPError 400 - on running pixelated-user-agent against try.pixelated-project.org with alice/bob test credentials #994

Closed FrailWords closed 7 years ago

FrailWords commented 7 years ago

When I try to run the pixelated-user-agent against the try.pixelated-project.org provider with either of the test credentials using -

pixelated-user-agent --host 0.0.0.0 -c try.alice.ini

I get the following log containing the HTTP 400 error -

(pixua)vagrant@leap-jessie:/vagrant$ pixelated-user-agent --host 0.0.0.0 -c try.alice.ini
2017-02-27 13:44:06 [pixelated.application] INFO Starting the Pixelated user agent
2017-02-27 13:44:06 [pixelated.application] INFO Running the reactor
2017-02-27 13:44:06 [pixelated.application] INFO Starting the API on port 3333
2017-02-27 13:44:06 [log_legacy] INFO PixelatedSite starting on 3333
2017-02-27 13:44:06 [pixelated.config.site.PixelatedSite] INFO Starting factory <pixelated.config.site.PixelatedSite instance at 0x7fef500ce0e0>
2017-02-27 13:44:06 [requests.packages.urllib3.connectionpool] INFO Starting new HTTPS connection (1): try.pixelated-project.org
2017-02-27 13:44:07 [requests.packages.urllib3.connectionpool] INFO Starting new HTTPS connection (1): try.pixelated-project.org
2017-02-27 13:44:08 [requests.packages.urllib3.connectionpool] INFO Starting new HTTPS connection (1): try.pixelated-project.org
2017-02-27 13:44:09 [requests.packages.urllib3.connectionpool] INFO Starting new HTTPS connection (1): api.try.pixelated-project.org
2017-02-27 13:44:10 [requests.packages.urllib3.connectionpool] INFO Starting new HTTPS connection (1): api.try.pixelated-project.org
2017-02-27 13:44:10 [leap.bitmask.bonafide.session] DEBUG POST to https://api.try.pixelated-project.org:4430/1/sessions
2017-02-27 13:44:10 [twisted.web.client._HTTP11ClientFactory] INFO Starting factory <twisted.web.client._HTTP11ClientFactory instance at 0x7fef501061b8>
2017-02-27 13:44:11 [leap.bitmask.bonafide.session] DEBUG PUT to https://api.try.pixelated-project.org:4430/1/sessions/alice
2017-02-27 13:44:11 [twisted.web.client._HTTP11ClientFactory] INFO Starting factory <twisted.web.client._HTTP11ClientFactory instance at 0x7fef4e44a3b0>
2017-02-27 13:44:11 [twisted.web.client._HTTP11ClientFactory] INFO Stopping factory <twisted.web.client._HTTP11ClientFactory instance at 0x7fef501061b8>
2017-02-27 13:44:12 [leap.soledad.client._secrets.storage] INFO trying to load secrets from disk: /home/vagrant/.leap/6eb8824cf8c5f3147fa099e2c81f7878/soledad/secrets
2017-02-27 13:44:12 [leap.soledad.client._secrets.storage] INFO secrets loaded successfully from disk
2017-02-27 13:44:12 [twisted.web.client._HTTP11ClientFactory] INFO Stopping factory <twisted.web.client._HTTP11ClientFactory instance at 0x7fef4e44a3b0>
2017-02-27 13:44:12 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting write-ahead logging
2017-02-27 13:44:12 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting synchronous normal
2017-02-27 13:44:12 [leap.soledad.client.sqlcipher] DEBUG SQLCipher backend: closing
2017-02-27 13:44:12 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting write-ahead logging
2017-02-27 13:44:12 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting synchronous normal
2017-02-27 13:44:12 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting write-ahead logging
2017-02-27 13:44:12 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting synchronous normal
2017-02-27 13:44:12 [twisted.web.client._HTTP11ClientFactory] INFO Starting factory <twisted.web.client._HTTP11ClientFactory instance at 0x7fef4ec6f908>
2017-02-27 13:44:12 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting write-ahead logging
2017-02-27 13:44:12 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting synchronous normal
2017-02-27 13:44:12 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting write-ahead logging
2017-02-27 13:44:12 [leap.soledad.client.pragmas] DEBUG sqlcipher: setting synchronous normal
2017-02-27 13:44:13 [leap.soledad.client.sync] DEBUG target replica uid: 4de7d12931d647ea8235ecca43dd8563
2017-02-27 13:44:13 [leap.soledad.client.sync] DEBUG target generation: 220
2017-02-27 13:44:13 [leap.soledad.client.sync] DEBUG target trans id: T-07d7f9c991534a7884fec8fba67798ae
2017-02-27 13:44:13 [leap.soledad.client.sync] DEBUG target my gen: 0
2017-02-27 13:44:13 [leap.soledad.client.sync] DEBUG target my trans_id:
2017-02-27 13:44:13 [leap.soledad.client.sync] DEBUG source replica_uid: 6378e8ea6f354128bd7168ae1d4a8078
2017-02-27 13:44:13 [leap.soledad.client.sync] DEBUG there are 0 documents to send
2017-02-27 13:44:13 [leap.soledad.client.sync] DEBUG last known target gen: 0
2017-02-27 13:44:13 [leap.soledad.client.sync] DEBUG last known target trans_id:
2017-02-27 13:44:13 [twisted.web.client._HTTP11ClientFactory] INFO Starting factory <twisted.web.client._HTTP11ClientFactory instance at 0x7fef4e41b1b8>
2017-02-27 13:44:13 [twisted.web.client._HTTP11ClientFactory] INFO Stopping factory <twisted.web.client._HTTP11ClientFactory instance at 0x7fef4ec6f908>
2017-02-27 13:44:14 [leap.soledad.client.api] ERROR got exception when syncing!
*--- Failure #16 ---
Failure: leap.soledad.common.l2db.errors.HTTPError: HTTPError(400)
*--- End of Failure #16 ---

2017-02-27 13:44:14 [twisted.python.log] ERROR Traceback (most recent call last):
2017-02-27 13:44:14 [twisted.python.log] ERROR Failure: leap.soledad.common.l2db.errors.HTTPError: HTTPError(400)
2017-02-27 13:44:14 [log_legacy] INFO (TCP Port 3333 Closed)
2017-02-27 13:44:14 [pixelated.config.site.PixelatedSite] INFO Stopping factory <pixelated.config.site.PixelatedSite instance at 0x7fef500ce0e0>
2017-02-27 13:44:14 [twisted.web.client._HTTP11ClientFactory] INFO Stopping factory <twisted.web.client._HTTP11ClientFactory instance at 0x7fef4e41b1b8>
2017-02-27 13:44:14 [leap.soledad.client.sqlcipher] DEBUG SQLCipher backend: closing
2017-02-27 13:44:14 [leap.soledad.client.sqlcipher] DEBUG SQLCipher backend: closing
2017-02-27 13:44:14 [leap.soledad.client.sqlcipher] DEBUG SQLCipher backend: closing
2017-02-27 13:44:14 [log_legacy] INFO Main loop terminated.
tuliocasagrande commented 7 years ago

This is depending on #888.

Explanation: The client side (pixelated-user-agent/vagrant) is using soledad master branch (streaming transfer merge) The server side (try machine) is using soledad develop branch.

So basically soledad client and soledad server can't talk properly.

After #888, everything should be running smoothly again.

deniscostadsc commented 7 years ago

Hi @FrailWords,

The issue #888 was closed, can you try again?

FrailWords commented 7 years ago

After this fix, we are getting the following problem -

(pixua)vagrant@leap-jessie:~$ pixelated-user-agent --host 0.0.0.0 --multi-user --provider=try.pixelated-project.org
2017-03-31 14:48:54 [pixelated.application] INFO Starting the Pixelated user agent
2017-03-31 14:48:54 [pixelated.application] INFO Running the reactor
2017-03-31 14:48:54 [requests.packages.urllib3.connectionpool] INFO Starting new HTTPS connection (1): try.pixelated-project.org
2017-03-31 14:48:55 [requests.packages.urllib3.connectionpool] INFO Starting new HTTPS connection (1): try.pixelated-project.org
2017-03-31 14:48:56 [requests.packages.urllib3.connectionpool] INFO Starting new HTTPS connection (1): try.pixelated-project.org
2017-03-31 14:48:57 [requests.packages.urllib3.connectionpool] INFO Starting new HTTPS connection (1): api.try.pixelated-project.org
2017-03-31 14:48:57 [twisted.python.log] ERROR Traceback (most recent call last):
2017-03-31 14:48:57 [twisted.python.log] ERROR Failure: requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)
2017-03-31 14:48:57 [log_legacy] INFO Main loop terminated.

@varac - do you have any idea what this might be due to?

tuliocasagrande commented 7 years ago

The Pixelated team is stopping active development for this project. We hope that it will be picked up in the future though but for now it doesn't make sense to keep this issue open.