By: Thomas Ross user 06 Aug 2018 at 9:01 p.m. CDT

6 Responses
Thomas Ross gravatar
I have install gluu 3.1.3 on ubuntu 16.04. The install completes successfully and I am able to use the server. When I reboot the server the shibboleth services do not start and the webportal just says that the service is unavailable. I can login to the admin interface with no issues. I would like to know if there is something special that needs to be configured so that the shibboleth services start whenever the server is rebooted. Thank you

By Adrian Alves staff 07 Aug 2018 at 10:29 a.m. CDT

Adrian Alves gravatar
Hello Thomas, Sometimes Ldap takes time to initialize, can you send us the logs to investigate this issue, they are located at: /opt/shibboleth-idp/logs and /opt/jluu/jetty/idp/logs Cheers, Adrian.-

By Thomas Ross user 07 Aug 2018 at 5:42 p.m. CDT

Thomas Ross gravatar
This is one error I see repeating in the jetty.log; Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shibboleth.metrics.AttributeResolverGaugeSet' defined in URL [file:/opt/shibboleth-idp/system/conf/general-admin-system.xml]: Invocation of init method failed; nested exception is net.shibboleth.utilities.java.support.component.ComponentInitializationException: Injected service was null or not an AttributeResolver at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578) idp-process.log: 2018-08-07 20:25:46,084 - ERROR [org.springframework.web.context.ContextLoader:351] - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shibboleth.metrics.RegisterMetricSets$child#0' defined in URL [file:/opt/shibboleth-idp/conf/admin/metrics.xml]: Cannot resolve reference to bean 'shibboleth.metrics.AttributeResolverGaugeSet' while setting bean property 'arguments' with key [7]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shibboleth.metrics.AttributeResolverGaugeSet' defined in URL [file:/opt/shibboleth-idp/system/conf/general-admin-system.xml]: Invocation of init method failed; nested exception is net.shibboleth.utilities.java.support.component.ComponentInitializationException: Injected service was null or not an AttributeResolver at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shibboleth.metrics.AttributeResolverGaugeSet' defined in URL [file:/opt/shibboleth-idp/system/conf/general-admin-system.xml]: Invocation of init method failed; nested exception is net.shibboleth.utilities.java.support.component.ComponentInitializationException: Injected service was null or not an AttributeResolver at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578) Caused by: net.shibboleth.utilities.java.support.component.ComponentInitializationException: Injected service was null or not an AttributeResolver at net.shibboleth.idp.attribute.resolver.impl.AttributeResolverServiceGaugeSet.doInitialize(AttributeResolverServiceGaugeSet.java:104) idp-warn.log: 2018-08-07 20:25:46,084 - ERROR [org.springframework.web.context.ContextLoader:351] - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shibboleth.metrics.RegisterMetricSets$child#0' defined in URL [file:/opt/shibboleth-idp/conf/admin/metrics.xml]: Cannot resolve reference to bean 'shibboleth.metrics.AttributeResolverGaugeSet' while setting bean property 'arguments' with key [7]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shibboleth.metrics.AttributeResolverGaugeSet' defined in URL [file:/opt/shibboleth-idp/system/conf/general-admin-system.xml]: Invocation of init method failed; nested exception is net.shibboleth.utilities.java.support.component.ComponentInitializationException: Injected service was null or not an AttributeResolver at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shibboleth.metrics.AttributeResolverGaugeSet' defined in URL [file:/opt/shibboleth-idp/system/conf/general-admin-system.xml]: Invocation of init method failed; nested exception is net.shibboleth.utilities.java.support.component.ComponentInitializationException: Injected service was null or not an AttributeResolver at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578) Caused by: net.shibboleth.utilities.java.support.component.ComponentInitializationException: Injected service was null or not an AttributeResolver at net.shibboleth.idp.attribute.resolver.impl.AttributeResolverServiceGaugeSet.doInitialize(AttributeResolverServiceGaugeSet.java:104)

By Davit Nikoghosyan staff 09 Aug 2018 at 1:12 p.m. CDT

Davit Nikoghosyan gravatar
Hello Thomas, Shibboleth service is being installed separately from gluu-server. So gluu-server rebooting have nothing to do with shibboleth service startup. You should install gluu-server and shibboleth service separately and then configure each one to work together. 1. To install the Shibboleth SP on ubuntu, run the following commands in a terminal: ``` apt-get install apache2 libshibsp6 libapache2-mod-shib2 a2enmod cgi a2enmod ssl a2enmod shib2 a2ensite default-ssl mkdir /etc/certs cd /etc/certs openssl genrsa -des3 -out sp.key 2048 openssl rsa -in sp.key -out sp.key.insecure mv sp.key.insecure sp.key openssl req -new -key sp.key -out sp.csr openssl x509 -req -days 365 -in sp.csr -signkey sp.key -out sp.crt shib-metagen -c /etc/certs/sp.crt -h sp.gluu.info > /etc/shibboleth/SP-metadata.xml service apache2 start service shibd start ``` 2. Then you need to configure gluu-server and create a Trust Relationship in your Gluu Server. For this step please follow this guide. https://gluu.org/docs/ce/3.1.3/integration/sswebapps/saml-sp/#super-quick-ubuntu-shib-apache-install Please ask any questions you have, I am happy to guide you through configuration process. Thanks, Davit

By Thomas Ross user 14 Aug 2018 at 9:56 a.m. CDT

Thomas Ross gravatar
I am sorry I was not clear in my build description. I am using gluu with the intergrated shibboleth running as an idp not as an sp. It seems that when ever a file is edited or the server is restarted it does not recover.

By Mohib Zico Account Admin 15 Aug 2018 at 6:29 a.m. CDT

Mohib Zico gravatar
Hi Thomas, >> I am using gluu with the intergrated shibboleth running as an idp not as an sp You mean... you are using default shibboleth which is there with Gluu Server, correct?

By William Lowe user 27 Aug 2018 at 6:53 p.m. CDT

William Lowe gravatar
Thomas, Are you still facing issues with Shib? Thanks, Will