Bootstrap.sh cant work

deploy@baochai /etc/init.d]$ sudo /opt/tyk-dashboard/install/bootstrap.sh 192.168.1.191

Creating Organisation
ORG DATA: {"Status":"OK","Message":"Org created","Meta":"5a44adaa6d01e648b19148f1"}
ORG ID: 5a44adaa6d01e648b19148f1

Adding new user
USER AUTHENTICATION CODE: d265696d38504d8846e43ec6329e8e4c
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.6/json/__init__.py", line 267, in load
    parse_constant=parse_constant, **kw)
  File "/usr/lib64/python2.6/json/__init__.py", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.6/json/decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.6/json/decoder.py", line 336, in raw_decode
    obj, end = self._scanner.iterscan(s, **kw).next()
  File "/usr/lib64/python2.6/json/scanner.py", line 55, in iterscan
    rval, next_pos = action(m, context)
  File "/usr/lib64/python2.6/json/decoder.py", line 183, in JSONObject
    value, end = iterscan(s, idx=end, context=context).next()
  File "/usr/lib64/python2.6/json/scanner.py", line 55, in iterscan
    rval, next_pos = action(m, context)
  File "/usr/lib64/python2.6/json/decoder.py", line 155, in JSONString
    return scanstring(match.string, match.end(), encoding, strict)
ValueError: Invalid control character at: line 1 column 32 (char 32)
Traceback (most recent call last):
  File "<stdin>", line 3, in <module>
  File "/usr/lib64/python2.6/ast.py", line 49, in literal_eval
    node_or_string = parse(node_or_string, mode='eval')
  File "/usr/lib64/python2.6/ast.py", line 37, in parse
    return compile(expr, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 0

    ^
SyntaxError: unexpected EOF while parsing
ERROR: Unable to parse JSON

os: centos 6
tyk-gateway installed by yum
i hava installed mongo, redis

i try to run it with python2.7 evn

 ~/Desktop  ./bootstrap.sh baochai                                                                                                                                                                                   四 12/28 17:03:22 2017

Creating Organisation
ORG DATA: {"Status":"OK","Message":"Org created","Meta":"5a44b35d6d01e648b19148f7"}
ORG ID: 5a44b35d6d01e648b19148f7

Adding new user
baochai tb2pvw1ybf t2e0s1T7 5a44b35d6d01e648b19148f7
hahah baochai t2e0s1T7
USER AUTHENTICATION CODE: ece6e61dedd8415c6fdbc22afbb8de6c
baochai ece6e61dedd8415c6fdbc22afbb8de6c
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Invalid control character at: line 1 column 33 (char 32)
Traceback (most recent call last):
  File "<stdin>", line 3, in <module>
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 49, in literal_eval
    node_or_string = parse(node_or_string, mode='eval')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 1
    USER_LIST {"Status":"Error","Message":"Not authorised","Meta":null}
              ^
SyntaxError: invalid syntax
ERROR: Unable to parse JSON

get_user_liser response

 {"Status":"Error","Message":"Not authorised","Meta":null}
~/Desktop  ./bootstrap.sh baochai                                                                                                                                                                                   四 12/28 17:20:49 2017

Creating Organisation
ORG DATA: {"Status":"OK","Message":"Org created","Meta":"5a44b7746d01e65f27cc0840"}
ORG ID: 5a44b7746d01e65f27cc0840

Adding new user
baochai xc8p7adbvn t2e0s1T7 5a44b7746d01e65f27cc0840
hahah baochai t2e0s1T7
USER AUTHENTICATION CODE: 2c211fc64aa34c1e57b3c253e8d96696
baochai 2c211fc64aa34c1e57b3c253e8d96696
Traceback (most recent call last):
  File "<stdin>", line 3, in <module>
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 49, in literal_eval
    node_or_string = parse(node_or_string, mode='eval')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 1
    USER_LIST {"users":[{"api_model":{},"first_name":"Joan","last_name":"Smith","email_address":"[email protected]","org_id":"5a44b7746d01e65f27cc0840","active":true,"id":"5a44b774741a2bc217881c72","access_key":"2c211fc64aa34c1e57b3c253e8d96696","user_permissions":{}}],"pages":0}
              ^
SyntaxError: invalid syntax
ERROR: Unable to parse JSON

i made it, finally…

This error is usually because redis isn’t running

In my case redis is up and running and still getting this error:


Creating Organisation
ORG DATA: {"Status":"OK","Message":"Org created","Meta":"5b0456d3acb8f007f1fc68c5"}
ORG ID: 5b0456d3acb8f007f1fc68c5

Adding new user
USER AUTHENTICATION CODE: f729871f0c3a4c054642ce56cb9be98f
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Invalid control character at: line 1 column 33 (char 32)
Traceback (most recent call last):
  File "<stdin>", line 3, in <module>
  File "/usr/lib/python2.7/ast.py", line 49, in literal_eval
    node_or_string = parse(node_or_string, mode='eval')
  File "/usr/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 0

    ^
SyntaxError: unexpected EOF while parsing
ERROR: Unable to parse JSON

root@ip-10-25-5-131:~# service redis-server status
redis-server is running
root@ip-10-25-5-131:~#```

My python version is:
```2.7.6```