Skip to content

[BUG] The openDAQ connection is reset regularly #1224

Description

@stranzjm

Current behavior

The connection between the openDAQ server and the openDAQ client is reset regularly.
Running python3 -m opendaq in the terminal displays relevant messages; for example:

$ python3 -m opendaq
[tid: 10367][2026-05-29 17:30:12.446] [ModuleManager] [warning] Failed to check for network settings: open: Operation not permitted [system:1 at /__w/openDAQ/openDAQ/build/__external/src/Boost/libs/asio/include/boost/asio/detail/reactive_socket_service.hpp:133 in function 'open']
[tid: 10461][2026-05-29 18:58:48.561] [NativeStreamingClientImpl] [warning] Closing connection caused by: The WebSocket stream was gracefully closed at both endpoints
[tid: 10465][2026-05-29 18:58:48.841] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer
[tid: 10461][2026-05-29 19:08:48.397] [NativeStreamingClientImpl] [warning] Closing connection caused by: The WebSocket stream was gracefully closed at both endpoints
[tid: 10465][2026-05-29 19:08:48.608] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer
[tid: 10461][2026-05-29 19:18:48.176] [NativeStreamingClientImpl] [warning] Closing connection caused by: The WebSocket stream was gracefully closed at both endpoints
[tid: 10465][2026-05-29 19:18:48.477] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer
[tid: 10461][2026-05-29 19:28:48.042] [NativeStreamingClientImpl] [warning] Closing connection caused by: The WebSocket stream was gracefully closed at both endpoints
[tid: 10465][2026-05-29 19:28:48.835] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer
[tid: 10461][2026-05-29 19:48:48.467] [NativeStreamingClientImpl] [warning] Closing connection caused by: The WebSocket stream was gracefully closed at both endpoints
[tid: 10465][2026-05-29 19:48:48.484] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer
[tid: 10461][2026-05-29 19:58:48.047] [NativeStreamingClientImpl] [warning] Closing connection caused by: End of file
[tid: 10465][2026-05-29 19:58:48.115] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer



Expected behavior

The connection should not reset if the network (in this case, a wired network) is stable.

Code or steps

  1. openDAQ server ist running on embedded Linux x64 target
  2. Start openDAQ client on PC with Ubuntu 22.04: python3 -m opendaq
  3. After a while, messages will appear in the terminal

Environment

  • openDAQ SDK: v3.20.6
  • openDAQ server OS: embedded Linux x64 (Yocto)
  • openDAQ server programming language: C++
  • openDAQ client OS: Ubuntu 22.04 LTS
  • Running openDAQ client with Python3:
$ python3 --version
Python 3.10.12

# Python wheel
# opendaq-3.20.6-cp310-cp310-manylinux_2_28_x86_64.whl

$ python3 -m opendaq --version
/home/stranzjm/.local/lib/python3.10/site-packages/opendaq 3.30.0

$ python3 -c "import opendaq; print(f'Version: {opendaq.__version__} - OK')"
Version: 3.30.0 - OK

$ python3 -m pip show opendaq
Name: opendaq
Version: 3.30.0
Summary: Open Data Acquisition Platform
Home-page: https://opendaq.com
Author: openDAQ d.o.o.
Author-email: opendaq@blueberry.com
License: 
Location: /home/stranzjm/.local/lib/python3.10/site-packages
Requires: numpy
Required-by: 

Log files or image attachments

$ python3 -m opendaq
[tid: 10367][2026-05-29 17:30:12.446] [ModuleManager] [warning] Failed to check for network settings: open: Operation not permitted [system:1 at /__w/openDAQ/openDAQ/build/__external/src/Boost/libs/asio/include/boost/asio/detail/reactive_socket_service.hpp:133 in function 'open']
[tid: 10461][2026-05-29 18:58:48.561] [NativeStreamingClientImpl] [warning] Closing connection caused by: The WebSocket stream was gracefully closed at both endpoints
[tid: 10465][2026-05-29 18:58:48.841] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer
[tid: 10461][2026-05-29 19:08:48.397] [NativeStreamingClientImpl] [warning] Closing connection caused by: The WebSocket stream was gracefully closed at both endpoints
[tid: 10465][2026-05-29 19:08:48.608] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer
[tid: 10461][2026-05-29 19:18:48.176] [NativeStreamingClientImpl] [warning] Closing connection caused by: The WebSocket stream was gracefully closed at both endpoints
[tid: 10465][2026-05-29 19:18:48.477] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer
[tid: 10461][2026-05-29 19:28:48.042] [NativeStreamingClientImpl] [warning] Closing connection caused by: The WebSocket stream was gracefully closed at both endpoints
[tid: 10465][2026-05-29 19:28:48.835] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer
[tid: 10461][2026-05-29 19:48:48.467] [NativeStreamingClientImpl] [warning] Closing connection caused by: The WebSocket stream was gracefully closed at both endpoints
[tid: 10465][2026-05-29 19:48:48.484] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer
[tid: 10461][2026-05-29 19:58:48.047] [NativeStreamingClientImpl] [warning] Closing connection caused by: End of file
[tid: 10465][2026-05-29 19:58:48.115] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer
$ python3 -m opendaq
[tid: 81135][2026-05-31 14:10:49.940] [ModuleManager] [warning] Failed to check for network settings: open: Operation not permitted [system:1 at /__w/openDAQ/openDAQ/build/__external/src/Boost/libs/asio/include/boost/asio/detail/reactive_socket_service.hpp:133 in function 'open']
[tid: 81568][2026-05-31 15:43:33.008] [NativeStreamingClientImpl] [warning] Closing connection caused by: The WebSocket stream was gracefully closed at both endpoints
[tid: 81568][2026-05-31 15:43:34.008] [NativeStreamingClientImpl] [error] Connection failed: Operation canceled
[tid: 81572][2026-05-31 15:43:34.023] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer
[tid: 81568][2026-05-31 16:13:33.680] [NativeStreamingClientImpl] [warning] Closing connection caused by: The WebSocket stream was gracefully closed at both endpoints
[tid: 81572][2026-05-31 16:13:34.032] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection activity timeout error
[tid: 81568][2026-05-31 16:53:32.948] [NativeStreamingClientImpl] [warning] Closing connection caused by: The WebSocket stream was gracefully closed at both endpoints
[tid: 81572][2026-05-31 16:53:33.358] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer
[tid: 81572][2026-05-31 16:53:34.358] [NativeStreamingClientImpl] [error] Connection failed: Operation canceled
[tid: 81568][2026-05-31 17:13:32.974] [NativeStreamingClientImpl] [warning] Closing connection caused by: The WebSocket stream was gracefully closed at both endpoints
[tid: 81572][2026-05-31 17:13:32.991] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer
[tid: 81568][2026-05-31 18:53:33.036] [NativeStreamingClientImpl] [warning] Closing connection caused by: The WebSocket stream was gracefully closed at both endpoints
[tid: 81572][2026-05-31 18:53:33.061] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer
[tid: 81572][2026-05-31 18:53:34.061] [NativeStreamingClientImpl] [error] Connection failed: Operation canceled
[tid: 81568][2026-05-31 19:33:33.799] [NativeStreamingClientImpl] [warning] Closing connection caused by: The WebSocket stream was gracefully closed at both endpoints
[tid: 81572][2026-05-31 19:33:34.060] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer
[tid: 81568][2026-05-31 21:43:33.305] [NativeStreamingClientImpl] [warning] Closing connection caused by: The WebSocket stream was gracefully closed at both endpoints
[tid: 81572][2026-05-31 21:43:33.586] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer
[tid: 81568][2026-05-31 22:13:33.264] [NativeStreamingClientImpl] [warning] Closing connection caused by: End of file
[tid: 81572][2026-05-31 22:13:33.283] [NativeStreamingClientImpl] [warning] Closing connection caused by: Connection reset by peer

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions