You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Anuruddha Liyanarachchi <an...@wso2.com> on 2015/03/09 07:58:16 UTC

Deploying Samples - Single Cartridge app in Mock IaaS

Hi,

I am getting following error when trying to do $subject.

sudo ./deploy.sh
>
> /Users/anuruddha/GitRepo/stratos/samples/autoscaling-policies/autoscaling-policy-1.json
> Adding autoscale policy...
> * Hostname was NOT found in DNS cache
> *   Trying ::1...
> * Connected to localhost (::1) port 9443 (#0)
> * TLS 1.0 connection using TLS_DHE_RSA_WITH_AES_256_CBC_SHA
> * Server certificate: localhost
> * Server auth using Basic with user 'admin'
> > POST /api/autoscalingPolicies HTTP/1.1
> > Authorization: Basic YWRtaW46YWRtaW4=
> > User-Agent: curl/7.37.1
> > Host: localhost:9443
> > Accept: */*
> > Content-Type: application/json
> > Content-Length: 208
> >
> * upload completely sent off: 208 out of 208 bytes
> < HTTP/1.1 400 Bad Request
> < Date: Mon, 09 Mar 2015 06:48:38 GMT
> < Content-Type: application/json
> < Transfer-Encoding: chunked
> < Connection: close
> * Server WSO2 Carbon Server is not blacklisted
> < Server: WSO2 Carbon Server
> <
> * Closing connection 0
> {"errorCode":400,"errorMessage":"Address information does not exist in the
> Endpoint Reference (EPR).The system cannot infer the transport
> mechanism."}Adding network partitions...


What am I missing ?





-- 
*Thanks and Regards,*
Anuruddha Lanka Liyanarachchi
Software Engineer - WSO2
Mobile : +94 (0) 712762611
Tel      : +94 112 145 345
a <th...@wso2.com>nuruddhal@wso2.com

Re: Deploying Samples - Single Cartridge app in Mock IaaS

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

We can find the implementation of this integration test below:
https://github.com/apache/stratos/blob/master/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/StratosTestServerManager.java

May be we need to debug this and see what's causing the problem.

Thanks

On Mon, Mar 9, 2015 at 3:36 PM, Anuruddha Liyanarachchi <anuruddhal@wso2.com
> wrote:

> Hi Imesh,
>
> I am getting this error continuously. I am making the API calls once the
> server is completely started. Even if I use the GUI I am getting this error.
>
> I tried to build a fresh copy from the source and building get with stuck
> following continuos message.
>
>
> ​
>
> On Mon, Mar 9, 2015 at 2:55 PM, Imesh Gunaratne <im...@apache.org> wrote:
>
>> Anuruddha: I did not see this problem in the latest codebase, are you
>> getting this error continuously? Can you please verify whether you are
>> making the API call once the server is completely started?
>>
>> Thanks
>>
>> On Mon, Mar 9, 2015 at 12:44 PM, Anuruddha Liyanarachchi <
>> anuruddhal@wso2.com> wrote:
>>
>>> Hi Sajith,
>>>
>>> PFA the carbon log.
>>>
>>> On Mon, Mar 9, 2015 at 12:40 PM, Sajith Kariyawasam <sa...@wso2.com>
>>> wrote:
>>>
>>>> You should be able to get more information from the backend logs. Could
>>>> you please attach wso2carbon.log log file found in repository/logs location?
>>>>
>>>> On Mon, Mar 9, 2015 at 12:28 PM, Anuruddha Liyanarachchi <
>>>> anuruddhal@wso2.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I am getting following error when trying to do $subject.
>>>>>
>>>>> sudo ./deploy.sh
>>>>>>
>>>>>> /Users/anuruddha/GitRepo/stratos/samples/autoscaling-policies/autoscaling-policy-1.json
>>>>>> Adding autoscale policy...
>>>>>> * Hostname was NOT found in DNS cache
>>>>>> *   Trying ::1...
>>>>>> * Connected to localhost (::1) port 9443 (#0)
>>>>>> * TLS 1.0 connection using TLS_DHE_RSA_WITH_AES_256_CBC_SHA
>>>>>> * Server certificate: localhost
>>>>>> * Server auth using Basic with user 'admin'
>>>>>> > POST /api/autoscalingPolicies HTTP/1.1
>>>>>> > Authorization: Basic YWRtaW46YWRtaW4=
>>>>>> > User-Agent: curl/7.37.1
>>>>>> > Host: localhost:9443
>>>>>> > Accept: */*
>>>>>> > Content-Type: application/json
>>>>>> > Content-Length: 208
>>>>>> >
>>>>>> * upload completely sent off: 208 out of 208 bytes
>>>>>> < HTTP/1.1 400 Bad Request
>>>>>> < Date: Mon, 09 Mar 2015 06:48:38 GMT
>>>>>> < Content-Type: application/json
>>>>>> < Transfer-Encoding: chunked
>>>>>> < Connection: close
>>>>>> * Server WSO2 Carbon Server is not blacklisted
>>>>>> < Server: WSO2 Carbon Server
>>>>>> <
>>>>>> * Closing connection 0
>>>>>> {"errorCode":400,"errorMessage":"Address information does not exist
>>>>>> in the Endpoint Reference (EPR).The system cannot infer the transport
>>>>>> mechanism."}Adding network partitions...
>>>>>
>>>>>
>>>>> What am I missing ?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Thanks and Regards,*
>>>>> Anuruddha Lanka Liyanarachchi
>>>>> Software Engineer - WSO2
>>>>> Mobile : +94 (0) 712762611
>>>>> Tel      : +94 112 145 345
>>>>> a <th...@wso2.com>nuruddhal@wso2.com
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> *Thanks and Regards,*
>>> Anuruddha Lanka Liyanarachchi
>>> Software Engineer - WSO2
>>> Mobile : +94 (0) 712762611
>>> Tel      : +94 112 145 345
>>> a <th...@wso2.com>nuruddhal@wso2.com
>>>
>>
>>
>>
>> --
>> Imesh Gunaratne
>>
>> Technical Lead, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>
>
>
> --
> *Thanks and Regards,*
> Anuruddha Lanka Liyanarachchi
> Software Engineer - WSO2
> Mobile : +94 (0) 712762611
> Tel      : +94 112 145 345
> a <th...@wso2.com>nuruddhal@wso2.com
>



-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: Deploying Samples - Single Cartridge app in Mock IaaS

Posted by Anuruddha Liyanarachchi <an...@wso2.com>.
Hi Imesh,

I am getting this error continuously. I am making the API calls once the
server is completely started. Even if I use the GUI I am getting this error.

I tried to build a fresh copy from the source and building get with stuck
following continuos message.


​

On Mon, Mar 9, 2015 at 2:55 PM, Imesh Gunaratne <im...@apache.org> wrote:

> Anuruddha: I did not see this problem in the latest codebase, are you
> getting this error continuously? Can you please verify whether you are
> making the API call once the server is completely started?
>
> Thanks
>
> On Mon, Mar 9, 2015 at 12:44 PM, Anuruddha Liyanarachchi <
> anuruddhal@wso2.com> wrote:
>
>> Hi Sajith,
>>
>> PFA the carbon log.
>>
>> On Mon, Mar 9, 2015 at 12:40 PM, Sajith Kariyawasam <sa...@wso2.com>
>> wrote:
>>
>>> You should be able to get more information from the backend logs. Could
>>> you please attach wso2carbon.log log file found in repository/logs location?
>>>
>>> On Mon, Mar 9, 2015 at 12:28 PM, Anuruddha Liyanarachchi <
>>> anuruddhal@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am getting following error when trying to do $subject.
>>>>
>>>> sudo ./deploy.sh
>>>>>
>>>>> /Users/anuruddha/GitRepo/stratos/samples/autoscaling-policies/autoscaling-policy-1.json
>>>>> Adding autoscale policy...
>>>>> * Hostname was NOT found in DNS cache
>>>>> *   Trying ::1...
>>>>> * Connected to localhost (::1) port 9443 (#0)
>>>>> * TLS 1.0 connection using TLS_DHE_RSA_WITH_AES_256_CBC_SHA
>>>>> * Server certificate: localhost
>>>>> * Server auth using Basic with user 'admin'
>>>>> > POST /api/autoscalingPolicies HTTP/1.1
>>>>> > Authorization: Basic YWRtaW46YWRtaW4=
>>>>> > User-Agent: curl/7.37.1
>>>>> > Host: localhost:9443
>>>>> > Accept: */*
>>>>> > Content-Type: application/json
>>>>> > Content-Length: 208
>>>>> >
>>>>> * upload completely sent off: 208 out of 208 bytes
>>>>> < HTTP/1.1 400 Bad Request
>>>>> < Date: Mon, 09 Mar 2015 06:48:38 GMT
>>>>> < Content-Type: application/json
>>>>> < Transfer-Encoding: chunked
>>>>> < Connection: close
>>>>> * Server WSO2 Carbon Server is not blacklisted
>>>>> < Server: WSO2 Carbon Server
>>>>> <
>>>>> * Closing connection 0
>>>>> {"errorCode":400,"errorMessage":"Address information does not exist in
>>>>> the Endpoint Reference (EPR).The system cannot infer the transport
>>>>> mechanism."}Adding network partitions...
>>>>
>>>>
>>>> What am I missing ?
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Thanks and Regards,*
>>>> Anuruddha Lanka Liyanarachchi
>>>> Software Engineer - WSO2
>>>> Mobile : +94 (0) 712762611
>>>> Tel      : +94 112 145 345
>>>> a <th...@wso2.com>nuruddhal@wso2.com
>>>>
>>>
>>>
>>
>>
>> --
>> *Thanks and Regards,*
>> Anuruddha Lanka Liyanarachchi
>> Software Engineer - WSO2
>> Mobile : +94 (0) 712762611
>> Tel      : +94 112 145 345
>> a <th...@wso2.com>nuruddhal@wso2.com
>>
>
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>



-- 
*Thanks and Regards,*
Anuruddha Lanka Liyanarachchi
Software Engineer - WSO2
Mobile : +94 (0) 712762611
Tel      : +94 112 145 345
a <th...@wso2.com>nuruddhal@wso2.com

Re: Deploying Samples - Single Cartridge app in Mock IaaS

Posted by Imesh Gunaratne <im...@apache.org>.
Anuruddha: I did not see this problem in the latest codebase, are you
getting this error continuously? Can you please verify whether you are
making the API call once the server is completely started?

Thanks

On Mon, Mar 9, 2015 at 12:44 PM, Anuruddha Liyanarachchi <
anuruddhal@wso2.com> wrote:

> Hi Sajith,
>
> PFA the carbon log.
>
> On Mon, Mar 9, 2015 at 12:40 PM, Sajith Kariyawasam <sa...@wso2.com>
> wrote:
>
>> You should be able to get more information from the backend logs. Could
>> you please attach wso2carbon.log log file found in repository/logs location?
>>
>> On Mon, Mar 9, 2015 at 12:28 PM, Anuruddha Liyanarachchi <
>> anuruddhal@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> I am getting following error when trying to do $subject.
>>>
>>> sudo ./deploy.sh
>>>>
>>>> /Users/anuruddha/GitRepo/stratos/samples/autoscaling-policies/autoscaling-policy-1.json
>>>> Adding autoscale policy...
>>>> * Hostname was NOT found in DNS cache
>>>> *   Trying ::1...
>>>> * Connected to localhost (::1) port 9443 (#0)
>>>> * TLS 1.0 connection using TLS_DHE_RSA_WITH_AES_256_CBC_SHA
>>>> * Server certificate: localhost
>>>> * Server auth using Basic with user 'admin'
>>>> > POST /api/autoscalingPolicies HTTP/1.1
>>>> > Authorization: Basic YWRtaW46YWRtaW4=
>>>> > User-Agent: curl/7.37.1
>>>> > Host: localhost:9443
>>>> > Accept: */*
>>>> > Content-Type: application/json
>>>> > Content-Length: 208
>>>> >
>>>> * upload completely sent off: 208 out of 208 bytes
>>>> < HTTP/1.1 400 Bad Request
>>>> < Date: Mon, 09 Mar 2015 06:48:38 GMT
>>>> < Content-Type: application/json
>>>> < Transfer-Encoding: chunked
>>>> < Connection: close
>>>> * Server WSO2 Carbon Server is not blacklisted
>>>> < Server: WSO2 Carbon Server
>>>> <
>>>> * Closing connection 0
>>>> {"errorCode":400,"errorMessage":"Address information does not exist in
>>>> the Endpoint Reference (EPR).The system cannot infer the transport
>>>> mechanism."}Adding network partitions...
>>>
>>>
>>> What am I missing ?
>>>
>>>
>>>
>>>
>>>
>>> --
>>> *Thanks and Regards,*
>>> Anuruddha Lanka Liyanarachchi
>>> Software Engineer - WSO2
>>> Mobile : +94 (0) 712762611
>>> Tel      : +94 112 145 345
>>> a <th...@wso2.com>nuruddhal@wso2.com
>>>
>>
>>
>
>
> --
> *Thanks and Regards,*
> Anuruddha Lanka Liyanarachchi
> Software Engineer - WSO2
> Mobile : +94 (0) 712762611
> Tel      : +94 112 145 345
> a <th...@wso2.com>nuruddhal@wso2.com
>



-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: Deploying Samples - Single Cartridge app in Mock IaaS

Posted by Anuruddha Liyanarachchi <an...@wso2.com>.
Hi Sajith,

PFA the carbon log.

On Mon, Mar 9, 2015 at 12:40 PM, Sajith Kariyawasam <sa...@wso2.com> wrote:

> You should be able to get more information from the backend logs. Could
> you please attach wso2carbon.log log file found in repository/logs location?
>
> On Mon, Mar 9, 2015 at 12:28 PM, Anuruddha Liyanarachchi <
> anuruddhal@wso2.com> wrote:
>
>> Hi,
>>
>> I am getting following error when trying to do $subject.
>>
>> sudo ./deploy.sh
>>>
>>> /Users/anuruddha/GitRepo/stratos/samples/autoscaling-policies/autoscaling-policy-1.json
>>> Adding autoscale policy...
>>> * Hostname was NOT found in DNS cache
>>> *   Trying ::1...
>>> * Connected to localhost (::1) port 9443 (#0)
>>> * TLS 1.0 connection using TLS_DHE_RSA_WITH_AES_256_CBC_SHA
>>> * Server certificate: localhost
>>> * Server auth using Basic with user 'admin'
>>> > POST /api/autoscalingPolicies HTTP/1.1
>>> > Authorization: Basic YWRtaW46YWRtaW4=
>>> > User-Agent: curl/7.37.1
>>> > Host: localhost:9443
>>> > Accept: */*
>>> > Content-Type: application/json
>>> > Content-Length: 208
>>> >
>>> * upload completely sent off: 208 out of 208 bytes
>>> < HTTP/1.1 400 Bad Request
>>> < Date: Mon, 09 Mar 2015 06:48:38 GMT
>>> < Content-Type: application/json
>>> < Transfer-Encoding: chunked
>>> < Connection: close
>>> * Server WSO2 Carbon Server is not blacklisted
>>> < Server: WSO2 Carbon Server
>>> <
>>> * Closing connection 0
>>> {"errorCode":400,"errorMessage":"Address information does not exist in
>>> the Endpoint Reference (EPR).The system cannot infer the transport
>>> mechanism."}Adding network partitions...
>>
>>
>> What am I missing ?
>>
>>
>>
>>
>>
>> --
>> *Thanks and Regards,*
>> Anuruddha Lanka Liyanarachchi
>> Software Engineer - WSO2
>> Mobile : +94 (0) 712762611
>> Tel      : +94 112 145 345
>> a <th...@wso2.com>nuruddhal@wso2.com
>>
>
>


-- 
*Thanks and Regards,*
Anuruddha Lanka Liyanarachchi
Software Engineer - WSO2
Mobile : +94 (0) 712762611
Tel      : +94 112 145 345
a <th...@wso2.com>nuruddhal@wso2.com

Re: Deploying Samples - Single Cartridge app in Mock IaaS

Posted by Sajith Kariyawasam <sa...@wso2.com>.
You should be able to get more information from the backend logs. Could you
please attach wso2carbon.log log file found in repository/logs location?

On Mon, Mar 9, 2015 at 12:28 PM, Anuruddha Liyanarachchi <
anuruddhal@wso2.com> wrote:

> Hi,
>
> I am getting following error when trying to do $subject.
>
> sudo ./deploy.sh
>>
>> /Users/anuruddha/GitRepo/stratos/samples/autoscaling-policies/autoscaling-policy-1.json
>> Adding autoscale policy...
>> * Hostname was NOT found in DNS cache
>> *   Trying ::1...
>> * Connected to localhost (::1) port 9443 (#0)
>> * TLS 1.0 connection using TLS_DHE_RSA_WITH_AES_256_CBC_SHA
>> * Server certificate: localhost
>> * Server auth using Basic with user 'admin'
>> > POST /api/autoscalingPolicies HTTP/1.1
>> > Authorization: Basic YWRtaW46YWRtaW4=
>> > User-Agent: curl/7.37.1
>> > Host: localhost:9443
>> > Accept: */*
>> > Content-Type: application/json
>> > Content-Length: 208
>> >
>> * upload completely sent off: 208 out of 208 bytes
>> < HTTP/1.1 400 Bad Request
>> < Date: Mon, 09 Mar 2015 06:48:38 GMT
>> < Content-Type: application/json
>> < Transfer-Encoding: chunked
>> < Connection: close
>> * Server WSO2 Carbon Server is not blacklisted
>> < Server: WSO2 Carbon Server
>> <
>> * Closing connection 0
>> {"errorCode":400,"errorMessage":"Address information does not exist in
>> the Endpoint Reference (EPR).The system cannot infer the transport
>> mechanism."}Adding network partitions...
>
>
> What am I missing ?
>
>
>
>
>
> --
> *Thanks and Regards,*
> Anuruddha Lanka Liyanarachchi
> Software Engineer - WSO2
> Mobile : +94 (0) 712762611
> Tel      : +94 112 145 345
> a <th...@wso2.com>nuruddhal@wso2.com
>