Troubleshooting
Problem
A command to do a manual DSM or protocol RPM installation produces these errors:
cp: cannot create regular file ‘/templates/’: Not a directory
Error: "Execution Failed of :cp iteam_functions.sh /templates/:", exiting
warning: %post(DSM-xxxx-0:7.5-20230xxxx.noarch) scriptlet failed, exit status 255
The installation might or might not fail. However, when the error occurs, there are problems with the RPM installation that need to be fixed.
Cause
The problem is caused by running the "yum -y install xxx.rpm" command with incorrect permissions.
Diagnosing The Problem
To determine whether the rpm file is installed, run command
rpm -qa | grep -i <RPM name without the date>
For example,
rpm -qa | grep -i DSM-VmWareVCenter
If one entry is returned, remove the DSM with command
yum erase <DSM full name.noarch>
For example,
yum erase DSM-VmWareVCenter-7.5-20230802094710.noarch
If 2 or more entries are returned, remove the DSM with command
rpm -e --allmatches --nodeps --noscripts --notriggers <RPM name without the date>
For example,
rpm -e --allmatches --nodeps --noscripts --notriggers DSM-VmWareVCenter
Resolving The Problem
1. Before reinstallation of the RPMs, switch to the root user by running command
sudo su -
2. Switch to the directory that contains the RPM installation files. For example,
cd /storetmp
3. Then, install the RPM:
yum -y install <RPM name>.rpm
If you need more assistance, contact support
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB24","label":"Security Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSV4BL","label":"IBM QRadar"},"ARM Category":[{"code":"a8m0z000000cwtDAAQ","label":"Auto Update"}],"ARM Case Number":"TS014165797","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]
Was this topic helpful?
Document Information
Modified date:
21 September 2023
UID
ibm17034436