Skip to content

After running few hours OpENer will meet infinity timout loop #539

@OscarLee-ov

Description

@OscarLee-ov

I'm running OpENer in my linux docker. And after running like 18 hours.
My OpENer will face this issue

And I can see PLC just disconnect and reconnected back again.

So I tried to kill the OpENer process and re-run it again to see if it will avoid this issue.
But it didn't work.

I have added some log in OpENer for me to trace why it happened this issue.
But I've no idea why it cause this issue.

2025-09-12T05:59:20.519738432Z networkhandler: opened new TCP connection on fd 8
2025-09-12T05:59:20.520289600Z UDP file:/tmp/OpENer_custom/OpENer/source/src/cip/cipioconnection.c line:1030 func:CloseCommunicationChannelsAndRemoveFromActiveConnectionsList
2025-09-12T05:59:20.520297504Z Closing UDP socket 9
2025-09-12T05:59:20.520298720Z UDP file:/tmp/OpENer_custom/OpENer/source/src/cip/cipioconnection.c line:1036 func:CloseCommunicationChannelsAndRemoveFromActiveConnectionsList
2025-09-12T05:59:20.520299360Z Closing UDP socket 9
2025-09-12T05:59:38.044551008Z Close file:/tmp/OpENer_custom/OpENer/source/src/cip/cipconnectionmanager.c line:1820 func:CheckForTimedOutConnectionsAndCloseTCPConnections
2025-09-12T05:59:38.044557472Z Close file:/tmp/OpENer_custom/OpENer/source/src/enet_encap/encap.c line:718 func:CloseEncapsulationSessionBySockAddr
2025-09-12T05:59:38.044558752Z Tcp file:/tmp/OpENer_custom/OpENer/source/src/enet_encap/encap.c line:658 func:CloseSession
2025-09-12T05:59:38.044559744Z Closing TCP socket 8
2025-09-12T05:59:48.204386368Z networkhandler: opened new TCP connection on fd 8
2025-09-12T05:59:48.204765088Z UDP file:/tmp/OpENer_custom/OpENer/source/src/cip/cipioconnection.c line:1030 func:CloseCommunicationChannelsAndRemoveFromActiveConnectionsList
2025-09-12T05:59:48.204767776Z Closing UDP socket 9
2025-09-12T05:59:48.204768704Z UDP file:/tmp/OpENer_custom/OpENer/source/src/cip/cipioconnection.c line:1036 func:CloseCommunicationChannelsAndRemoveFromActiveConnectionsList
2025-09-12T05:59:48.204776512Z Closing UDP socket 9
2025-09-12T05:59:49.466318112Z Close file:/tmp/OpENer_custom/OpENer/source/src/cip/cipconnectionmanager.c line:1820 func:CheckForTimedOutConnectionsAndCloseTCPConnections
2025-09-12T05:59:49.466330080Z Close file:/tmp/OpENer_custom/OpENer/source/src/enet_encap/encap.c line:718 func:CloseEncapsulationSessionBySockAddr
2025-09-12T05:59:49.466331328Z Tcp file:/tmp/OpENer_custom/OpENer/source/src/enet_en`/encap.c line:658 func:CloseSession
2025-09-12T05:59:49.466332032Z Closing TCP socket 8
2025-09-12T06:00:00.003920938Z ------------------------------------------------
2025-09-12T06:00:00.003930592Z Restarting opener_thread to ensure it is running
2025-09-12T06:00:00.004119456Z killing_opener_process pid=748133
2025-09-12T06:00:00.004980736Z opener_process_died_or_was_killed pid=748133
2025-09-12T06:00:02.675948480Z started_opener_process pid=847361
2025-09-12T06:00:02.676084213Z ------------------------------------------------
2025-09-12T06:00:02.677159872Z Loading of some NV data failed. Maybe the first start?
2025-09-12T06:00:10.019200416Z networkhandler: opened new TCP connection on fd 8
2025-09-12T06:00:14.997168864Z Close file:/tmp/OpENer_custom/OpENer/source/src/cip/cipconnectionmanager.c line:1820 func:CheckForTimedOutConnectionsAndCloseTCPConnections
2025-09-12T06:00:14.997179936Z Close file:/tmp/OpENer_custom/OpENer/source/src/enet_encap/encap.c line:718 func:CloseEncapsulationSessionBySockAddr
2025-09-12T06:00:14.997181024Z Tcp file:/tmp/OpENer_custom/OpENer/source/src/enet_encap/encap.c line:658 func:CloseSession
2025-09-12T06:00:14.997181856Z Closing TCP socket 8
2025-09-12T06:00:25.539077056Z networkhandler: opened new TCP connection on fd 8
2025-09-12T06:00:25.539539680Z UDP file:/tmp/OpENer_custom/OpENer/source/src/cip/cipioconnection.c line:1030 func:CloseCommunicationChannelsAndRemoveFromActiveConnectionsList
2025-09-12T06:00:25.539543072Z Closing UDP socket 9
2025-09-12T06:00:25.539544128Z UDP file:/tmp/OpENer_custom/OpENer/source/src/cip/cipioconnection.c line:1036 func:CloseCommunicationChannelsAndRemoveFromActiveConnectionsList
2025-09-12T06:00:25.539544992Z Closing UDP socket 9
2025-09-12T06:00:29.287166752Z Close file:/tmp/OpENer_custom/OpENer/source/src/cip/cipconnectionmanager.c line:1820 func:CheckForTimedOutConnectionsAndCloseTCPConnections
2025-09-12T06:00:29.287178752Z Close file:/tmp/OpENer_custom/OpENer/source/src/enet_encap/encap.c line:718 func:CloseEncapsulationSessionBySockAddr
2025-09-12T06:00:29.287179968Z Tcp file:/tmp/OpENer_custom/OpENer/source/src/enet_encap/encap.c line:658 func:CloseSession
2025-09-12T06:00:29.287180640Z Closing TCP socket 8
2025-09-12T06:00:39.831347424Z networkhandler: opened new TCP connection on fd 8
2025-09-12T06:00:39.832085568Z UDP file:/tmp/OpENer_custom/OpENer/source/src/cip/cipioconnection.c line:1030 func:CloseCommunicationChannelsAndRemoveFromActiveConnectionsList
2025-09-12T06:00:39.832089536Z Closing UDP socket 9
2025-09-12T06:00:39.832090944Z UDP file:/tmp/OpENer_custom/OpENer/source/src/cip/cipioconnection.c line:1036 func:CloseCommunicationChannelsAndRemoveFromActiveConnectionsList
2025-09-12T06:00:39.832091648Z Closing UDP socket 9
2025-09-12T06:00:50.687361568Z Close file:/tmp/OpENer_custom/OpENer/source/src/cip/cipconnectionmanager.c line:1820 func:CheckForTimedOutConnectionsAndCloseTCPConnections
2025-09-12T06:00:50.687369792Z Close file:/tmp/OpENer_custom/OpENer/source/src/enet_encap/encap.c line:718 func:CloseEncapsulationSessionBySockAddr
2025-09-12T06:00:50.687370688Z Tcp file:/tmp/OpENer_custom/OpENer/source/src/enet_encap/encap.c line:658 func:CloseSession
2025-09-12T06:00:50.687371808Z Closing TCP socket 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions