Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5034435

s10_57 problem with SUNWj5rt with upgrade and diskless client setup.

XMLWordPrintable

    • b57
    • generic, sparc
    • solaris_10
    • Verified

      ###@###.### 2004-04-20

      SUNWj5rt package upgrade failed during my sparc upgrade:
      German (iso-15) DSR Suninstall upgrade from S9U4 to s10_57. I used separated net images, installed Entire+OEM cluster.

      This does not seem to be German locale related error. The error message from upgrade_log says (see attachement upgrade_log_2004_04_19 for details):

      ...
      pkgadd von SUNWj5rt bis / wird durchgeführt.
      161940 blocks
      /a/var/sadm/pkg/SUNWj5rt/install/postinstall: /a/usr/share/gnome/mime-info/java-
      archive.keys: cannot create
      pkgadd: ERROR: postinstall script did not complete successfully

      Installation of <SUNWj5rt> failed.
      pkgadd-Rückgabecode = 1
      ...


      ###@###.### 2004-04-20

      The Java 1.5.0 b45 that were integrated into s10_57 had issues with SUNWj5rt. Besides upgrade failures, there were also diskless client setup failures and this is a regression from s10_56.

      In s10_57, due to bugid 5033546, I had to switch the /usr/java link to Java 1.4.2 before I can run smosservices. I tried to add the s10_57 sun4u service on s10_57 sparc machine and got the following falure:

      # /usr/sadm/bin/smosservice add -H line2-e250:898 -u root -p ins123 -- -o line2-e250 -x mediapath=/net/ins3525-svr/export/s10/combined.s10s_wos/latest -x platform=sparc.sun4u.Solaris_10 -x cluster=SUNWCXall -x locale=en_US,ar,ru_RU,tr_TR,ca_ES,es,es_ES,it,it_IT,de,de_DE,fr,fr_FR,sv,sv_SE,en_US.UTF-8,pt_BR,he,ja,ja_JP.PCK,ja_JP.UTF-8,ko,ko.UTF-8,th_TH,th_TH.UTF-8,zh,zh.GBK,zh.UTF-8,zh_HK.BIG5HK,zh_HK.UTF-8,zh_TW,zh_TW.BIG5,zh_TW.UTF-8,hi_IN.UTF-8
      Loading Tool: com.sun.admin.osservermgr.cli.OsServerMgrCli from line2-e250:898
      Login to line2-e250 as user root was successful.
      Download of com.sun.admin.osservermgr.cli.OsServerMgrCli from line2-e250:898 was successful.
      Apr 19 20:13:10 line2-e250 WBEM_Logging_Service[562]: Failed to create clone area /export/root/clone/Solaris_10/sun4u.
      Failed to create clone area /export/root/clone/Solaris_10/sun4u.
      #

      When I checked the Solaris_10_sparc_sun4 log under /var/sadm/system/logs, the following installation error SUNWj5rt was logged:

      Doing pkgadd of SUNWj5rt to /export/Solaris_10.
      161940 blocks
      ln: cannot create /export/Solaris_10/usr/java: No such file or directory
      ln: cannot create /export/Solaris_10/usr/j2se: No such file or directory
      cp: cannot create /export/Solaris_10/usr/share/pixmaps/sun-java.png: No such fil
      e or directory
      /export/Solaris_10/var/sadm/pkg/SUNWj5rt/install/postinstall: /export/Solaris_10
      /usr/share/gnome/mime-info/java-archive.keys: cannot create
      pkgadd: ERROR: postinstall script did not complete successfully

      Installation of <SUNWj5rt> failed.
      pkgadd return code = 1


      This is a serious regression and must be fixed in s10_58.


      ###@###.### 2004-04-21

      The postinstall script had the following to associat with GNOME as follow:

      # check for GNOME
      $PKGINFO -q SUNWgnome-vfs-share
      if [ $? -eq 0 ]; then
          AssociateWithGNOME $default_flag application/java-archive jar java-archive "${BIN_JAVA} -jar" sun-java png "Java Archive"

          AssociateWithGNOME $default_flag application/x-java-jnlp-file jnlp java-web-start "${BIN_JAVAWS}" sun-java png "Java Web Start Application"
      fi


      So far in the testing, the script will fail if SUNWgnome-vfs-share exists. There seems to be a problem with AssociateWtihGNOME subroutine.

      This is from s10_57 sun4u diskless client setup that had issues:

      + pkginfo -R /export/Solaris_10 -q SUNWgnome-vfs-share
      + [ 0 -eq 0 ]
      + AssociateWithGNOME true application/java-archive jar java-archive /usr/bin/jav
      a -jar sun-java png Java Archive
      _default_flag=true
      _mime_type=application/java-archive
      _extension=jar
      _name=java-archive
      _command=/usr/bin/java -jar
      _icon=sun-java
      _icon_ext=png
      _description=Java Archive
      + [ true = true -o ! -f /export/Solaris_10/usr/share/pixmaps/sun-java.png -o ! -
      f /export/Solaris_10/usr/share/icons/HighContrast/48x48/apps/sun-java.png -o ! -
      f /export/Solaris_10/usr/share/icons/HighContrastInverse/48x48/apps/sun-java.png
       -o ! -f /export/Solaris_10/usr/share/icons/LowContrast/48x48/apps/sun-java.png
      ]
      + mkdir -p /export/Solaris_10/usr/share/icons/HighContrast/48x48/apps
      + mkdir -p /export/Solaris_10/usr/share/icons/HighContrastInverse/48x48/apps
      + mkdir -p /export/Solaris_10/usr/share/icons/LowContrast/48x48/apps
      + cp /export/Solaris_10/usr_sparc.all/usr/jdk/j2sdk1.5.0/jre/lib/images/icons/su
      n-java.png /export/Solaris_10/usr/share/pixmaps/sun-java.png
      cp: cannot create /export/Solaris_10/usr/share/pixmaps/sun-java.png: No such fil
      e or directory
      + installf -R /export/Solaris_10 -c none SUNWj5rt /export/Solaris_10/usr/share/p
      ixmaps/sun-java.png f 0644 root other
      + cp /export/Solaris_10/usr_sparc.all/usr/jdk/j2sdk1.5.0/jre/lib/images/icons/su
      n-java_HighContrast.png /export/Solaris_10/usr/share/icons/HighContrast/48x48/ap
      ps/sun-java.png
      + installf -R /export/Solaris_10 -c none SUNWj5rt /export/Solaris_10/usr/share/i
      cons/HighContrast/48x48/apps/sun-java.png f 0644 root other
      + cp /export/Solaris_10/usr_sparc.all/usr/jdk/j2sdk1.5.0/jre/lib/images/icons/su
      n-java_HighContrastInverse.png /export/Solaris_10/usr/share/icons/HighContrastIn
      verse/48x48/apps/sun-java.png
      + installf -R /export/Solaris_10 -c none SUNWj5rt /export/Solaris_10/usr/share/i
      cons/HighContrastInverse/48x48/apps/sun-java.png f 0644 root other
      + cp /export/Solaris_10/usr_sparc.all/usr/jdk/j2sdk1.5.0/jre/lib/images/icons/su
      n-java_LowContrast.png /export/Solaris_10/usr/share/icons/LowContrast/48x48/apps
      /sun-java.png
      + installf -R /export/Solaris_10 -c none SUNWj5rt /export/Solaris_10/usr/share/i
      cons/LowContrast/48x48/apps/sun-java.png f 0644 root other
      GNOME_KEYS_FILE=/export/Solaris_10/usr/share/gnome/mime-info/java-archive.keys
      GNOME_MIME_FILE=/export/Solaris_10/usr/share/gnome/mime-info/java-archive.mime
      GNOME_APPS_FILE=/export/Solaris_10/usr/share/gnome/application-registry/java-arc
      hive.applications
      + [ true = true -o ! -f /export/Solaris_10/usr/share/gnome/mime-info/java-archiv
      e.keys -o ! -f /export/Solaris_10/usr/share/gnome/mime-info/java-archive.mime -o
       ! -f /export/Solaris_10/usr/share/gnome/application-registry/java-archive.appli
      cations ]
      + echo application/java-archive
      /export/Solaris_10/var/sadm/pkg/SUNWj5rt/install/postinstall: /export/Solaris_10
      /usr/share/gnome/mime-info/java-archive.keys: cannot create
      pkgadd: ERROR: postinstall script did not complete successfully

      Installation of <SUNWj5rt> failed.


      In the case of x86 diskless client, the Associate with GNOME is skipped as follow:

      + pkginfo -R /export/Solaris_10 -q SUNWgnome-vfs-share
      + [ 1 -eq 0 ]
      CURRENT_INSTALLDIR=/export/Solaris_10/usr_i386.all/usr/jdk/j2sdk1.5.0
      + /export/Solaris_10/usr_i386.all/usr/jdk/j2sdk1.5.0/bin/java -client -Xshare:du
      mp
      + [ 0 -eq 0 ]
      + installf -R /export/Solaris_10 -c none SUNWj5rt /export/Solaris_10/usr_i386.al
      l/usr/jdk/j2sdk1.5.0/jre/lib/i386/client/classes.jsa
      + installf -R /export/Solaris_10 -f SUNWj5rt

      Installation of <SUNWj5rt> was successful.

      In the case of diskless client, the software that they were looking for are actually installed under the following directory for all SUNW_PKGTYPE=usr:

      sparc: /export/exec/Solaris_10_sparc.all
      x86: /export/exec/Solaris_10_i386.all/usr

            jkowalsksunw Joseph Kowalski (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: