truecharts / public

Community Helm Chart Repository
https://truecharts.org
GNU Affero General Public License v3.0
1.14k stars 617 forks source link

Home-Assistant fails to install (clean or upgrade) #11256

Closed STiCory closed 1 year ago

STiCory commented 1 year ago

App Name

Home-Assistant

SCALE Version

22.12.2

App Version

20.0.0

Application Events

2023-08-06 14:47:59
Readiness probe failed: HTTP probe failed with statuscode: 500
2023-08-06 14:47:58
Readiness probe failed: Get "http://172.16.0.125:8000/readyz": dial tcp 172.16.0.125:8000: connect: connection refused
2023-08-06 14:47:57
Created container postgres
2023-08-06 14:47:57
Started container postgres
2023-08-06 14:47:55
Container image "ghcr.io/cloudnative-pg/postgresql:15.2" already present on machine
2023-08-06 14:47:54
Created container bootstrap-controller
2023-08-06 14:47:54
Started container bootstrap-controller
2023-08-06 14:47:52
Add eth0 [172.16.0.125/16] from ix-net
2023-08-06 14:47:52
Container image "ghcr.io/cloudnative-pg/cloudnative-pg:1.19.0" already present on machine
2023-08-06 14:47:50
Job completed
2023-08-06 14:47:50
Successfully assigned ix-homeassistant/homeassistant-home-assistant-cnpg-main-2 to ix-truenas
2023-08-06 14:47:47
Created container homeassistant-home-assistant
2023-08-06 14:47:47
Started container homeassistant-home-assistant
2023-08-06 14:47:45
Container image "tccr.io/truecharts/home-assistant:v2023.7.3@sha256:d5cd01f1d0f8dc35ddea04b11582344597281d1b5e512ea64af3650512f24ccf" already present on machine
2023-08-06 14:47:42
Created container homeassistant-home-assistant-init-init
2023-08-06 14:47:42
Started container homeassistant-home-assistant-init-init
2023-08-06 14:47:41
Created container join
2023-08-06 14:47:41
Started container join
2023-08-06 14:47:39
Container image "tccr.io/truecharts/home-assistant:v2023.7.3@sha256:d5cd01f1d0f8dc35ddea04b11582344597281d1b5e512ea64af3650512f24ccf" already present on machine
2023-08-06 14:47:38
Container image "ghcr.io/cloudnative-pg/postgresql:15.2" already present on machine
2023-08-06 14:47:37
Created container bootstrap-controller
2023-08-06 14:47:37
Started container bootstrap-controller
2023-08-06 14:47:35
Add eth0 [172.16.0.124/16] from ix-net
2023-08-06 14:47:35
Container image "ghcr.io/cloudnative-pg/cloudnative-pg:1.19.0" already present on machine
2023-08-06 14:47:34
Successfully assigned ix-homeassistant/homeassistant-home-assistant-cnpg-main-2-join-s9964 to ix-truenas
2023-08-06 14:47:33
Successfully provisioned volume pvc-f3d3a026-42b4-4f25-948b-d3b5d8a09b1a
2023-08-06 14:47:33
Successfully provisioned volume pvc-cd9ebfe6-5e60-41a2-8bcb-5a1d50e85214
2023-08-06 14:47:32
Creating instance homeassistant-home-assistant-cnpg-main-2
2023-08-06 14:47:32
Created pod: homeassistant-home-assistant-cnpg-main-2-join-s9964
2023-08-06 14:47:32
0/1 nodes are available: 1 persistentvolumeclaim "homeassistant-home-assistant-cnpg-main-2-wal" not found. preemption: 0/1 nodes are available: 1 Preemption is not helpful for scheduling.
2023-08-06 14:47:32
External provisioner is provisioning volume for claim "ix-homeassistant/homeassistant-home-assistant-cnpg-main-2"
2023-08-06 14:47:32
External provisioner is provisioning volume for claim "ix-homeassistant/homeassistant-home-assistant-cnpg-main-2-wal"
2023-08-06 14:47:32
waiting for a volume to be created, either by external provisioner "zfs.csi.openebs.io" or manually created by system administrator
2023-08-06 14:47:32
waiting for a volume to be created, either by external provisioner "zfs.csi.openebs.io" or manually created by system administrator
2023-08-06 14:47:20
Readiness probe failed: HTTP probe failed with statuscode: 500
2023-08-06 14:47:19
Readiness probe failed: Get "http://172.16.0.123:8000/readyz": dial tcp 172.16.0.123:8000: connect: connection refused
2023-08-06 14:47:18
Created container postgres
2023-08-06 14:47:18
Started container postgres
2023-08-06 14:47:15
Created container bootstrap-controller
2023-08-06 14:47:15
Started container bootstrap-controller
2023-08-06 14:47:15
Container image "ghcr.io/cloudnative-pg/postgresql:15.2" already present on machine
2023-08-06 14:47:13
Add eth0 [172.16.0.123/16] from ix-net
2023-08-06 14:47:13
Container image "ghcr.io/cloudnative-pg/cloudnative-pg:1.19.0" already present on machine
2023-08-06 14:47:11
Job completed
2023-08-06 14:47:11
Successfully assigned ix-homeassistant/homeassistant-home-assistant-cnpg-main-1 to ix-truenas
2023-08-06 14:47:05
Created container initdb
2023-08-06 14:47:05
Started container initdb
2023-08-06 14:47:03
Container image "ghcr.io/cloudnative-pg/postgresql:15.2" already present on machine
2023-08-06 14:47:02
Created container bootstrap-controller
2023-08-06 14:47:02
Started container bootstrap-controller
2023-08-06 14:47:00
Add eth0 [172.16.0.122/16] from ix-net
2023-08-06 14:47:00
Container image "ghcr.io/cloudnative-pg/cloudnative-pg:1.19.0" already present on machine
2023-08-06 14:47:00
Created container pgbouncer
2023-08-06 14:47:00
Created container pgbouncer
2023-08-06 14:47:00
Started container pgbouncer
2023-08-06 14:47:00
Started container pgbouncer
2023-08-06 14:47:00
Readiness probe failed: dial tcp 172.16.0.121:5432: connect: connection refused
2023-08-06 14:46:59
Started container homeassistant-home-assistant-system-cnpg-wait
2023-08-06 14:46:59
Container image "ghcr.io/cloudnative-pg/pgbouncer:1.18.0" already present on machine
2023-08-06 14:46:59
Container image "ghcr.io/cloudnative-pg/pgbouncer:1.18.0" already present on machine
2023-08-06 14:46:58
Started container bootstrap-controller
2023-08-06 14:46:58
Started container bootstrap-controller
2023-08-06 14:46:58
Created container homeassistant-home-assistant-system-cnpg-wait
2023-08-06 14:46:57
Updated LoadBalancer with new IPs: [] -> [192.168.1.204]
2023-08-06 14:46:57
Successfully assigned ix-homeassistant/homeassistant-home-assistant-cnpg-main-1-initdb-dxmj9 to ix-truenas
2023-08-06 14:46:57
Created container bootstrap-controller
2023-08-06 14:46:57
Created container bootstrap-controller
2023-08-06 14:46:56
Scaled up replica set homeassistant-home-assistant-cnpg-main-rw-66fdf947c7 to 2
2023-08-06 14:46:56
Created pod: homeassistant-home-assistant-cnpg-main-rw-66fdf947c7-9cctk
2023-08-06 14:46:56
Created pod: homeassistant-home-assistant-cnpg-main-rw-66fdf947c7-ch4gl
2023-08-06 14:46:56
Successfully assigned ix-homeassistant/homeassistant-home-assistant-cnpg-main-rw-66fdf947c7-9cctk to ix-truenas
2023-08-06 14:46:56
Successfully assigned ix-homeassistant/homeassistant-home-assistant-cnpg-main-rw-66fdf947c7-ch4gl to ix-truenas
2023-08-06 14:46:56
Add eth0 [172.16.0.119/16] from ix-net
2023-08-06 14:46:56
Container image "tccr.io/truecharts/db-wait-postgres:1.1.0@sha256:a163c7836d7bb436a428f5d55bbba0eb73bcdb9bc202047e2523bbb539c113e6" already present on machine
2023-08-06 14:46:56
Successfully provisioned volume pvc-78cda2dd-97d1-4cda-9203-9ce23bea065b
2023-08-06 14:46:56
Successfully provisioned volume pvc-033ce5bb-1f93-439e-8e1e-b5b73448bf45
2023-08-06 14:46:56
Add eth0 [172.16.0.120/16] from ix-net
2023-08-06 14:46:56
Add eth0 [172.16.0.121/16] from ix-net
2023-08-06 14:46:56
Container image "ghcr.io/cloudnative-pg/cloudnative-pg:1.19.0" already present on machine
2023-08-06 14:46:56
Container image "ghcr.io/cloudnative-pg/cloudnative-pg:1.19.0" already present on machine
2023-08-06 14:46:55
Job completed
2023-08-06 14:46:55
Ensuring load balancer
2023-08-06 14:46:55
Applied LoadBalancer DaemonSet kube-system/svclb-homeassistant-home-assistant-a1246a41
2023-08-06 14:46:55
Scaled up replica set homeassistant-home-assistant-7d699954f5 to 1
2023-08-06 14:46:55
Created pod: homeassistant-home-assistant-7d699954f5-cj9j8
2023-08-06 14:46:55
Successfully assigned ix-homeassistant/homeassistant-home-assistant-7d699954f5-cj9j8 to ix-truenas
2023-08-06 14:46:55
Creating PodDisruptionBudget homeassistant-home-assistant-cnpg-main-primary
2023-08-06 14:46:55
No matching pods found
2023-08-06 14:46:55
Creating ServiceAccount
2023-08-06 14:46:55
Creating Cluster Role
2023-08-06 14:46:55
Primary instance (initdb)
2023-08-06 14:46:55
External provisioner is provisioning volume for claim "ix-homeassistant/homeassistant-home-assistant-cnpg-main-1"
2023-08-06 14:46:55
External provisioner is provisioning volume for claim "ix-homeassistant/homeassistant-home-assistant-cnpg-main-1-wal"
2023-08-06 14:46:55
waiting for a volume to be created, either by external provisioner "zfs.csi.openebs.io" or manually created by system administrator
2023-08-06 14:46:55
waiting for a volume to be created, either by external provisioner "zfs.csi.openebs.io" or manually created by system administrator
2023-08-06 14:46:55
Created pod: homeassistant-home-assistant-cnpg-main-1-initdb-dxmj9
2023-08-06 14:46:55
0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims. preemption: 0/1 nodes are available: 1 Preemption is not helpful for scheduling.
2023-08-06 14:46:49
Started container homeassistant-home-assistant-manifests
2023-08-06 14:46:48
Created container homeassistant-home-assistant-manifests
2023-08-06 14:46:47
Add eth0 [172.16.0.117/16] from ix-net
2023-08-06 14:46:47
Container image "tccr.io/truecharts/kubectl:v1.26.0@sha256:323ab7aa3e7ce84c024df79d0f364282c1135499298f54be2ade46508a116c4b" already present on machine
2023-08-06 14:46:46
Created pod: homeassistant-home-assistant-manifests-tzn26
2023-08-06 14:46:46
Successfully assigned ix-homeassistant/homeassistant-home-assistant-manifests-tzn26 to ix-truenas

Application Logs

Nothing eventful, container runs cleanly on version 19.0.37.

Application Configuration

All default except for host-path for storage and adding USB Matter/Zigbee controller

Describe the bug

Version 19.0.37 is the last version that will install cleanly or upgrade to, version 20.0.0 fails to install complaining that CN-PG needs to be installed first.

Error: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/middlewared/job.py", line 428, in run await self.future File "/usr/lib/python3/dist-packages/middlewared/job.py", line 463, in __run_body rv = await self.method(*([self] + args)) File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1378, in nf return await func(*args, **kwargs) File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1246, in nf res = await f(*args, **kwargs) File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/upgrade.py", line 115, in upgrade await self.upgrade_chart_release(job, release, options) File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/upgrade.py", line 298, in upgrade_chart_release await self.middleware.call('chart.release.helm_action', release_name, chart_path, config, 'upgrade') File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1395, in call return await self._call( File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1355, in _call return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args) File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1258, in run_in_executor return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs)) File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/helm.py", line 44, in helm_action raise CallError(f'Failed to {tn_action} chart release: {stderr.decode()}') middlewared.service_exception.CallError: [EFAULT] Failed to upgrade chart release: Error: UPGRADE FAILED: execution error at (home-assistant/templates/common.yaml:2:4): Operator [cloudnative-pg] has to be installed first

To Reproduce

  1. Try to install version 20.0.0 or try to upgrade from 19.0.37 to 20.0.0.

Expected Behavior

Successful upgrade.

Screenshots

image

Additional Context

Actually on TrueNAS-SCALE-22.12.3.3 but there is no dropdown for 22.12.3 available

I've read and agree with the following

StevenMcElligott commented 1 year ago

https://truecharts.org/news/operator-changes

Not a bug

STiCory commented 1 year ago

https://truecharts.org/news/operator-changes

Not a bug

Will this new "CNPG operator" permit the use of stopping and starting containers from the Truenas GUI in this case? How did I miss this? I feel like this would be a "breaking change"?

StevenMcElligott commented 1 year ago

Any major versions, aka 19 to 20, are possible breaking changes based on semVer, and no, that's because ix/TrueNAS chose not to support and operators so we have to do other things, notable the stopall inside the Edit screen

Feel free to read this -> https://truecharts.org/news/metallb-changes

And this -> https://truecharts.org/news/stop-all

STiCory commented 1 year ago

Any major versions, aka 19 to 20, are possible breaking changes based on semVer, and no, that's because ix/TrueNAS chose not to support and operators so we have to do other things, notable the stopall inside the Edit screen

Feel free to read this -> https://truecharts.org/news/metallb-changes

And this -> https://truecharts.org/news/stop-all

Wow. This is a lot of really good info, thank you for sharing - I'm definitely new to this so this was very helpful! I went through and successfully upgraded to version 20.0.0! Homeassistant is the only app that is using CN-PG.

Just one question - the cloudnative-pg and prometheus operator apps must be running forever now, right?

truecharts-admin commented 1 year ago

This issue is locked to prevent necro-posting on closed issues. Please create a new issue or contact staff on discord of the problem persists