By: Duane DeCouteau user 08 Oct 2014 at 5:11 p.m. CDT

9 Responses
Duane DeCouteau gravatar
Installation into a new Centos 6.5 x86_64 instance went well, and was able to launch and begin review of GUI. On subsequent reboot gluu is no longer functioning, not able to access GUI. I notice the installation changed hostname to ce.xxx. when I specified mine. Any ideas?

By Michael Schwartz Account Admin 08 Oct 2014 at 5:36 p.m. CDT

Michael Schwartz gravatar
Can you check the oxAuth and oxTrust logs in `/opt/tomcat/logs` and see there are any stacktraces? I'm curious what your seeing about the hosts file also. I'm not sure what ce.xxx means... could you be more specific.

By Duane DeCouteau user 08 Oct 2014 at 5:53 p.m. CDT

Duane DeCouteau gravatar
I think the hostname was ce.gluu.info or something similar in /etc/sysconfig/network file I changed it back to mine. Checking for log errors and will get back to you.

By Michael Schwartz Account Admin 08 Oct 2014 at 6:02 p.m. CDT

Michael Schwartz gravatar
ok... so you specified a hostname in setup, but it still used ce.gluu.info, or reverted to this for some reason.

By Duane DeCouteau user 09 Oct 2014 at 9:53 a.m. CDT

Duane DeCouteau gravatar
Looks like connection to ldap is issue on localhost:1636 Caused by: LDAPException(resultCode=91 (connect error), errorMessage='An error occurred while attempting to connect to server localhost:1636: java.io.IOException: An error occurred while attempting to establish a connection to server localhost:1636: java.net.ConnectException: Connection refused') at com.unboundid.ldap.sdk.LDAPConnection.connect(LDAPConnection.java:755) at com.unboundid.ldap.sdk.LDAPConnection.connect(LDAPConnection.java:687) at com.unboundid.ldap.sdk.LDAPConnection.<init>(LDAPConnection.java:519) at com.unboundid.ldap.sdk.SingleServerSet.getConnection(SingleServerSet.java:229) at com.unboundid.ldap.sdk.ServerSet.getConnection(ServerSet.java:98) at com.unboundid.ldap.sdk.FailoverServerSet.getConnection(FailoverServerSet.java:545) at com.unboundid.ldap.sdk.LDAPConnectionPool.createConnection(LDAPConnectionPool.java:1088) at com.unboundid.ldap.sdk.LDAPConnectionPool.getConnection(LDAPConnectionPool.java:1549) at com.unboundid.ldap.sdk.AbstractConnectionPool.search(AbstractConnectionPool.java:2010) ... 57 more Caused by: java.io.IOException: An error occurred while attempting to establish a connection to server localhost:1636: java.net.ConnectException: Connection refused at com.unboundid.ldap.sdk.LDAPConnectionInternals.<init>(LDAPConnectionInternals.java:143) at com.unboundid.ldap.sdk.LDAPConnection.connect(LDAPConnection.java:745)

By Michael Schwartz Account Admin 09 Oct 2014 at 2:20 p.m. CDT

Michael Schwartz gravatar
That's a good thing. We don't want to expose LDAP on a public interface. I see a potential problem. I just commited a change to community-edition-setup To fix, I think it will require a re-install... sorry! Basically exit chroot, stop gluu-server, yum remove gluu-server, rm -rf /home/gluu-server. Then start install again. And make sure instead of /install, download a fresh setup script from https://github.com/GluuFederation/community-edition-setup/archive/master.zip unzip and re-run setup. I changed the opend-dj setup to use localhost instead of the hostname. This may make a difference.

By Duane DeCouteau user 09 Oct 2014 at 4:56 p.m. CDT

Duane DeCouteau gravatar
Did the re-install including grabbing the update to master zip. Recieved a successful installation message but now the initial browser launch just hangs there. Hostname is still ce.gluu.info in /etc/sysconfig/network and I see following error in oauth.log 2014-10-09 21:44:31,211 ERROR [org.xdi.oxauth.model.config.ConfigurationFactory] Failed to find entry: ou=oxAuth,ou=configuration,inum=@!F170.38BF.1C79.C2EC!0002!5F0A.17BC,ou=appliances,o=gluu org.gluu.site.ldap.persistence.exception.EntryPersistenceException: Failed to persist entry: ou=oxAuth,ou=configuration,inum=@!F170.38BF.1C79.C2EC!0002!5F0A.17BC,ou=appliances,o=gluu at org.gluu.site.ldap.persistence.LdapEntryManager.persist(LdapEntryManager.java:82) at org.gluu.site.ldap.persistence.AbstractEntryManager.persist(AbstractEntryManager.java:94) at org.xdi.oxauth.model.config.ConfigurationFactory.createFromLdap(ConfigurationFactory.java:180) at org.xdi.oxauth.model.config.ConfigurationFactory.create(ConfigurationFactory.java:108) at org.xdi.oxauth.service.AppInitializer.createApplicationComponents(AppInitializer.java:98) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:52) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) at org.xdi.oxauth.service.AppInitializer_$$_javassist_seam_1.createApplicationComponents(AppInitializer_$$_javassist_seam_1.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) at org.jboss.seam.Component.callComponentMethod(Component.java:2275) at org.jboss.seam.Component.callCreateMethod(Component.java:2198) at org.jboss.seam.Component.newInstance(Component.java:2158) at org.jboss.seam.Component.getInstance(Component.java:2024) at org.jboss.seam.Component.getInstance(Component.java:1986) at org.jboss.seam.Component.getInstance(Component.java:1980) at org.jboss.seam.Component.getInstanceFromFactory(Component.java:2081) at org.jboss.seam.Component.getInstance(Component.java:2014) at org.jboss.seam.Component.getInstance(Component.java:1986) at org.jboss.seam.Component.getInstance(Component.java:1980) at org.jboss.seam.Component.getInstanceInAllNamespaces(Component.java:2375) at org.jboss.seam.Component.getValueToInject(Component.java:2327) at org.jboss.seam.Component.injectAttributes(Component.java:1739) at org.jboss.seam.Component.inject(Component.java:1557) at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:61) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) at org.xdi.oxauth.service.AuthenticationFilterService_$$_javassist_seam_0.init(AuthenticationFilterService_$$_javassist_seam_0.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) at org.jboss.seam.Component.callComponentMethod(Component.java:2275) at org.jboss.seam.Component.callCreateMethod(Component.java:2198) at org.jboss.seam.Component.newInstance(Component.java:2158) at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304) at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278) at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:143) at org.jboss.seam.init.Initialization.init(Initialization.java:744) at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5490) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: Connection exception (Error adding object to directory. LDAP error number 32: Entry ou=oxAuth,ou=configuration,inum=@!F170.38BF.1C79.C2EC!0002!5F0A.17BC,ou=appliances,o=gluu cannot be added because its parent entry ou=configuration,inum=@!F170.38BF.1C79.C2EC!0002!5F0A.17BC,ou=appliances,o=gluu does not exist in the server) at org.gluu.site.ldap.OperationsFacade.addEntry(OperationsFacade.java:302) at org.gluu.site.ldap.persistence.LdapEntryManager.persist(LdapEntryManager.java:77) ... 78 more 2014-10-09 21:44:31,218 ERROR [org.xdi.oxauth.model.config.ConfigurationFactory] Failed to load configuration from LDAP. Please fix it!!!.

By Duane DeCouteau user 17 Oct 2014 at 9:40 a.m. CDT

Duane DeCouteau gravatar
Any word on this issue Michael?

By Michael Schwartz Account Admin 17 Oct 2014 at 12:53 p.m. CDT

Michael Schwartz gravatar
I would start with a fresh install. We did commit several issues on restart of the server. Remember that /etc/hosts is different on the chrooted system than on the host system.

By Duane DeCouteau user 17 Oct 2014 at 1:05 p.m. CDT

Duane DeCouteau gravatar
I still had to manually update hostname in /etc/sysconfig/network changing ce.gluu.info to correct hostname. I seems to be working now. You can close this ticket. Thanks Duane