You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by Artem Ervits <ar...@gmail.com> on 2015/05/04 15:09:13 UTC

Ambari 2.0 agent failure to install due to permission denied

Hello,

I am trying to upgrade an agent from 1.4.4 to 2.0.0-151. I am getting the
following error during install

Running Transaction
  Installing : ambari-agent-2.0.0-151.x86_64

                                                    1/1
/var/tmp/rpm-tmp.viOzTf: line 31: /var/lib/ambari-agent/install-helper.sh:
Permission denied
  Verifying  : ambari-agent-2.0.0-151.x86_64

RHEL 6.5 machine. There are no new logs in /var/log/ambari-agent.

Re: Ambari 2.0 agent failure to install due to permission denied

Posted by Artem Ervits <ar...@gmail.com>.
I was able to fix the problem by following advice here:

http://hortonworks.com/community/forums/topic/ambari-server-upgrade-error-1-6-1-7-doc/

On Tue, May 5, 2015 at 3:26 PM, Artem Ervits <ar...@gmail.com> wrote:

> perhaps this can shed more light:
>
> ERROR: ambari-agent start failed. For more details, see
> /var/log/ambari-agent/ambari-agent.out:
> ====================
>     import hostname
>   File "/usr/lib/python2.6/site-packages/ambari_agent/hostname.py", line
> 24, in <module>
>     import AmbariConfig
>   File "/usr/lib/python2.6/site-packages/ambari_agent/AmbariConfig.py",
> line 24, in <module>
>     from NetUtil import NetUtil
>   File "/usr/lib/python2.6/site-packages/ambari_agent/NetUtil.py", line
> 22, in <module>
>     from HeartbeatHandlers import HeartbeatStopHandlers
>   File
> "/usr/lib/python2.6/site-packages/ambari_agent/HeartbeatHandlers.py", line
> 21, in <module>
>     from ambari_commons.exceptions import FatalException
> ImportError: No module named ambari_commons.exceptions
>
>
> On Mon, May 4, 2015 at 2:54 PM, Artem Ervits <ar...@gmail.com>
> wrote:
>
>> thanks Jun, results are the same if I use root and if I change permission
>> of install-helper.sh and run yum reinstall, it will overwrite permissions
>> to the original. Where would the logs be?
>>
>> On Mon, May 4, 2015 at 2:41 PM, jun aoki <ja...@apache.org> wrote:
>>
>>> Hi Artem,
>>>
>>> Not knowing too much background context, I'd start to check the user you
>>> use for the agent upgrade (yum upgrade??) and the permission of
>>>  /var/lib/ambari-agent/install-helper.sh, and use root to see if it
>>> works.
>>>
>>> If you are using yum to upgrade, the log won't be in
>>> /var/log/ambari-agent
>>>
>>> On Mon, May 4, 2015 at 6:09 AM, Artem Ervits <ar...@gmail.com>
>>> wrote:
>>>
>>>> Hello,
>>>>
>>>> I am trying to upgrade an agent from 1.4.4 to 2.0.0-151. I am getting
>>>> the following error during install
>>>>
>>>> Running Transaction
>>>>   Installing : ambari-agent-2.0.0-151.x86_64
>>>>
>>>>                                                         1/1
>>>> /var/tmp/rpm-tmp.viOzTf: line 31:
>>>> /var/lib/ambari-agent/install-helper.sh: Permission denied
>>>>   Verifying  : ambari-agent-2.0.0-151.x86_64
>>>>
>>>> RHEL 6.5 machine. There are no new logs in /var/log/ambari-agent.
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> -jun
>>>
>>
>>
>

Re: Ambari 2.0 agent failure to install due to permission denied

Posted by Artem Ervits <ar...@gmail.com>.
perhaps this can shed more light:

ERROR: ambari-agent start failed. For more details, see
/var/log/ambari-agent/ambari-agent.out:
====================
    import hostname
  File "/usr/lib/python2.6/site-packages/ambari_agent/hostname.py", line
24, in <module>
    import AmbariConfig
  File "/usr/lib/python2.6/site-packages/ambari_agent/AmbariConfig.py",
line 24, in <module>
    from NetUtil import NetUtil
  File "/usr/lib/python2.6/site-packages/ambari_agent/NetUtil.py", line 22,
in <module>
    from HeartbeatHandlers import HeartbeatStopHandlers
  File
"/usr/lib/python2.6/site-packages/ambari_agent/HeartbeatHandlers.py", line
21, in <module>
    from ambari_commons.exceptions import FatalException
ImportError: No module named ambari_commons.exceptions


On Mon, May 4, 2015 at 2:54 PM, Artem Ervits <ar...@gmail.com> wrote:

> thanks Jun, results are the same if I use root and if I change permission
> of install-helper.sh and run yum reinstall, it will overwrite permissions
> to the original. Where would the logs be?
>
> On Mon, May 4, 2015 at 2:41 PM, jun aoki <ja...@apache.org> wrote:
>
>> Hi Artem,
>>
>> Not knowing too much background context, I'd start to check the user you
>> use for the agent upgrade (yum upgrade??) and the permission of
>>  /var/lib/ambari-agent/install-helper.sh, and use root to see if it
>> works.
>>
>> If you are using yum to upgrade, the log won't be in
>> /var/log/ambari-agent
>>
>> On Mon, May 4, 2015 at 6:09 AM, Artem Ervits <ar...@gmail.com>
>> wrote:
>>
>>> Hello,
>>>
>>> I am trying to upgrade an agent from 1.4.4 to 2.0.0-151. I am getting
>>> the following error during install
>>>
>>> Running Transaction
>>>   Installing : ambari-agent-2.0.0-151.x86_64
>>>
>>>                                                       1/1
>>> /var/tmp/rpm-tmp.viOzTf: line 31:
>>> /var/lib/ambari-agent/install-helper.sh: Permission denied
>>>   Verifying  : ambari-agent-2.0.0-151.x86_64
>>>
>>> RHEL 6.5 machine. There are no new logs in /var/log/ambari-agent.
>>>
>>>
>>>
>>
>>
>> --
>> -jun
>>
>
>

Re: Ambari 2.0 agent failure to install due to permission denied

Posted by Artem Ervits <ar...@gmail.com>.
thanks Jun, results are the same if I use root and if I change permission
of install-helper.sh and run yum reinstall, it will overwrite permissions
to the original. Where would the logs be?

On Mon, May 4, 2015 at 2:41 PM, jun aoki <ja...@apache.org> wrote:

> Hi Artem,
>
> Not knowing too much background context, I'd start to check the user you
> use for the agent upgrade (yum upgrade??) and the permission of
>  /var/lib/ambari-agent/install-helper.sh, and use root to see if it works.
>
> If you are using yum to upgrade, the log won't be in /var/log/ambari-agent
>
> On Mon, May 4, 2015 at 6:09 AM, Artem Ervits <ar...@gmail.com>
> wrote:
>
>> Hello,
>>
>> I am trying to upgrade an agent from 1.4.4 to 2.0.0-151. I am getting the
>> following error during install
>>
>> Running Transaction
>>   Installing : ambari-agent-2.0.0-151.x86_64
>>
>>                                                       1/1
>> /var/tmp/rpm-tmp.viOzTf: line 31:
>> /var/lib/ambari-agent/install-helper.sh: Permission denied
>>   Verifying  : ambari-agent-2.0.0-151.x86_64
>>
>> RHEL 6.5 machine. There are no new logs in /var/log/ambari-agent.
>>
>>
>>
>
>
> --
> -jun
>

Re: Ambari 2.0 agent failure to install due to permission denied

Posted by jun aoki <ja...@apache.org>.
Hi Artem,

Not knowing too much background context, I'd start to check the user you
use for the agent upgrade (yum upgrade??) and the permission of
 /var/lib/ambari-agent/install-helper.sh, and use root to see if it works.

If you are using yum to upgrade, the log won't be in /var/log/ambari-agent

On Mon, May 4, 2015 at 6:09 AM, Artem Ervits <ar...@gmail.com> wrote:

> Hello,
>
> I am trying to upgrade an agent from 1.4.4 to 2.0.0-151. I am getting the
> following error during install
>
> Running Transaction
>   Installing : ambari-agent-2.0.0-151.x86_64
>
>                                                     1/1
> /var/tmp/rpm-tmp.viOzTf: line 31: /var/lib/ambari-agent/install-helper.sh:
> Permission denied
>   Verifying  : ambari-agent-2.0.0-151.x86_64
>
> RHEL 6.5 machine. There are no new logs in /var/log/ambari-agent.
>
>
>


-- 
-jun