I
Immich2y ago
Vellu

connect ECONNREFUSED 172.23.0.9:3001 (ECONNREFUSED)

I get this when going to the home page, i just installed this with docker-compose. I am using http Error:
Error: connect ECONNREFUSED 172.23.0.9:3001
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)
Error: connect ECONNREFUSED 172.23.0.9:3001
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)
immich-server:
/usr/src/app/node_modules/@nestjs/config/dist/config.module.js:78
throw new Error(`Config validation error: ${error.message}`);
^
Error: Config validation error: "DB_USERNAME" is required. "DB_PASSWORD" is required. "DB_DATABASE_NAME" is required. "TYPESENSE_API_KEY" is required
at ConfigModule.forRoot (/usr/src/app/node_modules/@nestjs/config/dist/config.module.js:78:23)
at Object.<anonymous> (/usr/src/app/dist/infra/infra.module.js:49:27)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at Object.<anonymous> (/usr/src/app/dist/infra/index.js:19:14)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
/usr/src/app/node_modules/@nestjs/config/dist/config.module.js:78
throw new Error(`Config validation error: ${error.message}`);
^
Error: Config validation error: "DB_USERNAME" is required. "DB_PASSWORD" is required. "DB_DATABASE_NAME" is required. "TYPESENSE_API_KEY" is required
at ConfigModule.forRoot (/usr/src/app/node_modules/@nestjs/config/dist/config.module.js:78:23)
at Object.<anonymous> (/usr/src/app/dist/infra/infra.module.js:49:27)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at Object.<anonymous> (/usr/src/app/dist/infra/index.js:19:14)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
immich-typesense:
protobuf_file.cpp:91] open file failed, path: /data/state/log/log_meta: FILE_ERROR_NOT_FOUND
log.cpp:685] /data/state/log is empty
protobuf_file.cpp:91] open file failed, path: /data/state/meta/raft_meta: FILE_ERROR_NOT_FOUND
protobuf_file.cpp:91] open file failed, path: /data/state/meta/raft_meta: FILE_ERROR_NOT_FOUND
controller.cpp:1454] SIGINT was installed with 1
controller.cpp:1454] SIGINT was installed with 1
raft_server.cpp:570] Single-node with no leader. Resetting peers.
node.cpp:894] node default_group:172.23.0.8:8107:8108 set_peer from 172.23.0.4:8107:8108 to 172.23.0.8:8107:8108
raft_server.cpp:570] Single-node with no leader. Resetting peers.
protobuf_file.cpp:91] open file failed, path: /data/state/log/log_meta: FILE_ERROR_NOT_FOUND
log.cpp:685] /data/state/log is empty
protobuf_file.cpp:91] open file failed, path: /data/state/meta/raft_meta: FILE_ERROR_NOT_FOUND
protobuf_file.cpp:91] open file failed, path: /data/state/meta/raft_meta: FILE_ERROR_NOT_FOUND
controller.cpp:1454] SIGINT was installed with 1
controller.cpp:1454] SIGINT was installed with 1
raft_server.cpp:570] Single-node with no leader. Resetting peers.
node.cpp:894] node default_group:172.23.0.8:8107:8108 set_peer from 172.23.0.4:8107:8108 to 172.23.0.8:8107:8108
raft_server.cpp:570] Single-node with no leader. Resetting peers.
6 Replies
bo0tzz
bo0tzz2y ago
Do you have the .env file as well?
Vellu
VelluOP2y ago
i set the env variables with portainer
No description
bo0tzz
bo0tzz2y ago
Are those passed to the containers as well?
Vellu
VelluOP2y ago
they are the stack env variables, so they should be shared
Alex Tran
Alex Tran2y ago
did you change .env to stack.env?
Vellu
VelluOP2y ago
what do you mean? ohhhhhh i got it, i added
env_file:
- stack.env
env_file:
- stack.env
and it worked

Did you find this page helpful?