By: Theodore Sands user 19 May 2017 at 12:45 p.m. CDT

10 Responses
Theodore Sands gravatar
I have read through a number of related posts here already to no avail. I am running a VM in Azure. I have previously installed and used 2.3.4 and am prototyping 3.0.1 for an eventual upgrade. Ultimately, I am getting these errors in both the oxauth.log and oxtrust.log: ``` 2017-05-19 17:28:32,559 ERROR [main] [org.gluu.oxtrust.config.OxTrustConfiguration] (OxTrustConfiguration.java:275) - Failed to load application configuration from file: /etc/gluu/conf/oxtrust-config.json 2017-05-19 17:28:32,559 ERROR [main] [org.gluu.oxtrust.config.OxTrustConfiguration] (OxTrustConfiguration.java:130) - Failed to load configuration from LDAP. Please fix it!!!. ``` Further information for troubleshooting is below: **netstat -antlp | grep 1636 | grep LISTEN** ``` tcp 0 0 127.0.0.1:1636 0.0.0.0:* LISTEN 1917/slapd ``` **ps -ef | grep slapd** ``` ldap 1917 1 0 17:13 ? 00:00:00 /opt/symas/lib64/slapd -u ldap -g ldap -h ldaps://127.0.0.1:1636/ ``` **service --status-all** ``` [ + ] apache2 [ + ] cron [ - ] dbus [ + ] identity [ + ] idp [ ? ] killprocs [ ? ] kmod [ + ] memcached [ ? ] networking [ ? ] ondemand [ + ] oxauth [ + ] oxauth-rp [ - ] procps [ ? ] rc.local [ + ] rsyslog [ ? ] sendsigs [ + ] solserver [ + ] udev [ ? ] umountfs [ ? ] umountnfs.sh [ ? ] umountroot [ - ] urandom [ - ] x11-common ``` **netstat -antlp | grep LISTEN ** ``` tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN 1889/memcached tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1182/sshd tcp 0 0 127.0.0.1:1636 0.0.0.0:* LISTEN 1917/slapd tcp6 0 0 :::80 :::* LISTEN 2150/apache2 tcp6 0 0 127.0.0.1:8081 :::* LISTEN 2838/java tcp6 0 0 127.0.0.1:8082 :::* LISTEN 2922/java tcp6 0 0 127.0.0.1:8085 :::* LISTEN 2109/java tcp6 0 0 127.0.0.1:8086 :::* LISTEN 2001/java tcp6 0 0 :::22 :::* LISTEN 1182/sshd tcp6 0 0 :::443 :::* LISTEN 2150/apache2 ```

By Mohib Zico Account Admin 19 May 2017 at 1:05 p.m. CDT

Mohib Zico gravatar
Can you please try to restart all services again: - service apache2 restart - service oxauth restart - service oxtrust restart

By Theodore Sands user 19 May 2017 at 1:49 p.m. CDT

Theodore Sands gravatar
I did to no avail - although I believe the last one should have been - service identity restart All restarted without giving any stdout errors. But, looking at the oxauth.log, I see: ``` 2017-05-19 18:40:14,207 INFO [main] [org.xdi.oxauth.model.util.SecurityProviderUtility] (SecurityProviderUtility.java:23) - Adding Bouncy Castle Provider 2017-05-19 18:40:14,472 INFO [main] [org.xdi.oxauth.model.config.ConfigurationFactory] (ConfigurationFactory.java:292) - Loading configuration from LDAP... 2017-05-19 18:40:14,561 ERROR [main] [org.xdi.oxauth.model.config.ConfigurationFactory] (ConfigurationFactory.java:330) - Failed to find entry: ou=oxauth,ou=configuration,inum=@!8DC6.7CFE.DDDE.E5C3!0002!FAE7.730D,ou=appliances,o=gluu 2017-05-19 18:40:14,562 INFO [main] [org.xdi.oxauth.model.config.ConfigurationFactory] (ConfigurationFactory.java:312) - Unable to find configuration in LDAP, try to load configuration from file system... 2017-05-19 18:40:14,566 WARN [main] [org.xdi.oxauth.model.config.ConfigurationFactory] (ConfigurationFactory.java:451) - /etc/gluu/conf/oxauth-config.json (No such file or directory) ... Long JAVA stack trace ... 2017-05-19 18:40:14,573 ERROR [main] [org.xdi.oxauth.model.config.ConfigurationFactory] (ConfigurationFactory.java:285) - Failed to load configuration from file: /etc/gluu/conf/oxauth-config.json 2017-05-19 18:40:14,573 ERROR [main] [org.xdi.oxauth.model.config.ConfigurationFactory] (ConfigurationFactory.java:130) - Failed to load configuration from LDAP. Please fix it!!!. ``` Looking at the oxtrust.log, I see: ``` 2017-05-19 18:40:38,394 WARN [main] [org.jboss.seam.security.permission.PersistentPermissionResolver] (PersistentPermissionResolver.java:57) - no permission store available - please install a PermissionStore with the name 'org.jboss.seam.security.jpaPermissionStore' if persistent permissions are required. 2017-05-19 18:40:38,419 INFO [main] [org.jboss.seam.resteasy.ResteasyBootstrap] (ResteasyBootstrap.java:105) - bootstrapping JAX-RS application 2017-05-19 18:40:38,443 INFO [main] [org.jboss.seam.resteasy.ResteasyBootstrap] (ResteasyBootstrap.java:225) - registering built-in RESTEasy providers 2017-05-19 18:40:38,499 INFO [main] [oxtrust.service.scim2.jackson.provider.CustomJacksonProviderScim2] (CustomJacksonProviderScim2.java:48) - CustomJacksonProviderScim2() 2017-05-19 18:40:38,593 INFO [main] [oxtrust.service.scim2.jackson.provider.CustomJacksonProviderScim2] (CustomJacksonProviderScim2.java:48) - CustomJacksonProviderScim2() 2017-05-19 18:40:38,593 INFO [main] [oxtrust.service.scim2.jackson.provider.CustomJacksonProviderScim2] (CustomJacksonProviderScim2.java:48) - CustomJacksonProviderScim2() 2017-05-19 18:40:38,899 INFO [main] [org.gluu.oxtrust.config.OxTrustConfiguration] (OxTrustConfiguration.java:111) - Creating oxTrustConfiguration 2017-05-19 18:40:38,900 INFO [main] [org.gluu.oxtrust.config.OxTrustConfiguration] (OxTrustConfiguration.java:295) - ########## ldapFileName = /etc/gluu/conf/ox-ldap.properties 2017-05-19 18:40:38,935 INFO [main] [org.gluu.oxtrust.config.OxTrustConfiguration] (OxTrustConfiguration.java:328) - ########## fileName = /etc/gluu/conf/ox-ldap.properties 2017-05-19 18:40:38,941 INFO [main] [org.gluu.oxtrust.config.OxTrustConfiguration] (OxTrustConfiguration.java:329) - ########## oxtrust_ConfigurationEntryDN = ou=oxtrust,ou=configuration,inum=@!8DC6.7CFE.DDDE.E5C3!0002!FAE7.730D,ou=appliances,o=gluu 2017-05-19 18:40:38,943 INFO [main] [org.gluu.oxtrust.config.OxTrustConfiguration] (OxTrustConfiguration.java:328) - ########## fileName = /etc/gluu/conf/salt 2017-05-19 18:40:38,943 INFO [main] [org.gluu.oxtrust.config.OxTrustConfiguration] (OxTrustConfiguration.java:329) - ########## oxtrust_ConfigurationEntryDN = null 2017-05-19 18:40:39,084 INFO [main] [org.xdi.oxauth.model.util.SecurityProviderUtility] (SecurityProviderUtility.java:23) - Adding Bouncy Castle Provider 2017-05-19 18:40:39,147 INFO [main] [org.gluu.oxtrust.ldap.service.AppInitializer] (AppInitializer.java:282) - Build date 2017-02-24 13:35. Code revision 7df83 on 24.02.2017 @ 07:18:11 EST. Build 824 2017-05-19 18:40:39,409 INFO [main] [org.gluu.oxtrust.config.OxTrustConfiguration] (OxTrustConfiguration.java:206) - Loading configuration from LDAP... 2017-05-19 18:40:39,424 ERROR [main] [org.gluu.oxtrust.config.OxTrustConfiguration] (OxTrustConfiguration.java:240) - Failed to load configuration from LDAP ... stack trace ... 2017-05-19 18:40:39,457 WARN [main] [org.gluu.oxtrust.config.OxTrustConfiguration] (OxTrustConfiguration.java:221) - Unable to find configuration in LDAP, try to load configuration from file system... 2017-05-19 18:40:39,463 ERROR [main] [org.gluu.oxtrust.config.OxTrustConfiguration] (OxTrustConfiguration.java:288) - Failed to load configuration from /etc/gluu/conf/oxtrust-config.json java.io.FileNotFoundException: File '/etc/gluu/conf/oxtrust-config.json' does not exist ... stack trace ... 2017-05-19 18:40:39,472 ERROR [main] [org.gluu.oxtrust.config.OxTrustConfiguration] (OxTrustConfiguration.java:275) - Failed to load application configuration from file: /etc/gluu/conf/oxtrust-config.json 2017-05-19 18:40:39,473 ERROR [main] [org.gluu.oxtrust.config.OxTrustConfiguration] (OxTrustConfiguration.java:130) - Failed to load configuration from LDAP. Please fix it!!!. ```

By Mohib Zico Account Admin 19 May 2017 at 2:02 p.m. CDT

Mohib Zico gravatar
>> 2017-05-19 18:40:39,457 WARN [main] [org.gluu.oxtrust.config.OxTrustConfiguration] (OxTrustConfiguration.java:221) - Unable to find configuration in LDAP, try to load configuration from file system... That means... it's unable to read ldap. Can we check: - If solserver is running properly or not? - Do a quick ldapsearch to solserver. - Check log of solserver.

By Mohib Zico Account Admin 19 May 2017 at 3 p.m. CDT

Mohib Zico gravatar
bindDN would be 'cn=directory manager,o=gluu'

By Theodore Sands user 19 May 2017 at 4:05 p.m. CDT

Theodore Sands gravatar
Ldap search: ``` > ldapsearch -h localhost -p 1636 -Z -X -D "cn=directory manager,o=gluu" -w ********* -b "o=gluu" "objectclass=*" The simple bind attempt failed Result Code: 49 (Invalid Credentials) ``` I am using the password I set when setting up Gluu. The /var/log/openldap/ldap.log had the following: ``` May 19 20:47:12 auth-dev slapd[1917]: conn=1013 fd=15 TLS established tls_ssf=256 ssf=256 May 19 20:47:12 auth-dev slapd[1917]: conn=1013 op=0 BIND dn="cn=directory manager,o=gluu" method=128 May 19 20:47:12 auth-dev slapd[1917]: conn=1013 op=0 RESULT tag=97 err=49 duration=0.123ms text= May 19 20:47:12 auth-dev slapd[1917]: conn=1013 fd=15 closed (connection lost) May 19 20:56:57 auth-dev slapd[1917]: conn=1014 fd=15 ACCEPT from IP=127.0.0.1:36952 (IP=127.0.0.1:1636) May 19 20:56:57 auth-dev slapd[1917]: conn=1014 fd=15 TLS established tls_ssf=256 ssf=256 May 19 20:56:57 auth-dev slapd[1917]: conn=1014 op=0 BIND dn="cn=directory manager,o=gluu" method=128 May 19 20:56:57 auth-dev slapd[1917]: conn=1014 op=0 RESULT tag=97 err=49 duration=0.102ms text= May 19 20:56:57 auth-dev slapd[1917]: conn=1014 fd=15 closed (connection lost) ```

By Mohib Zico Account Admin 19 May 2017 at 4:14 p.m. CDT

Mohib Zico gravatar
>> I am using the password I set when setting up Gluu. Something is wrong, ldapsearch should have worked by this time. Can you please check the output of 'service solserver status' ?

By Theodore Sands user 19 May 2017 at 4:17 p.m. CDT

Theodore Sands gravatar
**> service solserver status** ``` Symas OpenLDAP LDAP services slapd is running ``` The password I used when setting Gluu up had an odd character ($) in it. Wondering if that could cause an issue.

By Mohib Zico Account Admin 19 May 2017 at 4:19 p.m. CDT

Mohib Zico gravatar
>> The password I used when setting Gluu up had an odd character (@) in it. Wondering if that could cause an issue. Not sure exactly. I would suggest you to re-install CE again without this special character to check.

By Theodore Sands user 19 May 2017 at 4:58 p.m. CDT

Theodore Sands gravatar
Reinstall with a simpler password succeeded (only letters and numbers). I am now able to connect.

By Mohib Zico Account Admin 19 May 2017 at 5:28 p.m. CDT

Mohib Zico gravatar
Thanks. Please feel free to create a RFE [here](https://github.com/GluuFederation/community-edition-setup/issues).