Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install on Shibboleth IDP version 4.2.1_20220517 #6

Open
guthy opened this issue Jun 1, 2022 · 0 comments
Open

Unable to install on Shibboleth IDP version 4.2.1_20220517 #6

guthy opened this issue Jun 1, 2022 · 0 comments

Comments

@guthy
Copy link

guthy commented Jun 1, 2022

Error installing plugin

I am unable to install the plugin, plugin.sh gives the error

ERROR  - Too many packages in distributions /tmp/plugin-installer-download7056747998452045926/shibboleth-redis-storage-service-2.0.0-SNAPSHOT.tar.gz
ERROR  -  Plugin Install failed: Too many packages in distributions

Following steps were :

  • Clone this git repository
  • Create a signing key via gpg
  • build the software, sign it via ./gradlew sign distZip -Psigning.secretKeyRingFile=/somewhere -Psigning.password=somepassword -Psigning.keyId=someid
  • following files were created:
[root@f7a711f7cf72 distributions]# ls -l /shibboleth-redis-storage-service/build/distributions
total 17832
-rw-r--r-- 1 root root 9123386 Jun  1 08:32 shibboleth-redis-storage-service-2.0.0-SNAPSHOT.tar.gz
-rw-r--r-- 1 root root     475 Jun  1 08:32 shibboleth-redis-storage-service-2.0.0-SNAPSHOT.tar.gz.asc
-rw-r--r-- 1 root root 9124005 Jun  1 08:32 shibboleth-redis-storage-service-2.0.0-SNAPSHOT.zip
-rw-r--r-- 1 root root     475 Jun  1 08:32 shibboleth-redis-storage-service-2.0.0-SNAPSHOT.zip.asc
  • using plugin.sh to install plugin: /opt/shibboleth-idp/bin/plugin.sh -i /shibboleth-redis-storage-service/build/distributions/shibboleth-redis-storage-service-2.0.0-SNAPSHOT.tar.gz - this gives the error:
[root@f7a711f7cf72 distributions]# /opt/shibboleth-idp/bin/plugin.sh -i /shibboleth-redis-storage-service/build/distributions/shibboleth-redis-storage-service-2.0.0-SNAPSHOT.tar.gz
INFO  - Including auto-located properties in /opt/shibboleth-idp/bin/../conf/admin/admin.properties
INFO  - Including auto-located properties in /opt/shibboleth-idp/bin/../conf/ldap.properties
INFO  - Including auto-located properties in /opt/shibboleth-idp/bin/../conf/authn/authn.properties
INFO  - Including auto-located properties in /opt/shibboleth-idp/bin/../conf/services.properties
INFO  - Including auto-located properties in /opt/shibboleth-idp/bin/../conf/saml-nameid.properties
INFO  - Including auto-located properties in /opt/shibboleth-idp/bin/../conf/c14n/subject-c14n.properties
ERROR  - Too many packages in distributions /shibboleth-redis-storage-service/build/distributions/shibboleth-redis-storage-service-2.0.0-SNAPSHOT.tar.gz
ERROR  -  Plugin Install failed: Too many packages in distributions

I also tried hosting the generated files on a webserver and including an plugins.properties file (analogue to https://shibboleth.net/downloads/identity-provider/plugins/plugins.properties) with the same error.

The generated tar.gz file contains following files:

[root@f7a711f7cf72 distributions]# tar tvf shibboleth-redis-storage-service-2.0.0-SNAPSHOT.tar.gz
drwxrwxr-x 0/0               0 2022-05-18 09:25 webapp/
drwxrwxr-x 0/0               0 2022-05-18 09:25 webapp/WEB-INF/
drwxrwxr-x 0/0               0 2022-06-01 08:32 webapp/WEB-INF/lib/
-rw-r--r-- 0/0          512597 2022-06-01 08:32 webapp/WEB-INF/lib/netty-handler-4.1.65.Final.jar
-rw-r--r-- 0/0           41381 2022-06-01 08:32 webapp/WEB-INF/lib/jackson-dataformat-yaml-2.9.8.jar
-rw-r--r-- 0/0           37009 2022-06-01 08:32 webapp/WEB-INF/lib/netty-resolver-4.1.65.Final.jar
-rw-r--r-- 0/0           60686 2022-06-01 08:32 webapp/WEB-INF/lib/commons-logging-1.1.1.jar
-rw-r--r-- 0/0          326099 2022-06-01 08:32 webapp/WEB-INF/lib/netty-codec-4.1.65.Final.jar
-rw-r--r-- 0/0            7145 2022-06-01 08:32 webapp/WEB-INF/lib/shibboleth-redis-storage-service-2.0.0-SNAPSHOT.jar
-rw-r--r-- 0/0          120925 2022-06-01 08:32 webapp/WEB-INF/lib/jodd-bean-3.7.1.jar
-rw-r--r-- 0/0         1441943 2022-06-01 08:32 webapp/WEB-INF/lib/reactor-core-3.2.3.RELEASE.jar
-rw-r--r-- 0/0          301298 2022-06-01 08:32 webapp/WEB-INF/lib/snakeyaml-1.23.jar
-rw-r--r-- 0/0          300909 2022-06-01 08:32 webapp/WEB-INF/lib/netty-buffer-4.1.65.Final.jar
-rw-r--r-- 0/0          387307 2022-06-01 08:32 webapp/WEB-INF/lib/jodd-core-3.7.1.jar
-rw-r--r-- 0/0          651065 2022-06-01 08:32 webapp/WEB-INF/lib/netty-common-4.1.65.Final.jar
-rw-r--r-- 0/0          362679 2022-06-01 08:32 webapp/WEB-INF/lib/commons-configuration-1.10.jar
-rw-r--r-- 0/0         2282935 2022-06-01 08:32 webapp/WEB-INF/lib/rxjava-2.1.13.jar
-rw-r--r-- 0/0           49789 2022-06-01 08:32 webapp/WEB-INF/lib/cache-api-1.0.0.jar
-rw-r--r-- 0/0           54391 2022-06-01 08:32 webapp/WEB-INF/lib/objenesis-2.5.1.jar
-rw-r--r-- 0/0          395170 2022-06-01 08:32 webapp/WEB-INF/lib/fst-2.56.jar
-rw-r--r-- 0/0         2097765 2022-06-01 08:32 webapp/WEB-INF/lib/redisson-3.10.1.jar
-rw-r--r-- 0/0          478002 2022-06-01 08:32 webapp/WEB-INF/lib/netty-transport-4.1.65.Final.jar
-rw-r--r-- 0/0            2097 2022-06-01 08:32 webapp/WEB-INF/lib/reactive-streams-1.0.2.jar
-rw-r--r-- 0/0           61514 2022-06-01 08:32 webapp/WEB-INF/lib/netty-codec-dns-4.1.65.Final.jar
-rw-r--r-- 0/0          154948 2022-06-01 08:32 webapp/WEB-INF/lib/netty-resolver-dns-4.1.65.Final.jar
drwxrwxr-x 0/0               0 2022-06-01 08:32 bootstrap/
-rw-rw-r-- 0/0             209 2022-06-01 08:32 bootstrap/plugin.properties

Also the zip file contains the same directory structure:

Archive:  shibboleth-redis-storage-service-2.0.0-SNAPSHOT.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  05-18-2022 09:25   webapp/
        0  05-18-2022 09:25   webapp/WEB-INF/
        0  06-01-2022 08:32   webapp/WEB-INF/lib/
   512597  06-01-2022 08:32   webapp/WEB-INF/lib/netty-handler-4.1.65.Final.jar
    41381  06-01-2022 08:32   webapp/WEB-INF/lib/jackson-dataformat-yaml-2.9.8.jar
    37009  06-01-2022 08:32   webapp/WEB-INF/lib/netty-resolver-4.1.65.Final.jar
    60686  06-01-2022 08:32   webapp/WEB-INF/lib/commons-logging-1.1.1.jar
   326099  06-01-2022 08:32   webapp/WEB-INF/lib/netty-codec-4.1.65.Final.jar
     7145  06-01-2022 08:32   webapp/WEB-INF/lib/shibboleth-redis-storage-service-2.0.0-SNAPSHOT.jar
   120925  06-01-2022 08:32   webapp/WEB-INF/lib/jodd-bean-3.7.1.jar
  1441943  06-01-2022 08:32   webapp/WEB-INF/lib/reactor-core-3.2.3.RELEASE.jar
   301298  06-01-2022 08:32   webapp/WEB-INF/lib/snakeyaml-1.23.jar
   300909  06-01-2022 08:32   webapp/WEB-INF/lib/netty-buffer-4.1.65.Final.jar
   387307  06-01-2022 08:32   webapp/WEB-INF/lib/jodd-core-3.7.1.jar
   651065  06-01-2022 08:32   webapp/WEB-INF/lib/netty-common-4.1.65.Final.jar
   362679  06-01-2022 08:32   webapp/WEB-INF/lib/commons-configuration-1.10.jar
  2282935  06-01-2022 08:32   webapp/WEB-INF/lib/rxjava-2.1.13.jar
    49789  06-01-2022 08:32   webapp/WEB-INF/lib/cache-api-1.0.0.jar
    54391  06-01-2022 08:32   webapp/WEB-INF/lib/objenesis-2.5.1.jar
   395170  06-01-2022 08:32   webapp/WEB-INF/lib/fst-2.56.jar
  2097765  06-01-2022 08:32   webapp/WEB-INF/lib/redisson-3.10.1.jar
   478002  06-01-2022 08:32   webapp/WEB-INF/lib/netty-transport-4.1.65.Final.jar
     2097  06-01-2022 08:32   webapp/WEB-INF/lib/reactive-streams-1.0.2.jar
    61514  06-01-2022 08:32   webapp/WEB-INF/lib/netty-codec-dns-4.1.65.Final.jar
   154948  06-01-2022 08:32   webapp/WEB-INF/lib/netty-resolver-dns-4.1.65.Final.jar
        0  06-01-2022 08:32   bootstrap/
      209  06-01-2022 08:32   bootstrap/plugin.properties
---------                     -------
 10127863                     27 files

How can we build the plugin, so it's possible to install it via plugin.sh?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant