Patches for SLE10 -- can't find EDR_DownloadMapping.txt

(imported topic written by drynne91)

Hi

Have been using ‘Patches for SuSE Enterprise’ to patch some SLES 10 SP3 boxes. However that doesn’t appear to support SLES10SP4 from what I can see so I removed that site in the license option and enabled ‘Patches for SLE10’ (‘Patches for SuSE Enterprise’ does not reappear as an available site in the license section so I presume it’s been depreciated). Then unregistered/reregistered the Download Plug-in for SUSE Enterprise Linux (not sure if that was necessary but better safe than sorry). Anyway I see I can see all the available patches against the different SP3 / SP4 clients but when I try to deploy any of these I see something similar to:

Command succeeded (Exit Code=2) wait sh “/var/opt/BESClient/__BESData/Patches for SLE10/InstallPackages.sh” -f 110929007 -c “rpm -U” -e “/var/opt/BESClient/__BESData/Patches for SLE10” -p “/var/opt/BESClient/__BESData/Patches for SLE10/__Download” -l “/var/opt/BESClient/__BESData/Patches for SLE10/…/…/EDRDeployData” (fixlet 4091)

in the log file on the client and it then logs as being not relevant. Some quick further debugging shows:

root@sles10sp4# sh -x “/var/opt/BESClient/__BESData/Patches for SLE10/InstallPackages.sh” -f 110929007 -c “rpm -U” -e “/var/opt/BESClient/__BESData/Patches for SLE10” -p “/var/opt/BESClient/__BESData/Patches for SLE10/__Download” -l “/var/opt/BESClient/__BESData/Patches for SLE10/…/…/EDRDeployData”

  • VERSION=0.9

  • tflag=

  • nflag=

  • fflag=

  • cflag=

  • eflag=

  • pflag=

  • lflag=

  • TEST_STRING=

  • FIXLET_ID=

  • COMMAND=

  • EDR_DIR=

  • PKG_DIR=

  • LOG_DIR=

  • getopts tnf:c:e:p:l: name

  • case $name in

  • fflag=1

  • FIXLET_ID=110929007

  • getopts tnf:c:e:p:l: name

  • case $name in

  • cflag=1

  • COMMAND=‘rpm -U’

  • getopts tnf:c:e:p:l: name

  • case $name in

  • eflag=1

  • EDR_DIR=’/var/opt/BESClient/__BESData/Patches for SLE10’

  • getopts tnf:c:e:p:l: name

  • case $name in

  • pflag=1

  • PKG_DIR=’/var/opt/BESClient/__BESData/Patches for SLE10/__Download’

  • getopts tnf:c:e:p:l: name

  • case $name in

  • lflag=1

  • LOG_DIR=’/var/opt/BESClient/__BESData/Patches for SLE10/…/…/EDRDeployData’

  • getopts tnf:c:e:p:l: name

  • ‘’

++ echo 11-1

++ bc

  • shift 10

  • PACKAGES=

  • ‘’

  • tail -n 10000 ‘/var/opt/BESClient/__BESData/Patches for SLE10/…/…/EDRDeployData/EDR_DeploymentResults.txt’

  • mv ‘/var/opt/BESClient/__BESData/Patches for SLE10/…/…/EDRDeployData/EDR_DeploymentResults.txt.tmp’ ‘/var/opt/BESClient/__BESData/Patches for SLE10/…/…/EDRDeployData/EDR_DeploymentResults.txt’

  • checkExists DIR ‘/var/opt/BESClient/__BESData/Patches for SLE10’

  • ‘’

  • ‘’

  • ‘’

  • checkExists DIR ‘/var/opt/BESClient/__BESData/Patches for SLE10/__Download’

  • ‘’

  • ‘’

  • ‘’

  • checkExists FILE ‘/var/opt/BESClient/__BESData/Patches for SLE10/EDR_DownloadMapping.txt’

  • ‘’

  • ‘’

++ date

  • echo ‘’ 110929007 InstallPackages Error: Cannot find file /var/opt/BESClient/__BESData/Patches for SLE10/EDR_DownloadMapping.txt

  • exit 2

So the file EDR_DownloadMapping.txt is missing which is causing InstallPackages.sh to fail.

Any ideas what I’m doing wrong here ? Probably something very simple but can’t figure out what.

Thanks

(imported comment written by rheng)

Can you report back the contents of the log found in this directory?

/var/opt/BESClient/EDRDeployData

Also, running the shell command outside the action context will always result in an error. The first steps of the action create files (like EDR_DownloadMapping.txt) that are passed in as inputs to the final shell script. Without running these prerequisite commands, the final script will fail.

(imported comment written by drynne91)

In that dir there’s a file EDR_DeploymentResults.txt which contains log lines showing:

Cannot find file /var/opt/BESClient/__BESData/Patches for SLE10/EDR_DownloadMapping.txt

and

Cannot find file /var/opt/BESClient/__BESData/actionsite/EDR_DownloadMapping.txt

Thanks

(imported comment written by rheng)

The sites have been updated to write more descriptive errors to the logs. Please gather the latest versions of the Patches for SLE sites, run the problematic fixlet, and report back with the error in EDR_DeploymentResults.txt.