This discussion is archived
7 Replies Latest reply: Sep 5, 2013 2:03 AM by user8486882 RSS

Getting Errors on Coherence Servers Log

user8486882 Newbie
Currently Being Moderated

Hi Team,

 

We're facing serious issue on COherence servers, we are new to it and do not have much of experience in correctly setting up Coherence Servers with .Net.

 

We're getting below errors:-

 

Tangosol.Net.Messaging.ConnectionException: could not establish a connection to one of the following addresses: []; make sure the "<br>remote-addresses" configuration element contains an address and port of a running TcpAcceptor


Please help me we have a release and we need to fix these errors asap.

  • 1. Re: Getting Errors on Coherence Servers Log
    Jonathan.Knight Expert
    Currently Being Moderated

    It looks like you have not specified any remote addresses that tell your .Net client where the Extend Proxies are to connect to.

    What does your .Net client's cache configuration file look like?

     

    JK

  • 2. Re: Getting Errors on Coherence Servers Log
    user8486882 Newbie
    Currently Being Moderated

    Thanks for your reply.

     

    This is the file, i hope it is the same you're referring to.

     

    <?xml version="1.0" encoding="utf-8" ?>

     

    <cache-config xmlns="http://schemas.tangosol.com/cache">

      <caching-scheme-mapping>

        <cache-mapping>

    <cache-name>api-historicalbeta</cache-name>

    <scheme-name>extend-direct</scheme-name>

        </cache-mapping>

    <cache-mapping>

    <cache-name>api-forwardmultiples</cache-name>

    <scheme-name>extend-direct</scheme-name>

        </cache-mapping>

        <cache-mapping>

    <cache-name>api-identifier</cache-name>

          <scheme-name>extend-direct</scheme-name>

        </cache-mapping>

      </caching-scheme-mapping>

      <caching-schemes>

        <remote-cache-scheme>

    <scheme-name>extend-direct</scheme-name>

    <service-name>ExtendTcpCacheService</service-name>

          <initiator-config>

    <tcp-initiator>

    <remote-addresses>

    <socket-address>

    <address>Coherence Server Name</address>

    <port>5654</port>

    </socket-address>

    </remote-addresses>

    </tcp-initiator>

    <outgoing-message-handler>

    <request-timeout>30s</request-timeout>

    </outgoing-message-handler>

          </initiator-config>

        </remote-cache-scheme>

      </caching-schemes>

    </cache-config>

  • 3. Re: Getting Errors on Coherence Servers Log
    Jonathan.Knight Expert
    Currently Being Moderated

    That looks OK. Presumably in your real configuration "Coherence Server Name" is the host name of a real server. Are you sure a Coherence extend proxy is listening on "Coherence Server Name":5654

     

    If you look in the logs on the server process that running on "Coherence Server Name" you should see something like...

     

    <Info> (thread=Proxy:ExtendTcpProxyService:TcpAcceptor, member=x): TcpAcceptor now listening for connections on Coherence-Server-IP:5654


    If there is not a line simlar to that then your proxy might not be configured correctly.


    JK

  • 4. Re: Getting Errors on Coherence Servers Log
    user8486882 Newbie
    Currently Being Moderated

    Let me tell you about the request flow.

     

    We have a web servers from where the request goes to 4 app Servers, On App Servers we have Session Less App Pool and in their App Settings there is a Flag, if that Flag is 0, request goes to DB, if it is 1 it goes to Cache Servers.

     

    Coherence Server Name is the Cohernce Server Host Name.

     

    Like you stated "Are you sure a Coherence extend proxy is listening on "Coherence Server Name":5654". How can i check it ? Which configuration file i have to look upon?.

     

    If you look in the logs on the server process that running on "Coherence Server Name" you should see something like...Where these logs will be on App Servers or on Coherence Servers ?

  • 5. Re: Getting Errors on Coherence Servers Log
    user8486882 Newbie
    Currently Being Moderated

    Also please find the configuration of cache-server-proxy-config.xml that reside on Coherence Server.

     

    1

      2 <?xml version="1.0"?>

      3 <!DOCTYPE cache-config SYSTEM "cache-config.dtd">

      4

      5

      6

      7 <cache-config>

      8

      9   <defaults>

    10    <serializer>pof</serializer>

    11   </defaults>

    12

    13   <caching-scheme-mapping>

    14     <cache-mapping>

    15       <cache-name>api-historicalbeta</cache-name>

    16       <scheme-name>api-default</scheme-name>

    17     </cache-mapping>

    18     <cache-mapping>

    19       <cache-name>api-identifier</cache-name>

    20       <scheme-name>api-service</scheme-name>

    21     </cache-mapping>

    22   </caching-scheme-mapping>

    23

    24   <caching-schemes>

    25     <distributed-scheme>

    26       <scheme-name>api-default</scheme-name>

    27       <lease-granularity>member</lease-granularity>

    28       <backing-map-scheme>

    29         <local-scheme>

    30         <eviction-policy>LRU</eviction-policy>

    31         <high-units>60000000</high-units>

    32               <unit-calculator>FIXED</unit-calculator>

    33         <expiry-delay>1d</expiry-delay>

    34      </local-scheme>

    35       </backing-map-scheme>

    36   <autostart>true</autostart>
    37 </distributed-scheme>

    38

    39 <distributed-scheme>
    40   <scheme-name>api-service</scheme-name>
    41   <lease-granularity>member</lease-granularity>
    42   <backing-map-scheme>
    43     <local-scheme>
    44     <eviction-policy>HYBRID</eviction-policy>
    45        <high-units>30000000</high-units>
    46           <unit-calculator>FIXED</unit-calculator>
    47     <expiry-delay>12h</expiry-delay>
    48  </local-scheme>
    49   </backing-map-scheme>
    50   <autostart>true</autostart>
    51 </distributed-scheme>

    52

    53 <proxy-scheme>
    54   <service-name>ExtendTcpProxyService</service-name>
    55   <thread-count>10</thread-count>
    56   <acceptor-config>
    57     <tcp-acceptor>
    58       <local-address>
    59         <address>localhost</address>
    60         <port>5654</port>
    61       </local-address>
    62     </tcp-acceptor>
    63   </acceptor-config>
    64   <autostart>true</autostart>
    65 </proxy-scheme>

    66   </caching-schemes>

    </cache-config>

     

    On Line 59 it says <address>localhost</address> , is it right or i need to mentioned server ip or hostname. Becuase when i pinged the localhost it say lo address 127.0.0.1

  • 6. Re: Getting Errors on Coherence Servers Log
    user8486882 Newbie
    Currently Being Moderated

    Hello Jonathan,

     

    I will be thankful if you can reply and share your thoughts it this config is correct or not which i stated above, as i have a call in 5 hrs from now and i m stuck.

  • 7. Re: Getting Errors on Coherence Servers Log
    user8486882 Newbie
    Currently Being Moderated

    Do anyone knows the solution to this issue???

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points