Closed EinSchwerd closed 1 year ago
Edit: SOLVED with the addition of network to capabilities in apparmor.txt of the addon.
I am having a similar issue with my addon.
https://github.com/habuild/hassio-addons/tree/main/haos-sbfspot
The following error is occurring on startup
curl: (7) Failed to connect to supervisor port 80 after 0 ms: Couldn't connect to server
[00:28:25] ERROR: Something went wrong contacting the API
Supervisor remains uncontactable even if I log into the container after it starts with docker exec -it addon_a51a23d8_haos-sbfspot /bin/bash
Oddly enough it has only occurred since updating to debian 12. So possibly related to systemd-resvolved?
This version fails
version | core-2023.7.2 |
---|---|
installation_type | Home Assistant Supervised |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.11.4 |
os_name | Linux |
os_version | 6.1.0-10-arm64 |
arch | aarch64 |
timezone | Australia/Sydney |
config_dir | /config |
While these Both Debian 11 supervised and HAOS work.
version | core-2023.7.2 |
---|---|
installation_type | Home Assistant Supervised |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.11.4 |
os_name | Linux |
os_version | 5.10.0-23-amd64 |
arch | x86_64 |
timezone | Australia/Sydney |
config_dir | /config |
version | core-2023.7.2 |
---|---|
installation_type | Home Assistant OS |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.11.4 |
os_name | Linux |
os_version | 6.1.34 |
arch | x86_64 |
timezone | Australia/Sydney |
config_dir | /config |
Related addon Error log
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun sbfspot (no readiness notification)
s6-rc: info: service legacy-services successfully started
[00:37:22] INFO:
[00:37:22] INFO: Linux 6.1.0-10-arm64 #1 SMP Debian 6.1.37-1 (2023-07-03) aarch64
[00:37:22] INFO:
| SKIPPING MQTT SENSOR CREATION |
curl: (7) Failed to connect to supervisor port 80 after 0 ms: Couldn't connect to server
[00:37:22] ERROR: Something went wrong contacting the API
[00:37:22] INFO: ================================
[00:37:22] INFO: Setup failed to create Configs
[00:37:22] INFO: ================================
[00:37:22] INFO: [Starting SBFspotUpload]
[00:37:22] INFO: [Starting cron in foreground]
SBFspot V3.9.7
Yet another tool to read power production of SMA solar inverters
(c) 2012-2022, SBF (https://github.com/SBFspot/SBFspot)
Compiled for Linux (LE) 64 bit with MySQL support
Commandline Args: -v -ad0 -am0 -mqtt -finq
Error! Could not open file /usr/bin/sbfspot/SBFspot.cfg
Configuration Error: Could not open file /usr/bin/sbfspot/SBFspotUpload.cfg
Expected Normal log output
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun sbfspot (no readiness notification)
[01:18:38] INFO:
[01:18:38] INFO: Linux 5.10.0-23-amd64 #1 SMP Debian 5.10.179-2 (2023-07-14) x86_64
[01:18:38] INFO:
s6-rc: info: service legacy-services successfully started
| SKIPPING MQTT SENSOR CREATION |
[01:18:41] INFO:
[01:18:41] INFO:
[01:18:41] INFO: [Host Bluetooth MAC Address] Controller 00:1A:7D:DA:71:13 deb11ha [default]
[01:18:41] INFO:
[01:18:41] INFO:
[01:18:41] INFO: || Generating Bluetooth Configs ||
[01:18:41] INFO: || /usr/bin/sbfspot/SBFspot.cfg ||
[01:18:41] INFO: || /usr/bin/sbfspot/SBFspotUpload.cfg ||
[01:18:41] INFO:
[01:18:41] INFO: [Starting SBFspotUpload]
[01:18:41] INFO: [Starting cron in foreground]
SBFspot V3.9.7
Yet another tool to read power production of SMA solar inverters
(c) 2012-2022, SBF (https://github.com/SBFspot/SBFspot)
Compiled for Linux (LE) 64 bit with MySQL support
Commandline Args: -v -ad0 -am0 -mqtt -finq
Reading config '/usr/bin/sbfspot/SBFspot.cfg'
Thu Jul 20 01:19:11 2023: INFO: Starting...
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Describe the issue you are experiencing
I've recently updated the host to Debian 12. Ever since the update the ecowitt2mqtt addon stopped working with the following error:
I reported a bug for that addon, however I was directed to the supervisor as the error above is not generated by the addon.
What type of installation are you running?
Home Assistant Supervised
Which operating system are you running on?
Debian
Steps to reproduce the issue
1. 2. 3. ...
Anything in the Supervisor logs that might be useful for us?
System Health information
System Information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.32.1 Stage | running Available Repositories | 1276 Downloaded Repositories | 34AccuWeather
can_reach_server | ok -- | -- remaining_requests | 37Home Assistant Cloud
logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome Assistant Supervisor
host_os | Debian GNU/Linux 12 (bookworm) -- | -- update_channel | stable supervisor_version | supervisor-2023.06.2 agent_version | 1.5.1 docker_version | 24.0.2 disk_total | 226.7 GB disk_used | 18.3 GB healthy | failed to load: Unhealthy supported | failed to load: Unsupported supervisor_api | ok version_api | ok installed_addons | File editor (5.6.0), Mosquitto broker (6.2.1), Terminal & SSH (9.7.1), TasmoAdmin (0.24.4), Samba share (10.0.2), Zigbee2MQTT (1.31.2-1), ESPHome (2023.5.5), Samba Backup (5.2.0), Studio Code Server (5.6.2), AdGuard Home (4.8.10), InfluxDB (4.7.0), ecowitt2mqtt (2023.06.1)Dashboards
dashboards | 1 -- | -- resources | 21 views | 11 mode | storageRecorder
oldest_recorder_run | 13 June 2023 at 04:43 -- | -- current_recorder_run | 20 June 2023 at 08:57 estimated_db_size | 500.67 MiB database_engine | sqlite database_version | 3.41.2Supervisor diagnostics
No response
Additional information
No response