[ 
https://issues.apache.org/jira/browse/AMBARI-13381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14951144#comment-14951144
 ] 

Clark Breyman commented on AMBARI-13381:
----------------------------------------

Additional detail - I have ambari-agent on this host as well and had not 
installed the new version of that prior to running ambari-server upgrade. It 
looks like ambari-commons is pointing to the ambari-agent version, no the 
ambari-server version. 

Fixing this bug likely means disentangling the library versions used by the 
agent and the server. 

> TypeError on ambari-server upgrade - change_owner arguments
> -----------------------------------------------------------
>
>                 Key: AMBARI-13381
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13381
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-admin
>    Affects Versions: 2.1.2
>         Environment: Ubuntu 12.04
>            Reporter: Clark Breyman
>              Labels: upgrade
>
> Running ambari-server upgrade proceeds until it called change_owner() with 3 
> parameters when the function is defined with 2. 
> Offending call is in ambari_server/setupSecurity.py", line 183
> method defined (without recursive parameter) on line 107
> Output snippet:
> NFO: about to run command: chown  -R  root 
> /usr/lib/jvm/java-7-oracle/jre/lib/security
> INFO: Setting file permissions: /usr/lib/jvm/java-7-oracle/jre/lib/security 
> 755 root False
> INFO: about to run command: chmod  755 
> /usr/lib/jvm/java-7-oracle/jre/lib/security
> INFO: about to run command: chown  root 
> /usr/lib/jvm/java-7-oracle/jre/lib/security
> INFO: Changing ownership: /var/lib/ambari-server root True
> Traceback (most recent call last):
>   File "/usr/sbin/ambari-server.py", line 630, in <module>
>     mainBody()
>   File "/usr/sbin/ambari-server.py", line 618, in mainBody
>     main(options, args, parser)
>   File "/usr/sbin/ambari-server.py", line 574, in main
>     action_obj.execute()
>   File "/usr/sbin/ambari-server.py", line 58, in execute
>     self.fn(*self.args, **self.kwargs)
>   File "/usr/lib/python2.6/site-packages/ambari_server/serverUpgrade.py", 
> line 340, in upgrade
>     adjust_directory_permissions(user)
>   File "/usr/lib/python2.6/site-packages/ambari_server/setupSecurity.py", 
> line 183, in adjust_directory_permissions
>     change_owner(path, user, recursive)
> TypeError: change_owner() takes exactly 2 arguments (3 given)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to