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

404 error while setting up SSO on a new cluster

    XMLWordPrintableJSON

Details

    Description

      When setting up SSO via the Ambari server CLI using a new Ambari server instance, the following error is encountered:

      [root@c7401 ~]# ambari-server setup-sso
      Using python  /usr/bin/python
      Setting up SSO authentication properties...
      Enter Ambari Admin login: admin
      Enter Ambari Admin password:
      
      Fetching SSO configuration from DB.ERROR: Exiting with exit code 1.
      REASON: Error while fetching SSO configuration. Error details: HTTP Error 404: Not Found
      

      This is caused by the lack of the sso-configuration category in the Ambari configuration set - which will be a common scenario for new Ambari clusters.

      GET /api/v1/services/AMBARI/components/AMBARI_SERVER/configurations/sso-configuration
      
      {
        "status" : 404,
        "message" : "The requested resource doesn't exist: RootServiceComponentConfiguration not found where Configuration/service_name=AMBARI AND Configuration/component_name=AMBARI_SERVER AND Configuration/category=sso-configuration."
      }
      

      The CLI handle this response and assume the following default values:

      ambari.sso.manage_services = false
      ambari.sso.enabled_services = 
      

       

      Attachments

        Issue Links

          Activity

            People

              smolnar Sandor Molnar
              smolnar Sandor Molnar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h