incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmytro Shkvyra (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-3631) traceback when attempting to stop ambari-agent as non-root
Date Wed, 30 Oct 2013 18:37:27 GMT
Dmytro Shkvyra created AMBARI-3631:
--------------------------------------

             Summary: traceback when attempting to stop ambari-agent as non-root
                 Key: AMBARI-3631
                 URL: https://issues.apache.org/jira/browse/AMBARI-3631
             Project: Ambari
          Issue Type: Bug
          Components: agent
    Affects Versions: 1.4.2
            Reporter: Dmytro Shkvyra
             Fix For: 1.5.0


I attempted to stop the ambari-agent without going to root first. Prints a pretty bad traceback.
[vagrant@c6403 ~]$ ambari-agent stop
/usr/sbin/ambari-agent: line 66: /var/lib/ambari-agent/ambari-env.sh: Permission denied
Verifying Python version compatibility...
Using python /usr/bin/python2.6
Found ambari-agent PID: 2996
Stopping ambari-agent
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 235, in <module>
main()
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 190, in main
setup_logging(options.verbose)
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 73, in setup_logging
rotateLog = logging.handlers.RotatingFileHandler(logfile, "a", 10000000, 25)
File "/usr/lib64/python2.6/logging/handlers.py", line 112, in _init_
BaseRotatingHandler._init_(self, filename, mode, encoding, delay)
File "/usr/lib64/python2.6/logging/handlers.py", line 64, in _init_
logging.FileHandler._init_(self, filename, mode, encoding, delay)
File "/usr/lib64/python2.6/logging/_init.py", line 827, in __init_
StreamHandler._init_(self, self._open())
File "/usr/lib64/python2.6/logging/_init_.py", line 846, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/var/log/ambari-agent/ambari-agent.log'
Removing PID file at /var/run/ambari-agent/ambari-agent.pid
rm: cannot remove `/var/run/ambari-agent/ambari-agent.pid': Permission denied
ambari-agent successfully stopped



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message