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

Get error TypeError: must be string, not None when adding clients

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1.1
    • None
    • ambari-agent
    • None
    • CentOS 7

    Description

      This is the full error message.

      I have been trying to add clients to this server and keep getting the following error. I have ran the "HostCleanup" script, removed the ambari-agent via yum, and deleted all folders I could find in /var/run, /var/log, /var/lib associated with ambari-agent on this server. I then tried to provision this machine again with clients after the cleanup process and keep getting the following error. At this point I'm not sure how I can clean this server up to get it working again.

      Traceback (most recent call last):
      File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py", line 35, in <module>
      BeforeAnyHook().execute()
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 218, in execute
      method(env)
      File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py", line 30, in hook
      setup_users()
      File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py", line 76, in setup_users
      ignore_failures = params.ignore_groupsusers_create
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in _init_
      self.env.run()
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run
      self.run_action(resource, action)
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action
      provider_action()
      File "/usr/lib/python2.6/site-packages/resource_management/core/providers/accounts.py", line 44, in action_create
      if not self.user:
      File "/usr/lib/python2.6/site-packages/resource_management/core/providers/accounts.py", line 93, in user
      return pwd.getpwnam(self.resource.username)
      TypeError: must be string, not None
      Error: Error: Unable to run the custom hook script ['/usr/bin/python2.7', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-305.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-305.json', 'INFO', '/var/lib/ambari-agent/data/tmp'

      Attachments

        Activity

          People

            Unassigned Unassigned
            kur1j Kevin Vasko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: