By: Samuel Se user 22 Nov 2016 at 3:18 a.m. CST

9 Responses
Samuel Se gravatar
Hi! During Gluu server installation using setup.py the Asimba and oxauth-rp war-files fails to be downloaded/installed. See extract from setup.log below. I tried to access the war files from outside the installation using wget, and I get the same error. If I log out from the chroot environment I can download the files using wget. What do I do wrong? Please advice! Thank you! The following should be installed: ``` Install oxAuth True Install oxTrust True Install LDAP True Install Apache 2 web server True Install Shibboleth SAML IDP True Install Asimba SAML Proxy True Install CAS True Install oxAuth RP True ``` Extract from setup.log: ``` (earlier log messages skipped since no error. See errors below) 09:23:53 11/22/16 Removed dir: /opt/dist/tmp_cas 09:23:53 11/22/16 Removed file: /opt/dist/cas.war 09:23:53 11/22/16 Running: /usr/bin/wget http://ox.gluu.org/maven/org/asimba/asimba-wa/2.4.4/asimba-wa-2.4.4.war --retry-connrefused --tries=10 -O /opt/dist/oxasimba.war 09:23:53 11/22/16 --2016-11-22 09:23:53-- http://ox.gluu.org/maven/org/asimba/asimba-wa/2.4.4/asimba-wa-2.4.4.war Resolving ox.gluu.org (ox.gluu.org)... failed: Name or service not known. wget: unable to resolve host address ‘ox.gluu.org’ 09:23:53 11/22/16 Unpacking oxasimba.war... 09:23:53 11/22/16 Created dir: /opt/dist/tmp_asimba 09:23:53 11/22/16 Running: /usr/bin/jar xf /opt/dist/oxasimba.war 09:23:53 11/22/16 Configuring Asimba... 09:23:53 11/22/16 Error copying ./output/asimba.xml to /opt/dist/tmp_asimba/WEB-INF/conf/asimba.xml 09:23:53 11/22/16 Traceback (most recent call last): File "./setup.py", line 588, in copyFile shutil.copy(inFile, destFolder) File "/usr/lib64/python2.7/shutil.py", line 119, in copy copyfile(src, dst) File "/usr/lib64/python2.7/shutil.py", line 83, in copyfile with open(dst, 'wb') as fdst: IOError: [Errno 2] No such file or directory: '/opt/dist/tmp_asimba/WEB-INF/conf/asimba.xml' 09:23:53 11/22/16 Error copying ./output/asimba.properties to /opt/dist/tmp_asimba/WEB-INF/asimba.properties 09:23:53 11/22/16 Traceback (most recent call last): File "./setup.py", line 588, in copyFile shutil.copy(inFile, destFolder) File "/usr/lib64/python2.7/shutil.py", line 119, in copy copyfile(src, dst) File "/usr/lib64/python2.7/shutil.py", line 83, in copyfile with open(dst, 'wb') as fdst: IOError: [Errno 2] No such file or directory: '/opt/dist/tmp_asimba/WEB-INF/asimba.properties' 09:23:53 11/22/16 Generating asimba.war... 09:23:53 11/22/16 Running: /usr/bin/jar cmf tmp_asimba/META-INF/MANIFEST.MF asimba.war -C /opt/dist/tmp_asimba/ . 09:23:53 11/22/16 java.io.FileNotFoundException: tmp_asimba/META-INF/MANIFEST.MF (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:146) at java.io.FileInputStream.<init>(FileInputStream.java:101) at sun.tools.jar.Main.run(Main.java:172) at sun.tools.jar.Main.main(Main.java:1231) 09:23:53 11/22/16 Copying asimba.war into tomcat webapps folder... 09:23:53 11/22/16 Error copying /opt/dist/asimba.war to /opt/tomcat/webapps 09:23:53 11/22/16 Traceback (most recent call last): File "./setup.py", line 588, in copyFile shutil.copy(inFile, destFolder) File "/usr/lib64/python2.7/shutil.py", line 119, in copy copyfile(src, dst) File "/usr/lib64/python2.7/shutil.py", line 82, in copyfile with open(src, 'rb') as fsrc: IOError: [Errno 2] No such file or directory: '/opt/dist/asimba.war' 09:23:53 11/22/16 Removed dir: /opt/dist/tmp_asimba 09:23:53 11/22/16 Running: /usr/bin/wget https://ox.gluu.org/maven/org/xdi/oxauth-rp/2.4.4/oxauth-rp-2.4.4.war --retry-connrefused --tries=10 -O /opt/dist/oxauth-rp.war 09:23:53 11/22/16 --2016-11-22 09:23:53-- https://ox.gluu.org/maven/org/xdi/oxauth-rp/2.4.4/oxauth-rp-2.4.4.war Resolving ox.gluu.org (ox.gluu.org)... failed: Name or service not known. wget: unable to resolve host address ‘ox.gluu.org’ 09:23:53 11/22/16 Copying oxauth-rp.war into tomcat webapps folder... 09:23:53 11/22/16 Copied /opt/dist/oxauth-rp.war to /opt/tomcat/webapps 09:23:53 11/22/16 Removed file: /opt/dist/oxauth-rp.war 09:23:53 11/22/16 Changing ownership 09:23:53 11/22/16 Running: /bin/chown -R tomcat:tomcat /etc/certs 09:23:53 11/22/16 Running: /bin/chown -R tomcat:tomcat /opt/apache-tomcat-7.0.65 09:23:53 11/22/16 Running: /bin/chown -R ldap:ldap /opt/opendj 09:23:53 11/22/16 Running: /bin/chown -R tomcat:tomcat /var/ox 09:23:53 11/22/16 Running: /bin/chown -R tomcat:tomcat /opt/idp 09:23:53 11/22/16 Running: /bin/chown -R tomcat:tomcat /opt/shibboleth-idp 09:23:53 11/22/16 Running: /bin/chmod -R 400 /etc/certs 09:23:53 11/22/16 Running: /bin/chmod u+X /etc/certs 09:23:53 11/22/16 Running: /usr/bin/systemctl enable httpd 09:23:53 11/22/16 Running: /usr/bin/systemctl start httpd 09:23:53 11/22/16 Running: /usr/bin/systemctl start memcached.service 09:23:58 11/22/16 Running: /opt/opendj/bin/stop-ds 09:24:06 11/22/16 Stopping Server... [22/Nov/2016:09:24:01 +0100] category=PLUGGABLE severity=NOTICE msgID=org.opends.messages.backend.370 msg=The backend site is now taken offline [22/Nov/2016:09:24:01 +0100] category=PLUGGABLE severity=NOTICE msgID=org.opends.messages.backend.370 msg=The backend userRoot is now taken offline [22/Nov/2016:09:24:01 +0100] category=CORE severity=NOTICE msgID=org.opends.messages.core.203 msg=The Directory Server is now stopped 09:24:06 11/22/16 Running: /usr/bin/systemctl enable tomcat 09:24:06 11/22/16 Running: /usr/bin/systemctl start tomcat 09:24:20 11/22/16 Saving properties to ./setup.properties.last ```

By Mohib Zico Account Admin 22 Nov 2016 at 3:45 a.m. CST

Mohib Zico gravatar
Hi Samuel, Please feel free to report a bug [here](https://github.com/GluuFederation/community-edition-setup/issues). For now, this is what you can do: - For Asimba: - Before running setup.py script: - Install base package - cd /opt/dist/ - wget http://ox.gluu.org/maven/org/asimba/asimba-wa/2.4.4/asimba-wa-2.4.4.war -O oxasimba.war - Run setup.py - For oxAuth-RP: After complete installation of Gluu Server, download oxauth-rp war from 'http://ox.gluu.org/maven/org/xdi/oxauth-rp/', put it inside /opt/tomcat/webapps/ ( inside container ), restart tomcat.

By Samuel Se user 22 Nov 2016 at 3:54 a.m. CST

Samuel Se gravatar
Thank you for the quick reply! Just to clarify, what do you mean by "Install base package"?

By Mohib Zico Account Admin 22 Nov 2016 at 4:08 a.m. CST

Mohib Zico gravatar
>> what do you mean by "Install base package"? Just 'Installing Gluu Server' ( before 'Configuring Gluu Server' ) from [doc](https://gluu.org/docs/deployment/centos7/).

By Aliaksandr Samuseu staff 22 Nov 2016 at 8:03 a.m. CST

Aliaksandr Samuseu gravatar
Hi, Samuel. >I tried to access the war files from outside the installation using wget, and I get the same error. If I log out from the chroot environment I can download the files using wget. What do I do wrong? This may be because name resolution wasn't set properly during installation in the container. I believe this was reported before for some of the packages. So right after you install the package and move into container for the first time, but before you run `setup.py`, please check `/etc/resolv.conf` file. It may occur it's empty, or even doesn't exist. So make sure it exists and contains `nameserver 8.8.8.8` entry before you run setup.py. If it will happen to be the case, please follow Zico's suggestion and submit a bug at github. Or let us know, we'll submit it instead.

By Michael Schwartz Account Admin 22 Nov 2016 at 2:32 p.m. CST

Michael Schwartz gravatar
Are you sure you need Asimba? Are you supporting authentication from several of your partners' IDPs?

By Samuel Se user 23 Nov 2016 at 1:52 a.m. CST

Samuel Se gravatar
Our goal is to provide SSO with several applications: Atlassian Jira, Atlassian Confluence and Alfresco, connected to two Active Directories. I hope this is doable. Please advice otherwise!

By William Lowe user 28 Nov 2016 at 3:58 p.m. CST

William Lowe gravatar
Hi Samuel, This is possible without Asimba. You just need to map the two Active Directory servers in your [Cache Refresh](https://gluu.org/docs/cache-refresh/) configuration. Then you need to follow the Atlassian instructions for configuring SAML SSO using your Gluu server for authentication. Thanks.

By Samuel Se user 29 Nov 2016 at 2:07 a.m. CST

Samuel Se gravatar
Hi, Thank you! I managed to get Active Directory working using Cache Refresh. Great! Can you please explain outbound vs. inbound to me? Thank you regards Samuel

By Mohib Zico Account Admin 29 Nov 2016 at 2:11 a.m. CST

Mohib Zico gravatar
Hey Samuel, >> Can you please explain outbound vs. inbound to me? [Doc](https://gluu.org/docs/) is a great place to start. Check out 'Supported Protocols' section from left navigation pane. Inbound and Outbound are separated with explanations there. If you have any question, feel free to let us know.