Re: [Dev] nginx master_process on; (code=exited, status=1/FAILURE)

2017-11-28 Thread Isuru Udana
Hi Dushantha,

Installing a fresh nginx doesn't make any difference or any sense as port
is occupied by something else :)



On Wed, Nov 29, 2017 at 12:49 PM, Dushantha Batuwita 
wrote:

> Hi Senduran:
>
> I have tried your command and it is the apache2 process.
>
> sudo netstat -nlp | grep :80
> tcp6   0  0 :::80   :::*
> LISTEN  1076/apache2
>
>
>
>
> further, *when I try installing the nginx freshly* the following error
> can be seen too (with details I have mentioned in the above mail)
>
> නෙවැ 29 12:31:07 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 29 12:31:07 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 29 12:31:07 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
> [emerg] still could not bind()
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Control process exited, code=exited status=1
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th systemd[1]: Failed to
> start A high performance web server and a reverse proxy server.
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Unit entered failed state.
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Failed with result 'exit-code'.
> dpkg: error processing package nginx-core (--configure):
>  subprocess installed post-installation script returned error exit status 1
> dpkg: dependency problems prevent configuration of nginx:
>  nginx depends on nginx-core (<< 1.10.3-1ubuntu3.1.1~) | nginx-full (<<
> 1.10.3-1ubuntu3.1.1~) | nginx-light (<< 1.10.3-1ubuntu3.1.1~) |
> nginx-extras (<< 1.10.3-1ubuntu3.1.1~); however:
>   Package nginx-core is not configured yet.
>   Package nginx-full is not installed.
>   Package nginx-light is not installed.
>   Package nginx-extras is not installed.
>  nginx depends on nginx-core (>= 1.10.3-1ubuntu3.1) | nginx-full (>=
> 1.10.3-1ubuntu3.1) | nginx-light (>= 1.10.3-1ubuntu3.1) | nginx-extras (>=
> 1.10.3-1ubuntu3.1); however:
>   Package nginx-core is not configured yet.
>   Package nginx-full is not installed.
>   Package nginx-light is not installed.
>   Package nginx-extras is not installed.
>
> dpkg: error processing package nginx (--configure):
>  dependency problems - leaving unconfigured
> No apport report written because the error message indicates its a
> followup error from a previous failure.
>
> Processing triggers for ureadahead
> (0.100.0-20) ...
> Processing triggers for ufw (0.35-5) ...
> Errors were encountered while processing:
>  nginx-core
>  nginx
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> Kindly advice if I have done something incorrect here
>
> Regards
>
>
> On Wed, Nov 29, 2017 at 11:21 AM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> As the error says "Address already in use" you have to find which process
>> is bound to port 80 already. the following command will help you identify
>> the process running on port 80
>>
>> sudo netstat -nlp | grep :80
>>
>> find the process and stop that process first before trying to start the
>> nginx
>>
>> Regards
>> Senduran
>>
>> On Wed, Nov 29, 2017 at 11:06 AM, Dushantha Batuwita 
>> wrote:
>>
>>> Hi
>>>
>>> I completely uninstall NGINX from my machine and reinstalled it again
>>> and but the NGINX server gives me the same error.
>>>
>>> *Things I have done*
>>>
>>>
>>>- I have run the command
>>>
>>> sudo netstat -tulpn
>>>
>>> Active Internet connections (only servers)
>>> Proto Recv-Q Send-Q Local Address   Foreign Address
>>>  State   PID/Program name
>>> tcp0  0 127.0.0.1:631   0.0.0.0:*
>>>  LISTEN  32365/cupsd
>>> tcp0  0 0.0.0.0:389 0.0.0.0:*
>>>  LISTEN  1401/slapd
>>> tcp0  0 0.0.0.0:33060.0.0.0:*
>>>  LISTEN  987/mysqld
>>> tcp0  0 0.0.0.0:53550.0.0.0:*
>>>  LISTEN  976/systemd-resolve
>>> tcp6   0  0 ::1:631 :::*
>>> LISTEN  32365/cupsd
>>> tcp6   0  0 :::389  :::*
>>> LISTEN  1401/slapd
>>> tcp6   0  0 :::5355 :::*
>>> LISTEN  976/systemd-resolve
>>> tcp6   0  0 :::80   :::*
>>> LISTEN  1126/apache2
>>>
>>>
>>>- Even I have killed the process 1126 and tried.
>>>
>>>
>>> Then searched the error on the net and found that the resource [1]  and
>>> change the /et

Re: [Dev] nginx master_process on; (code=exited, status=1/FAILURE)

2017-11-28 Thread Senduran Balasubramaniyam
Hi Dushantha,

As you have mentioned apache2 is already bounded to port 80. that is why
when you try to start the nginx you are getting " Address already in use".
If you try stop the apache2 and start the nginx, you will be able to start
the nginx without the above error

Regards
Senduran

On Wed, Nov 29, 2017 at 12:49 PM, Dushantha Batuwita 
wrote:

> Hi Senduran:
>
> I have tried your command and it is the apache2 process.
>
> sudo netstat -nlp | grep :80
> tcp6   0  0 :::80   :::*
> LISTEN  1076/apache2
>
>
>
>
> further, *when I try installing the nginx freshly* the following error
> can be seen too (with details I have mentioned in the above mail)
>
> නෙවැ 29 12:31:07 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 29 12:31:07 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 29 12:31:07 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
> [emerg] still could not bind()
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Control process exited, code=exited status=1
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th systemd[1]: Failed to
> start A high performance web server and a reverse proxy server.
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Unit entered failed state.
> නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Failed with result 'exit-code'.
> dpkg: error processing package nginx-core (--configure):
>  subprocess installed post-installation script returned error exit status 1
> dpkg: dependency problems prevent configuration of nginx:
>  nginx depends on nginx-core (<< 1.10.3-1ubuntu3.1.1~) | nginx-full (<<
> 1.10.3-1ubuntu3.1.1~) | nginx-light (<< 1.10.3-1ubuntu3.1.1~) |
> nginx-extras (<< 1.10.3-1ubuntu3.1.1~); however:
>   Package nginx-core is not configured yet.
>   Package nginx-full is not installed.
>   Package nginx-light is not installed.
>   Package nginx-extras is not installed.
>  nginx depends on nginx-core (>= 1.10.3-1ubuntu3.1) | nginx-full (>=
> 1.10.3-1ubuntu3.1) | nginx-light (>= 1.10.3-1ubuntu3.1) | nginx-extras (>=
> 1.10.3-1ubuntu3.1); however:
>   Package nginx-core is not configured yet.
>   Package nginx-full is not installed.
>   Package nginx-light is not installed.
>   Package nginx-extras is not installed.
>
> dpkg: error processing package nginx (--configure):
>  dependency problems - leaving unconfigured
> No apport report written because the error message indicates its a
> followup error from a previous failure.
>
> Processing triggers for ureadahead
> (0.100.0-20) ...
> Processing triggers for ufw (0.35-5) ...
> Errors were encountered while processing:
>  nginx-core
>  nginx
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> Kindly advice if I have done something incorrect here
>
> Regards
>
>
> On Wed, Nov 29, 2017 at 11:21 AM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> As the error says "Address already in use" you have to find which process
>> is bound to port 80 already. the following command will help you identify
>> the process running on port 80
>>
>> sudo netstat -nlp | grep :80
>>
>> find the process and stop that process first before trying to start the
>> nginx
>>
>> Regards
>> Senduran
>>
>> On Wed, Nov 29, 2017 at 11:06 AM, Dushantha Batuwita 
>> wrote:
>>
>>> Hi
>>>
>>> I completely uninstall NGINX from my machine and reinstalled it again
>>> and but the NGINX server gives me the same error.
>>>
>>> *Things I have done*
>>>
>>>
>>>- I have run the command
>>>
>>> sudo netstat -tulpn
>>>
>>> Active Internet connections (only servers)
>>> Proto Recv-Q Send-Q Local Address   Foreign Address
>>>  State   PID/Program name
>>> tcp0  0 127.0.0.1:631   0.0.0.0:*
>>>  LISTEN  32365/cupsd
>>> tcp0  0 0.0.0.0:389 0.0.0.0:*
>>>  LISTEN  1401/slapd
>>> tcp0  0 0.0.0.0:33060.0.0.0:*
>>>  LISTEN  987/mysqld
>>> tcp0  0 0.0.0.0:53550.0.0.0:*
>>>  LISTEN  976/systemd-resolve
>>> tcp6   0  0 ::1:631 :::*
>>> LISTEN  32365/cupsd
>>> tcp6   0  0 :::389  :::*
>>> LISTEN  1401/slapd
>>> tcp6   0  0 :::5355 :::*
>>> LISTEN  976/systemd-resolve
>>> tcp6   0  0 :::80   :::*
>>> LISTEN  1126/apache2

Re: [Dev] nginx master_process on; (code=exited, status=1/FAILURE)

2017-11-28 Thread Dushantha Batuwita
Hi Senduran:

I have tried your command and it is the apache2 process.

sudo netstat -nlp | grep :80
tcp6   0  0 :::80   :::*LISTEN
1076/apache2




further, *when I try installing the nginx freshly* the following error can
be seen too (with details I have mentioned in the above mail)

නෙවැ 29 12:31:07 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
[emerg] bind() to [::]:80 failed (98: Address already in use)
නෙවැ 29 12:31:07 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
[emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
නෙවැ 29 12:31:07 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
[emerg] bind() to [::]:80 failed (98: Address already in use)
නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
[emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
[emerg] bind() to [::]:80 failed (98: Address already in use)
නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th nginx[8144]: nginx:
[emerg] still could not bind()
නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
nginx.service: Control process exited, code=exited status=1
නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th systemd[1]: Failed to
start A high performance web server and a reverse proxy server.
නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
nginx.service: Unit entered failed state.
නෙවැ 29 12:31:08 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
nginx.service: Failed with result 'exit-code'.
dpkg: error processing package nginx-core (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
 nginx depends on nginx-core (<< 1.10.3-1ubuntu3.1.1~) | nginx-full (<<
1.10.3-1ubuntu3.1.1~) | nginx-light (<< 1.10.3-1ubuntu3.1.1~) |
nginx-extras (<< 1.10.3-1ubuntu3.1.1~); however:
  Package nginx-core is not configured yet.
  Package nginx-full is not installed.
  Package nginx-light is not installed.
  Package nginx-extras is not installed.
 nginx depends on nginx-core (>= 1.10.3-1ubuntu3.1) | nginx-full (>=
1.10.3-1ubuntu3.1) | nginx-light (>= 1.10.3-1ubuntu3.1) | nginx-extras (>=
1.10.3-1ubuntu3.1); however:
  Package nginx-core is not configured yet.
  Package nginx-full is not installed.
  Package nginx-light is not installed.
  Package nginx-extras is not installed.

dpkg: error processing package nginx (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup
error from a previous failure.

  Processing triggers for ureadahead
(0.100.0-20) ...
Processing triggers for ufw (0.35-5) ...
Errors were encountered while processing:
 nginx-core
 nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)

Kindly advice if I have done something incorrect here

Regards


On Wed, Nov 29, 2017 at 11:21 AM, Senduran Balasubramaniyam <
sendu...@wso2.com> wrote:

> As the error says "Address already in use" you have to find which process
> is bound to port 80 already. the following command will help you identify
> the process running on port 80
>
> sudo netstat -nlp | grep :80
>
> find the process and stop that process first before trying to start the
> nginx
>
> Regards
> Senduran
>
> On Wed, Nov 29, 2017 at 11:06 AM, Dushantha Batuwita 
> wrote:
>
>> Hi
>>
>> I completely uninstall NGINX from my machine and reinstalled it again and
>> but the NGINX server gives me the same error.
>>
>> *Things I have done*
>>
>>
>>- I have run the command
>>
>> sudo netstat -tulpn
>>
>> Active Internet connections (only servers)
>> Proto Recv-Q Send-Q Local Address   Foreign Address
>>  State   PID/Program name
>> tcp0  0 127.0.0.1:631   0.0.0.0:*
>>  LISTEN  32365/cupsd
>> tcp0  0 0.0.0.0:389 0.0.0.0:*
>>  LISTEN  1401/slapd
>> tcp0  0 0.0.0.0:33060.0.0.0:*
>>  LISTEN  987/mysqld
>> tcp0  0 0.0.0.0:53550.0.0.0:*
>>  LISTEN  976/systemd-resolve
>> tcp6   0  0 ::1:631 :::*
>> LISTEN  32365/cupsd
>> tcp6   0  0 :::389  :::*
>> LISTEN  1401/slapd
>> tcp6   0  0 :::5355 :::*
>> LISTEN  976/systemd-resolve
>> tcp6   0  0 :::80   :::*
>> LISTEN  1126/apache2
>>
>>
>>- Even I have killed the process 1126 and tried.
>>
>>
>> Then searched the error on the net and found that the resource [1]  and
>> change the /etc/nginx/sites-enabled/default   file by inserting the code
>>
>> listen [::]:80 ipv6only=on default_server; as it has been stated.
>>
>>
>> [1] https://stackoverflow.com/questions/14972792/nginx-nginx
>> -emerg-bind-to-80-failed-98-address-already-in-use
>>
>> but when I try starting the nginx and check the status the same error is
>> shown.
>> as bellow

Re: [Dev] Problem with IP level throttling in distributed setup

2017-11-28 Thread Prasanna Dangalla
Hi Buddhimala,

Can you check the throttle policy file whether the policy is updated or
not. Ex:
repository/deployment/server/executionplans/carbon.super_resource_100KKBPerMin_default.siddhiql
and
repository/deployment/server/executionplans/carbon.super_resource_100KKBPerMin_condition_1.siddhiql

Thanks

*Prasanna Dangalla*
Senior Software Engineer, WSO2, Inc.; http://wso2.com/
lean.enterprise.middleware


*cell: +94 718 11 27 51*
*twitter: @prasa77*

On Wed, Nov 29, 2017 at 12:34 PM, Buddhimala Ranasinghe  wrote:

> Hi Dinusha,Irham,
>
> I tried header condition throttling as well. The same behavior can be
> observed in there also. Throttling out occurs after the default limit and
> not after the condition request limit.
>
> Thanks
>
> On Wed, Nov 29, 2017 at 12:18 PM, Dinusha Dissanayake 
> wrote:
>
>> Hi Buddhimala,
>>
>> Did you observe this behavior only for IP based throttle condition or
>> with other conditions as well (eg. header condition, IP range condition )?
>>
>> Thanks,
>> DinushaD.
>>
>> On Wed, Nov 29, 2017 at 11:47 AM, Buddhimala Ranasinghe <
>> buddhim...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I have a distributed deployment in API Manager which contains
>>>
>>> 1GW
>>> Pub+Store+TM
>>> Is as KM
>>>
>>> I tried to implement IP level throttling for my API in this setup. I
>>> have put 20 as my default equest limit and under IP condition I gave
>>> request count as 5. I gave my local IP address as the IP condition to
>>> thrttle out.
>>> But when I invoked the API, it throttles out at the 21st request and not
>>> at 6th request.
>>>
>>> I also tried the same with another pack where only IS was configured as
>>> KM (Pub,Store,GW,TM+IS as KM). There I could successfully throttle out at
>>> the 6th request.
>>>
>>> What can be the reason for this behaviour? Can you please help me to
>>> resolve this problem?
>>>
>>>
>>> Thanks
>>> --
>>>
>>>
>>> *Buddhimala Ranasinghe*
>>> Software Engineer-Support Team | WSO2
>>> Emil: buddhim...@wso2.com
>>> Mobile:+94771563138 <+94%2077%20156%203138>
>>> Web:http://wso2.com
>>> [image: https://wso2.com/signature] 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Dinusha Dissanayake
>> Software Engineer
>> WSO2 Inc
>> Mobile: +94712939439 <+94%2071%20293%209439>
>> 
>>
>
>
>
> --
>
>
> *Buddhimala Ranasinghe*
> Software Engineer-Support Team | WSO2
> Emil: buddhim...@wso2.com
> Mobile:+94771563138 <+94%2077%20156%203138>
> Web:http://wso2.com
> [image: https://wso2.com/signature] 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Problem with IP level throttling in distributed setup

2017-11-28 Thread Buddhimala Ranasinghe
Hi Dinusha,Irham,

I tried header condition throttling as well. The same behavior can be
observed in there also. Throttling out occurs after the default limit and
not after the condition request limit.

Thanks

On Wed, Nov 29, 2017 at 12:18 PM, Dinusha Dissanayake 
wrote:

> Hi Buddhimala,
>
> Did you observe this behavior only for IP based throttle condition or with
> other conditions as well (eg. header condition, IP range condition )?
>
> Thanks,
> DinushaD.
>
> On Wed, Nov 29, 2017 at 11:47 AM, Buddhimala Ranasinghe <
> buddhim...@wso2.com> wrote:
>
>> Hi All,
>>
>> I have a distributed deployment in API Manager which contains
>>
>> 1GW
>> Pub+Store+TM
>> Is as KM
>>
>> I tried to implement IP level throttling for my API in this setup. I have
>> put 20 as my default equest limit and under IP condition I gave request
>> count as 5. I gave my local IP address as the IP condition to thrttle out.
>> But when I invoked the API, it throttles out at the 21st request and not
>> at 6th request.
>>
>> I also tried the same with another pack where only IS was configured as
>> KM (Pub,Store,GW,TM+IS as KM). There I could successfully throttle out at
>> the 6th request.
>>
>> What can be the reason for this behaviour? Can you please help me to
>> resolve this problem?
>>
>>
>> Thanks
>> --
>>
>>
>> *Buddhimala Ranasinghe*
>> Software Engineer-Support Team | WSO2
>> Emil: buddhim...@wso2.com
>> Mobile:+94771563138 <+94%2077%20156%203138>
>> Web:http://wso2.com
>> [image: https://wso2.com/signature] 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Dinusha Dissanayake
> Software Engineer
> WSO2 Inc
> Mobile: +94712939439 <+94%2071%20293%209439>
> 
>



-- 


*Buddhimala Ranasinghe*
Software Engineer-Support Team | WSO2
Emil: buddhim...@wso2.com
Mobile:+94771563138
Web:http://wso2.com
[image: https://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Problem with IP level throttling in distributed setup

2017-11-28 Thread Dinusha Dissanayake
Hi Buddhimala,

Did you observe this behavior only for IP based throttle condition or with
other conditions as well (eg. header condition, IP range condition )?

Thanks,
DinushaD.

On Wed, Nov 29, 2017 at 11:47 AM, Buddhimala Ranasinghe  wrote:

> Hi All,
>
> I have a distributed deployment in API Manager which contains
>
> 1GW
> Pub+Store+TM
> Is as KM
>
> I tried to implement IP level throttling for my API in this setup. I have
> put 20 as my default equest limit and under IP condition I gave request
> count as 5. I gave my local IP address as the IP condition to thrttle out.
> But when I invoked the API, it throttles out at the 21st request and not
> at 6th request.
>
> I also tried the same with another pack where only IS was configured as KM
> (Pub,Store,GW,TM+IS as KM). There I could successfully throttle out at the
> 6th request.
>
> What can be the reason for this behaviour? Can you please help me to
> resolve this problem?
>
>
> Thanks
> --
>
>
> *Buddhimala Ranasinghe*
> Software Engineer-Support Team | WSO2
> Emil: buddhim...@wso2.com
> Mobile:+94771563138 <+94%2077%20156%203138>
> Web:http://wso2.com
> [image: https://wso2.com/signature] 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Dinusha Dissanayake
Software Engineer
WSO2 Inc
Mobile: +94712939439

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Problem with IP level throttling in distributed setup

2017-11-28 Thread Irham Iqbal
Hi Buddhimala,

I think the issue with the traffic manager related configuration in your
first setup. You can create any other advance throttling policies and check
whether thats working to make sure. That's why when your using only IS as
KM in your setup thats working.

Thanks,
Iqbal

On Wed, Nov 29, 2017 at 11:47 AM, Buddhimala Ranasinghe  wrote:

> Hi All,
>
> I have a distributed deployment in API Manager which contains
>
> 1GW
> Pub+Store+TM
> Is as KM
>
> I tried to implement IP level throttling for my API in this setup. I have
> put 20 as my default equest limit and under IP condition I gave request
> count as 5. I gave my local IP address as the IP condition to thrttle out.
> But when I invoked the API, it throttles out at the 21st request and not
> at 6th request.
>
> I also tried the same with another pack where only IS was configured as KM
> (Pub,Store,GW,TM+IS as KM). There I could successfully throttle out at the
> 6th request.
>
> What can be the reason for this behaviour? Can you please help me to
> resolve this problem?
>
>
> Thanks
> --
>
>
> *Buddhimala Ranasinghe*
> Software Engineer-Support Team | WSO2
> Emil: buddhim...@wso2.com
> Mobile:+94771563138 <+94%2077%20156%203138>
> Web:http://wso2.com
> [image: https://wso2.com/signature] 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Irham Iqbal
Software Engineer
WSO2
phone: +94 777888452

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What is the correct way to display service providers and identity providers for different admin role users

2017-11-28 Thread Ushani Balasooriya
Hi Maneesha,

Thanks for the clarification. Appreciate if someone can explain why this
behavior is different for SP and IDPs? If there is an explanation would be
great to add it in to docs .

Thanks,
Ushani

On Wed, Nov 29, 2017 at 11:42 AM, Maneesha Wijesekara 
wrote:

> Hi Ushani,
>
> As per the current implementation, a service provider only visible to the
> user who created, at first. When creating service providers, by default a
> role created as 'Application/{SERVICE_PROVIDER_NAME}. In order to make
> the service provider available for the selected users, you can assign users
> to this role and SP will visible to them as well.
>
> +1 to add this to the documents.
>
> Regards
> Maneesha
>
> On Wed, Nov 29, 2017 at 11:02 AM, Ushani Balasooriya 
> wrote:
>
>> Hi IAM team,
>>
>> Please consider the below example.
>>
>> 1. *admin* user belongs to *admin* role creates a SP named *adminsp* and
>> an IDP named *adminidp*
>>
>> 2. *admin1* user belongs to the same *admin* role creates a SP named
>> *admin1sp* and an IDP names *admin1idp*.
>>
>> So the current behavior is,
>> 1. Both *admin* and *admin1* users can see the existing *IDPs*  (
>> *adminidp* and *admin1idp*) when they log in to the management console.
>>
>> 2. But they can only see the *SP*  created by themselves. E.g., *admin*
>> can see only *adminsp* and *admin1* can see only *admin1sp*.
>>
>> Can you please explain whether this contradicting behavior is expected or
>> whether this is a bug?
>>
>> If not a bug please explain this why and it should go to documents.
>>
>> Thanks,
>> --
>> *Ushani Balasooriya*
>> Associate Technical Lead - EE;
>> WSO2 Inc; http://www.wso2.com/.
>> Mobile; +94772636796
>>
>>
>
>
> --
> Maneesha Wijesekara
> Software Engineer - QA Team
> WSO2 Inc.
>
> Email: manee...@wso2.com
> Linkedin: http://linkedin.com/in/maneeshawijesekara
> Mobile: +94712443119
>



-- 
*Ushani Balasooriya*
Associate Technical Lead - EE;
WSO2 Inc; http://www.wso2.com/.
Mobile; +94772636796
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Problem with IP level throttling in distributed setup

2017-11-28 Thread Buddhimala Ranasinghe
Hi All,

I have a distributed deployment in API Manager which contains

1GW
Pub+Store+TM
Is as KM

I tried to implement IP level throttling for my API in this setup. I have
put 20 as my default equest limit and under IP condition I gave request
count as 5. I gave my local IP address as the IP condition to thrttle out.
But when I invoked the API, it throttles out at the 21st request and not at
6th request.

I also tried the same with another pack where only IS was configured as KM
(Pub,Store,GW,TM+IS as KM). There I could successfully throttle out at the
6th request.

What can be the reason for this behaviour? Can you please help me to
resolve this problem?


Thanks
-- 


*Buddhimala Ranasinghe*
Software Engineer-Support Team | WSO2
Emil: buddhim...@wso2.com
Mobile:+94771563138
Web:http://wso2.com
[image: https://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What is the correct way to display service providers and identity providers for different admin role users

2017-11-28 Thread Maneesha Wijesekara
Hi Ushani,

As per the current implementation, a service provider only visible to the
user who created, at first. When creating service providers, by default a
role created as 'Application/{SERVICE_PROVIDER_NAME}. In order to make the
service provider available for the selected users, you can assign users to
this role and SP will visible to them as well.

+1 to add this to the documents.

Regards
Maneesha

On Wed, Nov 29, 2017 at 11:02 AM, Ushani Balasooriya 
wrote:

> Hi IAM team,
>
> Please consider the below example.
>
> 1. *admin* user belongs to *admin* role creates a SP named *adminsp* and
> an IDP named *adminidp*
>
> 2. *admin1* user belongs to the same *admin* role creates a SP named
> *admin1sp* and an IDP names *admin1idp*.
>
> So the current behavior is,
> 1. Both *admin* and *admin1* users can see the existing *IDPs*  (
> *adminidp* and *admin1idp*) when they log in to the management console.
>
> 2. But they can only see the *SP*  created by themselves. E.g., *admin*
> can see only *adminsp* and *admin1* can see only *admin1sp*.
>
> Can you please explain whether this contradicting behavior is expected or
> whether this is a bug?
>
> If not a bug please explain this why and it should go to documents.
>
> Thanks,
> --
> *Ushani Balasooriya*
> Associate Technical Lead - EE;
> WSO2 Inc; http://www.wso2.com/.
> Mobile; +94772636796
>
>


-- 
Maneesha Wijesekara
Software Engineer - QA Team
WSO2 Inc.

Email: manee...@wso2.com
Linkedin: http://linkedin.com/in/maneeshawijesekara
Mobile: +94712443119
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What is the use of IDN_IDENTITY_META_DATA?

2017-11-28 Thread Dulanja Liyanage
Thanks for the explanation Isura!

On Wed, Nov 29, 2017 at 9:57 AM, Isura Karunaratne  wrote:

> Hi Dulanja,
>
> This is used to store user metadata like confirmation codes when
> *JDBCUserRecoveryDataStore* is used. BTW we recommend to use
> RegistryRecoveryDataStore as the RecoveryDataStore in identity management
> features.
>
> So, the metadata (like confirmation codes) are stored in the registry
> instead of this table.
>
> Thanks
> Isura.
>
> On Wed, Nov 29, 2017 at 12:55 AM, Dulanja Liyanage 
> wrote:
>
>> Hi All,
>>
>> $subject.
>>
>> I'm trying to understand the affect of a username change and came across
>> this table.
>>
>> Thanks,
>> Dulanja
>>
>> --
>> Thanks & Regards,
>> Dulanja Liyanage
>> Lead, Platform Security Team
>> WSO2 Inc.
>>
>
>
>
> --
>
> *Isura Dilhara Karunaratne*
> Associate Technical Lead | WSO2
> Email: is...@wso2.com
> Mob : +94 772 254 810 <077%20225%204810>
> Blog : http://isurad.blogspot.com/
>
>
>
>


-- 
Thanks & Regards,
Dulanja Liyanage
Lead, Platform Security Team
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] nginx master_process on; (code=exited, status=1/FAILURE)

2017-11-28 Thread Senduran Balasubramaniyam
As the error says "Address already in use" you have to find which process
is bound to port 80 already. the following command will help you identify
the process running on port 80

sudo netstat -nlp | grep :80

find the process and stop that process first before trying to start the
nginx

Regards
Senduran

On Wed, Nov 29, 2017 at 11:06 AM, Dushantha Batuwita 
wrote:

> Hi
>
> I completely uninstall NGINX from my machine and reinstalled it again and
> but the NGINX server gives me the same error.
>
> *Things I have done*
>
>
>- I have run the command
>
> sudo netstat -tulpn
>
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address   Foreign Address State
>  PID/Program name
> tcp0  0 127.0.0.1:631   0.0.0.0:*
>  LISTEN  32365/cupsd
> tcp0  0 0.0.0.0:389 0.0.0.0:*
>  LISTEN  1401/slapd
> tcp0  0 0.0.0.0:33060.0.0.0:*
>  LISTEN  987/mysqld
> tcp0  0 0.0.0.0:53550.0.0.0:*
>  LISTEN  976/systemd-resolve
> tcp6   0  0 ::1:631 :::*
> LISTEN  32365/cupsd
> tcp6   0  0 :::389  :::*
> LISTEN  1401/slapd
> tcp6   0  0 :::5355 :::*
> LISTEN  976/systemd-resolve
> tcp6   0  0 :::80   :::*
> LISTEN  1126/apache2
>
>
>- Even I have killed the process 1126 and tried.
>
>
> Then searched the error on the net and found that the resource [1]  and
> change the /etc/nginx/sites-enabled/default   file by inserting the code
>
> listen [::]:80 ipv6only=on default_server; as it has been stated.
>
>
> [1] https://stackoverflow.com/questions/14972792/nginx-
> nginx-emerg-bind-to-80-failed-98-address-already-in-use
>
> but when I try starting the nginx and check the status the same error is
> shown.
> as bellow
>
> ● nginx.service - A high performance web server and a reverse proxy server
>Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor
> preset: enabled)
>Active: failed (Result: exit-code) since Wed 2017-11-29 10:40:44 +0530;
> 35s ago
>  Docs: man:nginx(8)
>   Process: 13817 ExecStart=/usr/sbin/nginx -g daemon on; master_process
> on; (code=exited, status=1/FAILURE)
>   Process: 13816 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
> master_process on; (code=exited, status=0/SUCCESS)
>
> නෙවැ 29 10:40:43 dushantha-ThinkPad-X1-Carbon-5th nginx[13817]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 29 10:40:43 dushantha-ThinkPad-X1-Carbon-5th nginx[13817]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 29 10:40:43 dushantha-ThinkPad-X1-Carbon-5th nginx[13817]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th nginx[13817]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th nginx[13817]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th nginx[13817]: nginx:
> [emerg] still could not bind()
> නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Control process exited, code=exited status=1
> නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th systemd[1]: Failed to
> start A high performance web server and a reverse proxy server.
> නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Unit entered failed state.
> නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Failed with result 'exit-code'.
>
>
> If you have come across this kind of error please advice.
>
> Regards
>
>
>
>
> On Tue, Nov 28, 2017 at 5:17 PM, Senuwan Withana  wrote:
>
>> Hi Dushantha,
>>
>> Its seems your port is already used. Please check on it again
>>
>> Thanks,
>>
>> *Senuwan Withana*
>> Software Engineer - Support Team | WSO2
>>
>> Email : senu...@wso2.com
>> Mobile: 94773212853
>> Web: http://www.wso2.com
>>
>>
>>
>> On Tue, Nov 28, 2017 at 5:09 PM, Dushantha Batuwita 
>> wrote:
>>
>>> Hi Dev
>>>
>>> I have installed the nginx and when I try  starting the nginx, I
>>> receive following error.
>>>
>>>  sudo service nginx start
>>>
>>> Job for nginx.service failed because the control process exited with
>>> error code.
>>> See "systemctl  status nginx.service" and "journalctl  -xe" for details.
>>>
>>>
>>> when I check the status it gives me.
>>>
>>> ● nginx.service - A high performance web server and a reverse proxy
>>> server
>>>Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor
>>> preset: enabled)
>>>Active: failed (Result: exit-code) since Tue 2017-11-28 16:33:48
>>> +0530; 50s ago
>>>  Docs: man:nginx(8)
>>>   Process: 953 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
>>> master_process on; (code=exited, status=1/FAILURE)
>>>
>>> නෙවැ 28 16:44:57 dushantha-ThinkPad-X1-Carbon

Re: [Dev] nginx master_process on; (code=exited, status=1/FAILURE)

2017-11-28 Thread Dushantha Batuwita
Hi

I completely uninstall NGINX from my machine and reinstalled it again and
but the NGINX server gives me the same error.

*Things I have done*


   - I have run the command

sudo netstat -tulpn

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address   Foreign Address State
 PID/Program name
tcp0  0 127.0.0.1:631   0.0.0.0:*   LISTEN
32365/cupsd
tcp0  0 0.0.0.0:389 0.0.0.0:*   LISTEN
1401/slapd
tcp0  0 0.0.0.0:33060.0.0.0:*   LISTEN
987/mysqld
tcp0  0 0.0.0.0:53550.0.0.0:*   LISTEN
976/systemd-resolve
tcp6   0  0 ::1:631 :::*LISTEN
32365/cupsd
tcp6   0  0 :::389  :::*LISTEN
1401/slapd
tcp6   0  0 :::5355 :::*LISTEN
976/systemd-resolve
tcp6   0  0 :::80   :::*LISTEN
1126/apache2


   - Even I have killed the process 1126 and tried.


Then searched the error on the net and found that the resource [1]  and
change the /etc/nginx/sites-enabled/default   file by inserting the code

listen [::]:80 ipv6only=on default_server; as it has been stated.


[1]
https://stackoverflow.com/questions/14972792/nginx-nginx-emerg-bind-to-80-failed-98-address-already-in-use

but when I try starting the nginx and check the status the same error is
shown.
as bellow

● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor
preset: enabled)
   Active: failed (Result: exit-code) since Wed 2017-11-29 10:40:44 +0530;
35s ago
 Docs: man:nginx(8)
  Process: 13817 ExecStart=/usr/sbin/nginx -g daemon on; master_process on;
(code=exited, status=1/FAILURE)
  Process: 13816 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
master_process on; (code=exited, status=0/SUCCESS)

නෙවැ 29 10:40:43 dushantha-ThinkPad-X1-Carbon-5th nginx[13817]: nginx:
[emerg] bind() to [::]:80 failed (98: Address already in use)
නෙවැ 29 10:40:43 dushantha-ThinkPad-X1-Carbon-5th nginx[13817]: nginx:
[emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
නෙවැ 29 10:40:43 dushantha-ThinkPad-X1-Carbon-5th nginx[13817]: nginx:
[emerg] bind() to [::]:80 failed (98: Address already in use)
නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th nginx[13817]: nginx:
[emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th nginx[13817]: nginx:
[emerg] bind() to [::]:80 failed (98: Address already in use)
නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th nginx[13817]: nginx:
[emerg] still could not bind()
නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
nginx.service: Control process exited, code=exited status=1
නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th systemd[1]: Failed to
start A high performance web server and a reverse proxy server.
නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
nginx.service: Unit entered failed state.
නෙවැ 29 10:40:44 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
nginx.service: Failed with result 'exit-code'.


If you have come across this kind of error please advice.

Regards




On Tue, Nov 28, 2017 at 5:17 PM, Senuwan Withana  wrote:

> Hi Dushantha,
>
> Its seems your port is already used. Please check on it again
>
> Thanks,
>
> *Senuwan Withana*
> Software Engineer - Support Team | WSO2
>
> Email : senu...@wso2.com
> Mobile: 94773212853
> Web: http://www.wso2.com
>
>
>
> On Tue, Nov 28, 2017 at 5:09 PM, Dushantha Batuwita 
> wrote:
>
>> Hi Dev
>>
>> I have installed the nginx and when I try  starting the nginx, I
>> receive following error.
>>
>>  sudo service nginx start
>>
>> Job for nginx.service failed because the control process exited with
>> error code.
>> See "systemctl  status nginx.service" and "journalctl  -xe" for details.
>>
>>
>> when I check the status it gives me.
>>
>> ● nginx.service - A high performance web server and a reverse proxy server
>>Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor
>> preset: enabled)
>>Active: failed (Result: exit-code) since Tue 2017-11-28 16:33:48
>> +0530; 50s ago
>>  Docs: man:nginx(8)
>>   Process: 953 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
>> master_process on; (code=exited, status=1/FAILURE)
>>
>> නෙවැ 28 16:44:57 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
>> [emerg] bind() to [::]:80 failed (98: Address already in use)
>> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
>> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
>> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
>> [emerg] bind() to [::]:80 failed (98: Address already in use)
>> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
>> [emerg] b

[Dev] What is the correct way to display service providers and identity providers for different admin role users

2017-11-28 Thread Ushani Balasooriya
Hi IAM team,

Please consider the below example.

1. *admin* user belongs to *admin* role creates a SP named *adminsp* and an
IDP named *adminidp*

2. *admin1* user belongs to the same *admin* role creates a SP named
*admin1sp* and an IDP names *admin1idp*.

So the current behavior is,
1. Both *admin* and *admin1* users can see the existing *IDPs*  (*adminidp*
and *admin1idp*) when they log in to the management console.

2. But they can only see the *SP*  created by themselves. E.g., *admin* can
see only *adminsp* and *admin1* can see only *admin1sp*.

Can you please explain whether this contradicting behavior is expected or
whether this is a bug?

If not a bug please explain this why and it should go to documents.

Thanks,
-- 
*Ushani Balasooriya*
Associate Technical Lead - EE;
WSO2 Inc; http://www.wso2.com/.
Mobile; +94772636796
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [SP][Windows] Error during startup

2017-11-28 Thread Gokul Balakrishnan
Hi all,

I was able to verify that the SP4 Beta pack starts up in Windows 7 without
any issues with the fix applied. Thanks a lot Danesh for the quick
resolution!

Best,

On 29 November 2017 at 09:41, Danesh Kuruppu  wrote:

> Hi Gokul,
>
> Just checking whether you are able to test this fix in SP. If the fix is
> ok, we can release new version with this fix.
>
> Thanks
> Danesh
>
> On Fri, Nov 24, 2017 at 7:57 PM, Sriskandarajah Suhothayan 
> wrote:
>
>> @Gokul also please test and verity whether it fixes in SP.
>>
>> On Fri, Nov 24, 2017 at 7:54 PM, Danesh Kuruppu  wrote:
>>
>>> Hi Gokul,
>>>
>>> This Issue is fixed with PR[1]. Can you please test with new changes.
>>> @Kishanthan/Nira/Jayanga, please review and merge
>>>
>>> 1. https://github.com/wso2/carbon-config/pull/62
>>>
>>> Thanks
>>> Danesh
>>>
>>> On Fri, Nov 24, 2017 at 5:19 AM, Gokul Balakrishnan 
>>> wrote:
>>>
 Hi,

 We're seeing the following error while starting up Stream Processor
 Alpha2/3 in Windows. The main reason appears to be the server failing to
 resolve the ${sys:carbon.home} properties in deployment.yaml:

 Bad pathname"; "E:wso2sp-4.0.0-Alpha3-SNAPSHO
 Tbin../wso2/editor/database/WSO2_CARBON_DB.mv.db"

 As you can see, the path delimiter ("\") is missing between the drive
 and the initial path elements.

 Opened [1] to track this issue. Could you please take a look since this
 is critical for us?

 [1] https://github.com/wso2/carbon-kernel/issues/1615

 Thanks,

 --
 Gokul Balakrishnan
 Senior Software Engineer,
 WSO2, Inc. http://wso2.com
 M +94 77 5935 789 | +44 7563 570502 <+44%207563%20570502>


>>>
>>>
>>> --
>>>
>>> *Danesh Kuruppu*
>>> Senior Software Engineer | WSO2
>>>
>>> Email: dan...@wso2.com
>>> Mobile: +94 (77) 1690552 <077%20169%200552>
>>> Web: WSO2 Inc 
>>>
>>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Associate Director / Architect
>> *WSO2 Inc. *http://wso2.com
>> * *
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | blog:
>> http://suhothayan.blogspot.com/ twitter:
>> http://twitter.com/suhothayan  | linked-in:
>> http://lk.linkedin.com/in/suhothayan *
>>
>
>
>
> --
>
> *Danesh Kuruppu*
> Senior Software Engineer | WSO2
>
> Email: dan...@wso2.com
> Mobile: +94 (77) 1690552 <+94%2077%20169%200552>
> Web: WSO2 Inc 
>
>


-- 
Gokul Balakrishnan
Senior Software Engineer,
WSO2, Inc. http://wso2.com
M +94 77 5935 789 | +44 7563 570502
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Introduce custom attributes to Identity Server embedded LDAP schema.

2017-11-28 Thread Isura Karunaratne
On Wed, Nov 29, 2017 at 10:16 AM, Isura Karunaratne  wrote:

> Hi all,
>
> We need to update the LDIF to support following attributes by default in
> the embedded LDAP.
>
>- verifyEmail
>- askPassword
>- forcePasswordReset
>- failedRecoveryAttempts
>- primaryChallengeQuestion
>- emailVerified
>- challengeQuestionUris
>- failedLockoutCount
>- lastLoginTime
>- lastPasswordUpdate
>- phoneVerified
>- accountDisabled
>
> It looks like updating identityPerson.ldif [1] file is not enough to
> cater to requirement and need to generate the is-default-schema.zip file as
> well.
>
> What would be the best way to generate the is-default-schema.zip?
>
>
> [1] https://github.com/wso2-extensions/identity-userstore-
> ldap/blob/master/features/org.wso2.carbon.ldap.server.
> server.feature/resources/conf/identityPerson.ldif
>
> [2] https://github.com/wso2-extensions/identity-userstore-
> ldap/blob/master/features/org.wso2.carbon.ldap.server.
> server.feature/resources/conf/is-default-schema.zip
>
> --
>
> *Isura Dilhara Karunaratne*
> Associate Technical Lead | WSO2
> Email: is...@wso2.com
> Mob : +94 772 254 810 <+94%2077%20225%204810>
> Blog : http://isurad.blogspot.com/
>
>
>
>


-- 

*Isura Dilhara Karunaratne*
Associate Technical Lead | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810
Blog : http://isurad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error occurs with Response caching enabled.

2017-11-28 Thread Piriya Sivalingam
Hi Buddhimala,

Could you please elaborate your use case where you want to implement
caching? Since you have the API with CRUD operations, IMO it is not
meaningful to cache the responses for PUT and POST.
So if you want to cache 200 OK response of GET, you can implement it
through a custom sequence using cache mediator in APIM.
Please refer [1] for more information.

[1]
https://stackoverflow.com/questions/626057/is-it-possible-to-cache-post-methods-in-http

Thanks,
Piriya

On Fri, Nov 24, 2017 at 4:58 PM, Thivya Mahenthirarasa 
wrote:

> Hi all,
>
> Does the caching is needed for the Creation scenarios too?. Is it a good
> practice to have to cache for 200 ok responses?
>
>
> Thanks,
> Thivya
>
>
> On Fri, Nov 24, 2017 at 4:23 PM, Krishan Wijesena 
> wrote:
>
>> Hi buddhimala,
>>
>> Can you check your payload of put method again, refer [1]
>>
>> [1] https://docs.wso2.com/display/AM210/Configuring+Caching#
>> ConfiguringCaching-Responsecache
>>
>> Thanks,
>> krishan.
>>
>> On Fri, Nov 24, 2017 at 2:18 PM, Buddhimala Ranasinghe <
>> buddhim...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I'm trying a scenario where I need to have caching enabled to improve
>>> perfomance at API level.So I enabled response caching from my API. The API
>>> contains resources to perform CRUD operations.
>>>
>>> My problem is, when I try to invoke PUT method in my API after enabling
>>> response caching, it gives me the following error.
>>>
>>> [2017-11-24 14:16:39,969] ERROR - JsonUtil #writeAsJson. Payload could
>>> not be written as JSON. MessageID: urn:uuid:ccc5fb5c-ec7b-4e51-87
>>> 9f-345cd8a54804
>>> [2017-11-24 14:16:39,972] ERROR - PassThroughHttpSSLSender Failed to
>>> submit the response
>>> org.apache.axis2.AxisFault: Payload could not be written as JSON.
>>> at org.apache.synapse.commons.json.JsonUtil.writeAsJson(JsonUti
>>> l.java:276)
>>> at org.apache.synapse.commons.json.JsonFormatter.writeTo(JsonFo
>>> rmatter.java:62)
>>> at org.apache.synapse.transport.passthru.PassThroughHttpSender.
>>> submitResponse(PassThroughHttpSender.java:573)
>>> at org.apache.synapse.transport.passthru.PassThroughHttpSender.
>>> invoke(PassThroughHttpSender.java:264)
>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>>> at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Send
>>> er.java:230)
>>> at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(A
>>> xis2SynapseEnvironment.java:531)
>>> at org.apache.synapse.mediators.builtin.SendMediator.mediate(Se
>>> ndMediator.java:118)
>>> at org.apache.synapse.mediators.AbstractListMediator.mediate(Ab
>>> stractListMediator.java:97)
>>> at org.apache.synapse.mediators.AbstractListMediator.mediate(Ab
>>> stractListMediator.java:59)
>>> at org.apache.synapse.mediators.base.SequenceMediator.mediate(S
>>> equenceMediator.java:158)
>>> at org.apache.synapse.rest.Resource.process(Resource.java:343)
>>> at org.apache.synapse.rest.API.process(API.java:338)
>>> at org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RES
>>> TRequestHandler.java:90)
>>> at org.apache.synapse.rest.RESTRequestHandler.process(RESTReque
>>> stHandler.java:56)
>>> at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.inject
>>> Message(Axis2SynapseEnvironment.java:304)
>>> at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handle
>>> Message(SynapseCallbackReceiver.java:554)
>>> at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receiv
>>> e(SynapseCallbackReceiver.java:188)
>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>>> at org.apache.synapse.transport.passthru.ClientWorker.run(Clien
>>> tWorker.java:262)
>>> at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.r
>>> un(NativeWorkerPool.java:172)
>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>>> Executor.java:1142)
>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>>> lExecutor.java:617)
>>> at java.lang.Thread.run(Thread.java:748)
>>> [2017-11-24 14:16:39,972] ERROR - Axis2Sender
>>> Access-Control-Allow-Headers:authorization,Access-Control-Al
>>> low-Origin,Content-Type,SOAPAction,Access-Control-Allow-Meth
>>> ods:PUT,Access-Control-Allow-Origin:*,Content-Type:application/json;
>>> charset=UTF-8,>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>>> oapenv:Body/> Unexpected error sending message back
>>> org.apache.axis2.AxisFault: Failed to submit the response
>>> at org.apache.synapse.transport.passthru.PassThroughHttpSender.
>>> handleException(PassThroughHttpSender.java:632)
>>> at org.apache.synapse.transport.passthru.PassThroughHttpSender.
>>> invoke(PassThroughHttpSender.java:266)
>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>>> at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Send
>>> er.java:230)
>>> at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(A
>>> xis2SynapseEnvi

[Dev] Introduce custom attributes to Identity Server embedded LDAP schema.

2017-11-28 Thread Isura Karunaratne
Hi all,

We need to update the LDIF to support following attributes by default in
the embedded LDAP.

   - verifyEmail
   - askPassword
   - forcePasswordReset
   - failedRecoveryAttempts
   - primaryChallengeQuestion
   - emailVerified
   - challengeQuestionUris
   - failedLockoutCount
   - lastLoginTime
   - lastPasswordUpdate
   - phoneVerified
   - accountDisabled

It looks like updating identityPerson.ldif [1] file is not enough to cater
to requirement and need to generate the is-default-schema.zip file as well.

What would be the best way to generate the is-default-schema.zip?


[1]
https://github.com/wso2-extensions/identity-userstore-ldap/blob/master/features/org.wso2.carbon.ldap.server.server.feature/resources/conf/identityPerson.ldif

[2]
https://github.com/wso2-extensions/identity-userstore-ldap/blob/master/features/org.wso2.carbon.ldap.server.server.feature/resources/conf/is-default-schema.zip

-- 

*Isura Dilhara Karunaratne*
Associate Technical Lead | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810
Blog : http://isurad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WUM] wum diff copying file to the current relative path except for .wum-wso2 directory

2017-11-28 Thread Mushthaq Rumy
Hi Malith,

+1 for creating the diff archive, summery and all the wum related files in
the .wum-wso2 directory as this will make the user experience better.

Thanks & Regards,
Mushthaq

On Wed, Nov 29, 2017 at 9:34 AM, Malith Munasinghe  wrote:

> Hi All,
>
> While using WUM diff command to compare two updates it was noted that both
> the Diff archive and Diff summary is getting created in the current working
> directory.
>
> IMO it would be better if we created those diff files in ~/.wum-wso2/ as
> well since this will increase the user experience by limiting wum related
> activities within the wum home directory.
>
> WDYT ?
>
> Regards,
> Malith
>
> --
> Malith Munasinghe | Senior Software Engineer
> M: +94 (71) 9401122 <+94%2071%20940%201122>
> E: mali...@wso2.com
> W: http://wso2.com
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Mushthaq Rumy
*Software Engineer*
Mobile : +94 (0) 779 492140 <%2B94%20%280%29%20773%20451194>
Email : musht...@wso2.com
WSO2, Inc.; http://wso2.com/
lean . enterprise . middleware.


___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What is the use of IDN_IDENTITY_META_DATA?

2017-11-28 Thread Isura Karunaratne
Hi Dulanja,

This is used to store user metadata like confirmation codes when
*JDBCUserRecoveryDataStore* is used. BTW we recommend to use
RegistryRecoveryDataStore as the RecoveryDataStore in identity management
features.

So, the metadata (like confirmation codes) are stored in the registry
instead of this table.

Thanks
Isura.

On Wed, Nov 29, 2017 at 12:55 AM, Dulanja Liyanage  wrote:

> Hi All,
>
> $subject.
>
> I'm trying to understand the affect of a username change and came across
> this table.
>
> Thanks,
> Dulanja
>
> --
> Thanks & Regards,
> Dulanja Liyanage
> Lead, Platform Security Team
> WSO2 Inc.
>



-- 

*Isura Dilhara Karunaratne*
Associate Technical Lead | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810
Blog : http://isurad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] Transport error: 411 Error: Length Required when logging into the publisher

2017-11-28 Thread Nuwan Silva
Added wire logs to see where this was coming from and it seems this is sent
back from the nginx instance.
Updating nginx to 1.12 resolved this. Thanks for the help Pubudu.

Cheers,
NuwanS.

On Mon, Nov 27, 2017 at 5:10 PM, Nuwan Silva  wrote:

> Hi Pubudu,
>
> yes, Please find the Nginx configuration below;
>
> upstream ssl.pub.wso2.com {
> server 192.168.48.251:9443;
> ip_hash;
> }
>
> server {
> listen 443;
> server_name pub.dev.wso2.org;
> ssl on;
> ssl_certificate /etc/nginx/ssl/pub/publisher.crt;
> ssl_certificate_key /etc/nginx/ssl/pub/publisher.key;
> location / {
>proxy_set_header X-Forwarded-Host $host;
>proxy_set_header X-Forwarded-Server $host;
>proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
>proxy_set_header Host $http_host;
>proxy_read_timeout 5m;
>proxy_send_timeout 5m;
>proxy_redirect https://ssl.pub.wso2.com
> https://pub.dev.wso2.org;
>proxy_pass https://ssl.pub.wso2.com;
>
>proxy_http_version 1.1;
>proxy_set_header Upgrade $http_upgrade;
>proxy_set_header Connection "upgrade";
> }
>
> }
>
> On Mon, Nov 27, 2017 at 5:01 PM, Pubudu Gunatilaka 
> wrote:
>
>> Hi Nuwan,
>>
>> Could you please verify whether you have Nginx configurations mentioned
>> in [1]?
>>
>> [1] - https://docs.wso2.com/display/CLUSTER44x/Configuring+NGINX
>>
>> Thank you!
>>
>> On Mon, Nov 27, 2017 at 7:19 PM, Nuwan Silva  wrote:
>>
>>> Im getting the below exception when logging into the API publisher. This
>>> is a distributed APIM cluster with IS as the auth manager, fronted by nginx
>>>
>>> Any idea why this is happening?
>>>
>>> TID: [-1234] [] [2017-11-27 11:02:46,453]  INFO
>>> {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} -
>>> Permission cache updated for tenant -1234 {org.wso2.carbon.core.internal
>>> .permission.update.PermissionUpdater}
>>> TID: [-1234] [] [2017-11-27 11:02:46,790]  INFO {
>>> org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost to
>>> url[https://km.dev.wso2.org:443/services/AuthenticationAdmin] {
>>> org.apache.axis2.transport.http.HTTPSender}
>>> org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required
>>> at org.apache.axis2.transport.http.HTTPSender.handleResponse(HT
>>> TPSender.java:326)
>>> at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPS
>>> ender.java:196)
>>> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.j
>>> ava:77)
>>> at org.apache.axis2.transport.http.CommonsHTTPTransportSender.w
>>> riteMessageWithCommons(CommonsHTTPTransportSender.java:451)
>>> at org.apache.axis2.transport.http.CommonsHTTPTransportSender.i
>>> nvoke(CommonsHTTPTransportSender.java:278)
>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>>> at org.apache.axis2.description.OutInAxisOperationClient.send(O
>>> utInAxisOperation.java:430)
>>> at org.apache.axis2.description.OutInAxisOperationClient.execut
>>> eImpl(OutInAxisOperation.java:225)
>>> at org.apache.axis2.client.OperationClient.execute(OperationCli
>>> ent.java:149)
>>> at org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.l
>>> ogin(AuthenticationAdminStub.java:659)
>>> at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsF
>>> unction_login(APIProviderHostObject.java:267)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>> ssorImpl.java:62)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>>> at org.mozilla.javascript.FunctionObject.call(FunctionObject.ja
>>> va:386)
>>> at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime
>>> .java:42)
>>> at org.jaggeryjs.rhino.publisher.modules.user.c1._c_anonymous_1
>>> (/publisher/modules/user/login.jag:19)
>>> at org.jaggeryjs.rhino.publisher.modules.user.c1.call(/publishe
>>> r/modules/user/login.jag)
>>> at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRunti
>>> me.java:2430)
>>> at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.
>>> java:269)
>>> at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObjec
>>> t.java:97)
>>> at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime
>>> .java:42)
>>> at org.jaggeryjs.rhino.publisher.modules.user.c0._c_anonymous_1
>>> (/publisher/modules/user/module.jag:5)
>>> at org.jaggeryjs.rhino.publisher.modules.user.c0.call(/publishe
>>> r/modules/user/module.jag)
>>> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime
>>> .java:52)
>>> at org.jaggeryjs.rhino.publisher.site.blocks.user.login.ajax.c0
>>> ._c_anonymou

Re: [Dev] [SP][Windows] Error during startup

2017-11-28 Thread Danesh Kuruppu
Hi Gokul,

Just checking whether you are able to test this fix in SP. If the fix is
ok, we can release new version with this fix.

Thanks
Danesh

On Fri, Nov 24, 2017 at 7:57 PM, Sriskandarajah Suhothayan 
wrote:

> @Gokul also please test and verity whether it fixes in SP.
>
> On Fri, Nov 24, 2017 at 7:54 PM, Danesh Kuruppu  wrote:
>
>> Hi Gokul,
>>
>> This Issue is fixed with PR[1]. Can you please test with new changes.
>> @Kishanthan/Nira/Jayanga, please review and merge
>>
>> 1. https://github.com/wso2/carbon-config/pull/62
>>
>> Thanks
>> Danesh
>>
>> On Fri, Nov 24, 2017 at 5:19 AM, Gokul Balakrishnan 
>> wrote:
>>
>>> Hi,
>>>
>>> We're seeing the following error while starting up Stream Processor
>>> Alpha2/3 in Windows. The main reason appears to be the server failing to
>>> resolve the ${sys:carbon.home} properties in deployment.yaml:
>>>
>>> Bad pathname"; "E:wso2sp-4.0.0-Alpha3-SNAPSHO
>>> Tbin../wso2/editor/database/WSO2_CARBON_DB.mv.db"
>>>
>>> As you can see, the path delimiter ("\") is missing between the drive
>>> and the initial path elements.
>>>
>>> Opened [1] to track this issue. Could you please take a look since this
>>> is critical for us?
>>>
>>> [1] https://github.com/wso2/carbon-kernel/issues/1615
>>>
>>> Thanks,
>>>
>>> --
>>> Gokul Balakrishnan
>>> Senior Software Engineer,
>>> WSO2, Inc. http://wso2.com
>>> M +94 77 5935 789 | +44 7563 570502 <+44%207563%20570502>
>>>
>>>
>>
>>
>> --
>>
>> *Danesh Kuruppu*
>> Senior Software Engineer | WSO2
>>
>> Email: dan...@wso2.com
>> Mobile: +94 (77) 1690552 <077%20169%200552>
>> Web: WSO2 Inc 
>>
>>
>
>
> --
>
> *S. Suhothayan*
> Associate Director / Architect
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>



-- 

*Danesh Kuruppu*
Senior Software Engineer | WSO2

Email: dan...@wso2.com
Mobile: +94 (77) 1690552
Web: WSO2 Inc 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [WUM] wum diff copying file to the current relative path except for .wum-wso2 directory

2017-11-28 Thread Malith Munasinghe
Hi All,

While using WUM diff command to compare two updates it was noted that both
the Diff archive and Diff summary is getting created in the current working
directory.

IMO it would be better if we created those diff files in ~/.wum-wso2/ as
well since this will increase the user experience by limiting wum related
activities within the wum home directory.

WDYT ?

Regards,
Malith

-- 
Malith Munasinghe | Senior Software Engineer
M: +94 (71) 9401122
E: mali...@wso2.com
W: http://wso2.com

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Car application with only registry resources

2017-11-28 Thread Senduran Balasubramaniyam
The reason for this is, initially the developer studio was across the
platform, so the server role was there to distinguish the artifacts. But
since now we have the EI / ESB tooling we can have the  EnterpriseServiceBus
as the default role.

On Tue, Nov 28, 2017 at 11:07 PM, Shazni Nazeer  wrote:

> +1 for fixing this. This is common nuisance when deploying registry
> artifacts, usually when we add new artifacts through the devS UI at times
> the ones which had  'EnterpriseServiceBus'  reverts back to '
> GovernanceRegistry'.
>
> On Tue, Nov 28, 2017 at 5:46 AM, Senduran Balasubramaniyam <
> sendu...@wso2.com> wrote:
>
>> +1 for fixing this. since G-Reg is no longer active
>> Anyway Godwin, if you have created a ESB solution project the server role
>> is by default set to EnterpriseServiceBus
>>
>> On Tue, Nov 28, 2017 at 2:17 PM, Vinod Kavinda  wrote:
>>
>>> Hi Godwin,
>>> Thanks for the update. Reported the issue [1]
>>>
>>> [1] - https://github.com/wso2/product-ei/issues/1428
>>>
>>> Regards,
>>> Vinod
>>>
>>> On Tue, Nov 28, 2017 at 2:02 PM, Godwin Shrimal  wrote:
>>>
 Thanks for the response guy, I could resolve it by setting
 "EnterpriseServiceBus" server role when exporting car file. I think this
 should work OOB, best thing is adding "GovernanceRegistry"  in
 carbon.xml under server roles.


 Thanks
 Godwin



 On Mon, Nov 27, 2017 at 12:23 PM, Sashika Wijesinghe 
 wrote:

> Hi Himasha,
>
> When exporting the carbon application project we can select the
> required server role. I have tried that option for 'EnterpriseServiceBus'
> server role and it works for me.
>
> Regards,
> Sashika
>
> On Mon, Nov 27, 2017 at 10:27 AM, Himasha Guruge 
> wrote:
>
>> Hi Sashika,
>>
>> To solve the issue, you can add the 'GovernanceRegistry' server role
>> to the EI server under "" in the carbon.xml or set the 
>> server
>> role of the registry resource to 'EnterpriseIntegrator' when creating the
>> CAR file.
>> Have we tried out option 2? (setting role to 'EnterpriseIntegrator')
>> AFAIR in tooling, we don't list ''EnterpriseIntegrator' role for
>> registry projects.
>>
>> Thanks,
>> Himasha
>>
>> On Mon, Nov 27, 2017 at 10:11 AM, Vinod Kavinda 
>> wrote:
>>
>>> Hi All,
>>> IMO, this should work OOB. If above changes works, we can ship the
>>> carbon.xml with the role  'GovernanceRegistry'. Shall we report a
>>> bug?
>>>
>>> Regards,
>>> Vinod
>>>
>>> On Mon, Nov 27, 2017 at 10:05 AM, Sashika Wijesinghe <
>>> sash...@wso2.com> wrote:
>>>
 Hi Godwin,

 To solve the issue, you can add the 'GovernanceRegistry' server
 role to the EI server under "" in the carbon.xml or set 
 the
 server role of the registry resource to 'EnterpriseIntegrator' when
 creating the CAR file.

 Regards,
 Sashika

 On Mon, Nov 27, 2017 at 8:32 AM, Rukshan Premathunga <
 ruks...@wso2.com> wrote:

> Hi Godwin,
>
> I think it because of your car file don't compatible with EI
> server role. Can you please find the EI server role and update in the
> artifact.xml.
>
> Thanks and Regards
>
> On Mon, Nov 27, 2017 at 8:21 AM, Godwin Shrimal 
> wrote:
>
>> Hi Devs,
>>
>> Can't we have a CAR application with only registry project and
>> deploy? It's complaining there are no artifacts to deploy and goes to
>> faulty.
>>
>> Thanks
>> Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>> Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>> *
>> twitter: https://twitter.com/godwinamila
>> 
>>
>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
> +94711822074 <+94%2071%20182%202074>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --

 *Sashika WijesingheSoftware Engineer - QA Team*
 Mobile : +94 (0) 774537487
 sash...@wso2.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Vinod Kavinda
>>> Senior Software Engineer
>>> *WSO2 Inc. -

Re: [Dev] [EI] Oracle multiple cursor support

2017-11-28 Thread Godwin Shrimal
Thanks for reply Madhawa.

Thanks
Godwin

On Wed, Nov 29, 2017 at 9:56 AM, Madhawa Gunasekara 
wrote:

> Hi Godwin,
>
> Sorry for the late reply. We do support only one type of refcursor at the
> moment.[2] there was a discussion on this feature in the support dev
> mailing list[1]. Still, We haven't implemented this feature.
>
> [1] Question about Oracle Stored Procedure using multiple ref cursors
> [2] https://wso2.org/jira/browse/DS-1188
>
> Thanks,
> Madhawa
>
> On Tue, Nov 28, 2017 at 7:29 PM, Godwin Shrimal  wrote:
>
>> Reminder on this.
>>
>>
>> Thanks
>> Godwin
>>
>> On Mon, Nov 27, 2017 at 9:30 AM, Godwin Shrimal  wrote:
>>
>>> Hi Devs,
>>>
>>> Are we supporting $subject in EI-6.1.1? If yes can someone share any
>>> documentation/article/blog?
>>>
>>> Thanks
>>> Godwin
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Associate Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>>> *
>>> twitter: https://twitter.com/godwinamila
>>> 
>>>
>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>> *
>> twitter: https://twitter.com/godwinamila
>> 
>>
>
>
>
> --
> *Madhawa Gunasekara*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002 <+94+719411002>
> blog: *http://madhawa-gunasekara.blogspot.com
> *
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> *
>



-- 
*Godwin Amila Shrimal*
Associate Technical Lead
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
*
twitter: https://twitter.com/godwinamila

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Oracle multiple cursor support

2017-11-28 Thread Madhawa Gunasekara
Hi Godwin,

Sorry for the late reply. We do support only one type of refcursor at the
moment.[2] there was a discussion on this feature in the support dev
mailing list[1]. Still, We haven't implemented this feature.

[1] Question about Oracle Stored Procedure using multiple ref cursors
[2] https://wso2.org/jira/browse/DS-1188

Thanks,
Madhawa

On Tue, Nov 28, 2017 at 7:29 PM, Godwin Shrimal  wrote:

> Reminder on this.
>
>
> Thanks
> Godwin
>
> On Mon, Nov 27, 2017 at 9:30 AM, Godwin Shrimal  wrote:
>
>> Hi Devs,
>>
>> Are we supporting $subject in EI-6.1.1? If yes can someone share any
>> documentation/article/blog?
>>
>> Thanks
>> Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>> Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>> *
>> twitter: https://twitter.com/godwinamila
>> 
>>
>
>
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> *
> twitter: https://twitter.com/godwinamila
> 
>



-- 
*Madhawa Gunasekara*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 719411002 <+94+719411002>
blog: *http://madhawa-gunasekara.blogspot.com
*
linkedin: *http://lk.linkedin.com/in/mgunasekara
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Oracle multiple cursor support

2017-11-28 Thread Godwin Shrimal
Reminder on this.


Thanks
Godwin

On Mon, Nov 27, 2017 at 9:30 AM, Godwin Shrimal  wrote:

> Hi Devs,
>
> Are we supporting $subject in EI-6.1.1? If yes can someone share any
> documentation/article/blog?
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> *
> twitter: https://twitter.com/godwinamila
> 
>



-- 
*Godwin Amila Shrimal*
Associate Technical Lead
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
*
twitter: https://twitter.com/godwinamila

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] What is the use of IDN_IDENTITY_META_DATA?

2017-11-28 Thread Dulanja Liyanage
Hi All,

$subject.

I'm trying to understand the affect of a username change and came across
this table.

Thanks,
Dulanja

-- 
Thanks & Regards,
Dulanja Liyanage
Lead, Platform Security Team
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BPEL reply

2017-11-28 Thread Milinda Perera
Hi,

This issue can be solved by adding Wait activity after the Reply activity.
Adding Wait will break executing the activities synchronously.
Please refer [1] for more information.

[1] https://wso2.org/jira/browse/BPS-583

Thanks,
Milinda


On Tue, Nov 28, 2017 at 5:55 PM, Melodias  wrote:

> Hi,
> It is possible to do process in the next steps:
> 1. Receive Input
> 2. Prepare Reply message
> 3. send reply
> 4. do somethink like invoke backend
>
> When I call process, I get Reply after step 4, not in step 3
>
>
>
> --
> Sent from: http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-
> Development-f3.html
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Milinda Perera
Senior Software Engineer;
WSO2 Inc. http://wso2.com ,
Mobile: (+94) 714 115 032
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Car application with only registry resources

2017-11-28 Thread Shazni Nazeer
+1 for fixing this. This is common nuisance when deploying registry
artifacts, usually when we add new artifacts through the devS UI at times
the ones which had  'EnterpriseServiceBus'  reverts back to '
GovernanceRegistry'.

On Tue, Nov 28, 2017 at 5:46 AM, Senduran Balasubramaniyam <
sendu...@wso2.com> wrote:

> +1 for fixing this. since G-Reg is no longer active
> Anyway Godwin, if you have created a ESB solution project the server role
> is by default set to EnterpriseServiceBus
>
> On Tue, Nov 28, 2017 at 2:17 PM, Vinod Kavinda  wrote:
>
>> Hi Godwin,
>> Thanks for the update. Reported the issue [1]
>>
>> [1] - https://github.com/wso2/product-ei/issues/1428
>>
>> Regards,
>> Vinod
>>
>> On Tue, Nov 28, 2017 at 2:02 PM, Godwin Shrimal  wrote:
>>
>>> Thanks for the response guy, I could resolve it by setting
>>> "EnterpriseServiceBus" server role when exporting car file. I think this
>>> should work OOB, best thing is adding "GovernanceRegistry"  in
>>> carbon.xml under server roles.
>>>
>>>
>>> Thanks
>>> Godwin
>>>
>>>
>>>
>>> On Mon, Nov 27, 2017 at 12:23 PM, Sashika Wijesinghe 
>>> wrote:
>>>
 Hi Himasha,

 When exporting the carbon application project we can select the
 required server role. I have tried that option for 'EnterpriseServiceBus'
 server role and it works for me.

 Regards,
 Sashika

 On Mon, Nov 27, 2017 at 10:27 AM, Himasha Guruge 
 wrote:

> Hi Sashika,
>
> To solve the issue, you can add the 'GovernanceRegistry' server role
> to the EI server under "" in the carbon.xml or set the server
> role of the registry resource to 'EnterpriseIntegrator' when creating the
> CAR file.
> Have we tried out option 2? (setting role to 'EnterpriseIntegrator')
> AFAIR in tooling, we don't list ''EnterpriseIntegrator' role for
> registry projects.
>
> Thanks,
> Himasha
>
> On Mon, Nov 27, 2017 at 10:11 AM, Vinod Kavinda 
> wrote:
>
>> Hi All,
>> IMO, this should work OOB. If above changes works, we can ship the
>> carbon.xml with the role  'GovernanceRegistry'. Shall we report a
>> bug?
>>
>> Regards,
>> Vinod
>>
>> On Mon, Nov 27, 2017 at 10:05 AM, Sashika Wijesinghe <
>> sash...@wso2.com> wrote:
>>
>>> Hi Godwin,
>>>
>>> To solve the issue, you can add the 'GovernanceRegistry' server role
>>> to the EI server under "" in the carbon.xml or set the 
>>> server
>>> role of the registry resource to 'EnterpriseIntegrator' when creating 
>>> the
>>> CAR file.
>>>
>>> Regards,
>>> Sashika
>>>
>>> On Mon, Nov 27, 2017 at 8:32 AM, Rukshan Premathunga <
>>> ruks...@wso2.com> wrote:
>>>
 Hi Godwin,

 I think it because of your car file don't compatible with EI server
 role. Can you please find the EI server role and update in the 
 artifact.xml.

 Thanks and Regards

 On Mon, Nov 27, 2017 at 8:21 AM, Godwin Shrimal 
 wrote:

> Hi Devs,
>
> Can't we have a CAR application with only registry project and
> deploy? It's complaining there are no artifacts to deploy and goes to
> faulty.
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> *
> twitter: https://twitter.com/godwinamila
> 
>



 --
 Rukshan Chathuranga.
 Software Engineer.
 WSO2, Inc.
 +94711822074 <+94%2071%20182%202074>

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>>
>>> *Sashika WijesingheSoftware Engineer - QA Team*
>>> Mobile : +94 (0) 774537487
>>> sash...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Vinod Kavinda
>> Senior Software Engineer
>> *WSO2 Inc. - lean . enterprise . middleware .*
>> Mobile : +94 (0) 712 415544
>> Blog : http://soatechflicks.blogspot.com/
>> [image: http://wso2.com/signature]
>> 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Himasha Guruge
> Senior Software E

[Dev] BPEL reply

2017-11-28 Thread Melodias
Hi,
It is possible to do process in the next steps:
1. Receive Input
2. Prepare Reply message
3. send reply
4. do somethink like invoke backend

When I call process, I get Reply after step 4, not in step 3



--
Sent from: http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-Development-f3.html
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Validate Mediator] JSON validation issue

2017-11-28 Thread Senduran Balasubramaniyam
Your payload factory contains an invalid JSON


On Fri, Nov 24, 2017 at 7:27 PM, Lahiru Cooray 
wrote:

> Hi team,
> Im using ESB 5.0.0 and trying to validate a json payload against a schema.
> Below is my sample synapse code snippet
>
>  
> 
> 
>
>   {"Error":$1"}
>
*"* is missing
  {"Error":*"*$1"} should work

>   
>  
>   
>
>
>
> 
>  
>
> When I try to send an invalid payload it gets validated but the specific
> erroneous property is not returned.
>
> DEBUG - wire HTTP-Listener I/O dispatcher-3 << "{"Error":the following
> keywords are unknown and will be ignored: [$id]"}[\r][\n]"
>
> Is there a way to access the specific invalid property and return a custom
> message. Appreciate your help!
>
> Regards,
> Lahiru
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] nginx master_process on; (code=exited, status=1/FAILURE)

2017-11-28 Thread Senuwan Withana
Hi Dushantha,

Its seems your port is already used. Please check on it again

Thanks,

*Senuwan Withana*
Software Engineer - Support Team | WSO2

Email : senu...@wso2.com
Mobile: 94773212853
Web: http://www.wso2.com



On Tue, Nov 28, 2017 at 5:09 PM, Dushantha Batuwita 
wrote:

> Hi Dev
>
> I have installed the nginx and when I try  starting the nginx, I
> receive following error.
>
>  sudo service nginx start
>
> Job for nginx.service failed because the control process exited with error
> code.
> See "systemctl  status nginx.service" and "journalctl  -xe" for details.
>
>
> when I check the status it gives me.
>
> ● nginx.service - A high performance web server and a reverse proxy server
>Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor
> preset: enabled)
>Active: failed (Result: exit-code) since Tue 2017-11-28 16:33:48 +0530;
> 50s ago
>  Docs: man:nginx(8)
>   Process: 953 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
> master_process on; (code=exited, status=1/FAILURE)
>
> නෙවැ 28 16:44:57 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] still could not bind()
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Control process exited, code=exited status=1
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]: Failed to
> start A high performance web server and a reverse proxy server.
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Unit entered failed state.
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Failed with result 'exit-code'.
>
>
>
>
> Is there any possible solution to get rid of the error
> regards
>
>
>
>
> --
> *Dushantha Nayanajith Chandima Batuwita*
> Software Engineer Support | WSO2
> dushan...@wso2.com
> mobile : 0094777453010
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Car application with only registry resources

2017-11-28 Thread Senduran Balasubramaniyam
+1 for fixing this. since G-Reg is no longer active
Anyway Godwin, if you have created a ESB solution project the server role
is by default set to EnterpriseServiceBus

On Tue, Nov 28, 2017 at 2:17 PM, Vinod Kavinda  wrote:

> Hi Godwin,
> Thanks for the update. Reported the issue [1]
>
> [1] - https://github.com/wso2/product-ei/issues/1428
>
> Regards,
> Vinod
>
> On Tue, Nov 28, 2017 at 2:02 PM, Godwin Shrimal  wrote:
>
>> Thanks for the response guy, I could resolve it by setting
>> "EnterpriseServiceBus" server role when exporting car file. I think this
>> should work OOB, best thing is adding "GovernanceRegistry"  in
>> carbon.xml under server roles.
>>
>>
>> Thanks
>> Godwin
>>
>>
>>
>> On Mon, Nov 27, 2017 at 12:23 PM, Sashika Wijesinghe 
>> wrote:
>>
>>> Hi Himasha,
>>>
>>> When exporting the carbon application project we can select the required
>>> server role. I have tried that option for 'EnterpriseServiceBus' server
>>> role and it works for me.
>>>
>>> Regards,
>>> Sashika
>>>
>>> On Mon, Nov 27, 2017 at 10:27 AM, Himasha Guruge 
>>> wrote:
>>>
 Hi Sashika,

 To solve the issue, you can add the 'GovernanceRegistry' server role to
 the EI server under "" in the carbon.xml or set the server
 role of the registry resource to 'EnterpriseIntegrator' when creating the
 CAR file.
 Have we tried out option 2? (setting role to 'EnterpriseIntegrator')
 AFAIR in tooling, we don't list ''EnterpriseIntegrator' role for
 registry projects.

 Thanks,
 Himasha

 On Mon, Nov 27, 2017 at 10:11 AM, Vinod Kavinda  wrote:

> Hi All,
> IMO, this should work OOB. If above changes works, we can ship the
> carbon.xml with the role  'GovernanceRegistry'. Shall we report a bug?
>
> Regards,
> Vinod
>
> On Mon, Nov 27, 2017 at 10:05 AM, Sashika Wijesinghe  > wrote:
>
>> Hi Godwin,
>>
>> To solve the issue, you can add the 'GovernanceRegistry' server role
>> to the EI server under "" in the carbon.xml or set the 
>> server
>> role of the registry resource to 'EnterpriseIntegrator' when creating the
>> CAR file.
>>
>> Regards,
>> Sashika
>>
>> On Mon, Nov 27, 2017 at 8:32 AM, Rukshan Premathunga <
>> ruks...@wso2.com> wrote:
>>
>>> Hi Godwin,
>>>
>>> I think it because of your car file don't compatible with EI server
>>> role. Can you please find the EI server role and update in the 
>>> artifact.xml.
>>>
>>> Thanks and Regards
>>>
>>> On Mon, Nov 27, 2017 at 8:21 AM, Godwin Shrimal 
>>> wrote:
>>>
 Hi Devs,

 Can't we have a CAR application with only registry project and
 deploy? It's complaining there are no artifacts to deploy and goes to
 faulty.

 Thanks
 Godwin

 --
 *Godwin Amila Shrimal*
 Associate Technical Lead
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94772264165*
 linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
 *
 twitter: https://twitter.com/godwinamila
 

>>>
>>>
>>>
>>> --
>>> Rukshan Chathuranga.
>>> Software Engineer.
>>> WSO2, Inc.
>>> +94711822074 <+94%2071%20182%202074>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vinod Kavinda
> Senior Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
> [image: http://wso2.com/signature]
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Himasha Guruge
 Senior Software Engineer
 WS*O2* *Inc.*
 Mobile: +94 777459299 <+94%2077%20745%209299>
 himas...@wso2.com

>>>
>>>
>>>
>>> --
>>>
>>> *Sashika WijesingheSoftware Engineer - QA Team*
>>> Mobile : +94 (0) 774537487
>>> sash...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: 

Re: [Dev] nginx master_process on; (code=exited, status=1/FAILURE)

2017-11-28 Thread Sandun Perera
It seems your port is currently in use. Use *fuser -k  80/tcp*

On Tue, Nov 28, 2017 at 5:09 PM, Dushantha Batuwita 
wrote:

> Hi Dev
>
> I have installed the nginx and when I try  starting the nginx, I
> receive following error.
>
>  sudo service nginx start
>
> Job for nginx.service failed because the control process exited with error
> code.
> See "systemctl  status nginx.service" and "journalctl  -xe" for details.
>
>
> when I check the status it gives me.
>
> ● nginx.service - A high performance web server and a reverse proxy server
>Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor
> preset: enabled)
>Active: failed (Result: exit-code) since Tue 2017-11-28 16:33:48 +0530;
> 50s ago
>  Docs: man:nginx(8)
>   Process: 953 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
> master_process on; (code=exited, status=1/FAILURE)
>
> නෙවැ 28 16:44:57 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] still could not bind()
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Control process exited, code=exited status=1
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]: Failed to
> start A high performance web server and a reverse proxy server.
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Unit entered failed state.
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Failed with result 'exit-code'.
>
>
>
>
> Is there any possible solution to get rid of the error
> regards
>
>
>
>
> --
> *Dushantha Nayanajith Chandima Batuwita*
> Software Engineer Support | WSO2
> dushan...@wso2.com
> mobile : 0094777453010
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] nginx master_process on; (code=exited, status=1/FAILURE)

2017-11-28 Thread Thivya Mahenthirarasa
Hi Dushantha,

It seems the port 80 is already in use on your local machine. It is an
Apache port. You need to kill the processes running and restart the Nginx
server again.

On Tue, Nov 28, 2017 at 5:09 PM, Dushantha Batuwita 
wrote:

> Hi Dev
>
> I have installed the nginx and when I try  starting the nginx, I
> receive following error.
>
>  sudo service nginx start
>
> Job for nginx.service failed because the control process exited with error
> code.
> See "systemctl  status nginx.service" and "journalctl  -xe" for details.
>
>
> when I check the status it gives me.
>
> ● nginx.service - A high performance web server and a reverse proxy server
>Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor
> preset: enabled)
>Active: failed (Result: exit-code) since Tue 2017-11-28 16:33:48 +0530;
> 50s ago
>  Docs: man:nginx(8)
>   Process: 953 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
> master_process on; (code=exited, status=1/FAILURE)
>
> නෙවැ 28 16:44:57 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] still could not bind()
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Control process exited, code=exited status=1
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]: Failed to
> start A high performance web server and a reverse proxy server.
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Unit entered failed state.
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Failed with result 'exit-code'.
>
>
>
>
> Is there any possible solution to get rid of the error
> regards
>
>
>
>
> --
> *Dushantha Nayanajith Chandima Batuwita*
> Software Engineer Support | WSO2
> dushan...@wso2.com
> mobile : 0094777453010
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Thivya Mahenthirarasa*

*Software Engineer -Support Team | WSO2*


*Email: thi...@wso2.com *

*Mobile: +94766461966 *
*Web: http://wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] nginx master_process on; (code=exited, status=1/FAILURE)

2017-11-28 Thread Senduran Balasubramaniyam
It seems something else is already running on your port 80

On Tue, Nov 28, 2017 at 5:09 PM, Dushantha Batuwita 
wrote:

> Hi Dev
>
> I have installed the nginx and when I try  starting the nginx, I
> receive following error.
>
>  sudo service nginx start
>
> Job for nginx.service failed because the control process exited with error
> code.
> See "systemctl  status nginx.service" and "journalctl  -xe" for details.
>
>
> when I check the status it gives me.
>
> ● nginx.service - A high performance web server and a reverse proxy server
>Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor
> preset: enabled)
>Active: failed (Result: exit-code) since Tue 2017-11-28 16:33:48 +0530;
> 50s ago
>  Docs: man:nginx(8)
>   Process: 953 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
> master_process on; (code=exited, status=1/FAILURE)
>
> නෙවැ 28 16:44:57 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
> නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] bind() to [::]:80 failed (98: Address already in use)
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
> [emerg] still could not bind()
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Control process exited, code=exited status=1
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]: Failed to
> start A high performance web server and a reverse proxy server.
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Unit entered failed state.
> නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
> nginx.service: Failed with result 'exit-code'.
>
>
>
>
> Is there any possible solution to get rid of the error
> regards
>
>
>
>
> --
> *Dushantha Nayanajith Chandima Batuwita*
> Software Engineer Support | WSO2
> dushan...@wso2.com
> mobile : 0094777453010
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Senior Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] nginx master_process on; (code=exited, status=1/FAILURE)

2017-11-28 Thread Dushantha Batuwita
Hi Dev

I have installed the nginx and when I try  starting the nginx, I
receive following error.

 sudo service nginx start

Job for nginx.service failed because the control process exited with error
code.
See "systemctl  status nginx.service" and "journalctl  -xe" for details.


when I check the status it gives me.

● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor
preset: enabled)
   Active: failed (Result: exit-code) since Tue 2017-11-28 16:33:48 +0530;
50s ago
 Docs: man:nginx(8)
  Process: 953 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
master_process on; (code=exited, status=1/FAILURE)

නෙවැ 28 16:44:57 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
[emerg] bind() to [::]:80 failed (98: Address already in use)
නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
[emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
[emerg] bind() to [::]:80 failed (98: Address already in use)
නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
[emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
නෙවැ 28 16:44:58 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
[emerg] bind() to [::]:80 failed (98: Address already in use)
නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th nginx[2996]: nginx:
[emerg] still could not bind()
නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
nginx.service: Control process exited, code=exited status=1
නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]: Failed to
start A high performance web server and a reverse proxy server.
නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
nginx.service: Unit entered failed state.
නෙවැ 28 16:44:59 dushantha-ThinkPad-X1-Carbon-5th systemd[1]:
nginx.service: Failed with result 'exit-code'.




Is there any possible solution to get rid of the error
regards




-- 
*Dushantha Nayanajith Chandima Batuwita*
Software Engineer Support | WSO2
dushan...@wso2.com
mobile : 0094777453010
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Exception in SOAP to JSON conversion

2017-11-28 Thread Piriya Sivalingam
Hi Thilini,

Thank you for the explanation and according to Buddhimala I have added a
custom response for the status code 202 and it works fine.

Thanks.
Piriya

On Mon, Nov 20, 2017 at 9:53 AM, Thilini Shanika  wrote:

> Hi Priya,
>
> It seems like you are getting a SOAP response with an empty 
> body( xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> oapenv:Body/>) so that the JSON conversion fails. What
> is the requirement here to convert an empty SOAP message into a JSON? If
> you are getting an empty SOAP body for a delete operation, there's no point
> of converting it to a JSON, instead, you can return an HTTP status
> code(200).
>
> On Fri, Nov 17, 2017 at 10:32 AM, Piriya Sivalingam 
> wrote:
>
>> Hi,
>>
>> I am seeing an error in ESB 5.0.0 when making SOAP to JSON conversion via
>> a proxy service. When I invoke the proxy using following curl command the
>> operation was successful, but I could see some errors logged in the console.
>>
>> When I search for the error, I found a solution given in [1]. When I try
>> it, the error got resolved. But still, I am getting a SOAP payload as the
>> response message.
>>
>> Here is my proxy service.
>>
>> 
>> http://ws.apache.org/ns/synapse";
>>name="newproxy1.2"
>>startOnLoad="true"
>>statistics="disable"
>>trace="disable"
>>transports="http,https">
>>
>>   
>>  >  scope="transport"
>>  value="Basic cGlyaXlhOnBpcml5YTEyMw=="/>
>>  
>> 
>>  
>>  
>> 
>>
>>   
>>  http://schemas.
>> xmlsoap.org/soap/envelope/"
>>xmlns:ser="http://service.sam
>> ple.ninewells.com">
>> 
>>2611
>> 
>> 
>>
>>   $1
>>
>> 
>>  
>>   
>>   
>>  http://org.apache.synapse/xsd";
>>   evaluator="xml"
>>   expression="$url:patientId"/>
>>   
>>
>>>  scope="transport"
>>  type="STRING"
>>  value="urn:readNinewells"/>
>>> value="urn:readNinewells"/>
>>>  scope="axis2"
>>  type="STRING"
>>  value="application/xml"/>
>>
>>   
>>  >   uri="https://:/servi
>> ces/NinewellsPatientService"/>
>>   
>>
>> 
>> 
>>
>>   
>>  http://schemas.
>> xmlsoap.org/soap/envelope/"
>>xmlns:ser="http://service.sam
>> ple.ninewells.com">
>> 
>>2611
>> 
>> 
>>
>>   $1
>>
>> 
>>  
>>   
>>   
>>  http://org.apache.synapse/xsd";
>>   evaluator="xml"
>>   expression="$url:patientId"/>
>>   
>>
>>>  scope="transport"
>>  type="STRING"
>>  value="urn:deleteNinewells"/>
>>> value="urn:deleteNinewells"/>
>>>  scope="axis2"
>>  type="STRING"
>>  value="application/xml"/>
>>
>>   
>>  >   uri="https://:/servi
>> ces/NinewellsPatientService"/>
>>   
>>
>> 
>> 
>>  
>>   
>>   
>>  >scope="axis2"
>>type="STRING"
>>value="application/json"/>
>>  
>>   
>>
>>
>> 
>>
>> My curl command is  curl -X DELETE http://piriya-ThinkPad-X1-Carb
>> on-5th:8284/services/newproxy1.2?patientId=1031
>>
>> The exception in the console is:
>>
>> ERROR - JsonUtil #writeAsJson. Payload could not be written as JSON.
>> MessageID: urn:uuid:752a8cd2-03a7-4564-8645-7652db5c8666
>> [2017-11-17 10:06:30,700] ERROR - PassThroughHttpSender Failed to submit
>> the response
>> org.apache.axis2.AxisFault: Payload could not be written as JSON.
>> at org.apache.synapse.commons.json.JsonUtil.writeAsJson(JsonUti
>> l.java:264)
>> at org.apache.synapse.commons.json.JsonStreamFormatter.w

Re: [Dev] [DEV] hostname in certificate didn't match: !=

2017-11-28 Thread Nuwan Silva
yes seems its the same issues. I was able to resolve it by following the
steps in that thread.

Cheers,
NuwanS.

On Tue, Nov 28, 2017 at 3:31 PM, Anuruddha Liyanarachchi <
anurudd...@wso2.com> wrote:

> Hi Nuwan,
>
> Are you using a load balancer to access the KM node? A similar issue is
> discussed in mail thread[1] where nginx sending a wrong certificate if
> the client doesn't send SNI information to the server.
>
> [1] Publisher/Store nodes are throwing an error "unable to find valid
> certification path to requested target
>
>
> On Tue, Nov 28, 2017 at 2:34 PM, Abimaran Kugathasan 
> wrote:
>
>> Hi Nuwan,
>>
>> Have you generated KeyStore for all the nodes? CN property belongs to
>> KeyStore. What's the value you have given to CN when you generate KeyStore?
>> Importing public keys to each other's client-truststore don't have any
>> impact on this problem.
>>
>> On Tue, Nov 28, 2017 at 11:29 AM, Isuru Haththotuwa 
>> wrote:
>>
>>> This means that the actual URL what it was trying to access
>>> (km.dev.wso2.org ) presented a certificate with
>>> the CN gw.dev.wso2.org. 
>>> The server at the host km.dev.wso2.com should have a public certificate
>>> with the same hostname as CN. And since you seem to have a common domain
>>> dev.wso2.org, you can generate a SSL key pair with a wildcard - *.
>>> dev.wso2.org. No need to generate separately for each instance.
>>> 
>>>
>>> On Tue, Nov 28, 2017 at 11:21 AM, Nuwan Silva  wrote:
>>>
 Hi Team,

 I'm getting the above issue when trying to login to publisher. I have
 added the certificates of all the instances of the deployment to a single
 client-truststore and copied to all servers.

 checking via
 keytool -list -v -keystore client-truststore.jks

 does show the certificates. What can be the cause of this?

 TID: [-1234] [] [2017-11-28 05:43:47,637]  INFO
 {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} -
 Permission cache updated for tenant -1234 {org.wso2.carbon.core.internal
 .permission.update.PermissionUpdater}
 TID: [-1234] [] [2017-11-28 05:43:48,009]  INFO {
 org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost
 to url[https://km.dev.wso2.org:443/services/AuthenticationAdmin] {
 org.apache.axis2.transport.http.HTTPSender}
 javax.net.ssl.SSLException: hostname in certificate didn't match: <
 km.dev.wso2.org> != 
 at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
 ory.verifyHostName(SSLProtocolSocketFactory.java:436)
 at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
 ory.verifyHostName(SSLProtocolSocketFactory.java:302)
 at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
 ory.verifyHostName(SSLProtocolSocketFactory.java:273)
 at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
 ory.createSocket(SSLProtocolSocketFactory.java:183)
 at org.apache.commons.httpclient.HttpConnection.open(HttpConnec
 tion.java:707)
 at org.apache.commons.httpclient.MultiThreadedHttpConnectionMan
 ager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionM
 anager.java:1361)
 at org.apache.commons.httpclient.HttpMethodDirector.executeWith
 Retry(HttpMethodDirector.java:387)
 at org.apache.commons.httpclient.HttpMethodDirector.executeMeth
 od(HttpMethodDirector.java:171)
 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpC
 lient.java:397)
 at org.apache.axis2.transport.http.AbstractHTTPSender.executeMe
 thod(AbstractHTTPSender.java:682)
 at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPS
 ender.java:195)
 at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.j
 ava:77)
 at org.apache.axis2.transport.http.CommonsHTTPTransportSender.w
 riteMessageWithCommons(CommonsHTTPTransportSender.java:451)
 at org.apache.axis2.transport.http.CommonsHTTPTransportSender.i
 nvoke(CommonsHTTPTransportSender.java:278)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
 at org.apache.axis2.description.OutInAxisOperationClient.send(O
 utInAxisOperation.java:430)
 at org.apache.axis2.description.OutInAxisOperationClient.execut
 eImpl(OutInAxisOperation.java:225)
 at org.apache.axis2.client.OperationClient.execute(OperationCli
 ent.java:149)
 at org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.l
 ogin(AuthenticationAdminStub.java:659)
 at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsF
 unction_login(APIProviderHostObject.java:267)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
 ssorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke

Re: [Dev] [DEV] hostname in certificate didn't match: !=

2017-11-28 Thread Anuruddha Liyanarachchi
Hi Nuwan,

Are you using a load balancer to access the KM node? A similar issue is
discussed in mail thread[1] where nginx sending a wrong certificate if the
client doesn't send SNI information to the server.

[1] Publisher/Store nodes are throwing an error "unable to find valid
certification path to requested target


On Tue, Nov 28, 2017 at 2:34 PM, Abimaran Kugathasan 
wrote:

> Hi Nuwan,
>
> Have you generated KeyStore for all the nodes? CN property belongs to
> KeyStore. What's the value you have given to CN when you generate KeyStore?
> Importing public keys to each other's client-truststore don't have any
> impact on this problem.
>
> On Tue, Nov 28, 2017 at 11:29 AM, Isuru Haththotuwa 
> wrote:
>
>> This means that the actual URL what it was trying to access
>> (km.dev.wso2.org ) presented a certificate with
>> the CN gw.dev.wso2.org. 
>> The server at the host km.dev.wso2.com should have a public certificate
>> with the same hostname as CN. And since you seem to have a common domain
>> dev.wso2.org, you can generate a SSL key pair with a wildcard - *.
>> dev.wso2.org. No need to generate separately for each instance.
>> 
>>
>> On Tue, Nov 28, 2017 at 11:21 AM, Nuwan Silva  wrote:
>>
>>> Hi Team,
>>>
>>> I'm getting the above issue when trying to login to publisher. I have
>>> added the certificates of all the instances of the deployment to a single
>>> client-truststore and copied to all servers.
>>>
>>> checking via
>>> keytool -list -v -keystore client-truststore.jks
>>>
>>> does show the certificates. What can be the cause of this?
>>>
>>> TID: [-1234] [] [2017-11-28 05:43:47,637]  INFO
>>> {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} -
>>> Permission cache updated for tenant -1234 {org.wso2.carbon.core.internal
>>> .permission.update.PermissionUpdater}
>>> TID: [-1234] [] [2017-11-28 05:43:48,009]  INFO {
>>> org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost to
>>> url[https://km.dev.wso2.org:443/services/AuthenticationAdmin] {
>>> org.apache.axis2.transport.http.HTTPSender}
>>> javax.net.ssl.SSLException: hostname in certificate didn't match: <
>>> km.dev.wso2.org> != 
>>> at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
>>> ory.verifyHostName(SSLProtocolSocketFactory.java:436)
>>> at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
>>> ory.verifyHostName(SSLProtocolSocketFactory.java:302)
>>> at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
>>> ory.verifyHostName(SSLProtocolSocketFactory.java:273)
>>> at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
>>> ory.createSocket(SSLProtocolSocketFactory.java:183)
>>> at org.apache.commons.httpclient.HttpConnection.open(HttpConnec
>>> tion.java:707)
>>> at org.apache.commons.httpclient.MultiThreadedHttpConnectionMan
>>> ager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionM
>>> anager.java:1361)
>>> at org.apache.commons.httpclient.HttpMethodDirector.executeWith
>>> Retry(HttpMethodDirector.java:387)
>>> at org.apache.commons.httpclient.HttpMethodDirector.executeMeth
>>> od(HttpMethodDirector.java:171)
>>> at org.apache.commons.httpclient.HttpClient.executeMethod(HttpC
>>> lient.java:397)
>>> at org.apache.axis2.transport.http.AbstractHTTPSender.executeMe
>>> thod(AbstractHTTPSender.java:682)
>>> at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPS
>>> ender.java:195)
>>> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.j
>>> ava:77)
>>> at org.apache.axis2.transport.http.CommonsHTTPTransportSender.w
>>> riteMessageWithCommons(CommonsHTTPTransportSender.java:451)
>>> at org.apache.axis2.transport.http.CommonsHTTPTransportSender.i
>>> nvoke(CommonsHTTPTransportSender.java:278)
>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>>> at org.apache.axis2.description.OutInAxisOperationClient.send(O
>>> utInAxisOperation.java:430)
>>> at org.apache.axis2.description.OutInAxisOperationClient.execut
>>> eImpl(OutInAxisOperation.java:225)
>>> at org.apache.axis2.client.OperationClient.execute(OperationCli
>>> ent.java:149)
>>> at org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.l
>>> ogin(AuthenticationAdminStub.java:659)
>>> at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsF
>>> unction_login(APIProviderHostObject.java:267)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>> ssorImpl.java:62)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>>> at org.mozilla.javascript.FunctionObject.call(FunctionObject.ja
>>> va:386)
>>> at org.mozilla.javascript.optimizer.OptRu

Re: [Dev] [DEV] hostname in certificate didn't match: !=

2017-11-28 Thread Abimaran Kugathasan
Hi Nuwan,

Have you generated KeyStore for all the nodes? CN property belongs to
KeyStore. What's the value you have given to CN when you generate KeyStore?
Importing public keys to each other's client-truststore don't have any
impact on this problem.

On Tue, Nov 28, 2017 at 11:29 AM, Isuru Haththotuwa  wrote:

> This means that the actual URL what it was trying to access
> (km.dev.wso2.org ) presented a certificate with
> the CN gw.dev.wso2.org. 
> The server at the host km.dev.wso2.com should have a public certificate
> with the same hostname as CN. And since you seem to have a common domain
> dev.wso2.org, you can generate a SSL key pair with a wildcard - *.
> dev.wso2.org. No need to generate separately for each instance.
> 
>
> On Tue, Nov 28, 2017 at 11:21 AM, Nuwan Silva  wrote:
>
>> Hi Team,
>>
>> I'm getting the above issue when trying to login to publisher. I have
>> added the certificates of all the instances of the deployment to a single
>> client-truststore and copied to all servers.
>>
>> checking via
>> keytool -list -v -keystore client-truststore.jks
>>
>> does show the certificates. What can be the cause of this?
>>
>> TID: [-1234] [] [2017-11-28 05:43:47,637]  INFO
>> {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} -
>> Permission cache updated for tenant -1234 {org.wso2.carbon.core.internal
>> .permission.update.PermissionUpdater}
>> TID: [-1234] [] [2017-11-28 05:43:48,009]  INFO {
>> org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost to
>> url[https://km.dev.wso2.org:443/services/AuthenticationAdmin] {
>> org.apache.axis2.transport.http.HTTPSender}
>> javax.net.ssl.SSLException: hostname in certificate didn't match: <
>> km.dev.wso2.org> != 
>> at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
>> ory.verifyHostName(SSLProtocolSocketFactory.java:436)
>> at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
>> ory.verifyHostName(SSLProtocolSocketFactory.java:302)
>> at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
>> ory.verifyHostName(SSLProtocolSocketFactory.java:273)
>> at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
>> ory.createSocket(SSLProtocolSocketFactory.java:183)
>> at org.apache.commons.httpclient.HttpConnection.open(HttpConnec
>> tion.java:707)
>> at org.apache.commons.httpclient.MultiThreadedHttpConnectionMan
>> ager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionM
>> anager.java:1361)
>> at org.apache.commons.httpclient.HttpMethodDirector.executeWith
>> Retry(HttpMethodDirector.java:387)
>> at org.apache.commons.httpclient.HttpMethodDirector.executeMeth
>> od(HttpMethodDirector.java:171)
>> at org.apache.commons.httpclient.HttpClient.executeMethod(HttpC
>> lient.java:397)
>> at org.apache.axis2.transport.http.AbstractHTTPSender.executeMe
>> thod(AbstractHTTPSender.java:682)
>> at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPS
>> ender.java:195)
>> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.
>> java:77)
>> at org.apache.axis2.transport.http.CommonsHTTPTransportSender.w
>> riteMessageWithCommons(CommonsHTTPTransportSender.java:451)
>> at org.apache.axis2.transport.http.CommonsHTTPTransportSender.i
>> nvoke(CommonsHTTPTransportSender.java:278)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>> at org.apache.axis2.description.OutInAxisOperationClient.send(O
>> utInAxisOperation.java:430)
>> at org.apache.axis2.description.OutInAxisOperationClient.execut
>> eImpl(OutInAxisOperation.java:225)
>> at org.apache.axis2.client.OperationClient.execute(OperationCli
>> ent.java:149)
>> at org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.l
>> ogin(AuthenticationAdminStub.java:659)
>> at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsF
>> unction_login(APIProviderHostObject.java:267)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>> at org.mozilla.javascript.FunctionObject.call(FunctionObject.
>> java:386)
>> at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime
>> .java:42)
>> at org.jaggeryjs.rhino.publisher.modules.user.c1._c_anonymous_1
>> (/publisher/modules/user/login.jag:19)
>> at org.jaggeryjs.rhino.publisher.modules.user.c1.call(/publishe
>> r/modules/user/login.jag)
>> at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRunti
>> me.java:2430)
>> at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.
>> java:269)
>> at org.mozilla.javascript.IdFunctionObject.call(IdFunc

Re: [Dev] [EI] Car application with only registry resources

2017-11-28 Thread Vinod Kavinda
Hi Godwin,
Thanks for the update. Reported the issue [1]

[1] - https://github.com/wso2/product-ei/issues/1428

Regards,
Vinod

On Tue, Nov 28, 2017 at 2:02 PM, Godwin Shrimal  wrote:

> Thanks for the response guy, I could resolve it by setting
> "EnterpriseServiceBus" server role when exporting car file. I think this
> should work OOB, best thing is adding "GovernanceRegistry"  in carbon.xml
> under server roles.
>
>
> Thanks
> Godwin
>
>
>
> On Mon, Nov 27, 2017 at 12:23 PM, Sashika Wijesinghe 
> wrote:
>
>> Hi Himasha,
>>
>> When exporting the carbon application project we can select the required
>> server role. I have tried that option for 'EnterpriseServiceBus' server
>> role and it works for me.
>>
>> Regards,
>> Sashika
>>
>> On Mon, Nov 27, 2017 at 10:27 AM, Himasha Guruge 
>> wrote:
>>
>>> Hi Sashika,
>>>
>>> To solve the issue, you can add the 'GovernanceRegistry' server role to
>>> the EI server under "" in the carbon.xml or set the server
>>> role of the registry resource to 'EnterpriseIntegrator' when creating the
>>> CAR file.
>>> Have we tried out option 2? (setting role to 'EnterpriseIntegrator')
>>> AFAIR in tooling, we don't list ''EnterpriseIntegrator' role for
>>> registry projects.
>>>
>>> Thanks,
>>> Himasha
>>>
>>> On Mon, Nov 27, 2017 at 10:11 AM, Vinod Kavinda  wrote:
>>>
 Hi All,
 IMO, this should work OOB. If above changes works, we can ship the
 carbon.xml with the role  'GovernanceRegistry'. Shall we report a bug?

 Regards,
 Vinod

 On Mon, Nov 27, 2017 at 10:05 AM, Sashika Wijesinghe 
 wrote:

> Hi Godwin,
>
> To solve the issue, you can add the 'GovernanceRegistry' server role
> to the EI server under "" in the carbon.xml or set the server
> role of the registry resource to 'EnterpriseIntegrator' when creating the
> CAR file.
>
> Regards,
> Sashika
>
> On Mon, Nov 27, 2017 at 8:32 AM, Rukshan Premathunga  > wrote:
>
>> Hi Godwin,
>>
>> I think it because of your car file don't compatible with EI server
>> role. Can you please find the EI server role and update in the 
>> artifact.xml.
>>
>> Thanks and Regards
>>
>> On Mon, Nov 27, 2017 at 8:21 AM, Godwin Shrimal 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> Can't we have a CAR application with only registry project and
>>> deploy? It's complaining there are no artifacts to deploy and goes to
>>> faulty.
>>>
>>> Thanks
>>> Godwin
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Associate Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>>> *
>>> twitter: https://twitter.com/godwinamila
>>> 
>>>
>>
>>
>>
>> --
>> Rukshan Chathuranga.
>> Software Engineer.
>> WSO2, Inc.
>> +94711822074 <+94%2071%20182%202074>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Sashika WijesingheSoftware Engineer - QA Team*
> Mobile : +94 (0) 774537487
> sash...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Vinod Kavinda
 Senior Software Engineer
 *WSO2 Inc. - lean . enterprise . middleware .*
 Mobile : +94 (0) 712 415544
 Blog : http://soatechflicks.blogspot.com/
 [image: http://wso2.com/signature]
 


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Himasha Guruge
>>> Senior Software Engineer
>>> WS*O2* *Inc.*
>>> Mobile: +94 777459299 <+94%2077%20745%209299>
>>> himas...@wso2.com
>>>
>>
>>
>>
>> --
>>
>> *Sashika WijesingheSoftware Engineer - QA Team*
>> Mobile : +94 (0) 774537487
>> sash...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> *
> twitter: https://twitter.com/godwinamila
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware 

Re: [Dev] How to validate email adddress

2017-11-28 Thread Dilusha Alphonso
Hi,

Thank you for the response. I changed my configuration as mentioned above
it's working.

Thanks
Dilusha


On Mon, Nov 27, 2017 at 3:35 PM, Senduran Balasubramaniyam <
sendu...@wso2.com> wrote:

> Also you need to use the template with + sign since its value can contain
> @
>
> uri-template="/{*+*id}"
>
> Regards
> Senduran
>
>
>
>
> On Mon, Nov 27, 2017 at 3:24 PM, Abimaran Kugathasan 
> wrote:
>
>> Hi Dilusha,
>>
>> Since you have defined is as path parameter in the template, you must use
>> 'uri.var.id' instead of 'query.param.id' in the filter mediator like
>> below.
>>
>> > regex="/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/">
>>
>> On Sat, Nov 25, 2017 at 11:37 AM, Dilusha Alphonso 
>> wrote:
>>
>>> Hi All,
>>>
>>> Requirement: I need to check a condition " Patient ID is the email
>>> address of given patient". When I give any string to the ID, it must be an
>>> email address. I have to validate ID whether it is in email format. For
>>> this, I used the filter mediator in ESB, But I noticed my request didn't go
>>> through that filter mediator.
>>>
>>> I attached my API configuration in ESB. Please, anyone, help me to
>>> validate the email address with ID.
>>>
>>> http://ws.apache.org/ns/synapse"; name="Durdan"
>>> context="/test">
>>>
>>>   
>>>  
>>>  >> regex="/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/">
>>> 
>>>
>>>
>>>   
>>>  http://schemas.
>>> xmlsoap.org/soap/envelope/">
>>> 
>>>17
>>> 
>>> 
>>>http://service.sample.durdans.com";>
>>>   $1
>>>
>>> 
>>>  
>>>   
>>>   
>>>  
>>>   
>>>
>>>
>>>>> scope="transport"/>
>>>
>>>   
>>>  
>>>   
>>>
>>>
>>>>> scope="axis2" type="STRING"/>
>>> 
>>> 
>>>
>>>   >> value="deef"/>
>>>
>>> 
>>>  
>>>   
>>>   
>>>  
>>>   
>>>
>>> 
>>>
>>> Thanks
>>> Dilusha
>>>
>>>
>>>
>>>
>>>
>>> before loop back to out sequence whether the USER_NAME and PATIENT_ID
>>> are equal.
>>>
>>> --
>>>
>>>
>>> *Best Regards,Dilusha Alphonso*
>>>
>>> *Software Engineer - Support Team*
>>>
>>>
>>> *WSO2*
>>> *Mobile : *
>>>
>>> *+94766837098 <+94%2076%20683%207098>[image: http://wso2.com/signature]
>>> *
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>
>> 
>> 
>>   
>> 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Senduran *
> Senior Software Engineer,
> WSO2, Inc.;  http://wso2.com/ 
> Mobile: +94 77 952 6548 <+94%2077%20952%206548>
>



-- 


*Best Regards,Dilusha Alphonso*

*Software Engineer - Support Team*


*WSO2*
*Mobile : *

*+94766837098[image: http://wso2.com/signature] *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Car application with only registry resources

2017-11-28 Thread Godwin Shrimal
Thanks for the response guy, I could resolve it by setting
"EnterpriseServiceBus" server role when exporting car file. I think this
should work OOB, best thing is adding "GovernanceRegistry"  in carbon.xml
under server roles.


Thanks
Godwin



On Mon, Nov 27, 2017 at 12:23 PM, Sashika Wijesinghe 
wrote:

> Hi Himasha,
>
> When exporting the carbon application project we can select the required
> server role. I have tried that option for 'EnterpriseServiceBus' server
> role and it works for me.
>
> Regards,
> Sashika
>
> On Mon, Nov 27, 2017 at 10:27 AM, Himasha Guruge 
> wrote:
>
>> Hi Sashika,
>>
>> To solve the issue, you can add the 'GovernanceRegistry' server role to
>> the EI server under "" in the carbon.xml or set the server
>> role of the registry resource to 'EnterpriseIntegrator' when creating the
>> CAR file.
>> Have we tried out option 2? (setting role to 'EnterpriseIntegrator')
>> AFAIR in tooling, we don't list ''EnterpriseIntegrator' role for
>> registry projects.
>>
>> Thanks,
>> Himasha
>>
>> On Mon, Nov 27, 2017 at 10:11 AM, Vinod Kavinda  wrote:
>>
>>> Hi All,
>>> IMO, this should work OOB. If above changes works, we can ship the
>>> carbon.xml with the role  'GovernanceRegistry'. Shall we report a bug?
>>>
>>> Regards,
>>> Vinod
>>>
>>> On Mon, Nov 27, 2017 at 10:05 AM, Sashika Wijesinghe 
>>> wrote:
>>>
 Hi Godwin,

 To solve the issue, you can add the 'GovernanceRegistry' server role to
 the EI server under "" in the carbon.xml or set the server
 role of the registry resource to 'EnterpriseIntegrator' when creating the
 CAR file.

 Regards,
 Sashika

 On Mon, Nov 27, 2017 at 8:32 AM, Rukshan Premathunga 
 wrote:

> Hi Godwin,
>
> I think it because of your car file don't compatible with EI server
> role. Can you please find the EI server role and update in the 
> artifact.xml.
>
> Thanks and Regards
>
> On Mon, Nov 27, 2017 at 8:21 AM, Godwin Shrimal 
> wrote:
>
>> Hi Devs,
>>
>> Can't we have a CAR application with only registry project and
>> deploy? It's complaining there are no artifacts to deploy and goes to
>> faulty.
>>
>> Thanks
>> Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>> Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>> *
>> twitter: https://twitter.com/godwinamila
>> 
>>
>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
> +94711822074 <+94%2071%20182%202074>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --

 *Sashika WijesingheSoftware Engineer - QA Team*
 Mobile : +94 (0) 774537487
 sash...@wso2.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Vinod Kavinda
>>> Senior Software Engineer
>>> *WSO2 Inc. - lean . enterprise . middleware .*
>>> Mobile : +94 (0) 712 415544
>>> Blog : http://soatechflicks.blogspot.com/
>>> [image: http://wso2.com/signature]
>>> 
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Himasha Guruge
>> Senior Software Engineer
>> WS*O2* *Inc.*
>> Mobile: +94 777459299 <+94%2077%20745%209299>
>> himas...@wso2.com
>>
>
>
>
> --
>
> *Sashika WijesingheSoftware Engineer - QA Team*
> Mobile : +94 (0) 774537487
> sash...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Godwin Amila Shrimal*
Associate Technical Lead
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
*
twitter: https://twitter.com/godwinamila

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev