Closed dodekaphilist closed 2 years ago
While I'm not certain, I think some of the characters in your jwt secret might be illegal. Try just an alphanumeric string.
Edit: after looking at the logs (I missed them the first time), I think you're on an old version of Immich. Make sure to run docker-compose pull
I pulled the latest images and started again, now I'm getting
500 Request failed with status code 502
as error messages after clicking on getting started.
Some new logs:
immich_postgres | 2022-08-24 12:12:31.639 UTC [60] FATAL: password authentication failed for user "immich"
Your database password is wrong.
But how can it be wrong? I literally provide it within the .env file..?
Try deleting the docker volumes (docker-compose down -v
) and starting up again.
Ok somehow this fixed it. Thanks for your help!
Expand
I got the exact same error : "500 Request failed with status code 502"
I use portainer. I created a stack named "immich-app". Just changed the .env with the "JWT_SECRET" and the upload location constant.
@llexaxell is this a fresh installation or your have run the app on this instance of Portainer before? Can you help me get the log for immich-server container?
@alextran1502 Thank you for you work :)
This is the log from the immich-server
<details>
[Nest] 8 - 08/28/2022, 3:40:31 PM LOG [NestFactory] Starting Nest application...
[Nest] 8 - 08/28/2022, 3:40:35 PM LOG [InstanceLoader] DatabaseModule dependencies initialized +4352ms
[Nest] 8 - 08/28/2022, 3:40:35 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 8 - 08/28/2022, 3:40:35 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 8 - 08/28/2022, 3:40:35 PM LOG [InstanceLoader] JwtModule dependencies initialized +1ms
[Nest] 8 - 08/28/2022, 3:40:35 PM LOG [InstanceLoader] AppModule dependencies initialized +1ms
[Nest] 8 - 08/28/2022, 3:40:35 PM LOG [InstanceLoader] ConfigHostModule dependencies initialized +1ms
[Nest] 8 - 08/28/2022, 3:40:35 PM LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
[Nest] 8 - 08/28/2022, 3:40:35 PM LOG [InstanceLoader] ServerInfoModule dependencies initialized +1ms
[Nest] 8 - 08/28/2022, 3:40:35 PM LOG [InstanceLoader] ConfigModule dependencies initialized +11ms
[Nest] 8 - 08/28/2022, 3:40:35 PM LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms
[Nest] 8 - 08/28/2022, 3:40:35 PM LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 8 - 08/28/2022, 3:40:35 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 8 - 08/28/2022, 3:40:35 PM LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 8 - 08/28/2022, 3:40:35 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 8 - 08/28/2022, 3:40:35 PM LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 8 - 08/28/2022, 3:40:35 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 8 - 08/28/2022, 3:40:46 PM LOG [InstanceLoader] TypeOrmCoreModule dependencies initialized +11129ms
[Nest] 8 - 08/28/2022, 3:40:46 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 8 - 08/28/2022, 3:40:46 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 8 - 08/28/2022, 3:40:46 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 8 - 08/28/2022, 3:40:46 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 8 - 08/28/2022, 3:40:46 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 8 - 08/28/2022, 3:40:46 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 8 - 08/28/2022, 3:40:46 PM LOG [InstanceLoader] CommunicationModule dependencies initialized +42ms
[Nest] 8 - 08/28/2022, 3:40:46 PM LOG [InstanceLoader] ImmichJwtModule dependencies initialized +1ms
[Nest] 8 - 08/28/2022, 3:40:46 PM LOG [InstanceLoader] BackgroundTaskModule dependencies initialized +0ms
[Nest] 8 - 08/28/2022, 3:40:46 PM LOG [InstanceLoader] ScheduleTasksModule dependencies initialized +1ms
[Nest] 8 - 08/28/2022, 3:40:46 PM LOG [InstanceLoader] DeviceInfoModule dependencies initialized +6ms
[Nest] 8 - 08/28/2022, 3:40:46 PM LOG [InstanceLoader] AuthModule dependencies initialized +0ms
[Nest] 8 - 08/28/2022, 3:40:46 PM LOG [InstanceLoader] AlbumModule dependencies initialized +1ms
[Nest] 8 - 08/28/2022, 3:40:46 PM LOG [InstanceLoader] UserModule dependencies initialized +0ms
[Nest] 8 - 08/28/2022, 3:40:46 PM LOG [InstanceLoader] AssetModule dependencies initialized +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RoutesResolver] AppController {/}: +5956ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RoutesResolver] UserController {/user}: +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/user, GET} route +4ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/user/info/:userId, GET} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/user/me, GET} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/user, POST} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/user/count, GET} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/user, PUT} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/user/profile-image, POST} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/user/profile-image/:userId, GET} route +0ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RoutesResolver] AssetController {/asset}: +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/asset/upload, POST} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/asset/download, GET} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/asset/file, GET} route +6ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/asset/thumbnail/:assetId, GET} route +2ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/asset/allObjects, GET} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/asset/allLocation, GET} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/asset/searchTerm, GET} route +2ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/asset/search, POST} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/asset, GET} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/asset/:deviceId, GET} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/asset/assetById/:assetId, GET} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/asset, DELETE} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/asset/check, POST} route +2ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RoutesResolver] AuthController {/auth}: +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/auth/login, POST} route +2ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/auth/admin-sign-up, POST} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/auth/validateToken, POST} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/auth/logout, POST} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RoutesResolver] DeviceInfoController {/device-info}: +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/device-info, POST} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/device-info, PATCH} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RoutesResolver] ServerInfoController {/server-info}: +26ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/server-info, GET} route +4ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/server-info/ping, GET} route +5ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/server-info/version, GET} route +3ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RoutesResolver] AlbumController {/album}: +4ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/album, POST} route +2ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/album/:albumId/users, PUT} route +10ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/album/:albumId/assets, PUT} route +2ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/album, GET} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/album/:albumId, GET} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/album/:albumId/assets, DELETE} route +1ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/album/:albumId, DELETE} route +128ms
[Nest] 8 - 08/28/2022, 3:40:52 PM LOG [RouterExplorer] Mapped {/album/:albumId/user/:userId, DELETE} route +2ms
[Nest] 8 - 08/28/2022, 3:40:53 PM LOG [RouterExplorer] Mapped {/album/:albumId, PATCH} route +1ms
[Nest] 8 - 08/28/2022, 3:40:53 PM LOG [NestApplication] Nest application successfully started +121ms
[Nest] 8 - 08/28/2022, 3:40:53 PM LOG [ImmichServer] Running Immich Server in PRODUCTION environment
</details>
@llexaxell The logs look fine.
docker-compose pull immich-web immich-server
?It's not a fresh install but I deleted, the images, the container, the stack, the volume, the network.
When I execute, I have :
docker-compose pull immich-web immich-server
ERROR:
Can't find a suitable configuration file in this directory or any
parent. Are you in the right directory?
Supported filenames: docker-compose.yml, docker-compose.yaml
For the URL : http://192.168.1.24:2283/
Hi @llexaxell, can you show me some logs from immich-web container? What is your current error?
Some container names has changed by appending -1
at last. It may cause immich-proxy can not route correctly to other containers.
I just restarted everything . I have to wait few minutes and it works.
Thanks all for your help !
Description of the bug I tried to setup Immich on my Synology DS220+ NAS with Docker installed but I wasn't able to get it to run, neither the testing installation nor as a custom installation. I tried both the setup in the command line as well as using Portainer, both times receiving the same error message. On the initial screen, I get a message that the version is not up-to-date. Behind this dialog, there are only two lines of text:
I attached the log from the console which got flooded with messages.
Task List
docker-compose
file..env
file.docker-compose.yml .env
To Reproduce Steps to reproduce the behavior:
Expected behavior Login screen
System
DSM 7.1-42661 Update 4
20.10.3-1308
release
Logs
``` Starting immich_postgres ... done Starting immich_immich-web_1 ... done Starting immich_redis ... done Starting immich_immich-machine-learning_1 ... done Starting immich_immich-server_1 ... done Starting immich_immich-microservices_1 ... done Starting immich_proxy ... done Attaching to immich_immich-web_1, immich_postgres, immich_redis, immich_immich-machine-learning_1, immich_immich-server_1, immich_immich-microservices_1 immich-machine-learning_1 | immich-machine-learning_1 | > nest_microservices@0.0.1 prebuild immich-machine-learning_1 | > rimraf dist immich-machine-learning_1 | immich-machine-learning_1 | immich-machine-learning_1 | > nest_microservices@0.0.1 build immich-machine-learning_1 | > nest build immich-machine-learning_1 | immich-web_1 | immich-web_1 | > web@0.0.1 build immich-web_1 | > svelte-kit build immich-web_1 | immich-web_1 | vite v2.9.8 building for production... immich-web_1 | transforming... immich_postgres | immich_postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization immich_postgres | redis_1 | 1:C 24 Aug 2022 09:04:35.766 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo redis_1 | 1:C 24 Aug 2022 09:04:35.766 # Redis version=6.2.7, bits=64, commit=00000000, modified=0, pid=1, just started redis_1 | 1:C 24 Aug 2022 09:04:35.766 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf redis_1 | 1:M 24 Aug 2022 09:04:35.767 * monotonic clock: POSIX clock_gettime redis_1 | 1:M 24 Aug 2022 09:04:35.767 # A key '__redis__compare_helper' was added to Lua globals which is not on the globals allow list nor listed on the deny list. redis_1 | 1:M 24 Aug 2022 09:04:35.768 * Running mode=standalone, port=6379. redis_1 | 1:M 24 Aug 2022 09:04:35.768 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. redis_1 | 1:M 24 Aug 2022 09:04:35.768 # Server initialized redis_1 | 1:M 24 Aug 2022 09:04:35.768 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. redis_1 | 1:M 24 Aug 2022 09:04:35.768 # Can't handle RDB format version 10 redis_1 | 1:M 24 Aug 2022 09:04:35.768 # Fatal error loading the DB: Invalid argument. Exiting. immich_postgres | 2022-08-24 09:04:35.296 UTC [1] LOG: starting PostgreSQL 14.4 (Debian 14.4-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit immich_postgres | 2022-08-24 09:04:35.296 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 immich_postgres | 2022-08-24 09:04:35.296 UTC [1] LOG: listening on IPv6 address "::", port 5432 immich_postgres | 2022-08-24 09:04:35.520 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" immich_postgres | 2022-08-24 09:04:35.830 UTC [27] LOG: database system was shut down at 2022-08-24 09:01:41 UTC immich_postgres | 2022-08-24 09:04:36.019 UTC [1] LOG: database system is ready to accept connections immich-microservices_1 | [Nest] 10 - 08/24/2022, 9:04:51 AM LOG [NestFactory] Starting Nest application... immich-microservices_1 | [Nest] 10 - 08/24/2022, 9:04:51 AM LOG [InstanceLoader] DatabaseModule dependencies initialized +227ms immich-microservices_1 | [Nest] 10 - 08/24/2022, 9:04:51 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +4ms immich-microservices_1 | [Nest] 10 - 08/24/2022, 9:04:51 AM LOG [InstanceLoader] BullModule dependencies initialized +1ms immich-microservices_1 | [Nest] 10 - 08/24/2022, 9:04:51 AM LOG [InstanceLoader] JwtModule dependencies initialized +7ms immich-microservices_1 | [Nest] 10 - 08/24/2022, 9:04:51 AM LOG [InstanceLoader] DiscoveryModule dependencies initialized +1ms immich-microservices_1 | [Nest] 10 - 08/24/2022, 9:04:51 AM LOG [InstanceLoader] BullModule dependencies initialized +48ms immich-microservices_1 | [Nest] 10 - 08/24/2022, 9:04:51 AM LOG [InstanceLoader] BullModule dependencies initialized +2ms immich-microservices_1 | [Nest] 10 - 08/24/2022, 9:04:51 AM LOG [InstanceLoader] BullModule dependencies initialized +2ms immich-microservices_1 | [Nest] 10 - 08/24/2022, 9:04:51 AM LOG [InstanceLoader] BullModule dependencies initialized +5ms immich-microservices_1 | [Nest] 10 - 08/24/2022, 9:04:51 AM LOG [InstanceLoader] BullModule dependencies initialized +1ms immich-microservices_1 | node:events:505 immich-microservices_1 | throw er; // Unhandled 'error' event immich-microservices_1 | ^ immich-microservices_1 | immich-microservices_1 | Error: connect ECONNREFUSED 172.19.0.4:6379 immich-microservices_1 | at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) immich-microservices_1 | Emitted 'error' event on RedisClient instance at: immich-microservices_1 | at RedisClient.on_error (/usr/src/app/node_modules/redis/index.js:342:14) immich-microservices_1 | at Socket.