Troubleshooting
Problem
oslevel could fail for non-root users with the below error $ oslevel oslevel: Error verifying cache. oslevel: Use the -f flag to rebuild cache. $ oslevel -f lslpp: A system error occurred while attempting to access the Software Vital Product Data. Use local problem reporting procedures. Although this usually occurs for non-root users it could also occur root user depending on the permissions of the ODM
Cause
The cause of this is usually a modified permission in one of the ODM database files, or could be an issue with the file /usr/bin/rm_mlcache_file.
Resolving The Problem
You will need to compare the permissions on the following directories as illustrated
correct permission of following directories and files under them:
# ls -ld /etc/objrepos
drwxr-xr-x 3 root system 4096 Apr 17 14:39 /etc/objrepos
# ls -ld /usr/lib/objrepos
drwxr-xr-x 2 root system 4096 Nov 4 2015 /usr/lib/objrepos
# ls -ld /usr/share/lib/objrepos
drwxr-xr-x 2 root system 256 Nov 4 2015 /usr/share/lib/objrepos
If the above permissions are not set correctly please run chmod on the directory as below
# chmod 755 <directory>
-in the /usr/lib/objrepos folder following files:
:
-rw-r--r-- 1 root system 245760 Oct 21 13:06 history
-rw-r--r-- 1 root system 4096 Oct 21 13:06 history.vc
-rw-r--r-- 1 root system 11264000 Oct 21 13:06 inventory
-rw-r--r-- 1 root system 258048 Oct 21 13:06 inventory.vc
-rw-r--r-- 1 root system 151552 Oct 21 13:06 lpp
-rw-r--r-- 1 root system 32768 Oct 21 13:06 lpp.vc
-rw-r--r-- 1 root system 327680 Oct 21 13:06 product
-rw-r--r-- 1 root system 245760 Oct 21 13:06 product.vc
-rw-r--r-- 1 root system 8192 May 11 11:46 vendor
-rw-r--r-- 1 root system 4096 May 11 11:46 vendor.vc
-rw-r--r-- 1 root system 2656 Nov 24 2011 vpd.properties
-in the /etc/objrepos folder:
-rw-r--r-- 1 root system 86016 Oct 21 13:11 history
-rw-r--r-- 1 root system 4096 Oct 21 13:11 history.vc
-rw-r--r-- 1 root system 1265664 Oct 21 13:11 inventory
-rw-r--r-- 1 root system 4096 Oct 21 13:11 inventory.vc
-rw-r--r-- 1 root system 53248 Oct 21 13:11 lpp
-rw-r--r-- 1 root system 12288 Oct 21 13:11 lpp.vc
-rw-r--r-- 1 root system 114688 Oct 21 13:11 product
-rw-r--r-- 1 root system 106496 Oct 21 13:11 product.vc
-in the /usr/share/lib/objrepos folder:
-rw-r--r-- 1 root system 4096 May 11 11:46 history
-rw-r--r-- 1 root system 4096 May 11 11:46 history.vc
-rw-r--r-- 1 root system 139264 May 11 11:46 inventory
-rw-r--r-- 1 root system 8192 May 11 11:46 inventory.vc
-rw-r--r-- 1 root system 4096 May 11 11:46 lpp
-rw-r--r-- 1 root system 4096 May 11 11:46 lpp.vc
-rw-r--r-- 1 root system 8192 May 11 11:46 product
-rw-r--r-- 1 root system 4096 May 11 11:46 product.vc
if any of the above is not set correctly please run the below command
# chmod 644 <filename>
In addition to the above you need to check the following file
- /usr/bin/rm_mlcache_file
This file should have the below permissions
# ls -l
-r-sr-xr-x 1 root system 14530 Nov 4 2015 /usr/bin/rm_mlcache_file
If the permissions are not set correctly run the below command
# chmod 4555 /usr/bin/rm_mlcache_file
If the owner of the file is not root then run the below command
# chown root /usr/bin/rm_mlcache_file
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
isg3T1025585