sync-engine icon indicating copy to clipboard operation
sync-engine copied to clipboard

Connection refused to localhost:6379 (bin/inbox-start)

Open remysalim opened this issue 8 years ago • 1 comments
trafficstars

Hi,

I've been trying to run Nylas' sync-engine on Windows 10's linux subsystem and it looks like it might work but I can't seem to start the inbox properly. I get the following error message:

[ERROR] {"error_message": "Error 111 connecting to localhost:6379. Connection refused.", "account_id": null, "timestamp": "2016-12-01T00:17:24.786574Z", "provider": null, "module": "inbox.util.concurrency:106", "occurrences": 1, "greenlet_id": 139654788126672, "event": "Uncaught error", "level": "error", "error_tb": "Traceback (most recent call last):\n File \"/mnt/d/git/sync-engine/inbox/util/concurrency.py\", line 56, in wrapped\n return func(*args, **kwargs)\n File \"/mnt/d/git/sync-engine/inbox/scheduling/queue.py\", line 148, in _run_impl\n self.enqueue_new_accounts()\n File \"/mnt/d/git/sync-engine/inbox/scheduling/queue.py\", line 163, in enqueue_new_accounts\n new_accounts = self.runnable_accounts() - self.queue_client.all()\n File \"/mnt/d/git/sync-engine/inbox/scheduling/queue.py\", line 77, in all\n unassigned, assigned = p.execute()\n File \"/usr/local/lib/python2.7/dist-packages/redis/client.py\", line 2593, in execute\n return execute(conn, stack, raise_on_error)\n File \"/usr/local/lib/python2.7/dist-packages/redis/client.py\", line 2447, in _execute_transaction\n connection.send_packed_command(all_cmds)\n File \"/usr/local/lib/python2.7/dist-packages/redis/connection.py\", line 532, in send_packed_command\n self.connect()\n File \"/usr/local/lib/python2.7/dist-packages/redis/connection.py\", line 436, in connect\n raise ConnectionError(self._error_message(e))\nConnectionError: Error 111 connecting to localhost:6379. Connection refused.\n", "error": "ConnectionError"}

Everything else works just fine, the SQL database is set, auth of one account and calls on the API work like a charm. Any ideas?

Regards

remysalim avatar Dec 01 '16 00:12 remysalim

Did you start redis too? It's a (relatively recent) dependency of the sync-engine.

khamidou avatar Feb 13 '17 23:02 khamidou