By: Mirko Teodorovic user 11 Apr 2019 at 3:25 a.m. CDT

4 Responses
Mirko Teodorovic gravatar
Hi I was trying to install gluu gateway by the https://gluu.org/docs/gg/installation/ Installation was succesfull however running setup failed 08:11:20 04/11/19 Generating RSA private key, 2048 bit long modulus (2 primes) ......................................................................................................+++++ .....+++++ e is 65537 (0x010001) 08:11:20 04/11/19 writing RSA key 08:11:20 04/11/19 Can't load /root/.rnd into RNG 139981062231104:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/root/.rnd 08:11:20 04/11/19 Signature ok subject=C = SR, ST = SR, L = BG, O .... Getting Private key 08:11:27 04/11/19 ***** Error caught in main loop ***** 08:11:27 04/11/19 Traceback (most recent call last): File "setup-gluu-gateway.py", line 696, in <module> kongSetup.configKonga() File "setup-gluu-gateway.py", line 441, in configKonga resJson = json.loads(res.text) File "/usr/lib/python2.7/json/__init__.py", line 339, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 364, 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 raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded

By Michael Schwartz Account Admin 11 Apr 2019 at 4:01 a.m. CDT

Michael Schwartz gravatar
Please upload logs and link to this ticket. Also, is it ubuntu 16 or 18?

By Mirko Teodorovic user 11 Apr 2019 at 6:20 a.m. CDT

Mirko Teodorovic gravatar
ubuntu 18.10 I dont know where do I upload ```Do you acknowledge that use of the Gluu Gateway is under the Stepped-Up Support License? (y|N) [N] : Y Enter IP Address [xxxxxxx] : Enter kong hostname [ssssss] : some.anyway.com The next few questions are used to generate the Kong self-signed HTTPS certificate Enter two letter Country Code : SR Enter two letter State Code : SR Enter your city or locality : BG Enter Organization name : COMPANY Enter email address : test@test.com ``` If you already have a postgres user and database in the Postgres DB, then enter existing password, otherwise enter new password: Password [sssss] : OP hostname : gluu-auth.com The next few questions are used to configure Konga. If you are connecting to an existing oxd server on the network, make sure it's available from this server. oxd server url [https://some.anyway.com:8443] : Generate client creds to call oxd-server API's? (y - generate, n - enter existing client credentials manually) [y] : Y ----------------------- ----------------------- hostname some.anyway.com orgName COMPANY city BG state SR country SR oxd server url https://some.anyway.com:8443 OP hostname https://gluu-auth.com Generate client creds True Proceed with these values (Y|n) [Y] : y Configuring postgres... ``` ```/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:860: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning) /usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:860: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning) Installation failed. See: gluu-gateway-setup.log gluu-gateway-setup_error.log for more details. ``` root@ubuntu-s-4vcpu-8gb-fra1-01:/opt/gluu-gateway/setup# cat gluu-gateway-setup.log 10:51:01 04/11/19 Running: /bin/mkdir -p ./certs 10:51:01 04/11/19 Running: /bin/mkdir -p ./output 10:52:07 04/11/19 OS Type: ubuntu OS Version: 18 10:52:07 04/11/19 Generating Certificate for gluu-gateway 10:52:07 04/11/19 Running: /usr/bin/openssl genrsa -des3 -out ./certs/gluu-gateway.key.orig -passout pass:sssssss 2048 10:52:08 04/11/19 Generating RSA private key, 2048 bit long modulus (2 primes) .....................................+++++ .................................................................................................+++++ e is 65537 (0x010001) 10:52:08 04/11/19 Running: /usr/bin/openssl rsa -in ./certs/gluu-gateway.key.orig -passin pass:ssssss -out ./certs/gluu-gateway.key 10:52:08 04/11/19 writing RSA key 10:52:08 04/11/19 Running: /usr/bin/openssl req -new -key ./certs/gluu-gateway.key -out ./certs/gluu-gateway.csr -subj /C=SR/ST=SR/L=BG/O=COMPANY/CN=some.anyway.com/emailAddress=test@test.com 10:52:08 04/11/19 Can't load /root/.rnd into RNG 139843358700608:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/root/.rnd 10:52:08 04/11/19 Running: /usr/bin/openssl x509 -req -days 365 -in ./certs/gluu-gateway.csr -signkey ./certs/gluu-gateway.key -out ./certs/gluu-gateway.crt 10:52:08 04/11/19 Signature ok subject=C = SR, ST = SR, L = BG, O = COMPANY, CN = some.anyway.com, emailAddress = test@test.com Getting Private key 10:52:08 04/11/19 Running: /bin/chown root:root ./certs/gluu-gateway.key.orig 10:52:08 04/11/19 Running: /bin/chmod 700 ./certs/gluu-gateway.key.orig 10:52:08 04/11/19 Running: /bin/chown root:root ./certs/gluu-gateway.key 10:52:08 04/11/19 Running: /bin/chmod 700 ./certs/gluu-gateway.key 10:52:08 04/11/19 Installing server JRE 1.8 162... 10:52:08 04/11/19 Extracting server-jre-8u162-linux-x64.tar.gz into /opt/ 10:52:08 04/11/19 Running: tar -xzf /opt/gluu-gateway/dist/app/server-jre-8u162-linux-x64.tar.gz -C /opt/ --no-xattrs --no-same-owner --no-same-permissions 10:52:09 04/11/19 Running: /bin/ln -sf /opt/jdk1.8.0_162 /opt/jre 10:52:09 04/11/19 Running: /bin/chmod -R 755 /opt/jdk1.8.0_162/bin/ 10:52:09 04/11/19 Configuring postgres... 10:52:09 04/11/19 Running: /etc/init.d/postgresql start 10:52:09 04/11/19 Starting postgresql (via systemctl): postgresql.service. 10:52:10 04/11/19 Rendering template /opt/oxd-server/conf/oxd-server.yml 10:52:10 04/11/19 Installing konga node packages... 10:52:10 04/11/19 Running: /bin/mkdir -p /opt/gluu-gateway/konga/node_modules 10:52:10 04/11/19 Extracting gg_node_modules.tar.gz into /opt/gluu-gateway/konga/node_modules 10:52:10 04/11/19 Running: tar --strip 1 -xzf /opt/gluu-gateway/dist/gg_node_modules.tar.gz -C /opt/gluu-gateway/konga/node_modules --no-xattrs --no-same-owner --no-same-permissions 10:52:13 04/11/19 Running: /bin/mkdir -p /opt/gluu-gateway/konga/assets/bower_components 10:52:13 04/11/19 Extracting gg_bower_components.tar.gz into /opt/gluu-gateway/konga/assets/bower_components 10:52:13 04/11/19 Running: tar --strip 1 -xzf /opt/gluu-gateway/dist/gg_bower_components.tar.gz -C /opt/gluu-gateway/konga/assets/bower_components --no-xattrs --no-same-owner --no-same-permissions 10:52:13 04/11/19 Creating OXD OP client for Gluu Gateway GUI used to call oxd-server endpoints... 10:52:15 04/11/19 ***** Error caught in main loop ***** 10:52:15 04/11/19 Traceback (most recent call last): File "setup-gluu-gateway.py", line 696, in <module> kongSetup.configKonga() File "setup-gluu-gateway.py", line 441, in configKonga resJson = json.loads(res.text) File "/usr/lib/python2.7/json/__init__.py", line 339, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 364, 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 raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded ``` root@ubuntu-s-4vcpu-8gb-fra1-01:/opt/gluu-gateway/setup# ```root@ubuntu-s-4vcpu-8gb-fra1-01:/opt/gluu-gateway/setup# cat gluu-gateway-setup_error.log 08:11:20 04/11/19 Generating RSA private key, 2048 bit long modulus (2 primes) ......................................................................................................+++++ .....+++++ e is 65537 (0x010001) 10:52:08 04/11/19 writing RSA key 10:52:08 04/11/19 Can't load /root/.rnd into RNG 139843358700608:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/root/.rnd 10:52:08 04/11/19 Signature ok subject=C = SR, ST = SR, L = BG, O = COMPANY, CN = some.anyway.com, emailAddress = test@test.com Getting Private key 10:52:15 04/11/19 ***** Error caught in main loop ***** 10:52:15 04/11/19 Traceback (most recent call last): File "setup-gluu-gateway.py", line 696, in <module> kongSetup.configKonga() File "setup-gluu-gateway.py", line 441, in configKonga resJson = json.loads(res.text) File "/usr/lib/python2.7/json/__init__.py", line 339, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 364, 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 raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded```

By Meghna Joshi staff 12 Apr 2019 at 1:44 a.m. CDT

Meghna Joshi gravatar
Hi Mirko Teodorovic, Currently, Gluu-Gateway only support Ubutnu 16, CentOS7 and RHEL 7. So please install it in Ubuntu 16. Thanks, Meghna Joshi

By Mirko Teodorovic user 14 Apr 2019 at 11:29 p.m. CDT

Mirko Teodorovic gravatar
Ok