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

pre-create grouperDdl dir so it has right owner in case gsh runs as root

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • None

    Description

      David Li  2 days ago
      During grouper upgrade from v2.6.15.1 to v2.6.19, we encountered a file permission error when running GSH in the gsh container:
      “Exception in thread “main” java.lang.RuntimeException: Cant create file: /opt/grouper/grouperWebapp/WEB-INF/ddlScripts/grouperDdl_20230201_12_57_32_025.sql”
      The WEB-INF directory is like:


      [root@ace07bb81a4e WEB-INF]# ls -la
       total 56
       drwxrwsr-x. 1 tomcat root 4096 Jan 31 18:09 .
      drwxrwsr-x. 1 tomcat root   88 Dec 21 12:15 ..
      drwxrwsr-x. 1 tomcat root   89 Dec 21 12:15 bin
       drwxrwsr-x. 1 tomcat root 4096 Jan 31 18:07 classes
      drwxrwsr-x. 1 tomcat root   23 Dec 21 12:15 conf
      drwxr-sr-x. 2 root   root   50 Jan 31 18:09 ddlScripts
      -rwxrwsr-x. 1 tomcat root   14 Dec 21 12:14 .gitignore

      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: