You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Kevin Vasko (JIRA)" <ji...@apache.org> on 2015/09/28 19:24:05 UTC
[jira] [Created] (AMBARI-13259) Get error TypeError: must be
string, not None when adding clients
Kevin Vasko created AMBARI-13259:
------------------------------------
Summary: Get error TypeError: must be string, not None when adding clients
Key: AMBARI-13259
URL: https://issues.apache.org/jira/browse/AMBARI-13259
Project: Ambari
Issue Type: Bug
Components: ambari-agent
Affects Versions: 2.1.1
Environment: CentOS 7
Reporter: Kevin Vasko
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'
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)