By: kesavan dhilip user 14 Nov 2018 at 7:27 a.m. CST

2 Responses
kesavan dhilip gravatar
Hi Team, Reference link : "https://github.com/GluuFederation/gluu-docker/tree/3.1.3/examples/multi-hosts" Above github link refer the multi host setup for digital ocean, but we need without digitai ocen, so we did manual docker setup in our server and followed the script which is return in github. After installation of multi host gluu docker and container we facing the issue in nginx, it is return **502 Bad Gateway** error. then, when we debug the oxtrust container log it shows the below issue. ERROR [main] [org.gluu.oxtrust.config.ConfigurationFactory] (ConfigurationFactory.java:298) Failed to load application configuration from file: /etc/gluu/conf/oxtrust-config.json ERROR [main] [org.gluu.oxtrust.config.ConfigurationFactory] (ConfigurationFactory.java:153) - Failed to load configuration from LDAP. Please fix it!!!. We need to implement this gluu docker multi setup in our own server instead of digital ocean server. So, We want to know that the multi host gluu docker setup, will it work or not without digital ocean. So please be provide the recommended solution for us. Thanks,

By Chris Blanton user 14 Nov 2018 at 11:28 a.m. CST

Chris Blanton gravatar
Kesavan, There will have to be some legwork done on your part, but you of course can run a multi-host example not using Digital Ocean. You'll have to fully understand docker-machine and docker swarm. A place to start is looking how the manager and workers are configured initially: https://github.com/GluuFederation/gluu-docker/blob/3.1.3/examples/multi-hosts/nodes.sh#L20 https://github.com/GluuFederation/gluu-docker/blob/3.1.3/examples/multi-hosts/nodes.sh#L44 Then continue through that script to understand how to launch everything.

By kesavan dhilip user 15 Nov 2018 at 12:36 a.m. CST

kesavan dhilip gravatar
Hi Chris, Thanks for your reply. We configured the manager and workers nodes using this script https://github.com/GluuFederation/gluu-docker/blob/3.1.3/examples/multi-hosts/nodes.sh#L20 we follwed each and every steps which is written in that script file. And we checked the manager node and worker nodes, all the services started and successfully running. But still we are getting error **"502 Bad Gateway"** We noticed something that in nginx config there is localhost value set in oxtrust and oxpassport. *upstream oxtrust_backend { iphash; server localhost:8082; } .... upstream oxpassport_backend { server localhost:8090; } * and some error and warning we found in **oxtrust container log** **ERROR [main] [org.gluu.oxtrust.config.ConfigurationFactory] (ConfigurationFactory.java:298) Failed to load application configuration from file: /etc/gluu/conf/oxtrust-config.json ERROR [main] [org.gluu.oxtrust.config.ConfigurationFactory] (ConfigurationFactory.java:153) - Failed to load configuration from LDAP. Please fix it!!!.** **oxpassport container log** **[WARNING] [wait-for-it] - oxTrust is up but oxPassport config is disabled, please enable it first, retrying in 5 seconds** **oxauth container log** **ERROR [qtp1514322932-28] [org.xdi.oxauth.servlet.OpenIdConfiguration] (OpenIdConfiguration.java:366) - null java.lang.NullPointerException: null** So, kindly provide some solution for this problem or Please give some documentation or steps to install gluu multi host in docker without digital ocean. Thanks.