You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Jane Mariathas <ja...@wso2.com> on 2015/06/04 08:17:16 UTC

could not start instance

hi,

i followed the steps in https://gist.github.com/imesh/b8f81fac8de39183a504
and tried. and i got the error saying



*ERROR* {org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas}
-  Could not start container: [application] single-cartridge-app
[cartridge] php [member]
single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
java.lang.RuntimeException: Pod status did not change to running within 60
sec: [application] single-cartridge-app [cartridge] php [member]
single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
[pod] pod-1
    at
org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.waitForPodToBeActivated(KubernetesIaas.java:342)
    at
org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:227)
    at
org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startInstance(KubernetesIaas.java:126)
    at
org.apache.stratos.cloud.controller.services.impl.InstanceCreator.startInstance(InstanceCreator.java:109)
    at
org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:68)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
 *ERROR*
{org.apache.stratos.cloud.controller.services.impl.InstanceCreator} -
Could not start instance: [cartridge-type] php [cluster-id]
single-cartridge-app.my-php.php.domain
java.lang.RuntimeException: Could not start container: [application]
single-cartridge-app [cartridge] php [member]
single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
    at
org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:243)
    at
org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startInstance(KubernetesIaas.java:126)
    at
org.apache.stratos.cloud.controller.services.impl.InstanceCreator.startInstance(InstanceCreator.java:109)
    at
org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:68)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Pod status did not change to running
within 60 sec: [application] single-cartridge-app [cartridge] php [member]
single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
[pod] pod-1
    at
org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.waitForPodToBeActivated(KubernetesIaas.java:342)
    at
org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:227)


Any suggestion to fix this error?

Thanks.

Re: could not start instance

Posted by Imesh Gunaratne <im...@apache.org>.
Thanks for pointing Raj! Yes the above gist was not up to date. I just
updated it to refer 4.1.0-rc2 and proper instructions to pull the docker
images to minions.

Thanks

On Sat, Jun 6, 2015 at 5:28 AM, Rajkumar Rajaratnam <ra...@wso2.com>
wrote:

> Yes Imesh. I was wondering how the pods can be created in minions without
> having docker images in minions.
>
> This doc https://gist.github.com/imesh/b8f81fac8de39183a504 says to pull
> the docker image only to master node. We need to update it.
>
> Thanks.
>
> On Sat, Jun 6, 2015 at 12:41 AM, Imesh Gunaratne <im...@apache.org> wrote:
>
>> Hi Jane,
>>
>> You could first try to run the Kubernetes live test against the
>> Kubernetes cluster you have setup and see whether its working properly. Go
>> to Kubernetes API client folder in components folder and run "mvn test
>> -Plive".
>>
>> If it is working, SSH into all the minions and verify whether the Docker
>> image you are trying with is imported.
>>
>> @Raj: We do not need the Docker image in the master node. In this setup
>> we only run Docker in minions.
>>
>> Thanks
>>
>> On Thu, Jun 4, 2015 at 1:25 PM, Jane Mariathas <ja...@wso2.com> wrote:
>>
>>> hi Rajkumar
>>>
>>> yeah the docker image name is same as the docker image name in cartridge
>>> definition.
>>>
>>> image name is :   * stratos/php:4.1.0-beta*
>>>
>>>
>>>
>>> On Thu, Jun 4, 2015 at 12:21 PM, Rajkumar Rajaratnam <rajkumarr@wso2.com
>>> > wrote:
>>>
>>>> Hi Jane,
>>>>
>>>> Log says the pod didn't become to RUNNING state.
>>>>
>>>> - did you pull the docker image to the kub master?
>>>> - did you use the same docker image name in cartridge definition?
>>>>
>>>> Thanks.
>>>>
>>>> On Thu, Jun 4, 2015 at 11:47 AM, Jane Mariathas <ja...@wso2.com> wrote:
>>>>
>>>>> hi,
>>>>>
>>>>> i followed the steps in
>>>>> https://gist.github.com/imesh/b8f81fac8de39183a504 and tried. and i
>>>>> got the error saying
>>>>>
>>>>>
>>>>>
>>>>> *ERROR* {org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas}
>>>>> -  Could not start container: [application] single-cartridge-app
>>>>> [cartridge] php [member]
>>>>> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>>>>> java.lang.RuntimeException: Pod status did not change to running
>>>>> within 60 sec: [application] single-cartridge-app [cartridge] php [member]
>>>>> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>>>>> [pod] pod-1
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.waitForPodToBeActivated(KubernetesIaas.java:342)
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:227)
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startInstance(KubernetesIaas.java:126)
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.startInstance(InstanceCreator.java:109)
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:68)
>>>>>     at
>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>     at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>>     at java.lang.Thread.run(Thread.java:745)
>>>>>  *ERROR*
>>>>> {org.apache.stratos.cloud.controller.services.impl.InstanceCreator} -
>>>>> Could not start instance: [cartridge-type] php [cluster-id]
>>>>> single-cartridge-app.my-php.php.domain
>>>>> java.lang.RuntimeException: Could not start container: [application]
>>>>> single-cartridge-app [cartridge] php [member]
>>>>> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:243)
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startInstance(KubernetesIaas.java:126)
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.startInstance(InstanceCreator.java:109)
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:68)
>>>>>     at
>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>     at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>>     at java.lang.Thread.run(Thread.java:745)
>>>>> Caused by: java.lang.RuntimeException: Pod status did not change to
>>>>> running within 60 sec: [application] single-cartridge-app [cartridge] php
>>>>> [member]
>>>>> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>>>>> [pod] pod-1
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.waitForPodToBeActivated(KubernetesIaas.java:342)
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:227)
>>>>>
>>>>>
>>>>> Any suggestion to fix this error?
>>>>>
>>>>> Thanks.
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Rajkumar Rajaratnam
>>>> Committer & PMC Member, Apache Stratos
>>>> Software Engineer, WSO2
>>>>
>>>> Mobile : +94777568639
>>>> Blog : rajkumarr.com
>>>>
>>>
>>>
>>
>>
>> --
>> Imesh Gunaratne
>>
>> Senior Technical Lead, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>
>
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Software Engineer, WSO2
>
> Mobile : +94777568639
> Blog : rajkumarr.com
>



-- 
Imesh Gunaratne

Senior Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: could not start instance

Posted by Rajkumar Rajaratnam <ra...@wso2.com>.
Yes Imesh. I was wondering how the pods can be created in minions without
having docker images in minions.

This doc https://gist.github.com/imesh/b8f81fac8de39183a504 says to pull
the docker image only to master node. We need to update it.

Thanks.

On Sat, Jun 6, 2015 at 12:41 AM, Imesh Gunaratne <im...@apache.org> wrote:

> Hi Jane,
>
> You could first try to run the Kubernetes live test against the Kubernetes
> cluster you have setup and see whether its working properly. Go to
> Kubernetes API client folder in components folder and run "mvn test -Plive".
>
> If it is working, SSH into all the minions and verify whether the Docker
> image you are trying with is imported.
>
> @Raj: We do not need the Docker image in the master node. In this setup we
> only run Docker in minions.
>
> Thanks
>
> On Thu, Jun 4, 2015 at 1:25 PM, Jane Mariathas <ja...@wso2.com> wrote:
>
>> hi Rajkumar
>>
>> yeah the docker image name is same as the docker image name in cartridge
>> definition.
>>
>> image name is :   * stratos/php:4.1.0-beta*
>>
>>
>>
>> On Thu, Jun 4, 2015 at 12:21 PM, Rajkumar Rajaratnam <ra...@wso2.com>
>> wrote:
>>
>>> Hi Jane,
>>>
>>> Log says the pod didn't become to RUNNING state.
>>>
>>> - did you pull the docker image to the kub master?
>>> - did you use the same docker image name in cartridge definition?
>>>
>>> Thanks.
>>>
>>> On Thu, Jun 4, 2015 at 11:47 AM, Jane Mariathas <ja...@wso2.com> wrote:
>>>
>>>> hi,
>>>>
>>>> i followed the steps in
>>>> https://gist.github.com/imesh/b8f81fac8de39183a504 and tried. and i
>>>> got the error saying
>>>>
>>>>
>>>>
>>>> *ERROR* {org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas}
>>>> -  Could not start container: [application] single-cartridge-app
>>>> [cartridge] php [member]
>>>> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>>>> java.lang.RuntimeException: Pod status did not change to running within
>>>> 60 sec: [application] single-cartridge-app [cartridge] php [member]
>>>> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>>>> [pod] pod-1
>>>>     at
>>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.waitForPodToBeActivated(KubernetesIaas.java:342)
>>>>     at
>>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:227)
>>>>     at
>>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startInstance(KubernetesIaas.java:126)
>>>>     at
>>>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.startInstance(InstanceCreator.java:109)
>>>>     at
>>>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:68)
>>>>     at
>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>     at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>     at java.lang.Thread.run(Thread.java:745)
>>>>  *ERROR*
>>>> {org.apache.stratos.cloud.controller.services.impl.InstanceCreator} -
>>>> Could not start instance: [cartridge-type] php [cluster-id]
>>>> single-cartridge-app.my-php.php.domain
>>>> java.lang.RuntimeException: Could not start container: [application]
>>>> single-cartridge-app [cartridge] php [member]
>>>> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>>>>     at
>>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:243)
>>>>     at
>>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startInstance(KubernetesIaas.java:126)
>>>>     at
>>>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.startInstance(InstanceCreator.java:109)
>>>>     at
>>>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:68)
>>>>     at
>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>     at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>     at java.lang.Thread.run(Thread.java:745)
>>>> Caused by: java.lang.RuntimeException: Pod status did not change to
>>>> running within 60 sec: [application] single-cartridge-app [cartridge] php
>>>> [member]
>>>> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>>>> [pod] pod-1
>>>>     at
>>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.waitForPodToBeActivated(KubernetesIaas.java:342)
>>>>     at
>>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:227)
>>>>
>>>>
>>>> Any suggestion to fix this error?
>>>>
>>>> Thanks.
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Rajkumar Rajaratnam
>>> Committer & PMC Member, Apache Stratos
>>> Software Engineer, WSO2
>>>
>>> Mobile : +94777568639
>>> Blog : rajkumarr.com
>>>
>>
>>
>
>
> --
> Imesh Gunaratne
>
> Senior Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>



-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2

Mobile : +94777568639
Blog : rajkumarr.com

Re: could not start instance

Posted by Imesh Gunaratne <im...@apache.org>.
Hi Jane,

You could first try to run the Kubernetes live test against the Kubernetes
cluster you have setup and see whether its working properly. Go to
Kubernetes API client folder in components folder and run "mvn test -Plive".

If it is working, SSH into all the minions and verify whether the Docker
image you are trying with is imported.

@Raj: We do not need the Docker image in the master node. In this setup we
only run Docker in minions.

Thanks

On Thu, Jun 4, 2015 at 1:25 PM, Jane Mariathas <ja...@wso2.com> wrote:

> hi Rajkumar
>
> yeah the docker image name is same as the docker image name in cartridge
> definition.
>
> image name is :   * stratos/php:4.1.0-beta*
>
>
>
> On Thu, Jun 4, 2015 at 12:21 PM, Rajkumar Rajaratnam <ra...@wso2.com>
> wrote:
>
>> Hi Jane,
>>
>> Log says the pod didn't become to RUNNING state.
>>
>> - did you pull the docker image to the kub master?
>> - did you use the same docker image name in cartridge definition?
>>
>> Thanks.
>>
>> On Thu, Jun 4, 2015 at 11:47 AM, Jane Mariathas <ja...@wso2.com> wrote:
>>
>>> hi,
>>>
>>> i followed the steps in
>>> https://gist.github.com/imesh/b8f81fac8de39183a504 and tried. and i got
>>> the error saying
>>>
>>>
>>>
>>> *ERROR* {org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas}
>>> -  Could not start container: [application] single-cartridge-app
>>> [cartridge] php [member]
>>> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>>> java.lang.RuntimeException: Pod status did not change to running within
>>> 60 sec: [application] single-cartridge-app [cartridge] php [member]
>>> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>>> [pod] pod-1
>>>     at
>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.waitForPodToBeActivated(KubernetesIaas.java:342)
>>>     at
>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:227)
>>>     at
>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startInstance(KubernetesIaas.java:126)
>>>     at
>>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.startInstance(InstanceCreator.java:109)
>>>     at
>>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:68)
>>>     at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>     at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>     at java.lang.Thread.run(Thread.java:745)
>>>  *ERROR*
>>> {org.apache.stratos.cloud.controller.services.impl.InstanceCreator} -
>>> Could not start instance: [cartridge-type] php [cluster-id]
>>> single-cartridge-app.my-php.php.domain
>>> java.lang.RuntimeException: Could not start container: [application]
>>> single-cartridge-app [cartridge] php [member]
>>> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>>>     at
>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:243)
>>>     at
>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startInstance(KubernetesIaas.java:126)
>>>     at
>>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.startInstance(InstanceCreator.java:109)
>>>     at
>>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:68)
>>>     at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>     at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>     at java.lang.Thread.run(Thread.java:745)
>>> Caused by: java.lang.RuntimeException: Pod status did not change to
>>> running within 60 sec: [application] single-cartridge-app [cartridge] php
>>> [member]
>>> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>>> [pod] pod-1
>>>     at
>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.waitForPodToBeActivated(KubernetesIaas.java:342)
>>>     at
>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:227)
>>>
>>>
>>> Any suggestion to fix this error?
>>>
>>> Thanks.
>>>
>>>
>>>
>>
>>
>> --
>> Rajkumar Rajaratnam
>> Committer & PMC Member, Apache Stratos
>> Software Engineer, WSO2
>>
>> Mobile : +94777568639
>> Blog : rajkumarr.com
>>
>
>


-- 
Imesh Gunaratne

Senior Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: could not start instance

Posted by Jane Mariathas <ja...@wso2.com>.
hi Rajkumar

yeah the docker image name is same as the docker image name in cartridge
definition.

image name is :   * stratos/php:4.1.0-beta*



On Thu, Jun 4, 2015 at 12:21 PM, Rajkumar Rajaratnam <ra...@wso2.com>
wrote:

> Hi Jane,
>
> Log says the pod didn't become to RUNNING state.
>
> - did you pull the docker image to the kub master?
> - did you use the same docker image name in cartridge definition?
>
> Thanks.
>
> On Thu, Jun 4, 2015 at 11:47 AM, Jane Mariathas <ja...@wso2.com> wrote:
>
>> hi,
>>
>> i followed the steps in
>> https://gist.github.com/imesh/b8f81fac8de39183a504 and tried. and i got
>> the error saying
>>
>>
>>
>> *ERROR* {org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas}
>> -  Could not start container: [application] single-cartridge-app
>> [cartridge] php [member]
>> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>> java.lang.RuntimeException: Pod status did not change to running within
>> 60 sec: [application] single-cartridge-app [cartridge] php [member]
>> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>> [pod] pod-1
>>     at
>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.waitForPodToBeActivated(KubernetesIaas.java:342)
>>     at
>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:227)
>>     at
>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startInstance(KubernetesIaas.java:126)
>>     at
>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.startInstance(InstanceCreator.java:109)
>>     at
>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:68)
>>     at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>     at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>     at java.lang.Thread.run(Thread.java:745)
>>  *ERROR*
>> {org.apache.stratos.cloud.controller.services.impl.InstanceCreator} -
>> Could not start instance: [cartridge-type] php [cluster-id]
>> single-cartridge-app.my-php.php.domain
>> java.lang.RuntimeException: Could not start container: [application]
>> single-cartridge-app [cartridge] php [member]
>> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>>     at
>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:243)
>>     at
>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startInstance(KubernetesIaas.java:126)
>>     at
>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.startInstance(InstanceCreator.java:109)
>>     at
>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:68)
>>     at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>     at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>     at java.lang.Thread.run(Thread.java:745)
>> Caused by: java.lang.RuntimeException: Pod status did not change to
>> running within 60 sec: [application] single-cartridge-app [cartridge] php
>> [member]
>> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>> [pod] pod-1
>>     at
>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.waitForPodToBeActivated(KubernetesIaas.java:342)
>>     at
>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:227)
>>
>>
>> Any suggestion to fix this error?
>>
>> Thanks.
>>
>>
>>
>
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Software Engineer, WSO2
>
> Mobile : +94777568639
> Blog : rajkumarr.com
>

Re: could not start instance

Posted by Rajkumar Rajaratnam <ra...@wso2.com>.
Hi Jane,

Log says the pod didn't become to RUNNING state.

- did you pull the docker image to the kub master?
- did you use the same docker image name in cartridge definition?

Thanks.

On Thu, Jun 4, 2015 at 11:47 AM, Jane Mariathas <ja...@wso2.com> wrote:

> hi,
>
> i followed the steps in https://gist.github.com/imesh/b8f81fac8de39183a504
> and tried. and i got the error saying
>
>
>
> *ERROR* {org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas}
> -  Could not start container: [application] single-cartridge-app
> [cartridge] php [member]
> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
> java.lang.RuntimeException: Pod status did not change to running within 60
> sec: [application] single-cartridge-app [cartridge] php [member]
> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
> [pod] pod-1
>     at
> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.waitForPodToBeActivated(KubernetesIaas.java:342)
>     at
> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:227)
>     at
> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startInstance(KubernetesIaas.java:126)
>     at
> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.startInstance(InstanceCreator.java:109)
>     at
> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:68)
>     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>     at java.lang.Thread.run(Thread.java:745)
>  *ERROR*
> {org.apache.stratos.cloud.controller.services.impl.InstanceCreator} -
> Could not start instance: [cartridge-type] php [cluster-id]
> single-cartridge-app.my-php.php.domain
> java.lang.RuntimeException: Could not start container: [application]
> single-cartridge-app [cartridge] php [member]
> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>     at
> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:243)
>     at
> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startInstance(KubernetesIaas.java:126)
>     at
> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.startInstance(InstanceCreator.java:109)
>     at
> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:68)
>     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>     at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.RuntimeException: Pod status did not change to
> running within 60 sec: [application] single-cartridge-app [cartridge] php
> [member]
> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
> [pod] pod-1
>     at
> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.waitForPodToBeActivated(KubernetesIaas.java:342)
>     at
> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:227)
>
>
> Any suggestion to fix this error?
>
> Thanks.
>
>
>


-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2

Mobile : +94777568639
Blog : rajkumarr.com