Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-1284

grouper installer should ignore if no dos2unix (try in java?)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.3.0
    • None
    • grouperInstaller
    • None

    Description

      SEVERE: Error running command: dos2unix /opt/grouper-2.3.0/grouper.apiBinary-2.3.0/bin/gsh.sh
      java.io.IOException: Cannot run program "dos2unix" (in directory "/opt/grouper-2.3.0/grouper.apiBinary-2.3.0/bin"): error=2, No such file or directory
      at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
      at java.lang.Runtime.exec(Runtime.java:617)
      at edu.internet2.middleware.grouperInstaller.util.GrouperInstallerUtils.execCommandHelper(GrouperInstallerUtils.java:10058)
      at edu.internet2.middleware.grouperInstaller.util.GrouperInstallerUtils.access$100(GrouperInstallerUtils.java:128)
      at edu.internet2.middleware.grouperInstaller.util.GrouperInstallerUtils$2.run(GrouperInstallerUtils.java:10009)
      at edu.internet2.middleware.grouperInstaller.util.GrouperInstallerUtils$1.run(GrouperInstallerUtils.java:8259)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.io.IOException: error=2, No such file or directory
      at java.lang.UNIXProcess.forkAndExec(Native Method)
      at java.lang.UNIXProcess.<init>(UNIXProcess.java:186)
      at java.lang.ProcessImpl.start(ProcessImpl.java:130)
      at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
      ... 6 more

      Error: Error running command,
      java.lang.RuntimeException: caller stack
      at edu.internet2.middleware.grouperInstaller.util.GrouperInstallerUtils.threadRunWithStatusDots(GrouperInstallerUtils.java:8312)
      at edu.internet2.middleware.grouperInstaller.util.GrouperInstallerUtils.execCommand(GrouperInstallerUtils.java:10014)
      at edu.internet2.middleware.grouperInstaller.util.GrouperInstallerUtils.execCommand(GrouperInstallerUtils.java:9979)
      at edu.internet2.middleware.grouperInstaller.GrouperInstaller.gshExcutableAndDos2Unix(GrouperInstaller.java:6536)
      at edu.internet2.middleware.grouperInstaller.GrouperInstaller.gshExcutableAndDos2Unix(GrouperInstaller.java:6467)
      at edu.internet2.middleware.grouperInstaller.GrouperInstaller.downloadAndConfigureApi(GrouperInstaller.java:6451)
      at edu.internet2.middleware.grouperInstaller.GrouperInstaller.mainInstallLogic(GrouperInstaller.java:6112)
      at edu.internet2.middleware.grouperInstaller.GrouperInstaller.access$300(GrouperInstaller.java:78)
      at edu.internet2.middleware.grouperInstaller.GrouperInstaller$GrouperInstallerMainFunction$1.logic(GrouperInstaller.java:970)
      at edu.internet2.middleware.grouperInstaller.GrouperInstaller.mainLogic(GrouperInstaller.java:1032)
      at edu.internet2.middleware.grouperInstaller.GrouperInstaller.main(GrouperInstaller.java:303)

      NOTE: you might need to run this to convert newline characters to mac/unix:

      cat /opt/grouper-2.3.0/grouper.apiBinary-2.3.0/bin/gsh.sh | col -b > /opt/grouper-2.3.0/grouper.apiBinary-2.3.0/bin/gsh.sh

      cat /opt/grouper-2.3.0/grouper.apiBinary-2.3.0/bin/gsh | col -b > /opt/grouper-2.3.0/grouper.apiBinary-2.3.0/bin/gsh

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: