You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Vishanth Balasubramaniam <vi...@wso2.com> on 2014/10/01 09:23:31 UTC

Error when building a cartridge

Hi,

I am currently working on creating a cassandra cartridge for apache stratos
using docker.
Even though the cartridge gets successfully built, the following error
messages occurred.

 ---> c2bbd571afe5
Step 4 : RUN apt-get install -y openssh-server
 ---> Running in 25f73db5e21c

Unpacking openssh-server (from
.../openssh-server_1%3a5.9p1-5ubuntu1.4_amd64.deb) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
/usr/local/lib/site_perl .) at
/usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype

Setting up ca-certificates (20130906ubuntu0.12.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
/usr/local/lib/site_perl .) at
/usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
164 added, 0 removed; done.
done.
Setting up krb5-locales (1.10+dfsg~beta1-2ubuntu0.5) ...
Setting up openssh-client (1:5.9p1-5ubuntu1.4) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
/usr/local/lib/site_perl .) at
/usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up wget (1.13.4-2ubuntu1.1) ...
Setting up xauth (1:1.0.6-1) ...
Setting up openssh-server (1:5.9p1-5ubuntu1.4) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
/usr/local/lib/site_perl .) at
/usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype

invoke-rc.d: policy-rc.d denied execution of stop.

Looking forward to know what causes this issue.

Thank you,

-- 
*Vishanth Balasubramaniam*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94771737718*
about me: *http://about.me/vishanth <http://about.me/vishanth>*

Re: Error when building a cartridge

Posted by Vishanth Balasubramaniam <vi...@wso2.com>.
Hi Sajith,

I made the change DEBIAN_FRONTEND=noninteractive and now it is fine.

Thanks,

On Wed, Oct 1, 2014 at 2:41 PM, Vishanth Balasubramaniam <vishanthb@wso2.com
> wrote:

> Hi Thushara,
> Even with a fresh start it is still the same.
>
> Thanks,
>
> On Wed, Oct 1, 2014 at 2:10 PM, Thushara Ranawaka <th...@wso2.com>
> wrote:
>
>> Hi Vishanth,
>> I had the same issue, Can you ssh using the OS private URL?
>>  Better to start-over the cartridge docker build in a fresh snapshot.
>>
>> Thanks,
>>
>> On Wed, Oct 1, 2014 at 1:28 PM, Sajith Kariyawasam <sa...@wso2.com>
>> wrote:
>>
>>> Hi Vishanth,
>>>
>>> Please try out what is mentioned in [1]
>>> https://github.com/phusion/baseimage-docker/issues/58
>>> export the variable before apt-get ?
>>>      export DEBIAN_FRONTEND=noninteractive
>>>
>>> Thanks,
>>> Sajith
>>>
>>> On Wed, Oct 1, 2014 at 12:53 PM, Vishanth Balasubramaniam <
>>> vishanthb@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am currently working on creating a cassandra cartridge for apache
>>>> stratos using docker.
>>>> Even though the cartridge gets successfully built, the following error
>>>> messages occurred.
>>>>
>>>>  ---> c2bbd571afe5
>>>> Step 4 : RUN apt-get install -y openssh-server
>>>>  ---> Running in 25f73db5e21c
>>>>
>>>> Unpacking openssh-server (from
>>>> .../openssh-server_1%3a5.9p1-5ubuntu1.4_amd64.deb) ...
>>>> debconf: unable to initialize frontend: Dialog
>>>> debconf: (TERM is not set, so the dialog frontend is not usable.)
>>>> debconf: falling back to frontend: Readline
>>>> debconf: unable to initialize frontend: Readline
>>>> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains:
>>>> /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2
>>>> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
>>>> /usr/local/lib/site_perl .) at
>>>> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
>>>> debconf: falling back to frontend: Teletype
>>>>
>>>> Setting up ca-certificates (20130906ubuntu0.12.04.1) ...
>>>> debconf: unable to initialize frontend: Dialog
>>>> debconf: (TERM is not set, so the dialog frontend is not usable.)
>>>> debconf: falling back to frontend: Readline
>>>> debconf: unable to initialize frontend: Readline
>>>> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains:
>>>> /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2
>>>> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
>>>> /usr/local/lib/site_perl .) at
>>>> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
>>>> debconf: falling back to frontend: Teletype
>>>> 164 added, 0 removed; done.
>>>> done.
>>>> Setting up krb5-locales (1.10+dfsg~beta1-2ubuntu0.5) ...
>>>> Setting up openssh-client (1:5.9p1-5ubuntu1.4) ...
>>>> debconf: unable to initialize frontend: Dialog
>>>> debconf: (TERM is not set, so the dialog frontend is not usable.)
>>>> debconf: falling back to frontend: Readline
>>>> debconf: unable to initialize frontend: Readline
>>>> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains:
>>>> /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2
>>>> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
>>>> /usr/local/lib/site_perl .) at
>>>> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
>>>> debconf: falling back to frontend: Teletype
>>>> Setting up wget (1.13.4-2ubuntu1.1) ...
>>>> Setting up xauth (1:1.0.6-1) ...
>>>> Setting up openssh-server (1:5.9p1-5ubuntu1.4) ...
>>>> debconf: unable to initialize frontend: Dialog
>>>> debconf: (TERM is not set, so the dialog frontend is not usable.)
>>>> debconf: falling back to frontend: Readline
>>>> debconf: unable to initialize frontend: Readline
>>>> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains:
>>>> /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2
>>>> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
>>>> /usr/local/lib/site_perl .) at
>>>> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
>>>> debconf: falling back to frontend: Teletype
>>>>
>>>> invoke-rc.d: policy-rc.d denied execution of stop.
>>>>
>>>> Looking forward to know what causes this issue.
>>>>
>>>> Thank you,
>>>>
>>>> --
>>>> *Vishanth Balasubramaniam*
>>>> Software Engineer
>>>> WSO2 Inc.; http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> mobile: *+94771737718*
>>>> about me: *http://about.me/vishanth <http://about.me/vishanth>*
>>>>
>>>>
>>>
>>>
>>> --
>>> *Sajith Kariyawasam*
>>>
>>>
>>> *Committer and PMC member, Apache Stratos,WSO2 Inc., http://wso2.com
>>> <http://wso2.com>AMIE (SL)Mobile: +94772269575*
>>>
>>
>>
>>
>> --
>> Thushara Kasun Ranawaka
>> Software Engineer
>> WSO2 Inc.; <http://www.wso2.com>
>> lean.enterprise.middleware
>> Mobile : *+94 (0) 773438949 <%2B94%20%280%29%20773438949>*
>> *thusharak@wso2.com <th...@wso2.com>*
>>
>
>
>
> --
> *Vishanth Balasubramaniam*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94771737718*
> about me: *http://about.me/vishanth <http://about.me/vishanth>*
>
>


-- 
*Vishanth Balasubramaniam*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94771737718*
about me: *http://about.me/vishanth <http://about.me/vishanth>*

Re: Error when building a cartridge

Posted by Vishanth Balasubramaniam <vi...@wso2.com>.
Hi Thushara,
Even with a fresh start it is still the same.

Thanks,

On Wed, Oct 1, 2014 at 2:10 PM, Thushara Ranawaka <th...@wso2.com>
wrote:

> Hi Vishanth,
> I had the same issue, Can you ssh using the OS private URL?
>  Better to start-over the cartridge docker build in a fresh snapshot.
>
> Thanks,
>
> On Wed, Oct 1, 2014 at 1:28 PM, Sajith Kariyawasam <sa...@wso2.com>
> wrote:
>
>> Hi Vishanth,
>>
>> Please try out what is mentioned in [1]
>> https://github.com/phusion/baseimage-docker/issues/58
>> export the variable before apt-get ?
>>      export DEBIAN_FRONTEND=noninteractive
>>
>> Thanks,
>> Sajith
>>
>> On Wed, Oct 1, 2014 at 12:53 PM, Vishanth Balasubramaniam <
>> vishanthb@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> I am currently working on creating a cassandra cartridge for apache
>>> stratos using docker.
>>> Even though the cartridge gets successfully built, the following error
>>> messages occurred.
>>>
>>>  ---> c2bbd571afe5
>>> Step 4 : RUN apt-get install -y openssh-server
>>>  ---> Running in 25f73db5e21c
>>>
>>> Unpacking openssh-server (from
>>> .../openssh-server_1%3a5.9p1-5ubuntu1.4_amd64.deb) ...
>>> debconf: unable to initialize frontend: Dialog
>>> debconf: (TERM is not set, so the dialog frontend is not usable.)
>>> debconf: falling back to frontend: Readline
>>> debconf: unable to initialize frontend: Readline
>>> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains:
>>> /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2
>>> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
>>> /usr/local/lib/site_perl .) at
>>> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
>>> debconf: falling back to frontend: Teletype
>>>
>>> Setting up ca-certificates (20130906ubuntu0.12.04.1) ...
>>> debconf: unable to initialize frontend: Dialog
>>> debconf: (TERM is not set, so the dialog frontend is not usable.)
>>> debconf: falling back to frontend: Readline
>>> debconf: unable to initialize frontend: Readline
>>> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains:
>>> /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2
>>> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
>>> /usr/local/lib/site_perl .) at
>>> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
>>> debconf: falling back to frontend: Teletype
>>> 164 added, 0 removed; done.
>>> done.
>>> Setting up krb5-locales (1.10+dfsg~beta1-2ubuntu0.5) ...
>>> Setting up openssh-client (1:5.9p1-5ubuntu1.4) ...
>>> debconf: unable to initialize frontend: Dialog
>>> debconf: (TERM is not set, so the dialog frontend is not usable.)
>>> debconf: falling back to frontend: Readline
>>> debconf: unable to initialize frontend: Readline
>>> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains:
>>> /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2
>>> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
>>> /usr/local/lib/site_perl .) at
>>> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
>>> debconf: falling back to frontend: Teletype
>>> Setting up wget (1.13.4-2ubuntu1.1) ...
>>> Setting up xauth (1:1.0.6-1) ...
>>> Setting up openssh-server (1:5.9p1-5ubuntu1.4) ...
>>> debconf: unable to initialize frontend: Dialog
>>> debconf: (TERM is not set, so the dialog frontend is not usable.)
>>> debconf: falling back to frontend: Readline
>>> debconf: unable to initialize frontend: Readline
>>> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains:
>>> /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2
>>> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
>>> /usr/local/lib/site_perl .) at
>>> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
>>> debconf: falling back to frontend: Teletype
>>>
>>> invoke-rc.d: policy-rc.d denied execution of stop.
>>>
>>> Looking forward to know what causes this issue.
>>>
>>> Thank you,
>>>
>>> --
>>> *Vishanth Balasubramaniam*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94771737718*
>>> about me: *http://about.me/vishanth <http://about.me/vishanth>*
>>>
>>>
>>
>>
>> --
>> *Sajith Kariyawasam*
>>
>>
>> *Committer and PMC member, Apache Stratos,WSO2 Inc., http://wso2.com
>> <http://wso2.com>AMIE (SL)Mobile: +94772269575*
>>
>
>
>
> --
> Thushara Kasun Ranawaka
> Software Engineer
> WSO2 Inc.; <http://www.wso2.com>
> lean.enterprise.middleware
> Mobile : *+94 (0) 773438949 <%2B94%20%280%29%20773438949>*
> *thusharak@wso2.com <th...@wso2.com>*
>



-- 
*Vishanth Balasubramaniam*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94771737718*
about me: *http://about.me/vishanth <http://about.me/vishanth>*

Re: Error when building a cartridge

Posted by Thushara Ranawaka <th...@wso2.com>.
Hi Vishanth,
I had the same issue, Can you ssh using the OS private URL?
 Better to start-over the cartridge docker build in a fresh snapshot.

Thanks,

On Wed, Oct 1, 2014 at 1:28 PM, Sajith Kariyawasam <sa...@wso2.com> wrote:

> Hi Vishanth,
>
> Please try out what is mentioned in [1]
> https://github.com/phusion/baseimage-docker/issues/58
> export the variable before apt-get ?
>      export DEBIAN_FRONTEND=noninteractive
>
> Thanks,
> Sajith
>
> On Wed, Oct 1, 2014 at 12:53 PM, Vishanth Balasubramaniam <
> vishanthb@wso2.com> wrote:
>
>> Hi,
>>
>> I am currently working on creating a cassandra cartridge for apache
>> stratos using docker.
>> Even though the cartridge gets successfully built, the following error
>> messages occurred.
>>
>>  ---> c2bbd571afe5
>> Step 4 : RUN apt-get install -y openssh-server
>>  ---> Running in 25f73db5e21c
>>
>> Unpacking openssh-server (from
>> .../openssh-server_1%3a5.9p1-5ubuntu1.4_amd64.deb) ...
>> debconf: unable to initialize frontend: Dialog
>> debconf: (TERM is not set, so the dialog frontend is not usable.)
>> debconf: falling back to frontend: Readline
>> debconf: unable to initialize frontend: Readline
>> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
>> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
>> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
>> /usr/local/lib/site_perl .) at
>> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
>> debconf: falling back to frontend: Teletype
>>
>> Setting up ca-certificates (20130906ubuntu0.12.04.1) ...
>> debconf: unable to initialize frontend: Dialog
>> debconf: (TERM is not set, so the dialog frontend is not usable.)
>> debconf: falling back to frontend: Readline
>> debconf: unable to initialize frontend: Readline
>> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
>> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
>> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
>> /usr/local/lib/site_perl .) at
>> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
>> debconf: falling back to frontend: Teletype
>> 164 added, 0 removed; done.
>> done.
>> Setting up krb5-locales (1.10+dfsg~beta1-2ubuntu0.5) ...
>> Setting up openssh-client (1:5.9p1-5ubuntu1.4) ...
>> debconf: unable to initialize frontend: Dialog
>> debconf: (TERM is not set, so the dialog frontend is not usable.)
>> debconf: falling back to frontend: Readline
>> debconf: unable to initialize frontend: Readline
>> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
>> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
>> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
>> /usr/local/lib/site_perl .) at
>> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
>> debconf: falling back to frontend: Teletype
>> Setting up wget (1.13.4-2ubuntu1.1) ...
>> Setting up xauth (1:1.0.6-1) ...
>> Setting up openssh-server (1:5.9p1-5ubuntu1.4) ...
>> debconf: unable to initialize frontend: Dialog
>> debconf: (TERM is not set, so the dialog frontend is not usable.)
>> debconf: falling back to frontend: Readline
>> debconf: unable to initialize frontend: Readline
>> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
>> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
>> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
>> /usr/local/lib/site_perl .) at
>> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
>> debconf: falling back to frontend: Teletype
>>
>> invoke-rc.d: policy-rc.d denied execution of stop.
>>
>> Looking forward to know what causes this issue.
>>
>> Thank you,
>>
>> --
>> *Vishanth Balasubramaniam*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94771737718*
>> about me: *http://about.me/vishanth <http://about.me/vishanth>*
>>
>>
>
>
> --
> *Sajith Kariyawasam*
>
>
> *Committer and PMC member, Apache Stratos,WSO2 Inc., http://wso2.com
> <http://wso2.com>AMIE (SL)Mobile: +94772269575*
>



-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; <http://www.wso2.com>
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusharak@wso2.com <th...@wso2.com>*

Re: Error when building a cartridge

Posted by Sajith Kariyawasam <sa...@wso2.com>.
Hi Vishanth,

Please try out what is mentioned in [1]
https://github.com/phusion/baseimage-docker/issues/58
export the variable before apt-get ?
     export DEBIAN_FRONTEND=noninteractive

Thanks,
Sajith

On Wed, Oct 1, 2014 at 12:53 PM, Vishanth Balasubramaniam <
vishanthb@wso2.com> wrote:

> Hi,
>
> I am currently working on creating a cassandra cartridge for apache
> stratos using docker.
> Even though the cartridge gets successfully built, the following error
> messages occurred.
>
>  ---> c2bbd571afe5
> Step 4 : RUN apt-get install -y openssh-server
>  ---> Running in 25f73db5e21c
>
> Unpacking openssh-server (from
> .../openssh-server_1%3a5.9p1-5ubuntu1.4_amd64.deb) ...
> debconf: unable to initialize frontend: Dialog
> debconf: (TERM is not set, so the dialog frontend is not usable.)
> debconf: falling back to frontend: Readline
> debconf: unable to initialize frontend: Readline
> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
> /usr/local/lib/site_perl .) at
> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
> debconf: falling back to frontend: Teletype
>
> Setting up ca-certificates (20130906ubuntu0.12.04.1) ...
> debconf: unable to initialize frontend: Dialog
> debconf: (TERM is not set, so the dialog frontend is not usable.)
> debconf: falling back to frontend: Readline
> debconf: unable to initialize frontend: Readline
> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
> /usr/local/lib/site_perl .) at
> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
> debconf: falling back to frontend: Teletype
> 164 added, 0 removed; done.
> done.
> Setting up krb5-locales (1.10+dfsg~beta1-2ubuntu0.5) ...
> Setting up openssh-client (1:5.9p1-5ubuntu1.4) ...
> debconf: unable to initialize frontend: Dialog
> debconf: (TERM is not set, so the dialog frontend is not usable.)
> debconf: falling back to frontend: Readline
> debconf: unable to initialize frontend: Readline
> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
> /usr/local/lib/site_perl .) at
> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
> debconf: falling back to frontend: Teletype
> Setting up wget (1.13.4-2ubuntu1.1) ...
> Setting up xauth (1:1.0.6-1) ...
> Setting up openssh-server (1:5.9p1-5ubuntu1.4) ...
> debconf: unable to initialize frontend: Dialog
> debconf: (TERM is not set, so the dialog frontend is not usable.)
> debconf: falling back to frontend: Readline
> debconf: unable to initialize frontend: Readline
> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
> /usr/local/lib/site_perl .) at
> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
> debconf: falling back to frontend: Teletype
>
> invoke-rc.d: policy-rc.d denied execution of stop.
>
> Looking forward to know what causes this issue.
>
> Thank you,
>
> --
> *Vishanth Balasubramaniam*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94771737718*
> about me: *http://about.me/vishanth <http://about.me/vishanth>*
>
>


-- 
*Sajith Kariyawasam*


*Committer and PMC member, Apache Stratos,WSO2 Inc., http://wso2.com
<http://wso2.com>AMIE (SL)Mobile: +94772269575*

Re: Error when building a cartridge

Posted by Roshan Deniyage <ro...@wso2.com>.
AFAIK, package installation needs user inputs for configuring packages.
debconf uses frontend Dialog and expects environment variable TERM to be
set.
If you skip this step by adding "RUN DEBIAN_FRONTED=noninteractive" to the
dockerfile, might solve the problem. Or otherwise, need to find a way to
configure packages in dockerfile.

​Thanks,​

Roshan Deniyage
Associate Technical Lead
WSO2, Inc: http://wso2.com

Mobile    :  +94 777636406
Twitter    :  *https://twitter.com/roshku <https://twitter.com/roshku>*
LinkedIn :  https://www.linkedin.com/in/roshandeniyage


On Wed, Oct 1, 2014 at 1:19 PM, Vishanth Balasubramaniam <vishanthb@wso2.com
> wrote:

> Removing the Training-group.
>
> On Wed, Oct 1, 2014 at 12:53 PM, Vishanth Balasubramaniam <
> vishanthb@wso2.com> wrote:
>
>> Hi,
>>
>> I am currently working on creating a cassandra cartridge for apache
>> stratos using docker.
>> Even though the cartridge gets successfully built, the following error
>> messages occurred.
>>
>>  ---> c2bbd571afe5
>> Step 4 : RUN apt-get install -y openssh-server
>>  ---> Running in 25f73db5e21c
>>
>> Unpacking openssh-server (from
>> .../openssh-server_1%3a5.9p1-5ubuntu1.4_amd64.deb) ...
>> debconf: unable to initialize frontend: Dialog
>> debconf: (TERM is not set, so the dialog frontend is not usable.)
>> debconf: falling back to frontend: Readline
>> debconf: unable to initialize frontend: Readline
>> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
>> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
>> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
>> /usr/local/lib/site_perl .) at
>> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
>> debconf: falling back to frontend: Teletype
>>
>> Setting up ca-certificates (20130906ubuntu0.12.04.1) ...
>> debconf: unable to initialize frontend: Dialog
>> debconf: (TERM is not set, so the dialog frontend is not usable.)
>> debconf: falling back to frontend: Readline
>> debconf: unable to initialize frontend: Readline
>> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
>> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
>> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
>> /usr/local/lib/site_perl .) at
>> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
>> debconf: falling back to frontend: Teletype
>> 164 added, 0 removed; done.
>> done.
>> Setting up krb5-locales (1.10+dfsg~beta1-2ubuntu0.5) ...
>> Setting up openssh-client (1:5.9p1-5ubuntu1.4) ...
>> debconf: unable to initialize frontend: Dialog
>> debconf: (TERM is not set, so the dialog frontend is not usable.)
>> debconf: falling back to frontend: Readline
>> debconf: unable to initialize frontend: Readline
>> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
>> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
>> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
>> /usr/local/lib/site_perl .) at
>> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
>> debconf: falling back to frontend: Teletype
>> Setting up wget (1.13.4-2ubuntu1.1) ...
>> Setting up xauth (1:1.0.6-1) ...
>> Setting up openssh-server (1:5.9p1-5ubuntu1.4) ...
>> debconf: unable to initialize frontend: Dialog
>> debconf: (TERM is not set, so the dialog frontend is not usable.)
>> debconf: falling back to frontend: Readline
>> debconf: unable to initialize frontend: Readline
>> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
>> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
>> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
>> /usr/local/lib/site_perl .) at
>> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
>> debconf: falling back to frontend: Teletype
>>
>> invoke-rc.d: policy-rc.d denied execution of stop.
>>
>> Looking forward to know what causes this issue.
>>
>> Thank you,
>>
>> --
>> *Vishanth Balasubramaniam*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94771737718*
>> about me: *http://about.me/vishanth <http://about.me/vishanth>*
>>
>>
>
>
> --
> *Vishanth Balasubramaniam*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94771737718*
> about me: *http://about.me/vishanth <http://about.me/vishanth>*
>
>

Re: Error when building a cartridge

Posted by Vishanth Balasubramaniam <vi...@wso2.com>.
Removing the Training-group.

On Wed, Oct 1, 2014 at 12:53 PM, Vishanth Balasubramaniam <
vishanthb@wso2.com> wrote:

> Hi,
>
> I am currently working on creating a cassandra cartridge for apache
> stratos using docker.
> Even though the cartridge gets successfully built, the following error
> messages occurred.
>
>  ---> c2bbd571afe5
> Step 4 : RUN apt-get install -y openssh-server
>  ---> Running in 25f73db5e21c
>
> Unpacking openssh-server (from
> .../openssh-server_1%3a5.9p1-5ubuntu1.4_amd64.deb) ...
> debconf: unable to initialize frontend: Dialog
> debconf: (TERM is not set, so the dialog frontend is not usable.)
> debconf: falling back to frontend: Readline
> debconf: unable to initialize frontend: Readline
> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
> /usr/local/lib/site_perl .) at
> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
> debconf: falling back to frontend: Teletype
>
> Setting up ca-certificates (20130906ubuntu0.12.04.1) ...
> debconf: unable to initialize frontend: Dialog
> debconf: (TERM is not set, so the dialog frontend is not usable.)
> debconf: falling back to frontend: Readline
> debconf: unable to initialize frontend: Readline
> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
> /usr/local/lib/site_perl .) at
> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
> debconf: falling back to frontend: Teletype
> 164 added, 0 removed; done.
> done.
> Setting up krb5-locales (1.10+dfsg~beta1-2ubuntu0.5) ...
> Setting up openssh-client (1:5.9p1-5ubuntu1.4) ...
> debconf: unable to initialize frontend: Dialog
> debconf: (TERM is not set, so the dialog frontend is not usable.)
> debconf: falling back to frontend: Readline
> debconf: unable to initialize frontend: Readline
> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
> /usr/local/lib/site_perl .) at
> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
> debconf: falling back to frontend: Teletype
> Setting up wget (1.13.4-2ubuntu1.1) ...
> Setting up xauth (1:1.0.6-1) ...
> Setting up openssh-server (1:5.9p1-5ubuntu1.4) ...
> debconf: unable to initialize frontend: Dialog
> debconf: (TERM is not set, so the dialog frontend is not usable.)
> debconf: falling back to frontend: Readline
> debconf: unable to initialize frontend: Readline
> debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl
> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
> /usr/local/lib/site_perl .) at
> /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
> debconf: falling back to frontend: Teletype
>
> invoke-rc.d: policy-rc.d denied execution of stop.
>
> Looking forward to know what causes this issue.
>
> Thank you,
>
> --
> *Vishanth Balasubramaniam*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94771737718*
> about me: *http://about.me/vishanth <http://about.me/vishanth>*
>
>


-- 
*Vishanth Balasubramaniam*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94771737718*
about me: *http://about.me/vishanth <http://about.me/vishanth>*