Hi Kos,
This is quite weird, the script just worked fine when restored to orig version. (which earlier gave the same error)
And the only change I did was to add a echo command as below:
[[email protected] install]# diff bootstrap.sh bootstrap.sh.mod
114a115
> echo “Params--------- – $1 – $2 – $3 – $4”
MODIFIED version execution:
[[email protected] install]# sudo /opt/tyk-dashboard/install/bootstrap.sh
Creating Organisation
ORG DATA: {“Status”:“OK”,“Message”:“Org created”,“Meta”:“5a187e037e4fdd05d97cacfe”}
ORG ID: 5a187e037e4fdd05d97cacfe
Adding new user
USER AUTHENTICATION CODE: Params--------- – – yr3lz8mdzu – t2e0s1T7 – 5a187e037e4fdd05d97cacfe
82a0f29e0d704d134230faca103e6bd3
Traceback (most recent call last):
_ File “”, line 1, in _
_ File “/usr/lib64/python2.7/json/init.py”, line 290, in load_
_ **kw)_
_ File “/usr/lib64/python2.7/json/init.py”, line 338, in loads_
_ return default_decoder.decode(s)
_ File “/usr/lib64/python2.7/json/decoder.py”, line 366, in decode_
_ obj, end = self.raw_decode(s, idx=w(s, 0).end())
_ File “/usr/lib64/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 “”, line 3, in _
_ File “/usr/lib64/python2.7/ast.py”, line 49, in literal_eval_
_ node_or_string = parse(node_or_string, mode=‘eval’)_
_ File “/usr/lib64/python2.7/ast.py”, line 37, in parse_
_ return compile(source, filename, mode, PyCF_ONLY_AST)_
_ File “”, line 0_
_ ^_
SyntaxError: unexpected EOF while parsing
ERROR: Unable to parse JSON
[[email protected] install]#
ORIG version execution:
[[email protected] install]# sudo /opt/tyk-dashboard/install/bootstrap.sh
Creating Organisation
ORG DATA: {“Status”:“OK”,“Message”:“Org created”,“Meta”:“5a187e6a7e4fdd05d97cacff”}
ORG ID: 5a187e6a7e4fdd05d97cacff
Adding new user
USER AUTHENTICATION CODE: a8bfbd2965f047ae75980c7527aa6bc1
NEW ID: 5a187e6ac0e80eecfbb80d17
Setting password
{“Status”:“OK”,“Message”:“User password updated”,“Meta”:null}
DONE
====
Login at http://:3000/
User: [email protected]
Pass: t2e0s1T7
[[email protected] install]#
Cant seem to figure what could have been the problem and how it disappeared.
I can move on now. Thanks for your support!
Paul