Uploaded image for project: 'Identity Provider'
  1. Identity Provider
  2. IDP-991

Installer Hard References /opt/shibboleth-idp

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.3.0
    • Component/s: Installer
    • Labels:
      None
    • Operating System:
      Linux
    • Java Version:
      Oracle Java 8
    • Servlet Container:
      Jetty 9.3

      Description

      We have a Dev host with the IdP software already installed at /opt/shibboleth-idp (files are owned by another user at the moment). I am testing some things with the installer to reliably deploy to other environments with consistent settings - as I don't want to overwrite anything currently happening in Dev at the moment I was deploying to another location (in this case /tmp/shibboleth-idp/). However the installer is still trying to read in the /opt/shibboleth-idp/ - but failing as it exists but does not have permission - I'm not going to give it permissions as it really shouldn't even be trying to access /opt/shibboleth-idp/ if I have specified an alternative directory.

      What are you putting inside idp.property.file ?
      idp.noprompt=true
      idp.no.tidy=true
      idp.src.dir=/tmp/shibboleth-identity-provider-3.2.1/
      idp.target.dir=/tmp/shibboleth-idp/
      idp.merge.properties=idp.merge.properties
      idp.host.name=hostname.example.com
      idp.sealer.password=password
      idp.keystore.password=password

      metadata-gen:
      Skipping /tmp/shibboleth-idp/metadata because it already exists.
      2016-05-09 14:55:07.486 [ WARN] : net.shibboleth.idp.spring.IdPPropertiesApplicationContextInitializer: Unable to load properties from resource 'file [/opt/shibboleth-idp/conf/idp.properties]'
      java.io.FileNotFoundException: /opt/shibboleth-idp/conf/idp.properties (Permission denied)
      at java.io.FileInputStream.open0(Native Method) ~[na:1.8.0_71]
      at java.io.FileInputStream.open(FileInputStream.java:195) ~[na:1.8.0_71]
      at java.io.FileInputStream.<init>(FileInputStream.java:138) ~[na:1.8.0_71]
      at org.springframework.core.io.FileSystemResource.getInputStream(FileSystemResource.java:115) ~[spring-core-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      at org.springframework.core.io.support.PropertiesLoaderUtils.fillProperties(PropertiesLoaderUtils.java:132) ~[spring-core-4.2.3.RELEASE.jar:4.2.3.RELEASE]
      at net.shibboleth.idp.spring.IdPPropertiesApplicationContextInitializer.loadProperties(IdPPropertiesApplicationContextInitializer.java:195) [idp-core-3.2.1.jar:na]
      at net.shibboleth.idp.spring.IdPPropertiesApplicationContextInitializer.initialize(IdPPropertiesApplicationContextInitializer.java:98) [idp-core-3.2.1.jar:na]
      at net.shibboleth.ext.spring.util.SpringSupport.newContext(SpringSupport.java:129) [spring-extensions-5.2.0.jar:na]
      at net.shibboleth.idp.installer.ant.MetadataGeneratorTask.execute(MetadataGeneratorTask.java:204) [idp-installer-3.2.1.jar:na]
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) [ant-1.9.4.jar:1.9.4]
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) ~[na:na]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_71]
      at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_71]
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [ant-1.9.4.jar:na]
      at org.apache.tools.ant.Task.perform(Task.java:348) [ant-1.9.4.jar:1.9.4]
      at org.apache.tools.ant.Target.execute(Target.java:435) [ant-1.9.4.jar:1.9.4]
      at org.apache.tools.ant.Target.performTasks(Target.java:456) [ant-1.9.4.jar:1.9.4]
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) [ant-1.9.4.jar:1.9.4]
      at org.apache.tools.ant.Project.executeTarget(Project.java:1364) [ant-1.9.4.jar:1.9.4]
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [ant-1.9.4.jar:na]
      at org.apache.tools.ant.Project.executeTargets(Project.java:1248) [ant-1.9.4.jar:1.9.4]
      at org.apache.tools.ant.Main.runBuild(Main.java:851) [ant-1.9.4.jar:1.9.4]
      at org.apache.tools.ant.Main.startAnt(Main.java:235) [ant-1.9.4.jar:1.9.4]
      at org.apache.tools.ant.Main.start(Main.java:198) [ant-1.9.4.jar:1.9.4]
      at org.apache.tools.ant.Main.main(Main.java:286) [ant-1.9.4.jar:1.9.4]
      2016-05-09 14:55:07.490 [ERROR] : net.shibboleth.idp.spring.IdPPropertiesApplicationContextInitializer: Unable to load properties from resource 'file [/opt/shibboleth-idp/conf/idp.properties]'
      Build failed

      BUILD FAILED
      /tmp/shibboleth-identity-provider-3.2.1/bin/build.xml:490: net.shibboleth.utilities.java.support.logic.ConstraintViolationException: Unable to load properties from resource
      at net.shibboleth.idp.spring.IdPPropertiesApplicationContextInitializer.initialize(IdPPropertiesApplicationContextInitializer.java:102)
      at net.shibboleth.ext.spring.util.SpringSupport.newContext(SpringSupport.java:129)
      at net.shibboleth.idp.installer.ant.MetadataGeneratorTask.execute(MetadataGeneratorTask.java:204)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.Target.execute(Target.java:435)
      at org.apache.tools.ant.Target.performTasks(Target.java:456)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
      at org.apache.tools.ant.Main.runBuild(Main.java:851)
      at org.apache.tools.ant.Main.startAnt(Main.java:235)
      at org.apache.tools.ant.Main.start(Main.java:198)
      at org.apache.tools.ant.Main.main(Main.java:286)

        Attachments

          Activity

            People

            Assignee:
            rdw@iay.org.uk Rod Widdowson
            Reporter:
            esbitnjxxmhh96nfwtqbwsj6aw4=@https://signon.deakin.edu.au/idp/shibboleth Aaron Howell
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 15 minutes
                1h 15m