Highlighted
Absent Member.. GTrejos7 Absent Member..
Absent Member..
83 views

[Support Tip] "Warning Object not found" in AdminUi when selecting a particular task



PROBLEM:

AdminUI under the “Server part” when selecting “Task Logs”
We get a faulty response.
Warning
Object not found

The error log shows:

Error listing files for alias tasklogs
com.bes.itm.comp.path.FileException: Error listing files for alias tasklogs
...
...
...
Caused by: java.io.FileNotFoundException: logs/task/log_distribute_rdfd6cb4z2.xml (Too many open files)
...
...





CAUSE:


The max amount of open files for a process-user is defined by the nofiles which can be set or retrieved with "ulimit -n". In this case there is a soft and hard limit set to 1024:

[root@lx306046 ~]# ulimit -Hn
1024
[root@lx306046 ~]# ulimit -Sn
1024




SOLUTION:


The number of open files for the adminui process needs to be verified. This could be verified with the following steps:


1. Get the adminUI process ID (PID):
#ovc -status adminui
adminui     OMU Administration UI Server        SERVER,OPC,UI (3073)   Running

2. Use the lsof command (list open files) to get the number of open file descriptors for the PID of the adminui:
#lsof -p 3073 | head -10
COMMAND  PID USER   FD   TYPE             DEVICE SIZE/OFF       NODE NAME
java    3073 root  cwd    DIR              253,8     4096          2 /opt/OV/OMU/adminUI
java    3073 root  rtd    DIR                8,3     4096          2 /
java    3073 root  txt    REG              253,1     7750        222 /opt/OV/nonOV/jre/b/bin/java
java    3073 root  mem    REG                8,3   156912     131506 /lib64/ld-2.12.so
java    3073 root  mem    REG                8,3    22536     131514 /lib64/libdl-2.12.so
java    3073 root  mem    REG                8,3  1922152     131508 /lib64/libc-2.12.so
java    3073 root  mem    REG                8,3   145720     131511 /lib64/libpthread-2.12.so
java    3073 root  mem    REG                8,3   598680     131517 /lib64/libm-2.12.so
...
...
...

The list would be quite long. Now filter out of the output the first title line and then count the number of lines

3. You can filter top or bottom lines from the output with "tail":
#lsof -p 3073 | tail -n +2
java    3073 root  cwd    DIR              253,8     4096          2 /opt/OV/OMU/adminUI
java    3073 root  rtd    DIR                8,3     4096          2 /
java    3073 root  txt    REG              253,1     7750        222 /opt/OV/nonOV/jre/b/bin/java
java    3073 root  mem    REG                8,3   156912     131506 /lib64/ld-2.12.so
java    3073 root  mem    REG                8,3    22536     131514 /lib64/libdl-2.12.so
java    3073 root  mem    REG                8,3  1922152     131508 /lib64/libc-2.12.so
java    3073 root  mem    REG                8,3   145720     131511 /lib64/libpthread-2.12.so
java    3073 root  mem    REG                8,3   598680     131517 /lib64/libm-2.12.so
java    3073 root  mem    REG                8,3    47064     131512 /lib64/librt-2.12.so
java    3073 root  mem    REG                8,3   113952     131526 /lib64/libresolv-2.12.so
...
...
...

4. Finally count the number of lines using "wc" (see man pages). This will be quite a good approximate of the number of open files that the adminui process has:
#lsof -p 3073 | tail -n +2 | wc -l


This will show if the adminui would be approaching the limit of open files comparing to the output of the commands ("ulimit -Hn" and "ulimit -Sn" shown above)  

The solution that could be suggested would be to either modify the system default limits (/etc/security/limits.conf), modify the root user profile to increase with "ulimit -n 2048" or
either uncomment the following line in the /opt/OV/OMU/adminUI/midas_env.sh file:

 cat /opt/OV/OMU/adminUI/midas_env.sh
#
# set environment
#
# this is the JDK used by MIDAS, usually the bundled one
JAVA_HOME="/opt/OV/OMU/adminUI/jre"
export JAVA_HOME
# for OMU setup only
ORACLE_HOME="/opt/oracle/product/11.2.0"
export ORACLE_HOME
# required for pserver authentication for CVS
CVSBIN="[cvsbin]"
export CVSBIN
# MIDAS home directory for all scripts
MIDAS_HOME="/opt/OV/OMU/adminUI"
export MIDAS_HOME

PATH="$PATH:$MIDAS_HOME/bin"
export PATH

# default locale for the encoding only
# on OMU backend must be compatible with internal codeset
LC_CTYPE=en_US.utf8
export LC_CTYPE

# set for SSH agent (e.g. OM agent installation)
#SSH_AGENT_PID=
#export SSH_AGENT_PID
#SSH_AUTH_SOCK=
#export SSH_AUTH_SOCK

# set number of open files to 2K
# needs root rights
#ulimit -n 2024   --> uncomment this line

# eof


The last option will set limit before starting up the adminui. Do the modification and then restart the process.
This should solve the error shown.


HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
If you liked it I would appreciate KUDOs.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.