You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2017/03/15 14:34:41 UTC
[jira] [Updated] (AMBARI-20460) ambari-server restart --debug
giving "su: cannot open session: Permission denied"
[ https://issues.apache.org/jira/browse/AMBARI-20460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Onischuk updated AMBARI-20460:
-------------------------------------
Status: Patch Available (was: Open)
> ambari-server restart --debug giving "su: cannot open session: Permission denied"
> ---------------------------------------------------------------------------------
>
> Key: AMBARI-20460
> URL: https://issues.apache.org/jira/browse/AMBARI-20460
> Project: Ambari
> Issue Type: Bug
> Reporter: Andrew Onischuk
> Assignee: Andrew Onischuk
> Fix For: 2.5.0
>
> Attachments: AMBARI-20460.patch
>
>
> The jenkins job is as follows : <http://linux-
> jenkins.qe.hortonworks.com:8080/job/Nightly-Start-EC2-Run-HDP/407827/>
> STR :
> 1) Execute "ambari-server setup-ldap"
> 2) Once LDAP setup goes through fine, call "ambari-server restart --debug "
> The following error pops up :
>
>
>
> /usr/lib64/python2.7/getpass.py:83: GetPassWarning: Can not control echo on the terminal.
> passwd = fallback_getpass(prompt, stream)
> Warning: Password input may be echoed.
> Enter Manager Password* :
> Warning: Password input may be echoed.
> Re-enter password:
>
> [EXIT CODE]
> 0
> 2017-02-28 04:13:39,529 INFO com.hw.ambari.ui.util.cluster_managers.LDAPClusterManager.ambariServerSetupLDAP():
> Ambari server LDAPS setup process ended
>
> 2017-02-28 04:13:39,529 INFO com.hw.ambari.ui.util.cluster_managers.AmbariManager.getStartAmbariServerCommand(): Trying to restart Ambari server ...
> 2017-02-28 04:13:39,530 DEBUG com.hw.ambari.ui.util.cluster_managers.CommandExecutor.executeCommandSequence(): Sending commands to host [ctr-e129-1487033772569-27178-01-000003.hwx.site]:
> 2017-02-28 04:13:39,530 DEBUG com.hw.ambari.ui.util.cluster_managers.CommandExecutor.executeCommandSequence(): Sending command [export AMBARI_JVM_ARGS="-Xms512m -Xmx2048m -XX:PermSize=1024m -XX:MaxPermSize=1024m"]
> 2017-02-28 04:13:39,531 DEBUG com.hw.ambari.ui.util.cluster_managers.CommandExecutor.executeCommandSequence(): Sending command [ambari-server restart --debug]
> 2017-02-28 04:13:41,753 DEBUG com.hw.ambari.ui.util.cluster_managers.ProcessData.buildOutputAndErrorStreamData(): su: cannot open session: Permission denied
> 2017-02-28 04:13:59,989 DEBUG com.hw.ambari.ui.util.cluster_managers.CommandExecutor.executeCommandSequence(): [OUTPUT STREAM]
> Using python /usr/bin/python
> Restarting ambari-server
> Waiting for server stop...
> Ambari Server stopped
> Ambari Server running with administrator privileges.
> Organizing resource files at /var/lib/ambari-server/resources...
> Ambari database consistency check started...
> Server PID at: /var/run/ambari-server/ambari-server.pid
> Server out at: /var/log/ambari-server/ambari-server.out
> Server log at: /var/log/ambari-server/ambari-server.log
> Waiting for server start.........Unable to determine server PID. Retrying...
> ......Unable to determine server PID. Retrying...
> ......Unable to determine server PID. Retrying...
>
> I ran ulimit on the root user :
>
>
>
> [root@ctr-e129-1487033772569-27178-01-000003 ~]# ulimit
> unlimited
>
> Ran service ambari-server start :
>
>
>
> [root@ctr-e129-1487033772569-27178-01-000003 ~]# service ambari-server start
> Using python /usr/bin/python
> Starting ambari-server
> Ambari Server running with administrator privileges.
> Organizing resource files at /var/lib/ambari-server/resources...
> Ambari database consistency check started...
> Server PID at: /var/run/ambari-server/ambari-server.pid
> Server out at: /var/log/ambari-server/ambari-server.out
> Server log at: /var/log/ambari-server/ambari-server.log
> Waiting for server start....su: cannot open session: Permission denied
>
> The ambari logs don't have any data
> Artifacts :
> <http://qelog.hortonworks.com/log/nat-yc-r7-qafs-ambari-api-rbac-8/artifacts/a
> rtifacts/screenshots/com.hw.ambari.ui.tests.console.ldap.LDAPRBACSanity/setupL
> DAPAndRBACSanity/_28_4_14_3_Couldn_t_create_user_clusteruser_due_to_java_lang_
> NullPointerException/test_logs/test_LDAPRBACSanity_debug.log>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)