home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.07k stars 29.73k forks source link

Supervisor JSON DECODE client error for add-ons without ChangeLog #116470

Closed erkr closed 4 months ago

erkr commented 4 months ago

The problem

Since the update to latest supervisor 2024.04.4, (which downgraded the ORJSON library), I see frequent (every 5 min) JSON decode errors in my log. This happens for all add-on that don't have a change log

What version of Home Assistant Core has the issue?

Core-2024.4.4

What was the last working version of Home Assistant Core?

Core-2024.4.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Supervisor

Link to integration documentation on our website

https://www.home-assistant.io/integrations/hassio/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Example MQTT explorer add-on:

Logger: homeassistant.components.hassio.handler
Source: components/hassio/handler.py:612
integration: Home Assistant Supervisor (documentation, issues)
First occurred: 20:13:00 (2 occurrences)
Last logged: 20:18:01

Client error on /addons/9cf1ea8f_mqtt_explorer/changelog request 0, message='Attempt to decode JSON with unexpected mimetype: application/octet-stream', url=URL('http://172.30.32.2/addons/9cf1ea8f_mqtt_explorer/changelog')

Additional information

No response

home-assistant[bot] commented 4 months ago

Hey there @home-assistant/supervisor, mind taking a look at this issue as it has been labeled with an integration (hassio) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `hassio` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign hassio` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


hassio documentation hassio source (message by IssueLinks)

bdraco commented 4 months ago

application/octet-stream is the fallback mime type if one is not set.

erkr commented 4 months ago

Don't know what that exactly implies? With supervisor 2024.04.0 I didn't have these errors. That started after upgrading the supervisor today. I noticed a orjson downgrade in the release notes.

Only MQTT explorer causes these errors. Add-on issue?! Why not seen before?

erkr commented 4 months ago

Found an related issue in the mqtt explorer repository: https://github.com/GollumDom/addon-repository/issues/4

shipham2302 commented 4 months ago

I'm facing this issue also. Still using 2024.4.3

erkr commented 4 months ago

I'm facing this issue also. Still using 2024.4.3

Are you referring the supervisor version?

erkr commented 4 months ago

It looks like the Mqtt explorer add-on doesn't have release notes: image

shipham2302 commented 4 months ago

I'm facing this issue also. Still using 2024.4.3

Are you referring the supervisor version?

No i mean Core version. For the mean time i removed Explorer

erkr commented 4 months ago

To be clear. The issue started with a separate update for the supervisor v 2024.04.4

R1DEN commented 4 months ago

Same issue for me with prometheus. So it's not the MQTT's fault

Logger: homeassistant.components.hassio.handler
Source: components/hassio/handler.py:612
integration: Home Assistant Supervisor ([documentation](https://www.home-assistant.io/integrations/hassio), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+hassio%22))
First occurred: 29 April 2024 at 23:13:23 (139 occurrences)
Last logged: 08:45:10

Client error on /ingress/validate_session request 0, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url=URL('http://172.30.32.2/ingress/validate_session')
Client error on /addons/df843657_prometheus/changelog request 0, message='Attempt to decode JSON with unexpected mimetype: application/octet-stream', url=URL('http://172.30.32.2/addons/df843657_prometheus/changelog')
attila-szucs commented 4 months ago

Same issue here. Supervisor logs error and warning messages every 5 minutes for all add-ons which does not have a change log.

ziolelle commented 4 months ago

Sme here after upgrade to Supervisor 2024.04.4

beatfussel commented 4 months ago

Same issue here with RTSP Simple Server Add-on

Logger: homeassistant.components.hassio.handler Quelle: components/hassio/handler.py:612 Integration: Home Assistant Supervisor (Dokumentation, Probleme) Erstmals aufgetreten: 13:12:34 (2 Vorkommnisse) Zuletzt protokolliert: 13:17:33

Client error on /addons/e33666f6_rtsp_simple_server/changelog request 0, message='Attempt to decode JSON with unexpected mimetype: application/octet-stream', url=URL('http://172.30.32.2/addons/e33666f6_rtsp_simple_server/changelog')

erkr commented 4 months ago

The Author of MQTT explorer add-on, just added a CHANGELOG.md file in the add-on repository. Without a new release, the issue is solved for that add-on.

c0bra99 commented 4 months ago

I get the same warning + error logged for Portainer:

Logger: homeassistant.components.hassio.data Source: components/hassio/data.py:497 integration: Home Assistant Supervisor (documentation, issues) First occurred: 10:29:32 AM (113 occurrences) Last logged: 7:49:32 PM

Could not fetch changelog for a0d7b954_portainer:

Logger: homeassistant.components.hassio.handler Source: components/hassio/handler.py:612 integration: Home Assistant Supervisor (documentation, issues) First occurred: 10:29:32 AM (113 occurrences) Last logged: 7:49:32 PM

Client error on /addons/a0d7b954_portainer/changelog request 0, message='Attempt to decode JSON with unexpected mimetype: application/octet-stream', url=URL('http://172.30.32.2/addons/a0d7b954_portainer/changelog')

dinan5 commented 4 months ago

Same issue with Docker-Wyze-Bridge

erkr commented 4 months ago

Hi,

Instead of sharing more logs, let's just list the add-ons causing these errors (so without a changelog.md). Mentioned above:

Question to the supervisor code owners: is a change log optional? It's so, this is a supervisor related bug

attila-szucs commented 4 months ago

Add-on "Paradox Alarm Interface" also affected

Nephiel commented 4 months ago

Add-on "Home Assistant Google Drive Backup" is also affected.

erkr commented 4 months ago

Add-on "Home Assistant Google Drive Backup" is also affected.

Weird, I'm running that add-on without issue! And it has a change log for sure, check out the link: image

I think you have another issue

Nephiel commented 4 months ago

Add-on "Home Assistant Google Drive Backup" is also affected. [...]

I think you have another issue

My bad, you're right. I assumed I was up to date since there were no notifications, but looks like I'm stuck on an older version (0.108.2). Not sure why, I'll have to check. Thanks!

cmagno369 commented 4 months ago

Add Aquecedores Rinnai Brasil (Módulo ROU-003) is also affected

babelhoo commented 4 months ago

Also happens with the Scrypted add-on since the supervisor update to the current version

johntdyer commented 4 months ago

So I'm getting this w/ the following addonls

➜  /config grep "message='Attempt to decode JSON with unexpected mimetype:" home-assistant.log | awk '{print $9}' | awk '{FS="/"}{print $3}' | sort | uniq

40817795_vscode-remote
45df7312_zigbee2mqtt_proxy
5f228eb6_rtlamr2mqtt
f249a0d9_promtail
jezzamine commented 4 months ago

Same error with: fe49a976_google_assistant_webserver 00185a40_simplescheduler (even though this addon does have a changelog)

ForumHulp commented 4 months ago

Same for a7902f0f_otmonitor

erkr commented 4 months ago

Effected add-on mentioned so far:

Question to the supervisor code owners:

dinan5 commented 4 months ago

Eric - thank you for tracking this, much appreciated by the community.

From: Eric Kreuwels @.> Sent: Friday, May 03, 2024 8:28 AM To: home-assistant/core @.> Cc: dinan5 @.>; Comment @.> Subject: Re: [home-assistant/core] Supervisor JSON DECODE client error for add-ons without ChangeLog (Issue #116470)

Effected add-on mentioned so far:

Question to the supervisor code owners:

— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/116470#issuecomment-2092919009, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARAH6EABF7UQ7SCDWNGM53LZAN7GHAVCNFSM6AAAAABHAY3MAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJSHEYTSMBQHE. You are receiving this because you commented.Message ID: @.**@.>>

aherbjornsen commented 4 months ago

Effected add-on mentioned so far:

A few more:

core_check_config a0d7b954_adb 449b11be_nginx_proxy 53caca22_syncthing

erkr commented 4 months ago

Update; Effected add-ons mentioned so far:

Question to the supervisor code owners:

dinan5 commented 4 months ago

It’s core_check_config. It’s deprecated, you can delete that add on and the error will go away.

On May 4, 2024, at 08:12, Anthony @.***> wrote:



I can't work out which addon is causing this issue for me?

Logger: homeassistant.components.hassio.data Source: components/hassio/data.py:497 integration: Home Assistant Supervisor (documentation, issues) First occurred: 20:33:00 (21 occurrences) Last logged: 22:08:53

Could not fetch changelog for core_check_config:

Logger: homeassistant.components.hassio.handler Source: components/hassio/handler.py:612 integration: Home Assistant Supervisor (documentation, issues) First occurred: 20:33:00 (21 occurrences) Last logged: 22:08:53

Client error on /addons/core_check_config/changelog request 0, message='Attempt to decode JSON with unexpected mimetype: application/octet-stream', url=URL('http://172.30.32.2/addons/core_check_config/changelog')

— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/116470#issuecomment-2094142657, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARAH6EDR3YPK5VTMG26NFCDZATGBZAVCNFSM6AAAAABHAY3MAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUGE2DENRVG4. You are receiving this because you commented.Message ID: @.***>

erkr commented 4 months ago

@dinan5 please don't reply via email. Use either the GitHub app or web interface. Your messages via email are barely unreadable

perjury commented 4 months ago

Same for me with a0d7b954_esphome

ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /addons/a0d7b954_esphome/changelog request 0, message='Attempt to decode JSON with unexpected mimetype: application/octet-stream'

Update: I discovered I had a very old version of esphome installed (despite auto-update being switched on). Uninstalling and re-installing esphome cured the problem for me.

berniecruz commented 4 months ago

Pls include 843c1e0c_snapcastserver...

Logger: homeassistant.components.hassio.handler Source: components/hassio/handler.py:612 integration: Home Assistant Supervisor (documentation, issues) First occurred: 18:07:09 (2 occurrences) Last logged: 18:12:09

Client error on /addons/843c1e0c_snapcastserver/changelog request 0, message='Attempt to decode JSON with unexpected mimetype: application/octet-stream', url=URL('http://172.30.32.2/addons/843c1e0c_snapcastserver/changelog')

erkr commented 4 months ago

@mdegat01 thanks!

zoeperman commented 4 months ago

also 8aef3602_dropbox_upload

Alfagek commented 4 months ago

@mdegat01 @agners , problem is still there with the new supervisor 2024.5.1 (portainer aka Advanced ssh addon)

dinan5 commented 4 months ago

Same. Was this pushed to production yet?

vin100ross commented 4 months ago

Also getting flooded with these errors with the Google Drive backup addon with Supervisor 2024.05.1. This was supposed to be fixed in 2024.05.0. From the release notes:

"Fix no changelog API response"

Guess it's time to add a new issue on the Supervisor side since this is probably not a core issue...

erkr commented 4 months ago

I'm running Google drive backup without logging's, also before 2024.05.1. Just a hunch, open the changelog link in the add-on for one time. I did that for MQTT explorer, and then the errors where gone

calexandre commented 3 months ago

This is also happening with 6a15710b_tasmobackup

agners commented 3 months ago

Same. Was this pushed to production yet?

Yes.

Seems something is still wrong :thinking: .

Guess it's time to add a new issue on the Supervisor side since this is probably not a core issue...

If you do, please link it here.

dinan5 commented 3 months ago

Logger: homeassistant.components.hassio.data Source: components/hassio/data.py:497 integration: Home Assistant Supervisor (documentation, issues) First occurred: May 12, 2024 at 12:51:19 PM (245 occurrences) Last logged: 9:11:19 AM

Could not fetch changelog for 7094bb28_docker-wyze-bridge:

Logger: homeassistant.components.hassio.handler Source: components/hassio/handler.py:612 integration: Home Assistant Supervisor (documentation, issues) First occurred: May 12, 2024 at 12:51:19 PM (245 occurrences) Last logged: 9:11:19 AM

Client error on /addons/7094bb28_docker-wyze-bridge/changelog request 0, message='Attempt to decode JSON with unexpected mimetype: application/octet-stream', url=URL('http://172.30.32.2/addons/7094bb28_docker-wyze-bridge/changelog')

vin100ross commented 3 months ago

@agners I just submitted the issue on the core side and mentioned this one as per "mention" above.

Edit: meant supervisor side.

vin100ross commented 3 months ago

For me, the problem was that the repository address had mysteriously gone missing from the addon store. Adding it back removed the errors and warnings. See (now closed) supervisor issue #5076. I hope this helps someone.

dinan5 commented 3 months ago

@vin100ross - this fixed it for me! Thank you!

DeVille70 commented 3 months ago

Same for me with a0d7b954_esphome

ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /addons/a0d7b954_esphome/changelog request 0, message='Attempt to decode JSON with unexpected mimetype: application/octet-stream'

Update: I discovered I had a very old version of esphome installed (despite auto-update being switched on). Uninstalling and re-installing esphome cured the problem for me.

Thanks, I have the same.

How do you see the version of esphome? And does reinstalling esphome mean reinstalling all the devices?