By: Angela Yuan user 11 Feb 2020 at 1:43 p.m. CST

13 Responses
Angela Yuan gravatar
Cannot download Gluu-Gateway due to The repo 'https://repo.gluu.org/ubuntu bionic Release' is not signed. Please advise how to upload screenshot which does not have an url.

By Adrian Alves staff 11 Feb 2020 at 2:37 p.m. CST

Adrian Alves gravatar
Hello Angela, Here are the steps to add our repo: echo "deb https://repo.gluu.org/ubuntu/ bionic main" > /etc/apt/sources.list.d/gluu-repo.list curl https://repo.gluu.org/ubuntu/gluu-apt.key | apt-key add - apt-get update apt-get install gluu-gateway Try following those steps. Cheers, Adrian.-

By Angela Yuan user 11 Feb 2020 at 3:17 p.m. CST

Angela Yuan gravatar
Ths final install script failed: Fetched 50.2 MB in 8s (5,932 kB/s) E: Failed to fetch https://repo.gluu.org/ubuntu/pool/main/bionic/gluu-gateway_4.0~bionic_amd64.deb File has unexpected size (227747154 != 227744204). Mirror sync in progress? [IP: 165.227.82.89 443] Hashes of expected file: - SHA512:5e925c106b514043afa2049c8c00e3870325d80a25adbfe32b5657b73ca29c6b23072b2e0443a100913bb32dcd807f0a949c63dde8208b567b68d0407b99cebd - SHA256:7b9c98c5b043d78a40981b7f001e6a2bd6c6e751cda68e4b39945b78670ac2d2 - SHA1:4f2d9360e15df6bb4a1b5701c504f88ba9ebfa1c [weak] - MD5Sum:092028c393e10e335905fa3b35f19462 [weak] - Filesize:227744204 [weak] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

By Meghna Joshi staff 12 Feb 2020 at 1:50 a.m. CST

Meghna Joshi gravatar
Hi Angela, Are you still facing issue? Let us know if you have any problem. Thanks, Meghna Joshi

By Adrian Alves staff 12 Feb 2020 at 6:47 a.m. CST

Adrian Alves gravatar
Hi Angela, Try cleaning the repo cache at your local host: # apt-get clean # apt-get update # apt-get install gluu-gateway

By Angela Yuan user 12 Feb 2020 at 11:34 a.m. CST

Angela Yuan gravatar
Thank you for the note. It helps. However after installing gluu-gateway it failed as next stop as there was no such folder "/opt/gluu-gateway/setup". ``` Setting up gluu-gateway (4.1.0-55~bionic) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... Processing triggers for systemd (237-3ubuntu10.38) ... Processing triggers for ureadahead (0.100.0-20) ... root@gluuggadmin-virtual-machine:~# cd /opt/gluu-gateway/setup -bash: cd: /opt/gluu-gateway/setup: No such file or directory root@gluuggadmin-virtual-machine:~# pwd /root root@gluuggadmin-virtual-machine:~# cd /opt root@gluuggadmin-virtual-machine:/opt# ls gluu-gateway gluu-gateway-setup gluu-gateway-ui root@gluuggadmin-virtual-machine:/opt# cd gluu-gateway root@gluuggadmin-virtual-machine:/opt/gluu-gateway# ls dist lib t third-party ```

By Michael Schwartz staff 12 Feb 2020 at 3:38 p.m. CST

Michael Schwartz gravatar
4.1 install is failing for me too ``` After this operation, 372 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 https://repo.gluu.org/ubuntu bionic/main amd64 gluu-gateway amd64 4.0~bionic [228 MB] Err:1 https://repo.gluu.org/ubuntu bionic/main amd64 gluu-gateway amd64 4.0~bionic File has unexpected size (227747154 != 227744204). Mirror sync in progress? [IP: 165.227.82.89 443] Hashes of expected file: - SHA512:5e925c106b514043afa2049c8c00e3870325d80a25adbfe32b5657b73ca29c6b23072b2e0443a100913bb32dcd807f0a949c63dde8208b567b68d0407b99cebd - SHA256:7b9c98c5b043d78a40981b7f001e6a2bd6c6e751cda68e4b39945b78670ac2d2 - SHA1:4f2d9360e15df6bb4a1b5701c504f88ba9ebfa1c [weak] - MD5Sum:092028c393e10e335905fa3b35f19462 [weak] - Filesize:227744204 [weak] E: Failed to fetch https://repo.gluu.org/ubuntu/pool/main/bionic/gluu-gateway_4.0~bionic_amd64.deb File has unexpected size (227747154 != 227744204). Mirror sync in progress? [IP: 165.227.82.89 443] Hashes of expected file: - SHA512:5e925c106b514043afa2049c8c00e3870325d80a25adbfe32b5657b73ca29c6b23072b2e0443a100913bb32dcd807f0a949c63dde8208b567b68d0407b99cebd - SHA256:7b9c98c5b043d78a40981b7f001e6a2bd6c6e751cda68e4b39945b78670ac2d2 - SHA1:4f2d9360e15df6bb4a1b5701c504f88ba9ebfa1c [weak] - MD5Sum:092028c393e10e335905fa3b35f19462 [weak] - Filesize:227744204 [weak] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? ```

By Adrian Alves staff 12 Feb 2020 at 4:43 p.m. CST

Adrian Alves gravatar
Hi Angela, We rebuilt the entire bionic repo. You will be fine now. Please try again the above steps: ``` # apt-get clean # apt-get update # apt-get install gluu-gateway ```

By Angela Yuan user 12 Feb 2020 at 5:27 p.m. CST

Angela Yuan gravatar
Did these: #apt-get remove --auto-remove gluu-gateway #apt-get clean #apt-get update #apt-get install gluu-gateway Still having the same problem Setting up python-idna (2.6-1) ... Setting up python-asn1crypto (0.24.0-1) ... Processing triggers for ureadahead (0.100.0-20) ... Setting up python-certifi (2018.1.18-2) ... Setting up python-pkg-resources (39.0.1-2) ... Setting up python-cffi-backend (1.11.5-1) ... Setting up python-six (1.11.0-2) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... Setting up python-enum34 (1.1.6-2) ... Processing triggers for systemd (237-3ubuntu10.38) ... Setting up lua-cjson:amd64 (2.1.0+dfsg-2.1) ... Processing triggers for man-db (2.8.3-2) ... Setting up python-ipaddress (1.0.17-1) ... Setting up python-urllib3 (1.22-1ubuntu0.18.04.1) ... Setting up python-chardet (3.0.4-1) ... Setting up python-cryptography (2.1.4-1ubuntu1.3) ... Setting up python-requests (2.18.4-2ubuntu0.1) ... Setting up python-openssl (17.5.0-1ubuntu1) ... Setting up gluu-gateway (4.1.0-55~bionic) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... sh: 0: getcwd() failed: No such file or directory root@gluuggadmin-virtual-machine:/opt/gluu-gateway# cd /opt/gluu-gateway/setup -bash: cd: /opt/gluu-gateway/setup: No such file or directory root@gluuggadmin-virtual-machine:/opt/gluu-gateway#

By Michael Schwartz staff 12 Feb 2020 at 5:53 p.m. CST

Michael Schwartz gravatar
For 4.1 installation instructions [https://github.com/GluuFederation/gluu-gateway/wiki/Installation-development-build#required-third-party-repositories](https://github.com/GluuFederation/gluu-gateway/wiki/Installation-development-build#required-third-party-repositories)

By Angela Yuan user 12 Feb 2020 at 10:03 p.m. CST

Angela Yuan gravatar
----------------------- ----------------------- Host gluugateway Organization Teledyne Controls City El Segundo State CA Country US Install OXD? True OXD Server URL https://gluugateway:8443 OP Host https://gluusrv Generate Client Credentials? True Proceed with these values (Y|n) [Y] : y Configuring postgres... ALTER ROLE CREATE DATABASE CREATE DATABASE SET SET SET SET SET set_config ------------ (1 row) SET SET SET CREATE EXTENSION COMMENT SET SET CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE COPY 0 COPY 0 DELETE 0 COPY 3 DELETE 0 COPY 1 COPY 0 COPY 0 COPY 0 DELETE 0 COPY 1 COPY 0 setval -------- 1 (1 row) setval -------- 1 (1 row) setval -------- 3 (1 row) setval -------- 1 (1 row) setval -------- 1 (1 row) setval -------- 1 (1 row) setval -------- 1 (1 row) setval -------- 1 (1 row) setval -------- 1 (1 row) DO DO DO DO DO DO DO DO DO DO DO DO DO DO Configuring metrics plugin... Installing konga node packages... Creating OXD OP client for Gluu Gateway GUI used to call oxd-server endpoints... Error: Failed Not Ok Endpoint: https://gluugateway:8443/register-site Payload {'redirect_uris': ['https://localhost:1338'], 'client_name': 'KONGA_GG_UI_CLIENT', 'grant_types': ['authorization_code', 'client_credentials'], 'post_logout_redirect_uris': ['https://localhost:1338'], 'scope': ['openid', 'oxd', 'permission'], 'op_host': 'https://gluusrv'} Response <Response [500]> Response_Json {u'reason': None, u'error_description': u'Unknown internal server error occurs.', u'details': None, u'error': u'internal_error'} Please check logs. Installation failed. See: gluu-gateway-setup.log gluu-gateway-setup_error.log for more details.

By Angela Yuan user 12 Feb 2020 at 10:07 p.m. CST

Angela Yuan gravatar
** gluu-gateway-setup_error.log** 19:56:36 02/12/20 Generating RSA private key, 2048 bit long modulus (2 primes) ....................................+++++ ............................................................................................................................................+++++ e is 65537 (0x010001) 19:56:36 02/12/20 writing RSA key 19:56:36 02/12/20 Can't load /root/.rnd into RNG 139710362214848:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/root/.rnd 19:56:36 02/12/20 Signature ok subject=C = US, ST = CA, L = El Segundo, O = Teledyne Controls, CN = gluugateway, emailAddress = angela.yuan@teledyne.com Getting Private key 19:56:43 02/12/20 Error: no file at: /usr/local/kong/.kong_env Run with --v (verbose) or --vv (debug) for more details 19:56:44 02/12/20 2020/02/12 19:56:43 [warn] ulimit is currently set to "1024". For better performance set it to at least "4096" using "ulimit -n" 19:57:14 02/12/20 Error: Failed Not Ok Endpoint: https://gluugateway:8443/register-site Payload {'redirect_uris': ['https://localhost:1338'], 'client_name': 'KONGA_GG_UI_CLIENT', 'grant_types': ['authorization_code', 'client_credentials'], 'post_logout_redirec$ Response <Response [500]> Response_Json {u'reason': None, u'error_description': u'Unknown internal server error occurs.', u'details': None, u'error': u'internal_error'} Please check logs. 19:57:14 02/12/20 ***** Error caught in main loop ***** 19:57:14 02/12/20 Traceback (most recent call last): File "setup-gluu-gateway.py", line 981, in <module> kongSetup.config_konga() File "setup-gluu-gateway.py", line 499, in config_konga oxd_registration_response = self.http_post_call(oxd_registration_endpoint, payload) File "setup-gluu-gateway.py", line 827, in http_post_call self.exit(message) File "setup-gluu-gateway.py", line 887, in exit sys.exit() SystemExit

By Angela Yuan user 12 Feb 2020 at 10:14 p.m. CST

Angela Yuan gravatar
**gluu-gateway-setup.log** 19:44:10 02/12/20 Running: /bin/mkdir -p ./certs 19:44:10 02/12/20 Running: /bin/mkdir -p ./output 19:52:20 02/12/20 Running: /bin/mkdir -p ./certs 19:52:20 02/12/20 Running: /bin/mkdir -p ./output 19:56:21 02/12/20 Host gluugateway Organization Teledyne Controls City El Segundo State CA Country US Install OXD? True OXD Server URL https://gluugateway:8443 OP Host https://gluusrv Generate Client Credentials? True 19:56:36 02/12/20 OS Type: ubuntu OS Version: 18 19:56:36 02/12/20 Generating Certificate for gluu-gateway 19:56:36 02/12/20 Running: /usr/bin/openssl genrsa -des3 -out ./certs/gluu-gateway.key.orig -passout pass:Wx2bZ4F0dTPa 2048 19:56:36 02/12/20 Generating RSA private key, 2048 bit long modulus (2 primes) ....................................+++++ ............................................................................................................................................+++++ e is 65537 (0x010001) 19:56:36 02/12/20 Running: /usr/bin/openssl rsa -in ./certs/gluu-gateway.key.orig -passin pass:Wx2bZ4F0dTPa -out ./certs/gluu-gateway.key 19:56:36 02/12/20 writing RSA key 19:56:36 02/12/20 Running: /usr/bin/openssl req -new -key ./certs/gluu-gateway.key -out ./certs/gluu-gateway.csr -subj /C=US/ST=CA/L=El Segundo/O=Teledyne Controls/CN=gluugateway/emailAddr$ 19:56:36 02/12/20 Can't load /root/.rnd into RNG 139710362214848:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/root/.rnd 19:56:36 02/12/20 Running: /usr/bin/openssl x509 -req -days 365 -in ./certs/gluu-gateway.csr -signkey ./certs/gluu-gateway.key -out ./certs/gluu-gateway.crt 19:56:36 02/12/20 Signature ok subject=C = US, ST = CA, L = El Segundo, O = Teledyne Controls, CN = gluugateway, emailAddress = angela.yuan@teledyne.com Getting Private key 19:56:36 02/12/20 Running: /bin/chown root:root ./certs/gluu-gateway.key.orig 19:56:36 02/12/20 Running: /bin/chmod 700 ./certs/gluu-gateway.key.orig 19:56:36 02/12/20 Running: /bin/chown root:root ./certs/gluu-gateway.key 19:56:36 02/12/20 Running: /bin/chmod 700 ./certs/gluu-gateway.key 19:56:36 02/12/20 Installing server JRE 1.8 162... 19:56:36 02/12/20 Extracting server-jre-8u162-linux-x64.tar.gz into /opt/ 19:56:36 02/12/20 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 19:56:38 02/12/20 Running: /bin/ln -sf /opt/jdk1.8.0_162 /opt/jre 19:56:38 02/12/20 Running: /bin/chmod -R 755 /opt/jdk1.8.0_162/bin/ 19:56:38 02/12/20 Configuring postgres... 19:56:38 02/12/20 Running: /etc/init.d/postgresql start

By Meghna Joshi staff 13 Feb 2020 at 2 a.m. CST

Meghna Joshi gravatar
Hi Angela, `19:57:14 02/12/20 Error: Failed Not Ok Endpoint: https://gluugateway:8443/register-site Payload {'redirect_uris': ['https://localhost:1338'], 'client_name': 'KONGA_GG_UI_CLIENT', 'grant_types': ['authorization_code', 'client_credentials'], 'post_logout_redirec$ Response <Response [500]> Response_Json {u'reason': None, u'error_description': u'Unknown internal server error occurs.', u'details': None, u'error': u'internal_error'}` About above problem, Your OP Client registration is failing, Please send me `/var/log/oxd-server/oxd-server.log` and oxauth log of Gluu server CE `/opt/gluu-server/opt/gluu/jetty/oxauth/logs/oxauth.log` Also I have updated the GG 4.1 wiki installation instructions https://github.com/GluuFederation/gluu-gateway/wiki/Installation-development-build