Unable to run adminTools

Document ID : KB000112574
Last Modified Date : 30/08/2018
Show Technical Document Details
Issue:
When trying to run adminTools, the following happens:

$ /opt/vertica/bin/adminTools 
Traceback (most recent call last): 
File "/opt/vertica/bin/adminTools", line 7, in <module> 
AT.main() 
File "/opt/vertica/oss/python/lib/python2.7/site-packages/vertica/tools/ATMain.py", line 439, in main 
check_for_debug(options) 
File "/opt/vertica/oss/python/lib/python2.7/site-packages/vertica/tools/ATMain.py", line 291, in check_for_debug 
cfg = Configurator.Instance() 
File "/opt/vertica/oss/python/lib/python2.7/site-packages/vertica/config/Configurator.py", line 93, in Instance 
with FileLock( Configurator.confFile ): 
File "/opt/vertica/oss/python/lib/python2.7/site-packages/vertica/config/FileLocker.py", line 78, in __enter__ 
self.acquire() 
File "/opt/vertica/oss/python/lib/python2.7/site-packages/vertica/config/FileLocker.py", line 51, in acquire 
self.fd = os.open(self.lockfile, os.O_CREAT|os.O_EXCL|os.O_RDWR) 
OSError: [Errno 13] Permission denied: '/opt/vertica/config/admintools.conf.lock' 
Cause:
Check the file system permissions in /opt/vertica and its sub directories.  It is likely that the permissions have been changed to not allow the database owner user to run the command..
Resolution:
Ensure the permissions are like so:

lrwxrwxrwx 1 root root        10 Jun 28 13:20 admintools -> adminTools

Also ensure the lock file mentioned can be removed by the database owner user as well.