search cancel

Unable to run adminTools

book

Article ID: 112574

calendar_today

Updated On:

Products

CA Infrastructure Management CA Performance Management - Usage and Administration

Issue/Introduction

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' 

Environment

Release:
Component: IMADMN

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.