Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [Immich] Freshly installed addon not starting. #1676

Open
CForChrisProooo opened this issue Dec 19, 2024 · 3 comments
Open

🐛 [Immich] Freshly installed addon not starting. #1676

CForChrisProooo opened this issue Dec 19, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@CForChrisProooo
Copy link

Description

Addon does not start after being installed.

Reproduction steps

1.Install addon.
2.Start addon

Addon Logs

Starting...
/etc/cont-init.d/00-banner.sh: executing
-----------------------------------------------------------
 Add-on: Immich
 Self-hosted photo and video backup solution directly from your mobile phone
-----------------------------------------------------------
 Add-on version: 1.122.3
 You are running the latest version of this add-on.
 System: Home Assistant OS 13.2  (amd64 / qemux86-64)
 Home Assistant Core: 2024.11.3
 Home Assistant Supervisor: 2024.12.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
-----------------------------------------------------------
 Provided by: https://github.com/alexbelgium/hassio-addons 
-----------------------------------------------------------
/etc/cont-init.d/00-global_var.sh: executing
DB_DATABASE_NAME='immich'
DB_HOSTNAME='homeassistant.local'
DB_PASSWORD=******
DB_PORT='5432'
DB_USERNAME='postgres'
DISABLE_MACHINE_LEARNING='false'
JWT_SECRET='jt+OVWY6WqKJXw3xF5qOxN5L5/f4u2jlIlCQgWS3E4w='
TZ='Europe/Paris'
data_location='/share/immich'
/etc/cont-init.d/00-local_mounts.sh: executing
/etc/cont-init.d/00-smb_mounts.sh: executing
/etc/cont-init.d/01-config_yaml.sh: executing
Setting permissions for the config.yaml directory
Load environment variables from /config/addons_config/immich/config.yaml if existing
If accessing the file with filebrowser it should be mapped to /homeassistant/addons_config/immich/config.yaml
---------------------------------------------------------
Wiki here on how to use : github.com/alexbelgium/hassio-addons/wiki/Add‐ons-feature-:-add-env-variables
... no env variables found, exiting
/etc/cont-init.d/01-custom_script.sh: executing
Execute /homeassistant/addons_autoscripts/immich.sh if existing
Wiki here : github.com/alexbelgium/hassio-addons/wiki/Add-ons-feature-:-customisation
/etc/cont-init.d/20-folders.sh: executing
[07:45:09] INFO: Setting data location
... check /share/immich folder exists
... setting permissions
chown: invalid user: ‘null:null’
Error : /etc/cont-init.d/20-folders.sh exiting 1
/etc/cont-init.d/99-run.sh: executing
[07:45:10] INFO: Setting variables
DB_DATABASE_NAME='immich'
DB_HOSTNAME='homeassistant.local'
DB_PASSWORD=******
DB_PORT='5432'
DB_USERNAME='postgres'
DISABLE_MACHINE_LEARNING='false'
JWT_SECRET='jt+OVWY6WqKJXw3xF5qOxN5L5/f4u2jlIlCQgWS3E4w='
TZ='Europe/Paris'
data_location='/share/immich'
[07:45:10] INFO: Defining database
[07:45:10] INFO: -----------------
[07:45:10] INFO: Connecting to external postgresql
[07:45:10] INFO: 
psql: error: could not translate host name "homeassistant.local" to address: No address associated with hostname
Starting the upstream container
[mod-init] Running Docker Modification Logic
[mod-init] Adding imagegenius/mods:universal-redis to container
[mod-init] Downloading imagegenius/mods:universal-redis from registry-1.docker.io
[mod-init] Installing imagegenius/mods:universal-redis
[mod-init] imagegenius/mods:universal-redis applied to container
[migrations] started
[migrations] no migrations found
╔═══════════════════════════════╗
       __  _____ _____       __
      / / |_   _/ ____|     / /
     / /    | || |  __     / /
    / /     | || | |_ |   / /
   / /     _| || |__| |  / /
  /_/     |_____\_____| /_/
  Baseimage from linuxserver.io
╠═══════════════════════════════╣
  User/Group ID:
  User UID: 0
  User GID: 0
╚═══════════════════════════════╝
**** Adding redis to package install list ****
[pkg-install-init] **** Installing all mod packages ****
Hit:1 http://apt.postgresql.org/pub/repos/apt noble-pgdg InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble InRelease
Get:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Get:4 http://archive.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Hit:5 http://archive.ubuntu.com/ubuntu oracular InRelease
Get:6 http://archive.ubuntu.com/ubuntu noble-updates/restricted Sources [27.6 kB]
Get:7 http://archive.ubuntu.com/ubuntu noble-updates/main Sources [399 kB]
Get:8 http://archive.ubuntu.com/ubuntu noble-updates/universe Sources [481 kB]
Get:9 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1,209 kB]
Get:10 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [953 kB]
Get:11 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [724 kB]
Get:12 http://archive.ubuntu.com/ubuntu noble-security/restricted Sources [25.5 kB]
Get:13 http://archive.ubuntu.com/ubuntu noble-security/universe Sources [372 kB]
Get:14 http://archive.ubuntu.com/ubuntu noble-security/main Sources [171 kB]
Get:15 http://archive.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [707 kB]
Get:16 http://archive.ubuntu.com/ubuntu noble-security/universe amd64 Packages [984 kB]
Get:17 http://archive.ubuntu.com/ubuntu noble-security/main amd64 Packages [708 kB]
Fetched 7,012 kB in 5s (1,493 kB/s)
Reading package lists...
W: http://apt.postgresql.org/pub/repos/apt/dists/noble-pgdg/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libatomic1 libjemalloc2 liblzf1 redis-tools
Suggested packages:
  ruby-redis
The following NEW packages will be installed:
  libatomic1 libjemalloc2 liblzf1 redis-server redis-tools
0 upgraded, 5 newly installed, 0 to remove and 7 not upgraded.
Need to get 1,491 kB of archives.
After this operation, 7,608 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libatomic1 amd64 14.2.0-4ubuntu2~24.04 [10.5 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble/universe amd64 libjemalloc2 amd64 5.3.0-2build1 [256 kB]
Get:3 http://archive.ubuntu.com/ubuntu noble/universe amd64 liblzf1 amd64 3.6-4 [7,624 B]
Get:4 http://archive.ubuntu.com/ubuntu noble/universe amd64 redis-tools amd64 5:7.0.15-1build2 [1,165 kB]
Get:5 http://archive.ubuntu.com/ubuntu noble/universe amd64 redis-server amd64 5:7.0.15-1build2 [51.7 kB]
Fetched 1,491 kB in 3s (539 kB/s)
Selecting previously unselected package libatomic1:amd64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 23046 files and directories currently installed.)
Preparing to unpack .../libatomic1_14.2.0-4ubuntu2~24.04_amd64.deb ...
Unpacking libatomic1:amd64 (14.2.0-4ubuntu2~24.04) ...
Selecting previously unselected package libjemalloc2:amd64.
Preparing to unpack .../libjemalloc2_5.3.0-2build1_amd64.deb ...
Unpacking libjemalloc2:amd64 (5.3.0-2build1) ...
Selecting previously unselected package liblzf1:amd64.
Preparing to unpack .../liblzf1_3.6-4_amd64.deb ...
Unpacking liblzf1:amd64 (3.6-4) ...
Selecting previously unselected package redis-tools.
Preparing to unpack .../redis-tools_5%3a7.0.15-1build2_amd64.deb ...
Unpacking redis-tools (5:7.0.15-1build2) ...
Selecting previously unselected package redis-server.
Preparing to unpack .../redis-server_5%3a7.0.15-1build2_amd64.deb ...
Unpacking redis-server (5:7.0.15-1build2) ...
Setting up libjemalloc2:amd64 (5.3.0-2build1) ...
Setting up liblzf1:amd64 (3.6-4) ...
Setting up libatomic1:amd64 (14.2.0-4ubuntu2~24.04) ...
Setting up redis-tools (5:7.0.15-1build2) ...
Setting up redis-server (5:7.0.15-1build2) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
[custom-init] No custom files found, skipping...
Starting api worker
[Nest] 1147  - 12/19/2024, 7:46:48 AM     LOG [NestFactory] Starting Nest application...
[Nest] 1147  - 12/19/2024, 7:46:48 AM     LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 1147  - 12/19/2024, 7:46:48 AM     LOG [InstanceLoader] OpenTelemetryModule dependencies initialized +0ms
[Nest] 1147  - 12/19/2024, 7:46:48 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 1147  - 12/19/2024, 7:46:48 AM     LOG [InstanceLoader] OpenTelemetryCoreModule dependencies initialized +0ms
[Nest] 1147  - 12/19/2024, 7:46:48 AM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
[Nest] 1147  - 12/19/2024, 7:46:48 AM     LOG [InstanceLoader] ClsModule dependencies initialized +0ms
[Nest] 1147  - 12/19/2024, 7:46:48 AM     LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms
[Nest] 1147  - 12/19/2024, 7:46:48 AM     LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 1147  - 12/19/2024, 7:46:48 AM     LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 1147  - 12/19/2024, 7:46:48 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1147  - 12/19/2024, 7:46:48 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (2)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1147  - 12/19/2024, 7:46:48 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (3)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1147  - 12/19/2024, 7:46:48 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (4)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1147  - 12/19/2024, 7:46:48 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (5)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1147  - 12/19/2024, 7:46:48 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (6)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1147  - 12/19/2024, 7:46:48 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (7)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1147  - 12/19/2024, 7:46:48 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (8)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1147  - 12/19/2024, 7:46:48 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (9)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1147  - 12/19/2024, 7:46:48 AM   ERROR [ExceptionHandler] getaddrinfo ENOTFOUND homeassistant.local
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
api worker exited with code 1
Starting api worker
[Nest] 1282  - 12/19/2024, 7:47:57 AM     LOG [NestFactory] Starting Nest application...
[Nest] 1282  - 12/19/2024, 7:47:57 AM     LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 1282  - 12/19/2024, 7:47:57 AM     LOG [InstanceLoader] OpenTelemetryModule dependencies initialized +0ms
[Nest] 1282  - 12/19/2024, 7:47:57 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 1282  - 12/19/2024, 7:47:57 AM     LOG [InstanceLoader] OpenTelemetryCoreModule dependencies initialized +1ms
[Nest] 1282  - 12/19/2024, 7:47:57 AM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
[Nest] 1282  - 12/19/2024, 7:47:57 AM     LOG [InstanceLoader] ClsModule dependencies initialized +0ms
[Nest] 1282  - 12/19/2024, 7:47:57 AM     LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms
[Nest] 1282  - 12/19/2024, 7:47:57 AM     LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 1282  - 12/19/2024, 7:47:57 AM     LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 1282  - 12/19/2024, 7:47:57 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1282  - 12/19/2024, 7:47:57 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (2)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1282  - 12/19/2024, 7:47:57 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (3)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1282  - 12/19/2024, 7:47:57 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (4)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1282  - 12/19/2024, 7:47:57 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (5)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1282  - 12/19/2024, 7:47:57 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (6)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1282  - 12/19/2024, 7:47:57 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (7)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1282  - 12/19/2024, 7:47:57 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (8)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1282  - 12/19/2024, 7:47:57 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (9)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1282  - 12/19/2024, 7:47:57 AM   ERROR [ExceptionHandler] getaddrinfo ENOTFOUND homeassistant.local
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
api worker exited with code 1
Starting api worker
[Nest] 1417  - 12/19/2024, 7:49:05 AM     LOG [NestFactory] Starting Nest application...
[Nest] 1417  - 12/19/2024, 7:49:05 AM     LOG [InstanceLoader] BullModule dependencies initialized +2ms
[Nest] 1417  - 12/19/2024, 7:49:05 AM     LOG [InstanceLoader] OpenTelemetryModule dependencies initialized +0ms
[Nest] 1417  - 12/19/2024, 7:49:05 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 1417  - 12/19/2024, 7:49:05 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1417  - 12/19/2024, 7:49:05 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (2)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1417  - 12/19/2024, 7:49:05 AM     LOG [InstanceLoader] OpenTelemetryCoreModule dependencies initialized +0ms
[Nest] 1417  - 12/19/2024, 7:49:05 AM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
[Nest] 1417  - 12/19/2024, 7:49:05 AM     LOG [InstanceLoader] ClsModule dependencies initialized +0ms
[Nest] 1417  - 12/19/2024, 7:49:05 AM     LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms
[Nest] 1417  - 12/19/2024, 7:49:05 AM     LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 1417  - 12/19/2024, 7:49:05 AM     LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 1417  - 12/19/2024, 7:49:05 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (3)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1417  - 12/19/2024, 7:49:05 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (4)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1417  - 12/19/2024, 7:49:05 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (5)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1417  - 12/19/2024, 7:49:05 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (6)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1417  - 12/19/2024, 7:49:05 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (7)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1417  - 12/19/2024, 7:49:05 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (8)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1417  - 12/19/2024, 7:49:05 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (9)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1417  - 12/19/2024, 7:49:05 AM   ERROR [ExceptionHandler] getaddrinfo ENOTFOUND homeassistant.local
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
api worker exited with code 1
Starting api worker
[Nest] 1545  - 12/19/2024, 7:50:14 AM     LOG [NestFactory] Starting Nest application...
[Nest] 1545  - 12/19/2024, 7:50:14 AM     LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 1545  - 12/19/2024, 7:50:14 AM     LOG [InstanceLoader] OpenTelemetryModule dependencies initialized +1ms
[Nest] 1545  - 12/19/2024, 7:50:14 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 1545  - 12/19/2024, 7:50:14 AM     LOG [InstanceLoader] OpenTelemetryCoreModule dependencies initialized +0ms
[Nest] 1545  - 12/19/2024, 7:50:14 AM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
[Nest] 1545  - 12/19/2024, 7:50:14 AM     LOG [InstanceLoader] ClsModule dependencies initialized +1ms
[Nest] 1545  - 12/19/2024, 7:50:14 AM     LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms
[Nest] 1545  - 12/19/2024, 7:50:14 AM     LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 1545  - 12/19/2024, 7:50:14 AM     LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 1545  - 12/19/2024, 7:50:14 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1545  - 12/19/2024, 7:50:14 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (2)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1545  - 12/19/2024, 7:50:14 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (3)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1545  - 12/19/2024, 7:50:14 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (4)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1545  - 12/19/2024, 7:50:14 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (5)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1545  - 12/19/2024, 7:50:14 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (6)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1545  - 12/19/2024, 7:50:14 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (7)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1545  - 12/19/2024, 7:50:14 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (8)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1545  - 12/19/2024, 7:50:14 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (9)...
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
[Nest] 1545  - 12/19/2024, 7:50:14 AM   ERROR [ExceptionHandler] getaddrinfo ENOTFOUND homeassistant.local
Error: getaddrinfo ENOTFOUND homeassistant.local
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
api worker exited with code 1
Starting api worker

Architecture

amd64

OS

HAos

@CForChrisProooo CForChrisProooo added the bug Something isn't working label Dec 19, 2024
@alexbelgium
Copy link
Owner

Hi have you installed postgres?

@CForChrisProooo
Copy link
Author

Yes.

` Add-on: Postgres 15
Postgres 15 with pgvecto.rs support

Add-on version: 15.7-4
You are running the latest version of this add-on.
System: Home Assistant OS 14.0 (amd64 / qemux86-64)
Home Assistant Core: 2024.11.3
Home Assistant Supervisor: 2024.12.0

Please, share the above information when looking for help
or support in, e.g., GitHub, forums

Provided by: https://github.com/alexbelgium/hassio-addons

/etc/cont-init.d/00-global_var.sh: executing
POSTGRES_PASSWORD=******
Timezone set from Etc/UTC to Australia/Brisbane
/etc/cont-init.d/01-config_yaml.sh: executing
Setting permissions for the config.yaml directory
Load environment variables from /config/config.yaml if existing
If accessing the file with filebrowser it should be mapped to /addon_configs/db21ed7f_postgres/config.yaml

Wiki here on how to use : github.com/alexbelgium/hassio-addons/wiki/Add‐ons-feature-:-add-env-variables
... no env variables found, exiting
/etc/cont-init.d/01-custom_script.sh: executing
Execute /addon_configs/db21ed7f_postgres/postgres.sh if existing
Wiki here : github.com/alexbelgium/hassio-addons/wiki/Add-ons-feature-:-customisation
/etc/cont-init.d/20-folders.sh: executing
/etc/cont-init.d/99-run.sh: executing
[19:02:01] WARNING: Using existing config.env file in /config.
[19:02:01] INFO: Starting the app
Everything started!
[19:02:01] INFO: Waiting for port 5432 to open...
PostgreSQL Database directory appears to contain a database; Skipping initialization
2024-12-19 19:02:01.496 AEST [212] LOG: starting PostgreSQL 15.7 (Debian 15.7-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-12-19 19:02:01.496 AEST [212] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-12-19 19:02:01.496 AEST [212] LOG: listening on IPv6 address "::", port 5432
2024-12-19 19:02:01.502 AEST [212] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-12-19 19:02:01.509 AEST [243] LOG: database system was shut down at 2024-12-19 19:01:59 AEST
2024-12-19 19:02:01.516 AEST [212] LOG: database system is ready to accept connections
2024-12-19 19:02:01.970 AEST [251] LOG: incomplete startup packet
[19:02:01] INFO: Enabling vector.rs
NOTICE: extension "vectors" does not exist, skipping`

@jcastro
Copy link

jcastro commented Dec 20, 2024

Same was happening to me, fully restarted HA and now it seems to be working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants