Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disconnection of server session after 1 minute-TimeoutError #1535

Open
Zouzou1988 opened this issue Dec 27, 2023 · 0 comments
Open

Disconnection of server session after 1 minute-TimeoutError #1535

Zouzou1988 opened this issue Dec 27, 2023 · 0 comments

Comments

@Zouzou1988
Copy link

Hello Guys,

Using your library, my client app consists of reading on a dashboard these nodes : air flow, pressure, temperature and position.

After one minute and few secondes of good function, the server stops to operate and display the following error:

---------------Here a tracback:

Connected to: opc.tcp://192.168.0.10:4840
Starting dashboard...
2023-12-27 13:54:47.471348
2023-12-27 13:54:48.796348
2023-12-27 13:54:50.192348
2023-12-27 13:54:51.483348
2023-12-27 13:54:52.769348
2023-12-27 13:54:54.059348
2023-12-27 13:54:55.394348
2023-12-27 13:54:56.711348
2023-12-27 13:54:58.084348
2023-12-27 13:54:59.477348
2023-12-27 13:55:00.979348
2023-12-27 13:55:02.339348
2023-12-27 13:55:03.656348
2023-12-27 13:55:05.057348
2023-12-27 13:55:06.434348
2023-12-27 13:55:07.813348
2023-12-27 13:55:09.212348
2023-12-27 13:55:10.573348
2023-12-27 13:55:11.970348
2023-12-27 13:55:13.360348
2023-12-27 13:55:14.687475
2023-12-27 13:55:16.061475
2023-12-27 13:55:17.540475
2023-12-27 13:55:18.945475
2023-12-27 13:55:20.353475
2023-12-27 13:55:21.679475
2023-12-27 13:55:23.074475
2023-12-27 13:55:24.476475
2023-12-27 13:55:25.897475
2023-12-27 13:55:27.251475
2023-12-27 13:55:28.581475
Traceback (most recent call last):
File "C:\Disc Alex\DashBoard\Send_to_database.py", line 75, in get_opcua_data
position_dat = position_node.get_value()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Disc Alex\DashBoard\venv\Lib\site-packages\opcua\common\node.py", line 155, in get_value
result = self.get_data_value()
^^^^^^^^^^^^^^^^^^^^^
File "C:\Disc Alex\DashBoard\venv\Lib\site-packages\opcua\common\node.py", line 164, in get_data_value
return self.get_attribute(ua.AttributeIds.Value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Disc Alex\DashBoard\venv\Lib\site-packages\opcua\common\node.py", line 275, in get_attribute
result = self.server.read(params)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Disc Alex\DashBoard\venv\Lib\site-packages\opcua\client\ua_client.py", line 347, in read
data = self._uasocket.send_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Disc Alex\DashBoard\venv\Lib\site-packages\opcua\client\ua_client.py", line 83, in send_request
data = future.result(self.timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2032.0_x64__qbz5n2kfra8p0\Lib\concurrent\futures_base.py", line 458, in result
raise TimeoutError()
TimeoutError
Error 4:
disconnection
2023-12-27 13:55:33.559475
2023-12-27 13:55:34.935475
2023-12-27 13:55:36.340475
2023-12-27 13:55:37.648475
2023-12-27 13:55:39.061475
2023-12-27 13:55:40.423475
2023-12-27 13:55:41.816475
2023-12-27 13:55:43.149475
2023-12-27 13:55:44.540475
2023-12-27 13:55:45.935475
2023-12-27 13:55:47.332475
2023-12-27 13:55:48.646475
2023-12-27 13:55:50.051475
2023-12-27 13:55:51.462475
2023-12-27 13:55:52.877475
2023-12-27 13:55:54.212475
2023-12-27 13:55:55.593475
2023-12-27 13:55:57.019475
2023-12-27 13:55:58.405475
2023-12-27 13:55:59.721475
2023-12-27 13:56:01.070475
2023-12-27 13:56:02.430475
2023-12-27 13:56:03.764475
2023-12-27 13:56:05.122475
2023-12-27 13:56:06.525475
2023-12-27 13:56:07.874475
2023-12-27 13:56:09.182475
2023-12-27 13:56:10.552475
2023-12-27 13:56:11.936475
2023-12-27 13:56:13.294475
2023-12-27 13:56:14.623558
2023-12-27 13:56:16.022558
2023-12-27 13:56:17.425558
2023-12-27 13:56:18.778558
2023-12-27 13:56:20.111558
2023-12-27 13:56:21.477558
2023-12-27 13:56:22.859558
2023-12-27 13:56:24.240558
2023-12-27 13:56:25.602558
2023-12-27 13:56:26.996558
2023-12-27 13:56:28.365558
2023-12-27 13:56:29.676558
2023-12-27 13:56:31.057558
2023-12-27 13:56:32.443558
2023-12-27 13:56:33.819558
2023-12-27 13:56:35.144558
2023-12-27 13:56:36.535558
2023-12-27 13:56:37.937558
2023-12-27 13:56:39.315558
2023-12-27 13:56:40.637558
2023-12-27 13:56:42.024558
2023-12-27 13:56:43.425558
2023-12-27 13:56:44.812558
2023-12-27 13:56:46.129558
2023-12-27 13:56:47.545558
2023-12-27 13:56:48.960558
2023-12-27 13:56:50.327558
2023-12-27 13:56:51.658558
2023-12-27 13:56:53.035558
2023-12-27 13:56:54.437558
2023-12-27 13:56:55.826558
2023-12-27 13:56:57.148558
2023-12-27 13:56:58.510558
Traceback (most recent call last):
File "C:\Disc Alex\DashBoard\Suivi_conso.py", line 613, in get_opcua_data
Temperature_remontee = temperature_node.get_value()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Disc Alex\DashBoard\venv\Lib\site-packages\opcua\common\node.py", line 155, in get_value
result = self.get_data_value()
^^^^^^^^^^^^^^^^^^^^^
File "C:\DiscAlex\DashBoard\venv\Lib\site-packages\opcua\common\node.py", line 164, in get_data_value
return self.get_attribute(ua.AttributeIds.Value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Disc Alex\DashBoard\venv\Lib\site-packages\opcua\common\node.py", line 275, in get_attribute
result = self.server.read(params)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Disc Alex\DashBoard\venv\Lib\site-packages\opcua\client\ua_client.py", line 347, in read
data = self._uasocket.send_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Disc Alex\DashBoard\venv\Lib\site-packages\opcua\client\ua_client.py", line 83, in send_request
data = future.result(self.timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2032.0_x64__qbz5n2kfra8p0\Lib\concurrent\futures_base.py", line 458, in result
raise TimeoutError()
TimeoutError
Error 5:

Process finished with exit code 1


p1
p2

Thanks a lot for your help :)

Happy Mery Christmas for all :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant