Self-Solve Knowledge Search

Minimize Maximize
Network Node Manager i (NNMi) - Linux: Upgrade to version 9.20 is successful, bu...
Title :
Network Node Manager i (NNMi) - Linux: Upgrade to version 9.20 is successful, but install logs show a failure caused by " error=7, Argument list too long".
Document ID :
Product - Version:
network node manager 9.10 9.11 ;
OS :
Updated :
Fri Mar 13 12:47:01 GMT 2015
Summary :
On Linux systems, when NNMi version 9.10, at a patch level meeting the NNMi version 9.20 upgrade criteria, is upgraded to version 9.20, the operation is successful. However, install logs report a script execution failure at "opt/OV/newconfig/nms/9.20/installScripts/z-nnm-final-install.xml", caused by a "" which complains about an "Argument list too long" situation.

Install logs show the following messages:

Wednesday, April 17, 2013 7:47:26 PM GMT+00:00 - ERROR: Could not execute
Script failed: /opt/OV/newconfig/nms/9.20/installScripts/z-nnm-final-install.xml
at com.hp.ov.nms.installconfig.InstallConfigMain$
Caused by: /opt/OV/newconfig/nms/9.20/installScripts/z-nnm-final-install.xml:42: Execute failed: Cannot run program "chmod" (in directory "/opt/OV/newconfig/nms/9.20/installScripts"): error=7, Argument list too long
at com.hp.ov.nms.installconfig.core.AbstractAntStep.runAnt(
... 7 more
Caused by: Cannot run program "chmod" (in directory "/opt/OV/newconfig/nms/9.20/installScripts"): error=7, Argument list too long
at java.lang.ProcessBuilder.start(
... 20 more
Caused by: error=7, Argument list too long
at java.lang.UNIXProcess.<init>(
at java.lang.ProcessBuilder.start(
... 30 more

Wednesday, April 17, 2013 7:47:26 PM GMT+00:00 - ERROR: com.hp.ov.nms.installconfig.initializer.Install error:  Step 3 - ComponentInstallScriptStep


The message that points to the cause of this failure is:-
"Caused by: /opt/OV/newconfig/nms/9.20/installScripts/z-nnm-final-install.xml:42: Execute failed: Cannot run program "chmod" (in directory "/opt/OV/newconfig/nms/9.20/installScripts"): error=7, Argument list too long".
Given below is the block of text from lines 38 to 52 of the file "/opt/OV/newconfig/nms/9.20/installScripts/z-nnm-final-install.xml", with line number 42 highlighted in bold:-
<!--  /var/opt/OV/shared/nnm/databases/custompoller -->
        <chmod perm="2775">
            <dirset dir="${com.hp.ov.DataDir}/shared/nnm/databases/custompoller"/>
<chmod perm="664">
            <fileset dir="${com.hp.ov.DataDir}/shared/nnm/databases/custompoller"/>
        <chgrp file="${com.hp.ov.DataDir}/shared/nnm/databases/custompoller" group="nmsgrp">
            <dirset dir="${com.hp.ov.DataDir}/shared/nnm/databases/custompoller"/>
            <fileset dir="${com.hp.ov.DataDir}/shared/nnm/databases/custompoller"/>
        <chown file="${com.hp.ov.DataDir}/shared/nnm/databases/custompoller" owner="nmsproc">                      
            <dirset dir="${com.hp.ov.DataDir}/shared/nnm/databases/custompoller"/>
            <fileset dir="${com.hp.ov.DataDir}/shared/nnm/databases/custompoller"/>
A part of the upgrade process involves setting permissions on the directory "/var/opt/OV/shared/nnm/databases/custompoller", but in this case the set-permissions operation failed, because the chown command seemed to have gotten too many values in its arguments list. The reason is that under the "/var/opt/OV/shared/nnm/databases/custompoller" directory are 2 more directories:-
1. final
2. working
These 2 directories are the file dumps for all custom poller collections configured in the software, and at a point in time, they may contain thousands of "*.csv.gz" files.
The upgrade process's script tries to set permissions to this directory, and its sub-directories/files, using the chmod command.
However, the operation fails because chmod has kernel specific limits on how many files it can change permissions for, at one go.


In a situation when such messages are encountered in the install-upgrade logs, simply set the user and group permissions manually for the custompoller directory:-
#chown -R nmsproc /var/opt/OV/shared/nnm/databases/custompoller
#chgrp -R nmsgrp /var/opt/OV/shared/nnm/databases/custompoller
By default, the directory permissions for the "/var/opt/OV/shared/nnm/databases/custompoller" directory, and its "final" and "working" sub-directories are as follows:-
>>For the custompoller directory:-
# pwd
# ll
total 40
drwxrwsr-x  3 nmsproc  nmsgrp 4096 Feb  7 08:24 custompoller

>>For the final and working directories:
# pwd
# ll
drwxrwxrwx 2 nmsproc nmsgrp 28672 May  8 21:32 final
drwxrwxrwx 2 nmsproc nmsgrp  4096 Feb  7 08:24 working