Archived

This forum has been archived. Please start a new discussion on GitHub.

subscriber errored out: Network.cpp:1399: Ice::SocketException:

Hello,

My Icebox instance report me that error sometimes.

\Ice-3.4.2\bin\icebox" --Ice.Config=config.icebox
-- 10/27/11 15:50:59.815 C:/Program Files (x86)/ZeroC/Ice-3.4.2/bin/icebox-IceStorm: Subscriber: 006D0980 b8b4ce29-59d7-4fe0-bc37-fce5839894
62 subscriber errored out: Network.cpp:1399: Ice::SocketException:
socket exception: L'emplacement réseau ne peut pas étre atteint. Pour obtenir des informations concernant la résolution des problèmes du
réseau, consultez l'aide de Windows. retry: 0/0

I would like to know what could cause this.
I use Ice-3.4.2

Nicolas

Comments

  • I run it on Windows Server 2008 R2
  • benoit
    benoit Rennes, France
    Hi,

    It indicates that IceStorm simply couldn't connect to the subscriber because the machine hosting it wasn't reachable anymore over the network.

    Cheers,
    Benoit.
  • The things that afraid me is that all software are running on localhost.
  • benoit
    benoit Rennes, France
    Hi Nicolas,

    This in theory shouldn't happen if both processes are running on the same machine. Is something perhaps updating the machine's network configuration while this occurs? Is the client listening on the loopback IP address or on the network interface IP address? Which kind of network is your network interface linked to?

    Cheers,
    Benoit.
  • IceBox is listening on all interfaces. The internet one, LAN one and localhost.

    config.service

    #
    # The IceStorm service instance name.
    #
    IceStorm.InstanceName=Storm

    #
    # This property defines the endpoints on which the IceStorm
    # TopicManager listens.
    #
    IceStorm.TopicManager.Endpoints=defaults -p 10000

    #
    # This property defines the endpoints on which the topic
    # publisher objects listen. If you want to federate
    # IceStorm instances this must run on a fixed port (or use
    # IceGrid).
    #
    IceStorm.Publish.Endpoints=tcp -p 10001:udp -p 10001

    #
    # TopicManager Tracing
    #
    # 0 = no tracing
    # 1 = trace topic creation, subscription, unsubscription
    # 2 = like 1, but with more detailed subscription information
    #
    IceStorm.Trace.TopicManager=1

    #
    # Topic Tracing
    #
    # 0 = no tracing
    # 1 = trace unsubscription diagnostics
    #
    IceStorm.Trace.Topic=1

    #
    # Subscriber Tracing
    #
    # 0 = no tracing
    # 1 = subscriber diagnostics (subscription, unsubscription, event
    # propagation failures)
    #
    IceStorm.Trace.Subscriber=1

    #
    # Amount of time in milliseconds between flushes for batch mode
    # transfer. The minimum allowable value is 100ms.
    #
    IceStorm.Flush.Timeout=2000

    #
    # Network Tracing
    #
    # 0 = no network tracing
    # 1 = trace connection establishment and closure
    # 2 = like 1, but more detailed
    # 3 = like 2, but also trace data transfer
    #
    #Ice.Trace.Network=1

    #
    # This property defines the home directory of the Freeze
    # database environment for the IceStorm service.
    #
    Freeze.DbEnv.IceStorm.DbHome=db

    Ice.Warn.Connections = 1

    Ice.BatchAutoFlush = 1

    Ice.ACM.Client=0
    Ice.ACM.Server=0
    Ice.MessageSizeMax = 100000000

    I have the following error:
    Application receiving message from IceBox

    -! 11/15/11 23:17:09.002 C:/Program Files (x86)/ZeroC/Ice-3.4.2/bin/icebox-IceStorm: warning: connection exception:
    OutgoingAsync.cpp:854: Ice::TimeoutException:
    timeout while sending or receiving data
    local address = 192.168.56.1:49476
    remote address = 192.168.56.1:49176
    -- 11/15/11 23:17:09.029 C:/Program Files (x86)/ZeroC/Ice-3.4.2/bin/icebox-IceStorm: Subscriber: 006E2598 785385f8-889a-4b2b-a42c-d96f944aa8
    dc subscriber errored out: OutgoingAsync.cpp:854: Ice::TimeoutException:
    timeout while sending or receiving data retry: 0/0

    IceBox
    -- 11/10/11 21:24:16.857 C:/Program Files (x86)/ZeroC/Ice-3.4.2/bin/icebox-IceStorm: Topic: EDIPlatform.SupplyChain.DataStreamHasToBeGe
    nerated: subscribeAndGetPublisher: ad47e5b0-eeba-4a82-a091-59f1426a9ad5
    -! 11/10/11 21:45:56.100 C:/Program Files (x86)/ZeroC/Ice-3.4.2/bin/icebox-IceStorm: warning: connection exception:
    TcpTransceiver.cpp:414: Ice::ConnectionLostException:
    connection lost: Le nom rÚseau spÚcifiÚ nÆest plus disponible.
    local address = 127.0.0.1:10000
    remote address = 127.0.0.1:50760
    -! 11/10/11 21:45:56.122 C:/Program Files (x86)/ZeroC/Ice-3.4.2/bin/icebox-IceStorm: warning: connection exception:
    TcpTransceiver.cpp:414: Ice::ConnectionLostException:
    connection lost: Le nom rÚseau spÚcifiÚ nÆest plus disponible.
    local address = 192.168.0.42:10000
    remote address = 192.168.0.42:50761

    I can specify localhost on all the config I tihnk. But i don't think it will solve my problem because i got error even with IceBox listening on localhost.
  • The server is hosted by a french ISP in a data center. It is a professional service.

    Given your location I think you know OVH.
  • benoit
    benoit Rennes, France
    Hi,

    You could try to change your subscriber to only listen on the loopback interface and see if this helps. It's also possible that the problem isn't a networking issue but an issue with your subscriber not responding anymore because of a software problem such a deadlock or hang preventing the subscriber server thread pool from dispatching messages. What is the timeout value? Did you try without any timeouts?

    Cheers,
    Benoit.