You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Isuru Perera <is...@wso2.com> on 2014/04/06 09:32:18 UTC

Re: Unable to log into phpmyadmin via LB

Hi Udara,

Did you test Wordpress on PHP Cartridge.

I cannot access Wordpress via LB properly. See the screenshot. I'm on
Private Browsing.

What could be the issue?


[image: Inline image 1]


On Thu, Mar 27, 2014 at 5:07 PM, Udara Liyanage <ud...@wso2.com> wrote:

>  I was able to log in with the following changes.
> This might not work when ports are not default work. Investigating more/
>
> <property expression="$ctx:SERVICE_PREFIX" group="2"
> name="LB_SP_HOST_NAME" pattern="(^http.?:\/\/\b)(\d*.\d.\d.\d*.\d*)(.*)"/>
>             <property expression="$trp:Location" group="1"
> name="EP_RESPONSE_LOC_PROTOCOL"
> pattern="(^http.?:\/\/\b)(\d*.\d.\d.\d*.\d*)(.*)"/>
>             <property expression="$trp:Location" group="2"
> name="EP_RESPONSE_LOC_HOST_NAME"
> pattern="(^http.?:\/\/\b)(\d*.\d.\d.\d*.\d*)(.*)"/>
>             <property expression="$trp:Location" group="3"
> name="EP_RESPONSE_LOC_PATH"
> pattern="(^http.?:\/\/\b)(\d*.\d.\d.\d*.\d*)(.*)"/>
>
>
>
> On Thu, Mar 27, 2014 at 4:59 AM, Udara Liyanage <ud...@wso2.com> wrote:
>
>> I tried with following reg expressions
>>
>> <property expression="$trp:Location" group="1"
>> name="EP_RESPONSE_LOC_PROTOCOL" pattern="(^http.?://\b)(.*)"/>
>>             <property expression="$trp:Location" group="2"
>> name="EP_RESPONSE_LOC_HOST_NAME" pattern="(^http.?://\b)(.*)"/>
>> basically remove the port part.
>>
>> Then it directs to the http://mysql.mysql.udara.com:8280/, not to the
>> http://mysql.mysql.udara.com:8280/phpmyadmin/
>>
>>
>>
>> On Thu, Mar 27, 2014 at 1:41 AM, Nirmal Fernando <ni...@gmail.com>wrote:
>>
>>> Great! Please fix it properly Udara.
>>>
>>>
>>> On Thu, Mar 27, 2014 at 11:07 AM, Udara Liyanage <ud...@wso2.com> wrote:
>>>
>>>> Regular expression expects a port, but since application runs on 80
>>>> (default port) the URL does not contains a port which results in match
>>>> failure.
>>>>
>>>>
>>>> On Thu, Mar 27, 2014 at 1:10 AM, Nirmal Fernando <
>>>> nirmal070125@gmail.com> wrote:
>>>>
>>>>> We might need to correct the regex used in
>>>>> synapse-configs/default/sequences/main.xml of LB.
>>>>>
>>>>>
>>>>> On Thu, Mar 27, 2014 at 10:35 AM, Udara Liyanage <ud...@wso2.com>wrote:
>>>>>
>>>>>> I put synapse debug logs and compare. I found this log is printed
>>>>>> when it is not working
>>>>>> *Unable to find a match for regx : (^http.?://\b)(.*):(\d*)(.*) with
>>>>>> the property value
>>>>>> :http://10.142.153.155/phpmyadmin/index.php?token=48bdb70fd4f1e6abe5ecb84192c1835e
>>>>>> <http://10.142.153.155/phpmyadmin/index.php?token=48bdb70fd4f1e6abe5ecb84192c1835e> *
>>>>>> Any clue ?
>>>>>>
>>>>>>
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,260] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 >> POST
>>>>>> /phpmyadmin/index.php HTTP/1.1
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,260] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 >> Host:
>>>>>> mysql.mysql.udara.com:8280
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,260] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 >>
>>>>>> Connection: keep-alive
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,261] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 >>
>>>>>> Content-Length: 87
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,261] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 >>
>>>>>> Cache-Control: max-age=0
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,261] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 >> Accept:
>>>>>> text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,261] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 >> Origin:
>>>>>> http://mysql.mysql.udara.com:8280
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,261] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 >>
>>>>>> User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like
>>>>>> Gecko) Chrome/33.0.1712.4 Safari/537.36
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,261] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 >>
>>>>>> Content-Type: application/x-www-form-urlencoded
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,262] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 >> Referer:
>>>>>> http://mysql.mysql.udara.com:8280/phpmyadmin/index.php?token=32b1c9ac03ae03db4d4d16831bd94bb0&old_usr=root
>>>>>>
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,262] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 >>
>>>>>> Accept-Encoding: gzip,deflate,sdch
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,262] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 >>
>>>>>> Accept-Language: en-US,en;q=0.8
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,262] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 >> Cookie:
>>>>>> pma_lang=en; pma_mcrypt_iv=GFphFMyz8zs%3D;
>>>>>> pma_collation_connection=utf8_general_ci; pmaUser-1=MzcDOD%2F0RMs%3D;
>>>>>> phpMyAdmin=g5qsoigg23ntr74s030a459t8jh3cga5; pma_navi_width=200
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,263] DEBUG
>>>>>> {org.apache.synapse.core.axis2.SynapseMessageReceiver} -  Synapse received
>>>>>> a new message for message mediation...
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,263] DEBUG
>>>>>> {org.apache.synapse.core.axis2.SynapseMessageReceiver} -  Received To:
>>>>>> /phpmyadmin/index.php
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,264] DEBUG
>>>>>> {org.apache.synapse.core.axis2.SynapseMessageReceiver} -  SOAPAction: null
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,264] DEBUG
>>>>>> {org.apache.synapse.core.axis2.SynapseMessageReceiver} -  WSA-Action: null
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,264] DEBUG
>>>>>> {org.apache.synapse.core.axis2.Axis2SynapseEnvironment} -  Injecting
>>>>>> MessageContext
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,264] DEBUG
>>>>>> {org.apache.synapse.core.axis2.Axis2SynapseEnvironment} -  Using Main
>>>>>> Sequence for injected message
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,264] DEBUG
>>>>>> {org.apache.synapse.mediators.base.SequenceMediator} -  Start : Sequence
>>>>>> <main>
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,264] DEBUG
>>>>>> {org.apache.synapse.mediators.base.SequenceMediator} -  Setting the onError
>>>>>> handler : fault for the sequence : main
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,265] DEBUG
>>>>>> {org.apache.synapse.mediators.base.SequenceMediator} -  Sequence
>>>>>> <SequenceMediator> :: mediate()
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,265] DEBUG
>>>>>> {org.apache.synapse.mediators.base.SequenceMediator} -  Mediation started
>>>>>> from mediator position : 0
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,265] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.InMediator} -  Start : In mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,265] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.InMediator} -  Current message is
>>>>>> incoming - executing child mediators
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,265] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.InMediator} -  Sequence <InMediator>
>>>>>> :: mediate()
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,265] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.InMediator} -  Mediation started from
>>>>>> mediator position : 0
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,265] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.PropertyMediator} -  Start : Property
>>>>>> mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,266] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.PropertyMediator} -  Setting property
>>>>>> : SERVICE_PREFIX at scope : default to : http://10.143.21.26:8280/(i.e. result of expression : $axis2:SERVICE_PREFIX)
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,266] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.PropertyMediator} -  End : Property
>>>>>> mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,266] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.SendMediator} -  Start : Send
>>>>>> mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,266] DEBUG
>>>>>> {org.apache.synapse.endpoints.ClassEndpoint} -  Start sending message
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,266] DEBUG
>>>>>> {org.apache.synapse.endpoints.dispatch.HttpSessionDispatcher} -  Extracted
>>>>>> Host Name : mysql.mysql.udara.com
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,266] DEBUG
>>>>>> {org.apache.synapse.endpoints.dispatch.HttpSessionDispatcher} -  Endpoint
>>>>>> Address : /phpmyadmin/index.php
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,266] DEBUG
>>>>>> {org.apache.synapse.endpoints.dispatch.HttpSessionDispatcher} -  Content
>>>>>> Type : application/x-www-form-urlencoded
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,267] DEBUG
>>>>>> {org.apache.synapse.endpoints.dispatch.HttpSessionDispatcher} -  A request
>>>>>> received with the Host Name : mysql.mysql.udara.com:8280
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,267] DEBUG
>>>>>> {org.apache.synapse.endpoints.dispatch.HttpSessionDispatcher} -  Cookies
>>>>>> String : pma_lang=en; pma_mcrypt_iv=GFphFMyz8zs%3D;
>>>>>> pma_collation_connection=utf8_general_ci; pmaUser-1=MzcDOD%2F0RMs%3D;
>>>>>> phpMyAdmin=g5qsoigg23ntr74s030a459t8jh3cga5; pma_navi_width=200
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,267] DEBUG
>>>>>> {org.apache.synapse.endpoints.dispatch.HttpSessionDispatcher} -  Extracted
>>>>>> SessionID :  phpMyAdmin=g5qsoigg23ntr74s030a459t8jh3cga5
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,267] DEBUG
>>>>>> {org.apache.synapse.endpoints.dispatch.SALSessions} -  Retrieving the
>>>>>> endpoint from the session id phpMyAdmin=g5qsoigg23ntr74s030a459t8jh3cga5
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,267] DEBUG
>>>>>> {org.apache.synapse.endpoints.dispatch.HttpSessionDispatcher} -  Member
>>>>>> Domain : true : Session ID phpMyAdmin=g5qsoigg23ntr74s030a459t8jh3cga5
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,267] DEBUG
>>>>>> {org.apache.synapse.endpoints.dispatch.HttpSessionDispatcher} -  Found a
>>>>>> matching sessionInfo Object for the mysql.mysql.udara.com
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,267] DEBUG
>>>>>> {org.apache.stratos.load.balancer.endpoint.TenantAwareLoadBalanceEndpoint}
>>>>>> -  Existing session found: phpMyAdmin=g5qsoigg23ntr74s030a459t8jh3cga5
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,268] DEBUG
>>>>>> {org.apache.stratos.load.balancer.endpoint.TenantAwareLoadBalanceEndpoint}
>>>>>> -  Sending request to endpoint:
>>>>>> http://10.142.153.155:80/phpmyadmin/index.php
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,268] DEBUG
>>>>>> {org.apache.synapse.endpoints.EndpointContext} -  Checking if endpoint :
>>>>>> DLB:10.142.153.155:80:626071b8-e725-4c70-ba2e-bc67c7ca1caa currently
>>>>>> at state ACTIVE can be used now?
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,268] DEBUG
>>>>>> {org.apache.synapse.endpoints.AddressEndpoint} -  Sending message through
>>>>>> endpoint : DLB:10.142.153.155:80:626071b8-e725-4c70-ba2e-bc67c7ca1caa
>>>>>> resolving to address = http://10.142.153.155:80/phpmyadmin/index.php
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,268] DEBUG
>>>>>> {org.apache.synapse.endpoints.AddressEndpoint} -  SOAPAction: null
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,268] DEBUG
>>>>>> {org.apache.synapse.endpoints.AddressEndpoint} -  WSA-Action: null
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,268] DEBUG
>>>>>> {org.apache.synapse.core.axis2.Axis2FlexibleMEPClient} -  Sending [add =
>>>>>> false] [sec = false] [rm = false] [mtom = false] [swa = false] [format =
>>>>>> null] [force soap11=false] [force soap12=false] [pox=false] [get=false]
>>>>>> [encoding=null] [to=http://10.142.153.155:80/phpmyadmin/index.php]
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,269] DEBUG
>>>>>> {org.apache.synapse.core.axis2.Axis2FlexibleMEPClient} -  Message [Original
>>>>>> Request Message ID : urn:uuid:4941d214-9314-4b15-b5a3-975196b5fdb6] [New
>>>>>> Cloned Request Message ID : urn:uuid:d9e2d50e-9576-4149-8719-b66e9bca517a]
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,269] DEBUG
>>>>>> {org.apache.synapse.core.axis2.SynapseCallbackReceiver} -  Callback added.
>>>>>> Total callbacks waiting for : 1
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,270] DEBUG
>>>>>> {org.apache.stratos.load.balancer.statistics.LoadBalancerStatisticsCollector}
>>>>>> -  In-flight request count incremented: [cluster] mysql.mysql.domain
>>>>>> [count] 1
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,271] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 >> POST
>>>>>> /phpmyadmin/index.php HTTP/1.1
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,271] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 >>
>>>>>> Accept-Language: en-US,en;q=0.8
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,271] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 >> Cookie:
>>>>>> pma_lang=en; pma_mcrypt_iv=GFphFMyz8zs%3D;
>>>>>> pma_collation_connection=utf8_general_ci; pmaUser-1=MzcDOD%2F0RMs%3D;
>>>>>> phpMyAdmin=g5qsoigg23ntr74s030a459t8jh3cga5; pma_navi_width=200
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,271] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 >> Referer:
>>>>>> http://mysql.mysql.udara.com:8280/phpmyadmin/index.php?token=32b1c9ac03ae03db4d4d16831bd94bb0&old_usr=root
>>>>>>
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,271] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 >>
>>>>>> Accept-Encoding: gzip,deflate,sdch
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,271] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 >>
>>>>>> X-Forwarded-For: 112.134.137.19
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,272] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 >> Origin:
>>>>>> http://mysql.mysql.udara.com:8280
>>>>>>  TID: [0] [LB] [2014-03-27 10:04:24,272] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 >>
>>>>>> Content-Type: application/x-www-form-urlencoded
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,272] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 >> Accept:
>>>>>> text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,272] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 >>
>>>>>> Cache-Control: max-age=0
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,272] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 >>
>>>>>> Transfer-Encoding: chunked
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,272] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 >> Host:
>>>>>> 10.142.153.155:80
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,272] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 >>
>>>>>> Connection: Keep-Alive
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,273] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 >>
>>>>>> User-Agent: Synapse-PT-HttpComponents-NIO
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,273] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.SendMediator} -  End : Send mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,273] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.DropMediator} -  Start : Drop
>>>>>> mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,274] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.DropMediator} -  End : Drop mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,274] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.InMediator} -  End : In mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,274] DEBUG
>>>>>> {org.apache.synapse.mediators.base.SequenceMediator} -  End : Sequence
>>>>>> <main>
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,307] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 << HTTP/1.1
>>>>>> 302 Found
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,307] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 << Date:
>>>>>> Thu, 27 Mar 2014 04:34:24 GMT
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,307] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 << Server:
>>>>>> Apache/2.2.22 (Ubuntu)
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,307] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 <<
>>>>>> X-Powered-By: PHP/5.3.10-1ubuntu3.10
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,307] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 << Expires:
>>>>>> Thu, 19 Nov 1981 08:52:00 GMT
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,308] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 <<
>>>>>> Cache-Control: private, max-age=10800, pre-check=10800
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,308] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 <<
>>>>>> Last-Modified: Sat, 18 Feb 2012 12:26:45 GMT
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,308] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 <<
>>>>>> Set-Cookie: pmaPass-1=WB0PLe9RJpY%3D; expires=Sat, 26-Apr-2014 04:34:24
>>>>>> GMT; path=/phpmyadmin/; httponly
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,308] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 << Location:
>>>>>> http://10.142.153.155/phpmyadmin/index.php?token=48bdb70fd4f1e6abe5ecb84192c1835e
>>>>>>
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,308] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 << Vary:
>>>>>> Accept-Encoding
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,308] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 <<
>>>>>> Content-Encoding: gzip
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,309] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 <<
>>>>>> Content-Length: 20
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,309] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 <<
>>>>>> Keep-Alive: timeout=5, max=100
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,309] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 <<
>>>>>> Connection: Keep-Alive
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,309] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-outgoing-8 <<
>>>>>> Content-Type: text/html
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,310] DEBUG
>>>>>> {org.apache.synapse.core.axis2.SynapseCallbackReceiver} -  Callback removed
>>>>>> for request message id : urn:uuid:d9e2d50e-9576-4149-8719-b66e9bca517a.
>>>>>> Pending callbacks count : 0
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,310] DEBUG
>>>>>> {org.apache.synapse.core.axis2.SynapseCallbackReceiver} -  Synapse received
>>>>>> an asynchronous response message
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,311] DEBUG
>>>>>> {org.apache.synapse.core.axis2.SynapseCallbackReceiver} -  Received To:
>>>>>> null
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,311] DEBUG
>>>>>> {org.apache.synapse.core.axis2.SynapseCallbackReceiver} -  SOAPAction:
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,311] DEBUG
>>>>>> {org.apache.synapse.core.axis2.SynapseCallbackReceiver} -  WSA-Action:
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,311] DEBUG
>>>>>> {org.apache.synapse.core.axis2.SynapseCallbackReceiver} -  Body :
>>>>>> <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope
>>>>>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
>>>>>> "><soapenv:Body></soapenv:Body></soapenv:Envelope>
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,311] DEBUG
>>>>>> {org.apache.synapse.core.axis2.SOAPUtils} -  convert SOAP11 to SOAP12
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,312] DEBUG
>>>>>> {org.apache.synapse.endpoints.dispatch.HttpSessionDispatcher} -  A request
>>>>>> received with the Host Name : null
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,312] DEBUG
>>>>>> {org.apache.synapse.endpoints.dispatch.HttpSessionDispatcher} -  Cookies
>>>>>> String : pmaPass-1=WB0PLe9RJpY%3D; expires=Sat, 26-Apr-2014 04:34:24 GMT;
>>>>>> path=/phpmyadmin/; httponly
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,312] DEBUG
>>>>>> {org.apache.synapse.core.axis2.Axis2SynapseEnvironment} -  Injecting
>>>>>> MessageContext
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,312] DEBUG
>>>>>> {org.apache.synapse.core.axis2.Axis2SynapseEnvironment} -  Using Main
>>>>>> Sequence for injected message
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,312] DEBUG
>>>>>> {org.apache.synapse.mediators.base.SequenceMediator} -  Start : Sequence
>>>>>> <main>
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,312] DEBUG
>>>>>> {org.apache.synapse.mediators.base.SequenceMediator} -  Setting the onError
>>>>>> handler : fault for the sequence : main
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,313] DEBUG
>>>>>> {org.apache.synapse.mediators.base.SequenceMediator} -  Sequence
>>>>>> <SequenceMediator> :: mediate()
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,313] DEBUG
>>>>>> {org.apache.synapse.mediators.base.SequenceMediator} -  Mediation started
>>>>>> from mediator position : 0
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,313] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.InMediator} -  Start : In mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,313] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.InMediator} -  Current message is a
>>>>>> response - skipping child mediators
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,313] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.InMediator} -  End : In mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,313] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.OutMediator} -  Start : Out mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,313] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.OutMediator} -  Current message is
>>>>>> outgoing - executing child mediators
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,314] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.OutMediator} -  Sequence
>>>>>> <OutMediator> :: mediate()
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,314] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.OutMediator} -  Mediation started
>>>>>> from mediator position : 0
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,314] DEBUG
>>>>>> {org.apache.synapse.mediators.ext.ClassMediator} -  Start : Class mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,314] DEBUG
>>>>>> {org.apache.synapse.mediators.ext.ClassMediator} -  invoking : class
>>>>>> org.apache.stratos.load.balancer.mediators.ResponseInterceptor.mediate()
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,314] DEBUG
>>>>>> {org.apache.stratos.load.balancer.mediators.ResponseInterceptor} -
>>>>>>  Response interceptor mediation started
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,315] DEBUG
>>>>>> {org.apache.stratos.load.balancer.statistics.LoadBalancerStatisticsCollector}
>>>>>> -  In-flight request count decremented: [cluster] mysql.mysql.domain
>>>>>> [count] 0
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,315] DEBUG
>>>>>> {org.apache.synapse.mediators.ext.ClassMediator} -  End : Class mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,315] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.FilterMediator} -  Start : Filter
>>>>>> mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,315] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.FilterMediator} -  Source :
>>>>>> $trp:Location against : .+ matches - executing child mediators
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,315] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.FilterMediator} -  Sequence
>>>>>> <FilterMediator> :: mediate()
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,315] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.FilterMediator} -  Mediation started
>>>>>> from mediator position : 0
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,315] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.PropertyMediator} -  Start : Property
>>>>>> mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,316] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.PropertyMediator} -  Setting property
>>>>>> : LB_SP_HOST_NAME at scope : default to : 10.143.21.26 (i.e. result of
>>>>>> expression : $ctx:SERVICE_PREFIX)
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,316] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.PropertyMediator} -  End : Property
>>>>>> mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,316] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.PropertyMediator} -  Start : Property
>>>>>> mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,316] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.PropertyMediator} - * Unable
>>>>>> to find a match for regx : (^http.?://\b)(.*):(\d*)(.*) with the property
>>>>>> value
>>>>>> :http://10.142.153.155/phpmyadmin/index.php?token=48bdb70fd4f1e6abe5ecb84192c1835e
>>>>>> <http://10.142.153.155/phpmyadmin/index.php?token=48bdb70fd4f1e6abe5ecb84192c1835e> *
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,316] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.PropertyMediator} -  Setting property
>>>>>> : EP_RESPONSE_LOC_PROTOCOL at scope : default to :  (i.e. result of
>>>>>> expression : $trp:Location)
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,316] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.PropertyMediator} -  End : Property
>>>>>> mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,316] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.PropertyMediator} -  Start : Property
>>>>>> mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,317] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.PropertyMediator} - * Unable
>>>>>> to find a match for regx : (^http.?://\b)(.*):(\d*)(.*) with the property
>>>>>> value
>>>>>> :http://10.142.153.155/phpmyadmin/index.php?token=48bdb70fd4f1e6abe5ecb84192c1835e
>>>>>> <http://10.142.153.155/phpmyadmin/index.php?token=48bdb70fd4f1e6abe5ecb84192c1835e> *
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,317] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.PropertyMediator} -  Setting property
>>>>>> : EP_RESPONSE_LOC_HOST_NAME at scope : default to :  (i.e. result of
>>>>>> expression : $trp:Location)
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,317] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.PropertyMediator} -  End : Property
>>>>>> mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,317] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.PropertyMediator} -  Start : Property
>>>>>> mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,317] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.PropertyMediator} - * Unable
>>>>>> to find a match for regx : (^http.?://\b)(.*):(\d*)(.*) with the property
>>>>>> value
>>>>>> :http://10.142.153.155/phpmyadmin/index.php?token=48bdb70fd4f1e6abe5ecb84192c1835e
>>>>>> <http://10.142.153.155/phpmyadmin/index.php?token=48bdb70fd4f1e6abe5ecb84192c1835e> *
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,317] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.PropertyMediator} -  Setting property
>>>>>> : EP_RESPONSE_LOC_PATH at scope : default to :  (i.e. result of expression
>>>>>> : $trp:Location)
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,318] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.PropertyMediator} -  End : Property
>>>>>> mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,318] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.SwitchMediator} -  Start : Switch
>>>>>> mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,318] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.SwitchMediator} -  XPath :
>>>>>> fn:lower-case($ctx:EP_RESPONSE_LOC_PROTOCOL) evaluates to :
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,318] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.SwitchMediator} -  None of the switch
>>>>>> cases matched - no default case
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,318] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.SwitchMediator} -  End : Switch
>>>>>> mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,318] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.FilterMediator} -  End : Filter
>>>>>> mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,319] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.SendMediator} -  Start : Send
>>>>>> mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,319] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.SendMediator} -  Sending response
>>>>>> message using implicit message properties..
>>>>>> Sending To: http://www.w3.org/2005/08/addressing/anonymous
>>>>>> SOAPAction:
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,320] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 << HTTP/1.1
>>>>>> 302 Moved Temporarily
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,320] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 << Vary:
>>>>>> Accept-Encoding
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,320] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 << Expires:
>>>>>> Thu, 19 Nov 1981 08:52:00 GMT
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,320] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 <<
>>>>>> Last-Modified: Sat, 18 Feb 2012 12:26:45 GMT
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,320] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 <<
>>>>>> Content-Encoding: gzip
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,320] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 <<
>>>>>> Location:
>>>>>> http://10.142.153.155/phpmyadmin/index.php?token=48bdb70fd4f1e6abe5ecb84192c1835e
>>>>>>
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,320] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 <<
>>>>>> Set-Cookie: pmaPass-1=WB0PLe9RJpY%3D; expires=Sat, 26-Apr-2014 04:34:24
>>>>>> GMT; path=/phpmyadmin/; httponly
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,320] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 <<
>>>>>> Content-Type: text/html
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,321] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 <<
>>>>>> X-Powered-By: PHP/5.3.10-1ubuntu3.10
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,321] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 <<
>>>>>> Cache-Control: private, max-age=10800, pre-check=10800
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,321] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 << Date:
>>>>>> Thu, 27 Mar 2014 04:34:24 GMT
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,321] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 << Server:
>>>>>> WSO2-PassThrough-HTTP
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,321] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 <<
>>>>>> Transfer-Encoding: chunked
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,321] DEBUG
>>>>>> {org.apache.synapse.transport.http.headers} -  http-incoming-84 <<
>>>>>> Connection: keep-alive
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,322] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.SendMediator} -  End : Send mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,322] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.DropMediator} -  Start : Drop
>>>>>> mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,322] DEBUG
>>>>>> {org.apache.synapse.mediators.builtin.DropMediator} -  End : Drop mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,323] DEBUG
>>>>>> {org.apache.synapse.mediators.filters.OutMediator} -  End : Out mediator
>>>>>> TID: [0] [LB] [2014-03-27 10:04:24,323] DEBUG
>>>>>> {org.apache.synapse.mediators.base.SequenceMediator} -  End : Sequence
>>>>>> <main>
>>>>>>
>>>>>>
>>>>>> On Thu, Mar 27, 2014 at 12:59 AM, Manula Chathurika Thantriwatte <
>>>>>> manulac@wso2.com> wrote:
>>>>>>
>>>>>>> Should it be a cache problem ?
>>>>>>>
>>>>>>>
>>>>>>> On Thu, Mar 27, 2014 at 8:47 AM, Udara Liyanage <ud...@wso2.com>wrote:
>>>>>>>
>>>>>>>> When I direct log ino the phpmyadmin (not via LB) it works as
>>>>>>>> expected.
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Mar 26, 2014 at 10:21 PM, Udara Liyanage <ud...@wso2.com>wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I tried to do in a Stratos setup. When I enter username and
>>>>>>>>> password browser keep on loading and at the end it redirected to private ip
>>>>>>>>> of the mysql instance. If I press ESC while loading and CTR+F5 (cache
>>>>>>>>> clear) then browser is logged in.
>>>>>>>>>
>>>>>>>>> When I set
>>>>>>>>> topology-member-ip-type: public it redirects to the public Up of
>>>>>>>>> the mysql instance. I am looking into the issue [1]
>>>>>>>>>
>>>>>>>>> [1] https://issues.apache.org/jira/browse/STRATOS-558
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>> Udara Liyanage
>>>>>>>>> Software Engineer
>>>>>>>>> WSO2, Inc.: http://wso2.com
>>>>>>>>> lean. enterprise. middleware
>>>>>>>>>
>>>>>>>>> web: http://udaraliyanage.wordpress.com
>>>>>>>>> phone: +94 71 443 6897
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> Udara Liyanage
>>>>>>>> Software Engineer
>>>>>>>> WSO2, Inc.: http://wso2.com
>>>>>>>> lean. enterprise. middleware
>>>>>>>>
>>>>>>>> web: http://udaraliyanage.wordpress.com
>>>>>>>> phone: +94 71 443 6897
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Regards,
>>>>>>> Manula Chathurika Thantriwatte
>>>>>>> Software Engineer
>>>>>>> WSO2 Inc. : http://wso2.com
>>>>>>> lean . enterprise . middleware
>>>>>>>
>>>>>>> email : manulac@wso2.com / manula@apache.org
>>>>>>> phone : +94 772492511
>>>>>>> blog : http://manulachathurika.blogspot.com/
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> Udara Liyanage
>>>>>> Software Engineer
>>>>>> WSO2, Inc.: http://wso2.com
>>>>>> lean. enterprise. middleware
>>>>>>
>>>>>> web: http://udaraliyanage.wordpress.com
>>>>>> phone: +94 71 443 6897
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best Regards,
>>>>> Nirmal
>>>>>
>>>>> Nirmal Fernando.
>>>>> PPMC Member & Committer of Apache Stratos,
>>>>> Senior Software Engineer, WSO2 Inc.
>>>>>
>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Udara Liyanage
>>>> Software Engineer
>>>> WSO2, Inc.: http://wso2.com
>>>> lean. enterprise. middleware
>>>>
>>>> web: http://udaraliyanage.wordpress.com
>>>> phone: +94 71 443 6897
>>>>
>>>
>>>
>>>
>>> --
>>> Best Regards,
>>> Nirmal
>>>
>>> Nirmal Fernando.
>>> PPMC Member & Committer of Apache Stratos,
>>> Senior Software Engineer, WSO2 Inc.
>>>
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>
>>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>



-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha

Re: Unable to log into phpmyadmin via LB

Posted by Imesh Gunaratne <im...@apache.org>.
As I noticed the correction which Udara has done has not worked.
I just fixed it and pushed changes to master branch since this was a
blocking issue (hope we could manage the code freeze).

Updated regex:
(^http.?://\b)(.*)(?:(\d*))(.*)

Sample code to test the regex:
String [] urls = {"http://host", "http://host:80", "http://host:80/", "
http://host:80/abc", "http://host:80/?abc=123"};
        String regex = "(^http.?://\\b)(.*)(?:(\\d*))(.*)";

        for(String url : urls) {
            System.out.println("Pattern matched: " + url.matches(regex));
        }

Thanks




On Sun, Apr 6, 2014 at 10:44 PM, Udara Liyanage <ud...@wso2.com> wrote:

> Could you enable synapse and loadbalancer debugs logs
>
>
> On Sun, Apr 6, 2014 at 4:13 PM, Isuru Perera <is...@wso2.com> wrote:
>
>> Which loggers? Could you please be more specific?
>>
>>
>> On Sun, Apr 6, 2014 at 9:40 PM, Udara Liyanage <ud...@wso2.com> wrote:
>>
>>> Enable debug logs and send the error log.
>>>
>>>
>>>
>>> Touched, not typed. Erroneous words are a feature, not a typo.
>>>
>>
>>
>>
>> --
>> Isuru Perera
>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>>
>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>



-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PPMC Member, Apache Stratos

Re: Unable to log into phpmyadmin via LB

Posted by Udara Liyanage <ud...@wso2.com>.
Could you enable synapse and loadbalancer debugs logs


On Sun, Apr 6, 2014 at 4:13 PM, Isuru Perera <is...@wso2.com> wrote:

> Which loggers? Could you please be more specific?
>
>
> On Sun, Apr 6, 2014 at 9:40 PM, Udara Liyanage <ud...@wso2.com> wrote:
>
>> Enable debug logs and send the error log.
>>
>>
>>
>> Touched, not typed. Erroneous words are a feature, not a typo.
>>
>
>
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>



-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897

Re: Unable to log into phpmyadmin via LB

Posted by Isuru Perera <is...@wso2.com>.
Which loggers? Could you please be more specific?


On Sun, Apr 6, 2014 at 9:40 PM, Udara Liyanage <ud...@wso2.com> wrote:

> Enable debug logs and send the error log.
>
>
>
> Touched, not typed. Erroneous words are a feature, not a typo.
>



-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha

Re: Unable to log into phpmyadmin via LB

Posted by Udara Liyanage <ud...@wso2.com>.
Enable debug logs and send the error log.



Touched, not typed. Erroneous words are a feature, not a typo.

Re: Unable to log into phpmyadmin via LB

Posted by Isuru Perera <is...@wso2.com>.
I'm using the latest load balancer build.

I see following in
apache-stratos-load-balancer-4.0.0-SNAPSHOT/repository/deployment/server/synapse-configs/default/sequences/main.xml

        <filter regex=".+" source="$trp:Location">
            <property expression="$ctx:SERVICE_PREFIX" group="2"
name="LB_SP_HOST_NAME"
pattern="(^http.?:\/\/\b)(\d*.\d.\d.\d*.\d*)(?::(\d*))?(.*)"/>
            <property expression="$trp:Location" group="1"
name="EP_RESPONSE_LOC_PROTOCOL"
pattern="(^http.?:\/\/\b)(\d*.\d.\d.\d*.\d*)(?::(\d*))?(.*)"/>
            <property expression="$trp:Location" group="2"
name="EP_RESPONSE_LOC_HOST_NAME"
pattern="(^http.?:\/\/\b)(\d*.\d.\d.\d*.\d*)(?::(\d*))?(.*)"/>
            <property expression="$trp:Location" group="4"
name="EP_RESPONSE_LOC_PATH"
pattern="(^http.?:\/\/\b)(\d*.\d.\d.\d*.\d*)(?::(\d*))?(.*)"/>

            <switch source="fn:lower-case($ctx:EP_RESPONSE_LOC_PROTOCOL)">
                <case regex="https://">
                    <property
expression="fn:concat($ctx:EP_RESPONSE_LOC_PROTOCOL,$ctx:LB_HOST_NAME,':',$ctx:LB_HTTPS_PORT,$ctx:EP_RESPONSE_LOC_PATH)"
name="Location" scope="transport"/>
                </case>
                <case regex="http://">
                    <property
expression="fn:concat($ctx:EP_RESPONSE_LOC_PROTOCOL,$ctx:LB_HOST_NAME,':',$ctx:LB_HTTP_PORT,$ctx:EP_RESPONSE_LOC_PATH)"
name="Location" scope="transport"/>
                </case>
            </switch>
        </filter>


On Sun, Apr 6, 2014 at 2:10 PM, Udara Liyanage <ud...@wso2.com> wrote:

> Nope. I did check only the phpmyadmin thing.
> Hope your LB have this fix.
>
> Touched, not typed. Erroneous words are a feature, not a typo.
>



-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha

Re: Unable to log into phpmyadmin via LB

Posted by Udara Liyanage <ud...@wso2.com>.
Nope. I did check only the phpmyadmin thing.
Hope your LB have this fix.

Touched, not typed. Erroneous words are a feature, not a typo.