[External]Install script failing
Lipscomb, Gary
glipscomb at csu.edu.au
Wed May 11 04:07:11 UTC 2022
Hi Chris,
Are you sure you are running Java 11 when you do this?
# alternatives --display java
java - status is manual.
link currently points to /usr/lib/jvm/java-11-openjdk-11.0.14.1.1-2.el8_5.x86_64/bin/java
# alternatives --config java
There are 2 programs which provide 'java'.
Selection Command
-----------------------------------------------
+ 1 java-11-openjdk.x86_64 (/usr/lib/jvm/java-11-openjdk-11.0.14.1.1-2.el8_5.x86_64/bin/java)
* 2 java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.322.b06-2.el8_5.x86_64/jre/bin/java)
Enter to keep the current selection[+], or type selection number:
# java --version
openjdk 11.0.14.1 2022-02-08 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.14.1+1-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.14.1+1-LTS, mixed mode, sharing)
Regards
Gary
Gary Lipscomb
Technical Officer, Systems | IT Infrastructure & Security | Division of Information Technology
Charles Sturt University
From: users <users-bounces at shibboleth.net> On Behalf Of Christopher Bland via users
Sent: Wednesday, 11 May 2022 13:48
To: Shib Users <users at shibboleth.net>
Cc: Christopher Bland <chris at fdu.edu>
Subject: Re: [External]Install script failing
Hi All,
Looks like when I run the install script in addition to deleting the doc directory it is also deleting the bin/lib directory which contains the ant jar files hence the second error.
Does anyone have any idea what in the install script would cause directories to be deleted?
-Chris
From: users <users-bounces at shibboleth.net<mailto:users-bounces at shibboleth.net>> on behalf of Christopher Bland via users <users at shibboleth.net<mailto:users at shibboleth.net>>
Date: Tuesday, May 10, 2022 at 4:26 PM
To: users at shibboleth.net<mailto:users at shibboleth.net> <users at shibboleth.net<mailto:users at shibboleth.net>>
Cc: Christopher Bland <chris at fdu.edu<mailto:chris at fdu.edu>>
Subject: [External]Install script failing
Hi All,
I am trying to do a fresh install of IDP v4.2.1 on a RHEL 8 server with Java 11. I followed the instructions but seemed to have missed something. When I first run install.sh it complains that the doc directory is missing although it's there when the install starts
# ls -al doc
total 28
drwxr-xr-x. 2 jetty jetty 171 May 10 16:17 .
drwxr-xr-x. 13 jetty jetty 176 Apr 18 09:43 ..
-rw-r--r--. 1 jetty jetty 1118 Apr 18 09:43 BC-LICENSE.txt
-rw-r--r--. 1 jetty jetty 2224 Apr 18 09:43 CREDITS.txt
-rw-r--r--. 1 jetty jetty 1399 Apr 18 09:43 DUO-LICENSE.txt
-rw-r--r--. 1 jetty jetty 1084 Apr 18 09:43 JQUERY-LICENSE.txt
-rw-r--r--. 1 jetty jetty 900 Apr 18 09:43 README.txt
-rw-r--r--. 1 jetty jetty 220 Apr 18 09:43 RELEASE-NOTES.txt
-rw-r--r--. 1 jetty jetty 1104 Apr 18 09:43 SPYMEMCACHED-LICENSE.txt
# cd bin
# ./install.sh
Buildfile: /opt/shibboleth-identity-provider-4.2.1/bin/build.xml
install:
Source (Distribution) Directory (press <enter> to accept default): [/opt/shibboleth-identity-provider-4.2.1] ?
Installation Directory: [/opt/shibboleth-idp] ?
INFO - Including auto-located properties in /opt/shibboleth-idp/conf/c14n/subject-c14n.properties
INFO - Including auto-located properties in /opt/shibboleth-idp/conf/admin/admin.properties
INFO - Including auto-located properties in /opt/shibboleth-idp/conf/authn/authn.properties
INFO - Including auto-located properties in /opt/shibboleth-idp/conf/ldap.properties
INFO - Including auto-located properties in /opt/shibboleth-idp/conf/saml-nameid.properties
INFO - Including auto-located properties in /opt/shibboleth-idp/conf/services.properties
WARN - Unable to find property resource '/opt/shibboleth-idp/credentials/secrets.properties' (check idp.additionalProperties?)
BUILD FAILED
/opt/shibboleth-identity-provider-4.2.1/bin/build.xml:20: /opt/shibboleth-identity-provider-4.2.1/doc does not exist.
Total time: 4 seconds
So I recreate the directory
# mkdir ../doc
# ./install.sh
Error: Could not find or load main class org.apache.tools.ant.Main
Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.Main
Has anyone seen this before?
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20220511/ca26f7d8/attachment.htm>
More information about the users
mailing list