Filesystem demo client only runs once, hangs during subsequent attempts.

ross9885ross9885 Member Dan RossOrganization: Vancouver Island UniversityProject: Us 'n Them: Big social interaction in a 2D world.
Ice version: 3.3.1-12
Interpreter: python 2.6
OS: Ubuntu 10.04

I have copied the filesystem demo from the manual, but I can only run the client once. If I try to run the client again, it gets far enough to print "README (file): ", then it hangs.
To start again, I have to reboot the computer; restarting the networking daemon does not free the port. The protocol traces are too long to include, so I will post them below.

Comments

  • ross9885ross9885 Member Dan RossOrganization: Vancouver Island UniversityProject: Us 'n Them: Big social interaction in a 2D world.
    Server protocol trace

    $ python server.py --Ice.Trace.Protocol=1
    [ 2011-01-24 16:48:37.710613 server.py: Protocol: sending validate connection
    message type = 3 (validate connection)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 14 ]
    [ 2011-01-24 16:48:37.711288 server.py: Protocol: received request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 68
    request id = 1
    identity = RootDir
    facet =
    operation = ice_isA
    mode = 1 (nonmutating)
    context = ]
    [ 2011-01-24 16:48:37.711541 server.py: Protocol: sending reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 26
    request id = 1
    reply status = 0 (ok) ]
    [ 2011-01-24 16:48:37.712125 server.py: Protocol: received request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 41
    request id = 2
    identity = RootDir
    facet =
    operation = list
    mode = 2 (idempotent)
    context = ]
    [ 2011-01-24 16:48:37.712341 server.py: Protocol: sending reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 234
    request id = 2
    reply status = 0 (ok) ]
    [ 2011-01-24 16:48:37.713142 server.py: Protocol: sending validate connection
    message type = 3 (validate connection)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 14 ]
    [ 2011-01-24 16:48:37.713694 server.py: Protocol: received request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 97
    request id = 1
    identity = AD5EE544-7D61-4A89-A9CF-DE00479E8A11
    facet =
    operation = ice_isA
    mode = 1 (nonmutating)
    context = ]
    [ 2011-01-24 16:48:37.713882 server.py: Protocol: sending reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 26
    request id = 1
    reply status = 0 (ok) ]
    [ 2011-01-24 16:48:37.714360 server.py: Protocol: received request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 70
    request id = 2
    identity = AD5EE544-7D61-4A89-A9CF-DE00479E8A11
    facet =
    operation = name
    mode = 2 (idempotent)
    context = ]
    [ 2011-01-24 16:48:37.714528 server.py: Protocol: sending reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 32
    request id = 2
    reply status = 0 (ok) ]
    [ 2011-01-24 16:48:37.715070 server.py: Protocol: received request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 70
    request id = 3
    identity = AD5EE544-7D61-4A89-A9CF-DE00479E8A11
    facet =
    operation = read
    mode = 2 (idempotent)
    context = ]
    [ 2011-01-24 16:48:37.715278 server.py: Protocol: sending reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 76
    request id = 3
    reply status = 0 (ok) ]
    [ 2011-01-24 16:48:37.715845 server.py: Protocol: received request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 97
    request id = 4
    identity = BA9A52BC-3302-4B16-B514-6CC92BF40A11
    facet =
    operation = ice_isA
    mode = 1 (nonmutating)
    context = ]
    [ 2011-01-24 16:48:37.716024 server.py: Protocol: sending reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 26
    request id = 4
    reply status = 0 (ok) ]
    [ 2011-01-24 16:48:37.716487 server.py: Protocol: received request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 70
    request id = 5
    identity = BA9A52BC-3302-4B16-B514-6CC92BF40A11
    facet =
    operation = name
    mode = 2 (idempotent)
    context = ]
    [ 2011-01-24 16:48:37.716650 server.py: Protocol: sending reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 35
    request id = 5
    reply status = 0 (ok) ]
    [ 2011-01-24 16:48:37.717125 server.py: Protocol: received request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 70
    request id = 6
    identity = BA9A52BC-3302-4B16-B514-6CC92BF40A11
    facet =
    operation = list
    mode = 2 (idempotent)
    context = ]
    [ 2011-01-24 16:48:37.717302 server.py: Protocol: sending reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 130
    request id = 6
    reply status = 0 (ok) ]
    [ 2011-01-24 16:48:37.717834 server.py: Protocol: received request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 97
    request id = 7
    identity = 4287460E-0D1A-400E-B2C1-FE3E942A8A11
    facet =
    operation = ice_isA
    mode = 1 (nonmutating)
    context = ]
    [ 2011-01-24 16:48:37.718008 server.py: Protocol: sending reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 26
    request id = 7
    reply status = 0 (ok) ]
    [ 2011-01-24 16:48:37.718459 server.py: Protocol: received request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 70
    request id = 8
    identity = 4287460E-0D1A-400E-B2C1-FE3E942A8A11
    facet =
    operation = name
    mode = 2 (idempotent)
    context = ]
    [ 2011-01-24 16:48:37.718626 server.py: Protocol: sending reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 36
    request id = 8
    reply status = 0 (ok) ]
    [ 2011-01-24 16:48:37.719229 server.py: Protocol: received request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 70
    request id = 9
    identity = 4287460E-0D1A-400E-B2C1-FE3E942A8A11
    facet =
    operation = read
    mode = 2 (idempotent)
    context = ]
    [ 2011-01-24 16:48:37.719418 server.py: Protocol: sending reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 175
    request id = 9
    reply status = 0 (ok) ]
    [ 2011-01-24 16:48:52.140237 server.py: Protocol: sending validate connection
    message type = 3 (validate connection)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 14 ]
    [ 2011-01-24 16:48:52.140961 server.py: Protocol: received request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 68
    request id = 1
    identity = RootDir
    facet =
    operation = ice_isA
    mode = 1 (nonmutating)
    context = ]
    [ 2011-01-24 16:48:52.141153 server.py: Protocol: sending reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 26
    request id = 1
    reply status = 0 (ok) ]
    [ 2011-01-24 16:48:52.141728 server.py: Protocol: received request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 41
    request id = 2
    identity = RootDir
    facet =
    operation = list
    mode = 2 (idempotent)
    context = ]
    [ 2011-01-24 16:48:52.141920 server.py: Protocol: sending reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 234
    request id = 2
    reply status = 0 (ok) ]
    [ 2011-01-24 16:48:52.142710 server.py: Protocol: sending validate connection
    message type = 3 (validate connection)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 14 ]
    [ 2011-01-24 16:48:52.143297 server.py: Protocol: received request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 97
    request id = 1
    identity = AD5EE544-7D61-4A89-A9CF-DE00479E8A11
    facet =
    operation = ice_isA
    mode = 1 (nonmutating)
    context = ]
    [ 2011-01-24 16:48:52.143501 server.py: Protocol: sending reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 26
    request id = 1
    reply status = 0 (ok) ]
    [ 2011-01-24 16:48:52.144006 server.py: Protocol: received request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 70
    request id = 2
    identity = AD5EE544-7D61-4A89-A9CF-DE00479E8A11
    facet =
    operation = name
    mode = 2 (idempotent)
    context = ]
    [ 2011-01-24 16:48:52.144170 server.py: Protocol: sending reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 32
    request id = 2
    reply status = 0 (ok) ]
    [ 2011-01-24 16:48:52.144657 server.py: Protocol: received request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 70
    request id = 3
    identity = AD5EE544-7D61-4A89-A9CF-DE00479E8A11
    facet =
    operation = read
    mode = 2 (idempotent)
    context = ]
  • ross9885ross9885 Member Dan RossOrganization: Vancouver Island UniversityProject: Us 'n Them: Big social interaction in a 2D world.
    1st client trace

    $ python client.py --Ice.Trace.Protocol=1
    [ 01/24/11 16:48:37.710 Protocol: received validate connection
    message type = 3 (validate connection)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 14 ]
    [ 01/24/11 16:48:37.711 Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 68
    request id = 1
    identity = RootDir
    facet =
    operation = ice_isA
    mode = 1 (nonmutating)
    context = ]
    [ 01/24/11 16:48:37.711 Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 26
    request id = 1
    reply status = 0 (ok) ]
    Contents of root directory:
    [ 01/24/11 16:48:37.711 Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 41
    request id = 2
    identity = RootDir
    facet =
    operation = list
    mode = 2 (idempotent)
    context = ]
    [ 01/24/11 16:48:37.712 Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 234
    request id = 2
    reply status = 0 (ok) ]
    [ 01/24/11 16:48:37.713 Protocol: received validate connection
    message type = 3 (validate connection)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 14 ]
    [ 01/24/11 16:48:37.713 Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 97
    request id = 1
    identity = AD5EE544-7D61-4A89-A9CF-DE00479E8A11
    facet =
    operation = ice_isA
    mode = 1 (nonmutating)
    context = ]
    [ 01/24/11 16:48:37.714 Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 26
    request id = 1
    reply status = 0 (ok) ]
    [ 01/24/11 16:48:37.714 Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 70
    request id = 2
    identity = AD5EE544-7D61-4A89-A9CF-DE00479E8A11
    facet =
    operation = name
    mode = 2 (idempotent)
    context = ]
    [ 01/24/11 16:48:37.714 Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 32
    request id = 2
    reply status = 0 (ok) ]
    README (file):
    [ 01/24/11 16:48:37.714 Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 70
    request id = 3
    identity = AD5EE544-7D61-4A89-A9CF-DE00479E8A11
    facet =
    operation = read
    mode = 2 (idempotent)
    context = ]
    [ 01/24/11 16:48:37.715 Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 76
    request id = 3
    reply status = 0 (ok) ]
    This file system contains a collection of poetry.
    [ 01/24/11 16:48:37.715 Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 97
    request id = 4
    identity = BA9A52BC-3302-4B16-B514-6CC92BF40A11
    facet =
    operation = ice_isA
    mode = 1 (nonmutating)
    context = ]
    [ 01/24/11 16:48:37.716 Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 26
    request id = 4
    reply status = 0 (ok) ]
    [ 01/24/11 16:48:37.716 Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 70
    request id = 5
    identity = BA9A52BC-3302-4B16-B514-6CC92BF40A11
    facet =
    operation = name
    mode = 2 (idempotent)
    context = ]
    [ 01/24/11 16:48:37.716 Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 35
    request id = 5
    reply status = 0 (ok) ]
    Coleridge (directory):
    [ 01/24/11 16:48:37.716 Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 70
    request id = 6
    identity = BA9A52BC-3302-4B16-B514-6CC92BF40A11
    facet =
    operation = list
    mode = 2 (idempotent)
    context = ]
    [ 01/24/11 16:48:37.717 Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 130
    request id = 6
    reply status = 0 (ok) ]
    [ 01/24/11 16:48:37.717 Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 97
    request id = 7
    identity = 4287460E-0D1A-400E-B2C1-FE3E942A8A11
    facet =
    operation = ice_isA
    mode = 1 (nonmutating)
    context = ]
    [ 01/24/11 16:48:37.718 Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 26
    request id = 7
    reply status = 0 (ok) ]
    [ 01/24/11 16:48:37.718 Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 70
    request id = 8
    identity = 4287460E-0D1A-400E-B2C1-FE3E942A8A11
    facet =
    operation = name
    mode = 2 (idempotent)
    context = ]
    [ 01/24/11 16:48:37.718 Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 36
    request id = 8
    reply status = 0 (ok) ]
    Kubla_Khan (file):
    [ 01/24/11 16:48:37.719 Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 70
    request id = 9
    identity = 4287460E-0D1A-400E-B2C1-FE3E942A8A11
    facet =
    operation = read
    mode = 2 (idempotent)
    context = ]
    [ 01/24/11 16:48:37.719 Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 175
    request id = 9
    reply status = 0 (ok) ]
    In Xanadu did Kubla Khan
    A stately pleasure-dome decree:
    Where Alph, the sacred river, ran
    Through caverns measureless to man
    Down to a sunless sea.
  • ross9885ross9885 Member Dan RossOrganization: Vancouver Island UniversityProject: Us 'n Them: Big social interaction in a 2D world.
    2nd client trace

    $ python client.py --Ice.Trace.Protocol=1
    [ 01/24/11 16:48:52.140 Protocol: received validate connection
    message type = 3 (validate connection)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 14 ]
    [ 01/24/11 16:48:52.140 Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 68
    request id = 1
    identity = RootDir
    facet =
    operation = ice_isA
    mode = 1 (nonmutating)
    context = ]
    [ 01/24/11 16:48:52.141 Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 26
    request id = 1
    reply status = 0 (ok) ]
    Contents of root directory:
    [ 01/24/11 16:48:52.141 Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 41
    request id = 2
    identity = RootDir
    facet =
    operation = list
    mode = 2 (idempotent)
    context = ]
    [ 01/24/11 16:48:52.142 Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 234
    request id = 2
    reply status = 0 (ok) ]
    [ 01/24/11 16:48:52.142 Protocol: received validate connection
    message type = 3 (validate connection)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 14 ]
    [ 01/24/11 16:48:52.143 Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 97
    request id = 1
    identity = AD5EE544-7D61-4A89-A9CF-DE00479E8A11
    facet =
    operation = ice_isA
    mode = 1 (nonmutating)
    context = ]
    [ 01/24/11 16:48:52.143 Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 26
    request id = 1
    reply status = 0 (ok) ]
    [ 01/24/11 16:48:52.143 Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 70
    request id = 2
    identity = AD5EE544-7D61-4A89-A9CF-DE00479E8A11
    facet =
    operation = name
    mode = 2 (idempotent)
    context = ]
    [ 01/24/11 16:48:52.144 Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 32
    request id = 2
    reply status = 0 (ok) ]
    README (file):
    [ 01/24/11 16:48:52.144 Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 70
    request id = 3
    identity = AD5EE544-7D61-4A89-A9CF-DE00479E8A11
    facet =
    operation = read
    mode = 2 (idempotent)
    context = ]
    [ 01/24/11 16:49:58.140 Protocol: sending close connection
    message type = 4 (close connection)
    compression status = 1 (not compressed; compress response, if any)
    message size = 14 ]
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    It's best to use text files to attach traces to your forum posts. I don't see anything wrong in the traces. Ice processes aren't running as privileged processes and they should definitely not cause the system to hang -- if the system or network system hangs it indicates an issue with your system setup.

    The best would be to try on another machine. You should also use the latest Ice version (we only provide free support on the forums for the latest Ice version which is 3.4.1).

    Cheers,
    Benoit.
  • ross9885ross9885 Member Dan RossOrganization: Vancouver Island UniversityProject: Us 'n Them: Big social interaction in a 2D world.
    Thanks

    Ok, I'll set up a proper development environment. That probably is the problem, thanks.
Sign In or Register to comment.