Install TYK with mongodb cluster bootstrap error

Hi,

I try to automate tyk deployment. And I seem to face an issue when using a mongodb ha cluster (master - slave - slave).

It happen when I create the first admin user, when I’m setting up the app.
I run the bootstrap .sh script and it exits why error :

root@trusty:/home/vagrant# /opt/tyk-dashboard/install/bootstrap.sh localhost

Creating Organisation
ORG DATA: {“Status”:“OK”,“Message”:“Org created”,“Meta”:“5ae1dea9056f2906b81f5a29”}
ORG ID: 5ae1dea9056f2906b81f5a29

Adding new user
ERROR: Unable to parse JSON

I opened the bootstrap .sh file and run every commands to see where it fails
When I run the admin user creation, it fails :

root@trusty:/home/vagrant# curl -X POST -H “admin-auth: 12345” -H “Content-Type: application/json” -d ‘{“first_name”: “Wilson”, “last_name”: “Wilson”, “email_address”: “[email protected]”, “password”:“XXXXX”, “active”: true,“org_id”: “5ae1d541056f29068c62e7ff” }’ http://localhost:3000/admin/users
{“Status”:“OK”,“Message”:“”,“Meta”:{“api_model”:{},“first_name”:“”,“last_name”:“”,“email_address”:“”,“org_id”:“”,“active”:false,“id”:“”,“access_key”:“”,“user_permissions”:null}}

The answer of the POST is empty!
So i had to re-run that curl command to create the user.
Then I changed his password, so i tried to login to the app and it works.
In the webui user page I see 2 users with the same name/mail/everything (but different IDs).
If I logout and re-login, it fails, the app doesn’t let me in again…

Well that’s it,
Maybe I did something wrong,
Maybe someone can help !

Thanks!