fisch55
(Fisch55)
November 3, 2024, 7:44pm
1
With each add-on, it shows me the following message in the protocol.
Supervisor2024.10.4
Operating System13.2
Frontend20241002.4
I also have this problem. The error I get is
Failed to get XXX_addon_XXX logs, e.callApiRaw is not a function
Core 2024.10.4 (or 2024.11.0b2 )
Supervisor 2024.10.4
Operating System13.2
Frontend 20241002.4
I misspoke. This appears to be fixed in the 2024.11.0b2 release. Give that a try!
iMiMx
(iMx)
November 6, 2024, 4:15pm
4
Just updated to Supervisor 2024.11.2 and am seeing this for all add-ons - although this release may be just when I noticed it first.
Running Supervised install, on Bookworm.
Core 2024.10.4
Supervisor 2024.11.2
Operating System
Frontend 20241002.4
Failed to get core_mariadb logs, e.callApiRaw is not a function. (In 'e.callApiRaw("GET",
hassio/${t.includes(“_”)?addons/${t}
:t}/logs${0!==r?/boots/${r}
:“”},void 0,i?{Range:i}:void 0)', 'e.callApiRaw' is undefined)
Update: Requesting logs for Add-ons fails · Issue #5382 · home-assistant/supervisor · GitHub
DanGarion
(Daniel)
November 6, 2024, 5:14pm
5
The 11.2 supervisor update broke all my addon logs.
I just tried to install the 11.2 update, and I get an error message that it doesn’t exist. So I wonder if it got pulled?
UPDATE: Never mind, apparently it did get updated. Very weird.
Yes - saw similar:
(1) Update available
Install Supervisor 2024.11.2
(1) Update available (still)
(lots of front end refreshing)
Settings → System → Updates → Supervisor 2024.11.2
still showing
Settings → System → Updates → G
refresh icon top right
Checking for updates...
(a few seconds later…)
No updates available
Appears to take a while for HA to communicate with the Supervisor that an update has taken place?
Same issue here too. All add-on logs are affected.
fuatakgun
(Fuat Akgün)
November 6, 2024, 9:37pm
10
vlawyen
(Vlawyen)
November 6, 2024, 9:46pm
11
Many thanks.
With update core to 2024.11.0, now is ok
Marsman83
(Marcel)
November 11, 2024, 3:00pm
13
I just updated from core 10.4 to 11.1 and still have this problem.
Supervisor is also at the latest 11.3.
OS on 13.2.
Does this mean that the fix is only applied when updating from 10.4 to 11.0?
OK you can discard this post, after some time after updating the problem was automatically fixed, Logs are working again!
jflad17
(Justin)
December 5, 2024, 6:35am
14
Did you change anything? I am still having this issue on all my addons and I just updated to the latest that just was released.
fuatakgun
(Fuat Akgün)
December 9, 2024, 12:10am
15
It popped out again recently, I am internally blaming Core 12.1 version, Downgrading to 12.0 and will update here
Update: Core 12.0 works fine.
DanGarion
(Daniel)
December 11, 2024, 7:32pm
16
It seems to me that the issue is with trying to access logs through a reverse proxy. If I use my internal URL I have no issues, if I use my reverse proxy address it hangs and maybe after 5 minutes the live logs show up. I can’t find anything in my nginx logs that points to it being an issue with my reverse proxy logs (I use SWAG).
1 Like
DanGarion
(Daniel)
January 13, 2025, 9:54pm
17
FYI there appears to be a fix coming out as someone has located where the funkiness is happening.
For those running something that uses nginx for proxy you can most likely add proxy_buffering off to your proxy config and resolve it in the meantime.
If you use swag you can made the edit directly in your Home Assistant proxy config that SWAG maintains.
opened 11:50PM - 23 Dec 24 UTC
bug
### Describe the issue you are experiencing
I'm using a reverse proxy to access… HA (SWAG). I use the basic config for nginx that they provide and have made no edits over the past year. After an update approximately 2 months ago (I think having to do with Live logs) I can only see live logs when I'm using my server IP or internal network URL. When I try to access the "live" logs for anything HA related (including Addons) I only see "Loading full log..."
![image](https://github.com/user-attachments/assets/b1eb4f63-c92d-4347-b496-ebc9f7c65ede)
One note: I can download the logs if I use the download icon, and I also have access to them if I install the Portainer add-on and review them from Portainer.
An additional note this happens in multiple browsers and on my multiple devices and the issue occurs when accessing logs through the HA Android App as well.
### What type of installation are you running?
Home Assistant OS
### Which operating system are you running on?
Home Assistant Operating System
### Steps to reproduce the issue
1. Access HA through a reverse proxy
2. Go to System > Logs > Change to Supervisor
3. Logs will NOT load and will eventually time out, displaying the following.
![image](https://github.com/user-attachments/assets/78be707b-d5d8-499e-8310-2d028feb2b0c)
If I access HA though a direct IP or internal network URL the live logs are accessible.
...
### Anything in the Supervisor logs that might be useful for us?
```txt
2024-12-23 15:36:21.201 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-12-23 15:39:39.504 ERROR (MainThread) [supervisor.api] Failed to get supervisor logs using advanced_logs API
Traceback (most recent call last):
File "/usr/src/supervisor/supervisor/api/host.py", line 261, in advanced_logs_handler
await response.prepare(request)
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_response.py", line 453, in prepare
return await self._start(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_response.py", line 461, in _start
await self._write_headers()
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_response.py", line 538, in _write_headers
await writer.write_headers(status_line, self._headers)
File "/usr/local/lib/python3.12/site-packages/aiohttp/http_writer.py", line 148, in write_headers
self._write(buf)
File "/usr/local/lib/python3.12/site-packages/aiohttp/http_writer.py", line 81, in _write
raise ClientConnectionResetError("Cannot write to closing transport")
aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/supervisor/supervisor/api/__init__.py", line 403, in get_supervisor_logs
return await self._api_host.advanced_logs_handler(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/host.py", line 268, in advanced_logs_handler
raise APIError(
supervisor.exceptions.APIError: Connection reset when trying to fetch data from systemd-journald.
```
### System Health information
## System Information
version | core-2024.12.5
-- | --
installation_type | Home Assistant OS
dev | false
hassio | true
docker | true
user | root
virtualenv | false
python_version | 3.13.0
os_name | Linux
os_version | 6.6.66-haos
arch | x86_64
timezone | America/Los_Angeles
config_dir | /config
<details><summary>Home Assistant Community Store</summary>
GitHub API | ok
-- | --
GitHub Content | ok
GitHub Web | ok
HACS Data | ok
GitHub API Calls Remaining | 5000
Installed Version | 2.0.1
Stage | running
Available Repositories | 1559
Downloaded Repositories | 27
</details>
<details><summary>Home Assistant Cloud</summary>
logged_in | true
-- | --
subscription_expiration | August 23, 2025 at 5:00 PM
relayer_connected | true
relayer_region | us-east-1
remote_enabled | true
remote_connected | true
alexa_enabled | false
google_enabled | true
cloud_ice_servers_enabled | true
remote_server | us-east-1-10.ui.nabu.casa
certificate_status | ready
instance_id | 8f8637b1554c48ba826c50b7c9d5f835
can_reach_cert_server | ok
can_reach_cloud_auth | ok
can_reach_cloud | ok
</details>
<details><summary>Home Assistant Supervisor</summary>
host_os | Home Assistant OS 14.1
-- | --
update_channel | stable
supervisor_version | supervisor-2024.12.0
agent_version | 1.6.0
docker_version | 27.2.0
disk_total | 916.9 GB
disk_used | 71.7 GB
healthy | true
supported | true
host_connectivity | true
supervisor_connectivity | true
ntp_synchronized | true
virtualization |
board | generic-x86-64
supervisor_api | ok
version_api | ok
installed_addons | Matter Server (6.6.1), Mosquitto broker (6.4.1), ESPHome Device Builder (2024.12.2), Advanced SSH & Web Terminal (19.0.0), Studio Code Server (5.17.3), Plex Media Server (3.6.2), Portainer (2.25.1), Log Viewer (0.17.1), Govee to MQTT Bridge (2024.07.13-82ddc6e9), SQLite Web (4.3.0), Home Assistant Google Drive Backup (0.112.1), Music Assistant Server (beta) (2.4.0b8), Samba share (12.3.2), Z-Wave JS UI (3.18.0), Homebridge (0.1.8), Frigate Beta (0.15.0-beta4)
</details>
<details><summary>Dashboards</summary>
dashboards | 7
-- | --
resources | 42
views | 14
mode | storage
</details>
<details><summary>Recorder</summary>
oldest_recorder_run | December 11, 2024 at 6:23 PM
-- | --
current_recorder_run | December 23, 2024 at 1:41 PM
estimated_db_size | 936.47 MiB
database_engine | sqlite
database_version | 3.45.3
</details>
<details><summary>Sonoff</summary>
version | 3.8.1 (ffa7e22)
-- | --
cloud_online | 8 / 9
local_online | 8 / 8
</details>
<details><summary>Spotify</summary>
api_endpoint_reachable | ok
-- | --
</details>
<details><summary>SpotifyPlus</summary>
integration_version | v1.0.75
-- | --
clients_configured | 1: Daniel Schoonover (premium)
api_endpoint_reachable | ok
</details>
### Supervisor diagnostics
[config_entry-hassio-01JDDQTE6MBNXC3KSBH487VZ35.json](https://github.com/user-attachments/files/18234173/config_entry-hassio-01JDDQTE6MBNXC3KSBH487VZ35.json)
### Additional information
_No response_
go to the SWAG wag\config\nginx\proxy-confs folder and locate the Home Assistant proxy config.
In this section of the config
location ~ ^/(api|local|media)/ {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app 192.168.1.56;
set $upstream_port 8123;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
Add
proxy_buffering off;
as show below.
location ~ ^/(api|local|media)/ {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app 192.168.1.56;
set $upstream_port 8123;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_buffering off;
}