Ich bekomme aktuell im Debug-Log Einträge, die scheinbar irgend wie aus meinem EVU-Modul Powerfox stammen. Kommt alle 3-7 Minuten... Hätte jetzt interpretiert, dass er in einen Timeout läuft, da die Powerfox-Seite nicht reagiert. Weiß aber nicht, was ich mit der Info anfangen soll...
Code: Alles auswählen
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='backend.powerfox.energy', port=443): Read timed out. (read timeout=3)
raise ReadTimeout(e, request=request)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 529, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get
'/current', auth=(powerfoxuser, powerfoxpass), timeout=3).json()
File "/var/www/html/openWB/modules/bezug_powerfox/powerfox.py", line 19, in update
parser.set_defaults(RUN=lambda args: function(*[getattr(args, argument_name) for argument_name in arg_spec.args]))
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 19, in <lambda>
args.RUN(args)
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 34, in run_using_positional_cli_args
run_using_positional_cli_args(update, argv)
File "/var/www/html/openWB/modules/bezug_powerfox/powerfox.py", line 48, in main
importlib.import_module(parsed[0]).main(parsed[1:])
File "/var/www/html/openWB/packages/legacy_run_server.py", line 109, in handle_message
self.__callback(read_all_bytes(connection))
File "/var/www/html/openWB/packages/legacy_run_server.py", line 87, in handle_connection
yield
File "/var/www/html/openWB/packages/legacy_run_server.py", line 48, in redirect_stdout_stderr_exceptions_to_log
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='backend.powerfox.energy', port=443): Read timed out. (read timeout=3)
self, url, "Read timed out. (read timeout=%s)" % timeout_value
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 341, in _raise_timeout
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 451, in _make_request
chunked=chunked,
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 710, in urlopen
raise value
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/packages/six.py", line 770, in reraise
raise six.reraise(type(error), error, _stacktrace)
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/util/retry.py", line 550, in increment
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 786, in urlopen
timeout=timeout
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
socket.timeout: The read operation timed out
raise timeout("The read operation timed out")
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 332, in recv_into
return self._sock.recv_into(b)
File "/usr/lib/python3.7/socket.py", line 589, in readinto
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.7/http/client.py", line 271, in _read_status
version, status, reason = self._read_status()
File "/usr/lib/python3.7/http/client.py", line 310, in begin
response.begin()
File "/usr/lib/python3.7/http/client.py", line 1352, in getresponse
httplib_response = conn.getresponse()
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 444, in _make_request
File "<string>", line 3, in raise_from
six.raise_from(e, None)
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 449, in _make_request
Traceback (most recent call last):
2022-05-24 19:27:07: PID: 1895: legacy run server: Unhandled exception
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='backend.powerfox.energy', port=443): Read timed out. (read timeout=3)
raise ReadTimeout(e, request=request)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 529, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get
'/current', auth=(powerfoxuser, powerfoxpass), timeout=3).json()
File "/var/www/html/openWB/modules/bezug_powerfox/powerfox.py", line 19, in update
parser.set_defaults(RUN=lambda args: function(*[getattr(args, argument_name) for argument_name in arg_spec.args]))
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 19, in <lambda>
args.RUN(args)
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 34, in run_using_positional_cli_args
run_using_positional_cli_args(update, argv)
File "/var/www/html/openWB/modules/bezug_powerfox/powerfox.py", line 48, in main
importlib.import_module(parsed[0]).main(parsed[1:])
File "/var/www/html/openWB/packages/legacy_run_server.py", line 109, in handle_message
self.__callback(read_all_bytes(connection))
File "/var/www/html/openWB/packages/legacy_run_server.py", line 87, in handle_connection
yield
File "/var/www/html/openWB/packages/legacy_run_server.py", line 48, in redirect_stdout_stderr_exceptions_to_log
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='backend.powerfox.energy', port=443): Read timed out. (read timeout=3)
self, url, "Read timed out. (read timeout=%s)" % timeout_value
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 341, in _raise_timeout
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 451, in _make_request
chunked=chunked,
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 710, in urlopen
raise value
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/packages/six.py", line 770, in reraise
raise six.reraise(type(error), error, _stacktrace)
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/util/retry.py", line 550, in increment
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 786, in urlopen
timeout=timeout
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
socket.timeout: The read operation timed out
raise timeout("The read operation timed out")
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 332, in recv_into
return self._sock.recv_into(b)
File "/usr/lib/python3.7/socket.py", line 589, in readinto
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.7/http/client.py", line 271, in _read_status
version, status, reason = self._read_status()
File "/usr/lib/python3.7/http/client.py", line 310, in begin
response.begin()
File "/usr/lib/python3.7/http/client.py", line 1352, in getresponse
httplib_response = conn.getresponse()
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 444, in _make_request
File "<string>", line 3, in raise_from
six.raise_from(e, None)
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 449, in _make_request
Traceback (most recent call last):
2022-05-24 19:24:07: PID: 1895: legacy run server: Unhandled exception
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='backend.powerfox.energy', port=443): Read timed out. (read timeout=3)
raise ReadTimeout(e, request=request)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 529, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get
'/current', auth=(powerfoxuser, powerfoxpass), timeout=3).json()
File "/var/www/html/openWB/modules/bezug_powerfox/powerfox.py", line 19, in update
parser.set_defaults(RUN=lambda args: function(*[getattr(args, argument_name) for argument_name in arg_spec.args]))
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 19, in <lambda>
args.RUN(args)
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 34, in run_using_positional_cli_args
run_using_positional_cli_args(update, argv)
File "/var/www/html/openWB/modules/bezug_powerfox/powerfox.py", line 48, in main
importlib.import_module(parsed[0]).main(parsed[1:])
File "/var/www/html/openWB/packages/legacy_run_server.py", line 109, in handle_message
self.__callback(read_all_bytes(connection))
File "/var/www/html/openWB/packages/legacy_run_server.py", line 87, in handle_connection
yield
File "/var/www/html/openWB/packages/legacy_run_server.py", line 48, in redirect_stdout_stderr_exceptions_to_log
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='backend.powerfox.energy', port=443): Read timed out. (read timeout=3)
self, url, "Read timed out. (read timeout=%s)" % timeout_value
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 341, in _raise_timeout
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 451, in _make_request
chunked=chunked,
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 710, in urlopen
raise value
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/packages/six.py", line 770, in reraise
raise six.reraise(type(error), error, _stacktrace)
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/util/retry.py", line 550, in increment
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 786, in urlopen
timeout=timeout
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
socket.timeout: The read operation timed out
raise timeout("The read operation timed out")
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 332, in recv_into
return self._sock.recv_into(b)
File "/usr/lib/python3.7/socket.py", line 589, in readinto
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.7/http/client.py", line 271, in _read_status
version, status, reason = self._read_status()
File "/usr/lib/python3.7/http/client.py", line 310, in begin
response.begin()
File "/usr/lib/python3.7/http/client.py", line 1352, in getresponse
httplib_response = conn.getresponse()
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 444, in _make_request
File "<string>", line 3, in raise_from
six.raise_from(e, None)
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 449, in _make_request
Traceback (most recent call last):
2022-05-24 19:21:08: PID: 1895: legacy run server: Unhandled exception
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='backend.powerfox.energy', port=443): Read timed out. (read timeout=3)
raise ReadTimeout(e, request=request)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 529, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get
'/current', auth=(powerfoxuser, powerfoxpass), timeout=3).json()
File "/var/www/html/openWB/modules/bezug_powerfox/powerfox.py", line 19, in update
parser.set_defaults(RUN=lambda args: function(*[getattr(args, argument_name) for argument_name in arg_spec.args]))
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 19, in <lambda>
args.RUN(args)
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 34, in run_using_positional_cli_args
run_using_positional_cli_args(update, argv)
File "/var/www/html/openWB/modules/bezug_powerfox/powerfox.py", line 48, in main
importlib.import_module(parsed[0]).main(parsed[1:])
File "/var/www/html/openWB/packages/legacy_run_server.py", line 109, in handle_message
self.__callback(read_all_bytes(connection))
File "/var/www/html/openWB/packages/legacy_run_server.py", line 87, in handle_connection
yield
File "/var/www/html/openWB/packages/legacy_run_server.py", line 48, in redirect_stdout_stderr_exceptions_to_log
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='backend.powerfox.energy', port=443): Read timed out. (read timeout=3)
self, url, "Read timed out. (read timeout=%s)" % timeout_value
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 341, in _raise_timeout
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 451, in _make_request
chunked=chunked,
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 710, in urlopen
raise value
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/packages/six.py", line 770, in reraise
raise six.reraise(type(error), error, _stacktrace)
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/util/retry.py", line 550, in increment
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/pi/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 786, in urlopen
timeout=timeout
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
Traceback (most recent call last):
Infos aus Systeminfo:
Kernel: Linux 5.10.17-v7l+ GNU/Linux
Python 3.7.3
openWB Version: 1.9.266 (2022-05-06 14:10:03 +0200 [5c6a5d2d] )
Board: Raspberry Pi 4 Model B Rev 1.4
CPU: ARMv7 Processor rev 3 (v7l)
CPU-Kerne: 4
Danke für Tipps.