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

OPNSense sensors all unavailable: Unexpected get_telemetry error err=<ProtocolError for ... #118

Open
heyitsyang opened this issue Jan 30, 2024 · 64 comments

Comments

@heyitsyang
Copy link

Since upgrading to OPNSense 24.1 today, all of my opnsense sensors in HA are no longer working and I get the following in my log.


2024-01-30 11:30:13.703 ERROR (SyncWorker_7) [custom_components.opnsense.pyopnsense] Unexpected get_telemetry error err=<ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>, type(err)=<class 'xmlrpc.client.ProtocolError'>
2024-01-30 11:30:13.738 ERROR (MainThread) [custom_components.opnsense] Unexpected error fetching opnsense OPNsense state data: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in async_update_data
    await hass.async_add_executor_job(lambda: data.update())
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in <lambda>
    await hass.async_add_executor_job(lambda: data.update())
                                              ^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 315, in update
    self._state["telemetry"] = self._get_telemetry()
                               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 224, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 248, in _get_telemetry
    return self._client.get_telemetry()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 101, in inner
    raise err
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 98, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 992, in get_telemetry
    data = self._exec_php(script)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 88, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 131, in _exec_php
    response = self._get_proxy().opnsense.exec_php(script)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1196, in single_request
    raise ProtocolError(
xmlrpc.client.ProtocolError: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
2024-01-30 11:30:23.659 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2024-01-30 11:30:25.025 ERROR (SyncWorker_9) [custom_components.opnsense.pyopnsense] Unexpected get_telemetry error err=<ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>, type(err)=<class 'xmlrpc.client.ProtocolError'>
2024-01-30 11:30:25.195 ERROR (MainThread) [custom_components.opnsense] Unexpected error fetching opnsense OPNsense state data: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in async_update_data
    await hass.async_add_executor_job(lambda: data.update())
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in <lambda>
    await hass.async_add_executor_job(lambda: data.update())
                                              ^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 315, in update
    self._state["telemetry"] = self._get_telemetry()
                               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 224, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 248, in _get_telemetry
    return self._client.get_telemetry()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 101, in inner
    raise err
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 98, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 992, in get_telemetry
    data = self._exec_php(script)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 88, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 131, in _exec_php
    response = self._get_proxy().opnsense.exec_php(script)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1196, in single_request
    raise ProtocolError(
xmlrpc.client.ProtocolError: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
2024-01-30 11:30:35.770 ERROR (SyncWorker_2) [custom_components.opnsense.pyopnsense] Unexpected get_telemetry error err=<ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>, type(err)=<class 'xmlrpc.client.ProtocolError'>
2024-01-30 11:30:35.771 ERROR (MainThread) [custom_components.opnsense] Unexpected error fetching opnsense OPNsense state data: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in async_update_data
    await hass.async_add_executor_job(lambda: data.update())
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in <lambda>
    await hass.async_add_executor_job(lambda: data.update())
                                              ^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 315, in update
    self._state["telemetry"] = self._get_telemetry()
                               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 224, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 248, in _get_telemetry
    return self._client.get_telemetry()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 101, in inner
    raise err
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 98, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 992, in get_telemetry
    data = self._exec_php(script)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 88, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 131, in _exec_php
    response = self._get_proxy().opnsense.exec_php(script)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1196, in single_request
    raise ProtocolError(
xmlrpc.client.ProtocolError: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
2024-01-30 11:30:56.551 ERROR (SyncWorker_7) [custom_components.opnsense.pyopnsense] Unexpected get_telemetry error err=<ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>, type(err)=<class 'xmlrpc.client.ProtocolError'>
2024-01-30 11:30:56.552 ERROR (MainThread) [custom_components.opnsense] Unexpected error fetching opnsense OPNsense state data: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in async_update_data
    await hass.async_add_executor_job(lambda: data.update())
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in <lambda>
    await hass.async_add_executor_job(lambda: data.update())
                                              ^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 315, in update
    self._state["telemetry"] = self._get_telemetry()
                               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 224, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 248, in _get_telemetry
    return self._client.get_telemetry()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 101, in inner
    raise err
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 98, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 992, in get_telemetry
    data = self._exec_php(script)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 88, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 131, in _exec_php
    response = self._get_proxy().opnsense.exec_php(script)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1196, in single_request
    raise ProtocolError(
xmlrpc.client.ProtocolError: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
2024-01-30 11:31:37.541 ERROR (SyncWorker_1) [custom_components.opnsense.pyopnsense] Unexpected get_telemetry error err=<ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>, type(err)=<class 'xmlrpc.client.ProtocolError'>
2024-01-30 11:31:37.543 ERROR (MainThread) [custom_components.opnsense] Unexpected error fetching opnsense OPNsense state data: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in async_update_data
    await hass.async_add_executor_job(lambda: data.update())
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in <lambda>
    await hass.async_add_executor_job(lambda: data.update())
                                              ^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 315, in update
    self._state["telemetry"] = self._get_telemetry()
                               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 224, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 248, in _get_telemetry
    return self._client.get_telemetry()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 101, in inner
    raise err
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 98, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 992, in get_telemetry
    data = self._exec_php(script)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 88, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 131, in _exec_php
    response = self._get_proxy().opnsense.exec_php(script)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1196, in single_request
    raise ProtocolError(
xmlrpc.client.ProtocolError: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
2024-01-30 11:32:58.247 ERROR (SyncWorker_4) [custom_components.opnsense.pyopnsense] Unexpected get_telemetry error err=<ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>, type(err)=<class 'xmlrpc.client.ProtocolError'>
2024-01-30 11:32:58.248 ERROR (MainThread) [custom_components.opnsense] Unexpected error fetching opnsense OPNsense state data: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in async_update_data
    await hass.async_add_executor_job(lambda: data.update())
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in <lambda>
    await hass.async_add_executor_job(lambda: data.update())
                                              ^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 315, in update
    self._state["telemetry"] = self._get_telemetry()
                               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 224, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 248, in _get_telemetry
    return self._client.get_telemetry()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 101, in inner
    raise err
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 98, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 992, in get_telemetry
    data = self._exec_php(script)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 88, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 131, in _exec_php
    response = self._get_proxy().opnsense.exec_php(script)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1196, in single_request
    raise ProtocolError(
xmlrpc.client.ProtocolError: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
2024-01-30 11:34:19.123 ERROR (SyncWorker_3) [custom_components.opnsense.pyopnsense] Unexpected get_telemetry error err=<ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>, type(err)=<class 'xmlrpc.client.ProtocolError'>
2024-01-30 11:34:19.124 ERROR (MainThread) [custom_components.opnsense] Unexpected error fetching opnsense OPNsense state data: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in async_update_data
    await hass.async_add_executor_job(lambda: data.update())
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in <lambda>
    await hass.async_add_executor_job(lambda: data.update())
                                              ^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 315, in update
    self._state["telemetry"] = self._get_telemetry()
                               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 224, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 248, in _get_telemetry
    return self._client.get_telemetry()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 101, in inner
    raise err
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 98, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 992, in get_telemetry
    data = self._exec_php(script)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 88, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 131, in _exec_php
    response = self._get_proxy().opnsense.exec_php(script)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1196, in single_request
    raise ProtocolError(
xmlrpc.client.ProtocolError: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
@heyitsyang heyitsyang changed the title OPNSese sensors all unavailable: Unexpected get_telemetry error err=<ProtocolError for ... OPNSense sensors all unavailable: Unexpected get_telemetry error err=<ProtocolError for ... Jan 30, 2024
@alexdelprete
Copy link
Contributor

alexdelprete commented Jan 30, 2024

Yes, there's a problem. In OPNsense you should have an exception error (see SYSTEM: FIRMWARE: REPORTER).

The error seems to be in hass.inc, I believe that's the plugin developed for this integration by @mimugmail.

In the changelog I see these two things that might have an impact, but I tried using a full admin user, and it didn't work.

image
image

PHP Errors:
[30-Jan-2024 19:48:00 Europe/Rome] PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/www/widgets/api/plugins/interfaces.inc' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:6
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#6 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 6
[30-Jan-2024 19:49:21 Europe/Rome] PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/www/widgets/api/plugins/interfaces.inc' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:6
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#6 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 6
[30-Jan-2024 19:50:42 Europe/Rome] PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/www/widgets/api/plugins/interfaces.inc' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:6
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#6 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 6
[30-Jan-2024 19:52:02 Europe/Rome] PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/www/widgets/api/plugins/interfaces.inc' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:6
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#6 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 6
[30-Jan-2024 19:53:23 Europe/Rome] PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/www/widgets/api/plugins/interfaces.inc' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:6
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#6 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 6
[30-Jan-2024 19:54:43 Europe/Rome] PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/www/widgets/api/plugins/interfaces.inc' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:6
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#6 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 6
[30-Jan-2024 19:56:04 Europe/Rome] PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/www/widgets/api/plugins/interfaces.inc' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:6
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#6 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 6
[30-Jan-2024 19:57:24 Europe/Rome] PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/www/widgets/api/plugins/interfaces.inc' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:6
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#6 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 6
[30-Jan-2024 19:58:45 Europe/Rome] PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/www/widgets/api/plugins/interfaces.inc' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:6
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#6 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 6
[30-Jan-2024 20:03:11 Europe/Rome] PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/www/widgets/api/plugins/interfaces.inc' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:6
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#6 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 6
[30-Jan-2024 20:03:55 Europe/Rome] PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/www/widgets/api/plugins/interfaces.inc' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:6
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#6 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 6
[30-Jan-2024 20:04:08 Europe/Rome] PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/www/widgets/api/plugins/interfaces.inc' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:6
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#6 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 6
[30-Jan-2024 20:04:29 Europe/Rome] PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/www/widgets/api/plugins/interfaces.inc' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:6
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#6 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 6
[30-Jan-2024 20:05:10 Europe/Rome] PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/www/widgets/api/plugins/interfaces.inc' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:6
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#6 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 6
[30-Jan-2024 20:06:33 Europe/Rome] PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/www/widgets/api/plugins/interfaces.inc' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:6
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#6 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 6
[30-Jan-2024 20:07:56 Europe/Rome] PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/www/widgets/api/plugins/interfaces.inc' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:6
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#6 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 6
[30-Jan-2024 20:09:20 Europe/Rome] PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/www/widgets/api/plugins/interfaces.inc' (include_path='/usr/local/etc/inc:/usr/local/www:/usr/local/opnsense/mvc:/usr/local/opnsense/contrib:/usr/local/share/pear:/usr/local/share') in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:6
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#1 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#4 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#5 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#6 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 6

@vincegre
Copy link

Same problem here since upgrade in 24.1 !

@antunesls
Copy link

Same Here !

OpnSense Version 24.1_1

@alexdelprete
Copy link
Contributor

I see it fails to open /usr/local/www/widgets/api/plugins/interfaces.inc. Maybe it's not available anymore in 24.1, maybe @fichtner can help us understand where the problem is.

@fichtner
Copy link

@alexdelprete /usr/local/www/widgets/api/plugins/interfaces.inc was removed in 24.1. The new API endpoint is http(s)://host.domain.or.ip/api/interfaces/overview/interfacesInfo

@alexdelprete
Copy link
Contributor

alexdelprete commented Jan 31, 2024

/usr/local/www/widgets/api/plugins/interfaces.inc was removed in 24.1. The new API endpoint is http(s)://host.domain.or.ip/api/interfaces/overview/interfacesInfo

Thank you Franco. Where can I check for other API changes so I can double check other possible issues? The other thing is that this integration is also executing PHP code through os-homeassistant plugin, it's not using just the REST API.

@nathanmetcalf
Copy link

+1, also experiencing this.

@JimmyMPage
Copy link

I have to same issue since the upgrade to 24.1. I see the same errors in HASS logs and in my OPNSense logs. Thanks for working on this!

@jamesahendry
Copy link

+1 - I've actually restored to back 23.7.12_5 until it's fixed

@alexdelprete
Copy link
Contributor

Gentlemen, the problem is acknowledged, you can see the details in previous posts, there's no need to confirm. :)

Update: I spoke with @travisghansen, he's busy now but he promised he'll work on it next week.

So please have patience and stay tuned. :)

@heyitsyang
Copy link
Author

Hope this gets fixed soon.. This is messing up my presence detection automations. :-)

@knom
Copy link

knom commented Feb 10, 2024

Just wondering.. will you be posting HERE upon successfully implementing the changes?
:-)
Can't wait to see it.. so I'm keeping this tab open ;-)

@homonto
Copy link

homonto commented Feb 10, 2024

Hope this gets fixed soon.. This is messing up my presence detection automations. :-)

my auto turn off lamps are not working anymore ;-(

@Mangomc
Copy link

Mangomc commented Feb 11, 2024

Gentlemen, the problem is acknowledged, you can see the details in previous posts, there's no need to confirm. :)

Update: I spoke with @travisghansen, he's busy now but he promised he'll work on it next week.

So please have patience and stay tuned. :)

Week almost done, i lost my hope

@j0hnby
Copy link

j0hnby commented Feb 11, 2024

If you can't commit code to help the fix, donate money to allow him to do this as a full-time job, or useful information about the issue - don't post.

If you want updates on progress, then subscribe to the issue and you will be notified when it's updated.

Sorry @travisghansen for posting in your repo, and @alexdelprete thanks for your last update.

@Mangomc
Copy link

Mangomc commented Feb 11, 2024

If you can't commit code to help the fix, donate money to allow him to do this as a full-time job, or useful information about the issue - don't post.

If you want updates on progress, then subscribe to the issue and you will be notified when it's updated.

Sorry @travisghansen for posting in your repo, and @alexdelprete thanks for your last update.

If you cant maintain your project. Turn it off so people know they need to search for an alternative.
If you cant keep your promise. Dont promise it.

But i dont want to Start any discussions here. Just my opinion

@alexdelprete
Copy link
Contributor

If you cant maintain your project.

This is an open-source project, there are no SLAs, the author is doing the best he can during his FREE TIME that he takes away from his family and duties to give something to the public. Unlike you, that don't contribute to anything other than writing stupid things like your post.

Idiots like you shouldn't use these kind of software because you're too stupid to understand what it takes to maintain them.

Turn it off so people know they need to search for an alternative.

No need to stop anything. Nobody stops anybody to search for alternatives. But you can't understand simple concepts like this, because you're an idiot.

If you cant keep your promise. Dont promise it.

There are no PROMISES or SLAs in open-source projects like this, you clearly don't know what you are talking about because you're an ignorant idiot.

But i dont want to Start any discussions here. Just my opinion

You don't want, but you started it, typical of an idiot, with a stupid opinion.

To all others: Travis has a lot of personal and professional duties, if you can't afford to wait, I'm sorry but this is the reality. He's a nice guy and does the best he can with his available time.

Please have patience and don't show disrespect like the ignorant @Mangomc.

I have a strong feeling that the ones who will have patience and respect will soon be rewarded.

@alexdelprete
Copy link
Contributor

Sorry @travisghansen for posting in your repo, and @alexdelprete thanks for your last update.

Thanks for your kind words John.

@Mangomc
Copy link

Mangomc commented Feb 11, 2024

If you cant maintain your project.

This is an open-source project, there are no SLAs, the author is doing the best he can during his FREE TIME that he takes away from his family and duties to give something to the public. Unlike you, that don't contribute to anything other than writing stupid things like your post.

Idiots like you shouldn't use these kind of software because you're too stupid to understand what it takes to maintain them.

Turn it off so people know they need to search for an alternative.

No need to stop anything. Nobody stops anybody to search for alternatives. But you can't understand simple concepts like this, because you're an idiot.

If you cant keep your promise. Dont promise it.

There are no PROMISES or SLAs in open-source projects like this, you clearly don't know what you are talking about because you're an ignorant idiot.

But i dont want to Start any discussions here. Just my opinion

You don't want, but you started it, typical of an idiot, with a stupid opinion.

To all others: Travis has a lot of personal and professional duties, if you can't afford to wait, I'm sorry but this is the reality. He's a nice guy and does the best he can with his available time.

Please have patience and don't show disrespect like the ignorant @Mangomc.

I have a strong feeling that the ones who will have patience and respect will soon be rewarded.

Typically in our World that people like you need to offend others because its the Internet.
You wrote He promised it a few days ago
I know how Hard it is. But my opinion is what i Wrote. If you need to be rude to me because its not your opinion maybe you are the Idiot.

@alexdelprete
Copy link
Contributor

Typically in our World that people like you need to offend others because its the Internet.

When you come in Rome feel free to let me know and I'll be glad to repeat the same things I wrote looking straight in your eyes. I'm a 50y man, never been worried of speaking my mind to anybody.

You wrote He promised it a few days ago

Yes, and if you had a minimum of intelligence you would understand what I wrote: I said he would work on it, not that there would be a fix by today. You can't even comprehend a simple sentence, that says a lot about you.

I know how Hard it is. But my opinion is what i Wrote. If you need to be rude to me because its not your opinion maybe you are the Idiot.

You have been disrespectful towards the dev (and me), so I'm just treating you like you deserve. You need to be educated, like a kid, and this is the same approach I use with my 4 children. I don't treat them gently when they're disrespectful like you, that's probably how you've been raised, and we can see the results: too many disrespectful people in the world thinking that everything is owed to them for free, and the only thing they can do is complain without giving back anything.

You clearly don't have an idea of how hard it is to maintain a project, because you don't maintain any project and you never contributed to one, and probably never even contributed economically. You're the typical guy that wants everything free and thinks that has the right to disrespectfully complain too.

This is my last post to you, you've already taken too much of my time and attention, and you don't deserve ANYTHING.

@antunesls
Copy link

antunesls commented Feb 11, 2024

@Mangomc, that's simple man.... You have 3 options.

1-> Rollback your OPNSense, while the fix don't come out (As most of us)

2->Fixed it for your self and contribute to the project.

3->Wait for the fix and contribute with your money if it's possible.

More than that is jibber jabber....

Be respectful, open source is a community for a reason.

@pine-serpent
Copy link

@Mangomc, that's simple man.... You have 3 options.

1-> Rollback your OPNSense, while the fix don't come out (As most of us)

2->Fixed it for your self and contribute to the project.

3->Wait for the fix and contribute with your money if it's possible.

More than that is jibber jabber....

Be respectful, open source is a community for a reason.

hello all,

i am on 24.1.1, how can i revert to the most recent build that works with this plugin? thank you for the help!

@travisghansen
Copy link
Owner

I love the passion of everyone. Let's keep the communication positive! I have admittedly had very limited time over the past year or so to maintain the project.

I understand the frustrations for sure. I intend to take some time today to get everything updated to work with current versions. If all goes well I should have a new release shortly.

@alexdelprete
Copy link
Contributor

Thanks as usual Travis.

@alexdelprete
Copy link
Contributor

i am on 24.1.1, how can i revert to the most recent build that works with this plugin? thank you for the help!

This is a question for the OPNsense forum more than here. Anyway, just wait a little, Travis said in his last post that a fix is coming. A little bit of patience and you can stay on 24.1.1.

@bdleung
Copy link

bdleung commented Feb 12, 2024

Travis - thanks for the work - how do I update to the new version?

Give your home assistant a restart and HACS should show the update available.

PS: @travisghansen - working well here, thank you for the fix :)

@alexdelprete
Copy link
Contributor

Travis - thanks for the work - how do I update to the new version?

Give your home assistant a restart and HACS should show the update available.

No need to restart HA: just click the 3 dots, and Update Info. HACS will check for updates of that integration.

image

@vk2him
Copy link

vk2him commented Feb 12, 2024

Thanks, working great for me now

@JumpMaster
Copy link

Mine is now shoring "Pending notices present" as Problem but I can't see anything wrong. I did have a service stopped (iperf) but that didn't help. I've also moved DHCP over to Kea. But I don't see any notices in OPNsense.

@JumpMaster
Copy link

JumpMaster commented Feb 12, 2024

If anyone has "Pending notices present" check this grey circle isn't red with a message in the top right of the UI

image

@travisghansen
Copy link
Owner

Did you have a message? When it's red is when the pending notices should show a problem.

@alexdelprete
Copy link
Contributor

alexdelprete commented Feb 12, 2024

Did you have a message? When it's red is when the pending notices should show a problem.

I had this, but probably it's old (2h ago): it's the removed .inc file.

image

@JumpMaster
Copy link

Did you have a message? When it's red is when the pending notices should show a problem.

Yes there was a crashdump warning which I cleared. Your plugin is working better then I am this morning!

@alexdelprete
Copy link
Contributor

Did you have a message? When it's red is when the pending notices should show a problem.

Yes there was a crashdump warning which I cleared. Your plugin is working better then I am this morning!

I reported it, and cleared. Now if it pops up again it means it's an issue to resolve.

@ax42
Copy link

ax42 commented Feb 12, 2024

Update works for me -- thanks!

@belgianrubs
Copy link

All the entities are working again in Home Assistant - no pending messages in OPNsense. Thanks!
Only the WOL issues persists #123

@EnvillePlease
Copy link

Absolutely brilliant! Works a treat, all entities up and working. Thank you so much!

@Damien0505
Copy link

Updated and is well for a single instance of OPNSense, unfortunately still can't add my second instance as noted in #116 . Thanks for an awesome addition for HA.! :)

@JohnyBeGood
Copy link

Works again with OPNSense 24.1! Sooo useful integration.
Thank you for your efforts and collaboration with OPNsense Devs!
Cheers!

@JimmyMPage
Copy link

Thanks for the hard work @travisghansen !

@buenni86
Copy link

Thanks for the update it's working with 24.1 @travisghansen

There is an update to 24.1.1, as soon as I update it's stops working again.
With an opnsense-revert -r 24.1 opnsense, it immediately starts working again.

@homonto
Copy link

homonto commented Feb 13, 2024

Thanks for the update it's working with 24.1 @travisghansen

There is an update to 24.1.1, as soon as I update it's stops working again. With an opnsense-revert -r 24.1 opnsense, it immediately starts working again.

t works fine for me for 24.1.1:
Screenshot 2024-02-13 at 21 42 14
Screenshot 2024-02-13 at 21 43 02

@mohamadfarhanmelb
Copy link

My opnsense is on the same version as homonto above, and I have updated to the latest firmware update, but I am still getting an error. I deleted the integration and reinstall it again, even set up with a new user but it is still the same issue. Appreciate if someone can guide me on this issue.

Device tracker works (with the updated version) but I am getting this timeout error.

image

@buenni86
Copy link

The user I created on opnsense has full admin rights, but as soon as I update to 24.1.1 I get this error.
home-assistant.log:

2024-02-13 23:09:18.369 ERROR (SyncWorker_21) [custom_components.opnsense.pyopnsense] Unexpected get_telemetry error err=<ProtocolError for API_KEY:API_SECRET@192.168.0.1/xmlrpc.php: 500 Internal Server Error>, type(err)=<class 'xmlrpc.client.ProtocolError'>
2024-02-13 23:09:18.370 ERROR (MainThread) [custom_components.opnsense] Unexpected error fetching OPNsense OPNsense state data: <ProtocolError for API_KEY:API_SECRET@192.168.0.1/xmlrpc.php: 500 Internal Server Error>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 313, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 269, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 97, in async_update_data
    await hass.async_add_executor_job(lambda: data.update())
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 97, in <lambda>
    await hass.async_add_executor_job(lambda: data.update())
                                              ^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 316, in update
    self._state["telemetry"] = self._get_telemetry()
                               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 225, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 249, in _get_telemetry
    return self._client.get_telemetry()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 101, in inner
    raise err
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 98, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 1037, in get_telemetry
    data = self._exec_php(script)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 88, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 131, in _exec_php
    response = self._get_proxy().opnsense.exec_php(script)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/xmlrpc/client.py", line 1461, in __request
    response = self.__transport.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/xmlrpc/client.py", line 1196, in single_request
    raise ProtocolError(
xmlrpc.client.ProtocolError: <ProtocolError for API_KEY:API_SECRET@192.168.0.1/xmlrpc.php: 500 Internal Server Error>

and on opnsense crash report:

PHP Errors:
[13-Feb-2024 23:09:11 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:26
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code(60): interfaces_api()
#1 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#4 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#5 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#6 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#7 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 26
[13-Feb-2024 23:09:18 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code:26
Stack trace:
#0 /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code(60): interfaces_api()
#1 /usr/local/etc/inc/xmlrpc/hass.inc(12): eval()
#2 /usr/local/opnsense/contrib/IXR/IXR_Library.php(446): exec_php_xmlrpc('\nini_set('displ...')
#3 /usr/local/opnsense/contrib/IXR/IXR_Library.php(384): IXR_Server->call('opnsense.exec_p...', '\nini_set('displ...')
#4 /usr/local/opnsense/contrib/IXR/IXR_Library.php(357): IXR_Server->serve('<?xml version='...')
#5 /usr/local/etc/inc/xmlrpc.inc(67): IXR_Server->__construct(Array)
#6 /usr/local/www/xmlrpc.php(104): XMLRPCServer->start()
#7 {main}
  thrown in /usr/local/etc/inc/xmlrpc/hass.inc(12) : eval()'d code on line 26

@alexdelprete
Copy link
Contributor

There is an update to 24.1.1, as soon as I update it's stops working again.

Works fine with 24.1.1 here. It's just minor patches:

image

@buenni86
Copy link

buenni86 commented Feb 13, 2024

I got my problem fixed.
It is as described here #127
I had one WireGuard VPN not enabled, that was causing the issue.
Enabling or removing it fixed it.
Would be nice to get it working without doing that, sometimes I want that VPN not active.

Strangly it was working with the VPN not activated with 24.1, but not with 24.1.1

@alexdelprete
Copy link
Contributor

Strangly it was working with the VPN not activated with 24.1, but not with 24.1.1

Doesn't make sense. Nothing major changed in OPNsense. So the bug should affect also 24.1.

@alexdelprete
Copy link
Contributor

but I am getting this timeout error.

"timeout error" and "remote disconnection" errors. looks like network issues more than an integration bug.

@travisghansen
Copy link
Owner

I’ll do some testing and see if we can’t pinpoint the issue.

@travisghansen
Copy link
Owner

Please try the update to see if the issue with inactive/disabled interfaces is fixed.

@Gertjuh
Copy link

Gertjuh commented Feb 16, 2024

Just installed the latest version and the integration is working again. Many thanks Travis!

@knom
Copy link

knom commented Feb 16, 2024

Heyhey,
I'm on the latest version, but still getting timeout issues like this..

And my OPNSense Sensors are all on & off.. (meaning switching between unavailable and available).

This used to be different before this wave of updates.
Sensors just used to be constantly available..

Weird...

This error originated from a custom integration.

Logger: custom_components.opnsense.pyopnsense
Source: custom_components/opnsense/pyopnsense/__init__.py:100
Integration: OPNsense (documentation, issues)
First occurred: 08:05:21 (5 occurrences)
Last logged: 08:08:29

Unexpected get_telemetry error err=TimeoutError('The read operation timed out'), type(err)=<class 'TimeoutError'>
Unexpected get_system_info error err=TimeoutError('The read operation timed out'), type(err)=<class 'TimeoutError'>
Unexpected _list_services error err=TimeoutError('The read operation timed out'), type(err)=<class 'TimeoutError'>
Unexpected get_services error err=TimeoutError('The read operation timed out'), type(err)=<class 'TimeoutError'>

@mohamadfarhanmelb
Copy link

I have got the same issue as @knom above

image

@twodrops
Copy link

I had this error for a while, but works perfectly fine now after the latest v0.1.21 update and Homeassistant Core 2024.3.3

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