<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Postinstall script failing during swinstall, exit code 1 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/postinstall-script-failing-during-swinstall-exit-code-1/m-p/7051348#M491236</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've been handed the keys to some old legacy systems running HPUX 11.11.&amp;nbsp; I've been attempting to bring them all up to the same patch level, so I can get Ignite running.&amp;nbsp; These are old systems we're trying to get away from, but it'll take time.&amp;nbsp; In that time, we've had HDD's die and restoring them without an Ignite backup is a horror show.&lt;/P&gt;&lt;P&gt;Anyway, I'm using 'sam' to get into the Software Install, pointing it to the correct directory and after doing it's verification steps, it starts the install, only to get the same error over multiple packages:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ERROR:&amp;nbsp; The "postinstall" script for "PHKL_30310" failed (exit code "1").&amp;nbsp; The script location was:...&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;This happens repeatedly.&amp;nbsp; I'm logged in as root, but when I look at the contents of the location, I see all the files are -rw-rw-r--, including the postinstall script.&amp;nbsp; No executable bit is set for 'other'.&amp;nbsp; If I chmod the files to be executable by 'other', or chown root:sys and set the user bit executable, it continues on.&amp;nbsp; But it keeps happening!&amp;nbsp; Every package does this.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;srs057:/var/tmp/BAAa29924/catalog/PHKL_30310/pfiles# ls -la&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;total 96&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;drwxr-xr-x 2 root sys 96 Jun 19 14:04 .&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;drwxr-xr-x 6 root sys 96 Jun 19 14:04 ..&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-rw-rw-r-- 1 1000 1000 1106 Jun 19 14:04 INDEX&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-rw-rw-r-- 1 1000 1000 471 Jun 19 14:04 INFO&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-rw-rw-r-- 1 1000 1000 11643 Jun 19 14:04 README&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-rw-rw-r-- 1 1000 1000 3354 Jun 19 14:04 postinstall&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-rw-rw-r-- 1 1000 1000 2985 Jun 19 14:04 postremove&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The system I'm updating first is a clean install of HPUX 11i v1 from 2004.&amp;nbsp; It's the Ignite server.&amp;nbsp; The patches I'm installing are the 2008 patches.&amp;nbsp; Yes, it's old.&amp;nbsp; I'm working with what I have in hopes of making my life a little easier.&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2019 18:32:13 GMT</pubDate>
    <dc:creator>ColinMA_42</dc:creator>
    <dc:date>2019-06-19T18:32:13Z</dc:date>
    <item>
      <title>Postinstall script failing during swinstall, exit code 1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/postinstall-script-failing-during-swinstall-exit-code-1/m-p/7051348#M491236</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've been handed the keys to some old legacy systems running HPUX 11.11.&amp;nbsp; I've been attempting to bring them all up to the same patch level, so I can get Ignite running.&amp;nbsp; These are old systems we're trying to get away from, but it'll take time.&amp;nbsp; In that time, we've had HDD's die and restoring them without an Ignite backup is a horror show.&lt;/P&gt;&lt;P&gt;Anyway, I'm using 'sam' to get into the Software Install, pointing it to the correct directory and after doing it's verification steps, it starts the install, only to get the same error over multiple packages:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ERROR:&amp;nbsp; The "postinstall" script for "PHKL_30310" failed (exit code "1").&amp;nbsp; The script location was:...&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;This happens repeatedly.&amp;nbsp; I'm logged in as root, but when I look at the contents of the location, I see all the files are -rw-rw-r--, including the postinstall script.&amp;nbsp; No executable bit is set for 'other'.&amp;nbsp; If I chmod the files to be executable by 'other', or chown root:sys and set the user bit executable, it continues on.&amp;nbsp; But it keeps happening!&amp;nbsp; Every package does this.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;srs057:/var/tmp/BAAa29924/catalog/PHKL_30310/pfiles# ls -la&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;total 96&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;drwxr-xr-x 2 root sys 96 Jun 19 14:04 .&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;drwxr-xr-x 6 root sys 96 Jun 19 14:04 ..&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-rw-rw-r-- 1 1000 1000 1106 Jun 19 14:04 INDEX&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-rw-rw-r-- 1 1000 1000 471 Jun 19 14:04 INFO&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-rw-rw-r-- 1 1000 1000 11643 Jun 19 14:04 README&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-rw-rw-r-- 1 1000 1000 3354 Jun 19 14:04 postinstall&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-rw-rw-r-- 1 1000 1000 2985 Jun 19 14:04 postremove&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The system I'm updating first is a clean install of HPUX 11i v1 from 2004.&amp;nbsp; It's the Ignite server.&amp;nbsp; The patches I'm installing are the 2008 patches.&amp;nbsp; Yes, it's old.&amp;nbsp; I'm working with what I have in hopes of making my life a little easier.&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 18:32:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/postinstall-script-failing-during-swinstall-exit-code-1/m-p/7051348#M491236</guid>
      <dc:creator>ColinMA_42</dc:creator>
      <dc:date>2019-06-19T18:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Postinstall script failing during swinstall, exit code 1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/postinstall-script-failing-during-swinstall-exit-code-1/m-p/7051349#M491237</link>
      <description>&lt;P&gt;I will add that my changing the ownership of the patch directory to root:sys, changed the tmp files to be owned by root:sys, but the run permission is still missing, so the errors continue.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 06:44:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/postinstall-script-failing-during-swinstall-exit-code-1/m-p/7051349#M491237</guid>
      <dc:creator>ColinMA_42</dc:creator>
      <dc:date>2021-06-29T06:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Postinstall script failing during swinstall, exit code 1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/postinstall-script-failing-during-swinstall-exit-code-1/m-p/7051488#M491238</link>
      <description>&lt;P&gt;The error message doesn't seem to indicate that it couldn't execute the file, but that the return code was 1.&lt;/P&gt;&lt;P&gt;Have you looked at the contents of the postinstall script to see what might cause it to exist with a rc of 1? Is there a more detailed output log you can get (does the swinstall command not list a swjob command you can run for more details?)&lt;/P&gt;&lt;P&gt;Duncan&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 11:46:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/postinstall-script-failing-during-swinstall-exit-code-1/m-p/7051488#M491238</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2019-06-20T11:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Postinstall script failing during swinstall, exit code 1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/postinstall-script-failing-during-swinstall-exit-code-1/m-p/7051498#M491239</link>
      <description>&lt;P&gt;If I actually make the file executable, it installs without issue.&amp;nbsp; The exit code 1 in the file is here:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;UTILS="/usr/lbin/sw/control_utils"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;if [ ! -f $UTILS ]; then&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;echo "ERROR: Cannot find $UTILS"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;exit 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;fi&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This file exists and running a little one liner works:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;# if [ -f /usr/lbin/sw/control_utils ]; then echo "Found it!"; else echo "Missing."; fi&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Found it!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;When I exec the file as root:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;srs057:/var/tmp/BAAa03155/catalog/PHKL_30310/pfiles# ./postinstall&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;sh: ./postinstall: Execute permission denied.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This is consistent across most of the patch installs.&amp;nbsp; I've found a workaround, but it's definitely NOT ideal:&amp;nbsp; After swinstall has extracted all the files into /var/tmp and I get the first error:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;chown -R 667 /var/tmp/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This lets the installation continue without any issues, unless the checkinstall script fails.&amp;nbsp; I just noticed these ones in the logs.&amp;nbsp; Some packages can't even run the 'checkinstall', so they fail with no real way to recover them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 14:17:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/postinstall-script-failing-during-swinstall-exit-code-1/m-p/7051498#M491239</guid>
      <dc:creator>ColinMA_42</dc:creator>
      <dc:date>2019-06-20T14:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Postinstall script failing during swinstall, exit code 1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/postinstall-script-failing-during-swinstall-exit-code-1/m-p/7051584#M491240</link>
      <description>&lt;P&gt;what is roots umask set to when you run the swinstall?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I would have though that swinstall would override your umask anyway, but maybe not?)&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 14:23:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/postinstall-script-failing-during-swinstall-exit-code-1/m-p/7051584#M491240</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2021-06-24T14:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Postinstall script failing during swinstall, exit code 1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/postinstall-script-failing-during-swinstall-exit-code-1/m-p/7052165#M491243</link>
      <description>&lt;P&gt;The umask is 022.&lt;/P&gt;&lt;P&gt;So this all might come down to my lack of experience with HPUX.&amp;nbsp; I am a Linux admin by trade.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I downloaded a series of patches from HPe's site, and was of course given instructions to build a depot prior to installation.&amp;nbsp; Following this, the installation went off without a hitch.&amp;nbsp; I suppose this is the correct way to do things; create and upload an inventory.xml file and download all the patches, create a depot and install...&lt;/P&gt;&lt;P&gt;Is this my issue?&amp;nbsp; I've been dropping the GOLDQPK11i directories from DVD on an NFS share and attempting to install them from there...&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 14:49:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/postinstall-script-failing-during-swinstall-exit-code-1/m-p/7052165#M491243</guid>
      <dc:creator>ColinMA_42</dc:creator>
      <dc:date>2019-06-25T14:49:52Z</dc:date>
    </item>
  </channel>
</rss>

