Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-20460

ambari-server restart --debug giving "su: cannot open session: Permission denied"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: None
    • Labels:
      None

      Description

      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>

        Attachments

        1. AMBARI-20460.patch
          1 kB
          Andrew Onischuk

          Issue Links

            Activity

              People

              • Assignee:
                aonishuk Andrew Onischuk
                Reporter:
                shreyabhatm@gmail.com Shreya Bhat
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: