[
https://issues.apache.org/jira/browse/AMBARI-12583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nahappan Somasundaram reassigned AMBARI-12583:
----------------------------------------------
Assignee: Nahappan Somasundaram
> When ambari.repo has insufficient permissions for non-root ambari-server to
> read failure messages are confusing
> ---------------------------------------------------------------------------------------------------------------
>
> Key: AMBARI-12583
> URL: https://issues.apache.org/jira/browse/AMBARI-12583
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.1.0
> Reporter: Nahappan Somasundaram
> Assignee: Nahappan Somasundaram
> Fix For: 2.2.0
>
>
> *STR*
> # run "ambari-server setup" and configure ambari to use not default user
> {code}Customize user account for ambari-server daemon [y/n] (n)? y
> Enter user account for ambari-server daemon (root):ambariuser{code}
> # run "ambari-server start"
> # navigate through install wizard to "Confirm Hosts" step
> *ER* hosts confirmation succeed
> *AR* Hosts registration failed
> {code}==========================
> Creating target directory...
> ==========================
> Command start time 2015-06-18 13:45:28
> Connection to c6401.ambari.apache.org closed.
> SSH command execution finished
> host=c6401.ambari.apache.org, exitcode=0
> Command end time 2015-06-18 13:45:29
> ==========================
> Copying common functions script...
> ==========================
> Command start time 2015-06-18 13:45:29
> scp /usr/lib/python2.6/site-packages/ambari_commons
> host=c6401.ambari.apache.org, exitcode=0
> Command end time 2015-06-18 13:45:29
> ==========================
> Copying OS type check script...
> ==========================
> Command start time 2015-06-18 13:45:29
> scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
> host=c6401.ambari.apache.org, exitcode=0
> Command end time 2015-06-18 13:45:29
> ==========================
> Running OS type check...
> ==========================
> Command start time 2015-06-18 13:45:29
> Cluster primary/cluster OS family is redhat6 and local/current OS family is
> redhat6
> Connection to c6401.ambari.apache.org closed.
> SSH command execution finished
> host=c6401.ambari.apache.org, exitcode=0
> Command end time 2015-06-18 13:45:29
> ==========================
> Checking 'sudo' package on remote host...
> ==========================
> Command start time 2015-06-18 13:45:29
> sudo-1.8.6p3-7.el6.x86_64
> Connection to c6401.ambari.apache.org closed.
> SSH command execution finished
> host=c6401.ambari.apache.org, exitcode=0
> Command end time 2015-06-18 13:45:29
> ==========================
> Copying repo file to 'tmp' folder...
> ==========================
> Command start time 2015-06-18 13:45:29
> /etc/yum.repos.d/ambari.repo: Permission denied
> scp /etc/yum.repos.d/ambari.repo
> host=c6401.ambari.apache.org, exitcode=1
> Command end time 2015-06-18 13:45:29
> ==========================
> Moving file to repo dir...
> ==========================
> Command start time 2015-06-18 13:45:29
> mv: cannot stat `/var/lib/ambari-agent/data/tmp/ambari1434635129.repo': No
> such file or directory
> Connection to c6401.ambari.apache.org closed.
> SSH command execution finished
> host=c6401.ambari.apache.org, exitcode=1
> Command end time 2015-06-18 13:45:29
> ==========================
> Copying setup script file...
> ==========================
> Command start time 2015-06-18 13:45:29
> scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
> host=c6401.ambari.apache.org, exitcode=0
> Command end time 2015-06-18 13:45:30
> ERROR: Bootstrap of host c6401.ambari.apache.org fails because previous
> action finished with non-zero exit code (1)
> ERROR MESSAGE: Execute of '<bound method BootstrapDefault.copyNeededFiles of
> <BootstrapDefault(Thread-1, started daemon 140695872956160)>>' failed
> STDOUT: Try to execute '<bound method BootstrapDefault.copyNeededFiles of
> <BootstrapDefault(Thread-1, started daemon 140695872956160)>>'{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)