You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Ahmed Fathalla (Created) (JIRA)" <ji...@apache.org> on 2011/11/15 10:07:51 UTC

[jira] [Created] (AMBARI-131) installing deb package for agent fails

installing deb package for agent fails
--------------------------------------

                 Key: AMBARI-131
                 URL: https://issues.apache.org/jira/browse/AMBARI-131
             Project: Ambari
          Issue Type: Bug
          Components: agent
         Environment: Ubuntu 11.04

Linux fathalla 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux

            Reporter: Ahmed Fathalla
            Priority: Minor


I successfully packaged deb file for agent using "mvn clean -p package deb". However, installing the deb file returned these errors


Unpacking ambari-agent (from ambari-agent_0.1.0-1_i386.deb) ...
groupadd: GID '123' already exists
Setting up ambari-agent (0.1.0) ...
bash: /usr/sbin/update-ambari-env.sh: No such file or directory
dpkg: error processing ambari-agent (--install):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 ambari-agent


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMBARI-131) installing deb package for agent fails

Posted by "Sergey Avseyev (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMBARI-131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197193#comment-13197193 ] 

Sergey Avseyev commented on AMBARI-131:
---------------------------------------

I can confirm the same issue for latest stable release 'hadoop_1.0.0-1_amd64.deb'

Its 'preinst' script has line

    getent group hadoop 2>/dev/null >/dev/null || /usr/sbin/groupadd -g 123 -r hadoop

Which is wrong. Most users will have this group exists on their machines. The issue could be workarounded if the user will create 'hadoop' group before installation.
                
> installing deb package for agent fails
> --------------------------------------
>
>                 Key: AMBARI-131
>                 URL: https://issues.apache.org/jira/browse/AMBARI-131
>             Project: Ambari
>          Issue Type: Bug
>          Components: agent
>         Environment: Ubuntu 11.04
> Linux fathalla 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux
>            Reporter: Ahmed Fathalla
>            Priority: Minor
>
> I successfully packaged deb file for agent using "mvn clean -p package deb". However, installing the deb file returned these errors
> Unpacking ambari-agent (from ambari-agent_0.1.0-1_i386.deb) ...
> groupadd: GID '123' already exists
> Setting up ambari-agent (0.1.0) ...
> bash: /usr/sbin/update-ambari-env.sh: No such file or directory
> dpkg: error processing ambari-agent (--install):
>  subprocess installed post-installation script returned error exit status 127
> Errors were encountered while processing:
>  ambari-agent

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMBARI-131) installing deb package for agent fails

Posted by "Ahmed Fathalla (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMBARI-131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13151117#comment-13151117 ] 

Ahmed Fathalla commented on AMBARI-131:
---------------------------------------

The update-ambari-agent-env.sh doesn't get installed automatically into /usr/sbin so I had to put it there. But now when I install the .deb file it's complaining 

grep: /etc/ambari/ambari-agent-env.sh: No such file or directory

The ambari-agent-env.sh. I tried to search for this file in the project, but it's nowhere to be found.
                
> installing deb package for agent fails
> --------------------------------------
>
>                 Key: AMBARI-131
>                 URL: https://issues.apache.org/jira/browse/AMBARI-131
>             Project: Ambari
>          Issue Type: Bug
>          Components: agent
>         Environment: Ubuntu 11.04
> Linux fathalla 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux
>            Reporter: Ahmed Fathalla
>            Priority: Minor
>
> I successfully packaged deb file for agent using "mvn clean -p package deb". However, installing the deb file returned these errors
> Unpacking ambari-agent (from ambari-agent_0.1.0-1_i386.deb) ...
> groupadd: GID '123' already exists
> Setting up ambari-agent (0.1.0) ...
> bash: /usr/sbin/update-ambari-env.sh: No such file or directory
> dpkg: error processing ambari-agent (--install):
>  subprocess installed post-installation script returned error exit status 127
> Errors were encountered while processing:
>  ambari-agent

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira