[
https://issues.apache.org/jira/browse/AMBARI-26241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jialiang Cai resolved AMBARI-26241.
-----------------------------------
Fix Version/s: 3.0.0
Resolution: Fixed
> _threadlocal has no uid because it is always None
> -------------------------------------------------
>
> Key: AMBARI-26241
> URL: https://issues.apache.org/jira/browse/AMBARI-26241
> Project: Ambari
> Issue Type: Bug
> Components: ambari-agent
> Reporter: guluo
> Priority: Minor
> Fix For: 3.0.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> shellRunnerLinux has attribute _threadLocal, it is None by default.
> The attribute has never been set, so it is always None.
> So, ambari-agent wolud print error logs, as follows:
>
> cat ambari-agent.log | grep RUN_COMMAN
> WARNING 2024-11-28 20:32:28,967 shell.py:828 - Unable to switch user for
> RUN_COMMAND. Error details: 'NoneType' object has no attribute 'uid'
> WARNING 2024-11-28 20:32:28,991 shell.py:828 - Unable to switch user for
> RUN_COMMAND. Error details: 'NoneType' object has no attribute 'uid'
> WARNING 2024-11-28 20:32:45,890 shell.py:828 - Unable to switch user for
> RUN_COMMAND. Error details: 'NoneType' object has no attribute 'uid'
> WARNING 2024-11-28 20:32:45,909 shell.py:828 - Unable to switch user for
> RUN_COMMAND. Error details: 'NoneType' object has no attribute 'uid'
> WARNING 2024-11-28 20:36:24,840 shell.py:828 - Unable to switch user for
> RUN_COMMAND. Error details: 'NoneType' object has no attribute 'uid'
> WARNING 2024-11-28 20:36:24,880 shell.py:828 - Unable to switch user for
> RUN_COMMAND. Error details: 'NoneType' object has no attribute 'uid'
> WARNING 2024-11-28 20:36:25,314 shell.py:828 - Unable to switch user for
> RUN_COMMAND. Error details: 'NoneType' object has no attribute 'uid'
> WARNING 2024-11-28 20:36:25,338 shell.py:828 - Unable to switch user for
> RUN_COMMAND. Error details: 'NoneType' object has no attribute 'uid'
> WARNING 2024-11-28 20:36:25,349 shell.py:828 - Unable to switch user for
> RUN_COMMAND. Error details: 'NoneType' object has no attribute 'uid'
> WARNING 2024-11-28 20:36:25,368 shell.py:828 - Unable to switch user for
> RUN_COMMAND. Error details: 'NoneType' object has no attribute 'uid'
> WARNING 2024-11-28 20:36:33,545 shell.py:828 - Unable to switch user for
> RUN_COMMAND. Error details: 'NoneType' object has no attribute 'uid'
> WARNING 2024-11-28 20:36:33,571 shell.py:828 - Unable to switch user for
> RUN_COMMAND. Error details: 'NoneType' object has no attribute 'uid
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]