travisghansen / hass-opnsense

OPNsense integration with Home Assistant
178 stars 21 forks source link

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

Open heyitsyang opened 5 months ago

heyitsyang commented 5 months ago

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>
alexdelprete commented 5 months ago

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 commented 5 months ago

Same problem here since upgrade in 24.1 !

antunesls commented 5 months ago

Same Here !

OpnSense Version 24.1_1

alexdelprete commented 5 months ago

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 commented 5 months ago

@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 commented 5 months ago
/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 commented 5 months ago

+1, also experiencing this.

JimmyMPage commented 5 months ago

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 commented 5 months ago

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

alexdelprete commented 5 months ago

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 commented 5 months ago

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

knom commented 5 months ago

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 commented 5 months ago

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

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

Mangomc commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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

Thanks for your kind words John.

Mangomc commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

@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 commented 5 months ago

@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 commented 5 months ago

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 commented 5 months ago

Thanks as usual Travis.

alexdelprete commented 5 months ago

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.

mimugmail commented 5 months ago

You install 23.7 iso, restore your config.xml via System: Configuration and update one time so you get to latest 23.7, thats it :)

pine-serpent commented 5 months ago

thank you travis! i appreciate your time and work!

felipebraz commented 5 months ago

Thanks @travisghansen for your time by doing this integration, I hope you fix it as soon as your time and sanity (LoL) allows... Sorry for the terrible english... May the force be with you!

travisghansen commented 5 months ago

Thanks @travisghansen for your time by doing this integration, I hope you fix it as soon as your time and sanity (LoL) allows... Sorry for the terrible english... May the force be with you!

Pode falar portugues tambem :D

felipebraz commented 5 months ago

Thanks @travisghansen for your time by doing this integration, I hope you fix it as soon as your time and sanity (LoL) allows... Sorry for the terrible english... May the force be with you!

Pode falar portugues tambem :D

Que bacana, não sabia que falava português ou sempre podemos contar com o tradutor LoL... Enfim, preciso melhorar meu inglês de qualquer maneira, leio bem mas a escrita (por falta de prática) às vezes falha... os próximos comentários serão mais legíveis em inglês, é uma promessa! LoL Reforçando, boa sorte na correção, em Python sou horrível então nem vou oferecer ajuda, mas se precisar de apoio com testes ou coisa do gênero pode chamar!

JumpMaster commented 5 months ago

v0.1.17 has fixed everything for me! Thanks @travisghansen

travisghansen commented 5 months ago

Que bacana, não sabia que falava português ou sempre podemos contar com o tradutor LoL... Enfim, preciso melhorar meu inglês de qualquer maneira, leio bem mas a escrita (por falta de prática) às vezes falha... os próximos comentários serão mais legíveis em inglês, é uma promessa! LoL Reforçando, boa sorte na correção, em Python sou horrível então nem vou oferecer ajuda, mas se precisar de apoio com testes ou coisa do gênero pode chamar!

Falo sim, nem precisa de um tradutor :D nao eh perfeito esses dias mas eu falava fluente no passado

travisghansen commented 5 months ago

Everyone give the new version a try and let me know if you have any issues or not so we can close this.

vk2him commented 5 months ago

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

travisghansen commented 5 months ago

It should show up in hacs, or git pull if you installed manually.

bdleung commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

Thanks, working great for me now

JumpMaster commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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

alexdelprete commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

Update works for me -- thanks!

belgianrubs commented 5 months ago

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

EnvillePlease commented 5 months ago

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

Damien0505 commented 5 months ago

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 commented 5 months ago

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

JimmyMPage commented 5 months ago

Thanks for the hard work @travisghansen !