[BUG] Immich behind traefik sometimes work, but most of the time gives 504 error. Local is okay. #314

Closed
opened 2026-02-04 19:35:43 +03:00 by OVERLORD · 7 comments
Owner

Originally created by @stathiskef on GitHub (Sep 18, 2022).

Immich works fine locally. I've tried setting it up with traefik and included the following labels in the proxy container.

Label value
traefik.enable true
traefik.http.routers.immich.entrypoints websecure
traefik.http.routers.immich.rule Host(immich.mydomain.com)
traefik.http.routers.immich.tls.certresolver cfresolver
traefik.http.services.immich.loadbalancer.server.port 8080

On the networks for the proxy container and the server container I have included both the immich default network and traefik's network.
Local always works as expected!
It's online and works fine for a limited amount of time (about a minute each time), and then the Server Status on the bottom left turns to offline and is unresponsive. If I refresh it I get a 504 error.
(All my other online containers routed through traefik work fine, also traefik doesn't give me an error.)

I should also mention that my containers don't have their default names because for some reason docker installs some of them with both a suffix and a prefix. (ex. immich-app_immich-server_1 why does it do that?)

Thank you.

Here is a log from the server container.

[Nest] 7  - 09/18/2022, 9:32:55 AM     LOG [NestFactory] Starting Nest application...
[Nest] 7  - 09/18/2022, 9:32:55 AM     LOG [InstanceLoader] DatabaseModule dependencies initialized +174ms
[Nest] 7  - 09/18/2022, 9:32:55 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:55 AM     LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:55 AM     LOG [InstanceLoader] JwtModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:55 AM     LOG [InstanceLoader] AppModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:55 AM     LOG [InstanceLoader] ConfigHostModule dependencies initialized +0ms
[Nest] 7  - 09/18/2022, 9:32:55 AM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:55 AM     LOG [InstanceLoader] ServerInfoModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:55 AM     LOG [InstanceLoader] ConfigModule dependencies initialized +16ms
[Nest] 7  - 09/18/2022, 9:32:55 AM     LOG [InstanceLoader] ScheduleModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:55 AM     LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:55 AM     LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:55 AM     LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:55 AM     LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:55 AM     LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 7  - 09/18/2022, 9:32:55 AM     LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [InstanceLoader] TypeOrmCoreModule dependencies initialized +526ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [InstanceLoader] CommunicationModule dependencies initialized +2ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [InstanceLoader] ImmichJwtModule dependencies initialized +0ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [InstanceLoader] BackgroundTaskModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [InstanceLoader] ScheduleTasksModule dependencies initialized +0ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [InstanceLoader] DeviceInfoModule dependencies initialized +7ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [InstanceLoader] AuthModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [InstanceLoader] AlbumModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [InstanceLoader] UserModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [InstanceLoader] AssetModule dependencies initialized +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RoutesResolver] AppController {/}: +418ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RoutesResolver] UserController {/user}: +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/user, GET} route +5ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/user/info/:userId, GET} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/user/me, GET} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/user, POST} route +2ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/user/count, GET} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/user, PUT} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/user/profile-image, POST} route +2ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/user/profile-image/:userId, GET} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RoutesResolver] AssetController {/asset}: +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/asset/upload, POST} route +2ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/asset/download, GET} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/asset/file, GET} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/asset/thumbnail/:assetId, GET} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/asset/curated-objects, GET} route +2ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/asset/curated-locations, GET} route +0ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/asset/search-terms, GET} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/asset/search, POST} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/asset/count-by-time-bucket, POST} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/asset/count-by-user-id, GET} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/asset, GET} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/asset/time-bucket, POST} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/asset/:deviceId, GET} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/asset/assetById/:assetId, GET} route +2ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/asset, DELETE} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/asset/check, POST} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RoutesResolver] AuthController {/auth}: +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/auth/login, POST} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/auth/admin-sign-up, POST} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/auth/validateToken, POST} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/auth/logout, POST} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RoutesResolver] DeviceInfoController {/device-info}: +0ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/device-info, POST} route +2ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/device-info, PATCH} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RoutesResolver] ServerInfoController {/server-info}: +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/server-info, GET} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/server-info/ping, GET} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/server-info/version, GET} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RoutesResolver] AlbumController {/album}: +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/album/count-by-user-id, GET} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/album, POST} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/album/:albumId/users, PUT} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/album/:albumId/assets, PUT} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/album, GET} route +0ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/album/:albumId, GET} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/album/:albumId/assets, DELETE} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/album/:albumId, DELETE} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/album/:albumId/user/:userId, DELETE} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [RouterExplorer] Mapped {/album/:albumId, PATCH} route +1ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [NestApplication] Nest application successfully started +52ms
[Nest] 7  - 09/18/2022, 9:32:56 AM     LOG [ImmichServer] Running Immich Server in PRODUCTION environment - version 1.29.0
[Nest] 7  - 09/18/2022, 9:36:29 AM     LOG [WebsocketConnectionEvent] New websocket connection: JssuNX-e_Kt4951NAAAB
[Nest] 7  - 09/18/2022, 9:38:09 AM     LOG [WebsocketConnectionEvent] Client JssuNX-e_Kt4951NAAAB disconnected from Websocket
[Nest] 7  - 09/18/2022, 10:16:04 AM     LOG [WebsocketConnectionEvent] New websocket connection: CM7_jR0-PeKelQw5AAAD
[Nest] 7  - 09/18/2022, 10:16:07 AM     LOG [WebsocketConnectionEvent] Client CM7_jR0-PeKelQw5AAAD disconnected from Websocket
[Nest] 7  - 09/18/2022, 10:36:16 AM     LOG [WebsocketConnectionEvent] New websocket connection: WPj2iEV6Q6tLMfbSAAAF
[Nest] 7  - 09/18/2022, 10:36:32 AM     LOG [WebsocketConnectionEvent] Client WPj2iEV6Q6tLMfbSAAAF disconnected from Websocket
[Nest] 7  - 09/18/2022, 10:36:39 AM     LOG [WebsocketConnectionEvent] New websocket connection: XCg66AXA6aJKnJh7AAAH
[Nest] 7  - 09/18/2022, 10:36:43 AM     LOG [WebsocketConnectionEvent] Client XCg66AXA6aJKnJh7AAAH disconnected from Websocket
[Nest] 7  - 09/18/2022, 1:29:19 PM     LOG [createDeviceInfo] Device Info Exist
[Nest] 7  - 09/18/2022, 1:29:19 PM     LOG [WebsocketConnectionEvent] New websocket connection: 7pN0E1mB9GBNIcm5AAAJ
[Nest] 7  - 09/18/2022, 1:30:06 PM     LOG [WebsocketConnectionEvent] Client 7pN0E1mB9GBNIcm5AAAJ disconnected from Websocket
[Nest] 7  - 09/18/2022, 1:34:55 PM     LOG [createDeviceInfo] Device Info Exist
[Nest] 7  - 09/18/2022, 1:34:55 PM     LOG [WebsocketConnectionEvent] New websocket connection: vMUiCwHVKItlNCVVAAAL
[Nest] 7  - 09/18/2022, 1:35:45 PM     LOG [WebsocketConnectionEvent] Client vMUiCwHVKItlNCVVAAAL disconnected from Websocket
[Nest] 7  - 09/18/2022, 1:52:45 PM     LOG [WebsocketConnectionEvent] New websocket connection: K8Y-n23O21witC3NAAAN
[Nest] 7  - 09/18/2022, 1:53:00 PM     LOG [WebsocketConnectionEvent] Client K8Y-n23O21witC3NAAAN disconnected from Websocket
[Nest] 7  - 09/18/2022, 3:40:14 PM     LOG [WebsocketConnectionEvent] New websocket connection: RebIcJqXVvllzDs0AAAP
[Nest] 7  - 09/18/2022, 3:40:59 PM     LOG [WebsocketConnectionEvent] Client RebIcJqXVvllzDs0AAAP disconnected from Websocket
[Nest] 7  - 09/18/2022, 3:43:24 PM     LOG [createDeviceInfo] Device Info Exist
[Nest] 7  - 09/18/2022, 3:43:25 PM     LOG [WebsocketConnectionEvent] New websocket connection: 0UrUut7LFvCf3yvrAAAR
[Nest] 7  - 09/18/2022, 3:43:33 PM     LOG [WebsocketConnectionEvent] Client 0UrUut7LFvCf3yvrAAAR disconnected from Websocket
[Nest] 7  - 09/18/2022, 3:43:45 PM     LOG [WebsocketConnectionEvent] New websocket connection: 2lBDoPFtUcMDBoavAAAT
[Nest] 7  - 09/18/2022, 3:50:55 PM     LOG [WebsocketConnectionEvent] Client 2lBDoPFtUcMDBoavAAAT disconnected from Websocket
Originally created by @stathiskef on GitHub (Sep 18, 2022). Immich works fine locally. I've tried setting it up with traefik and included the following labels in the proxy container. Label | value -- | -- traefik.enable | true traefik.http.routers.immich.entrypoints | websecure traefik.http.routers.immich.rule | Host(`immich.mydomain.com`) traefik.http.routers.immich.tls.certresolver | cfresolver traefik.http.services.immich.loadbalancer.server.port | 8080 On the networks for the proxy container and the server container I have included both the immich default network and traefik's network. Local always works as expected! It's online and works fine for a limited amount of time (about a minute each time), and then the Server Status on the bottom left turns to offline and is unresponsive. If I refresh it I get a 504 error. (All my other online containers routed through traefik work fine, also traefik doesn't give me an error.) I should also mention that my containers don't have their default names because for some reason docker installs some of them with both a suffix and a prefix. (ex. immich-app_immich-server_1 why does it do that?) Thank you. Here is a log from the server container. ``` [Nest] 7 - 09/18/2022, 9:32:55 AM LOG [NestFactory] Starting Nest application... [Nest] 7 - 09/18/2022, 9:32:55 AM LOG [InstanceLoader] DatabaseModule dependencies initialized +174ms [Nest] 7 - 09/18/2022, 9:32:55 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:55 AM LOG [InstanceLoader] BullModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:55 AM LOG [InstanceLoader] JwtModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:55 AM LOG [InstanceLoader] AppModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:55 AM LOG [InstanceLoader] ConfigHostModule dependencies initialized +0ms [Nest] 7 - 09/18/2022, 9:32:55 AM LOG [InstanceLoader] DiscoveryModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:55 AM LOG [InstanceLoader] ServerInfoModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:55 AM LOG [InstanceLoader] ConfigModule dependencies initialized +16ms [Nest] 7 - 09/18/2022, 9:32:55 AM LOG [InstanceLoader] ScheduleModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:55 AM LOG [InstanceLoader] BullModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:55 AM LOG [InstanceLoader] BullModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:55 AM LOG [InstanceLoader] BullModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:55 AM LOG [InstanceLoader] BullModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:55 AM LOG [InstanceLoader] BullModule dependencies initialized +0ms [Nest] 7 - 09/18/2022, 9:32:55 AM LOG [InstanceLoader] BullModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [InstanceLoader] TypeOrmCoreModule dependencies initialized +526ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [InstanceLoader] CommunicationModule dependencies initialized +2ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [InstanceLoader] ImmichJwtModule dependencies initialized +0ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [InstanceLoader] BackgroundTaskModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [InstanceLoader] ScheduleTasksModule dependencies initialized +0ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [InstanceLoader] DeviceInfoModule dependencies initialized +7ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [InstanceLoader] AuthModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [InstanceLoader] AlbumModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [InstanceLoader] UserModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [InstanceLoader] AssetModule dependencies initialized +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RoutesResolver] AppController {/}: +418ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RoutesResolver] UserController {/user}: +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/user, GET} route +5ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/user/info/:userId, GET} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/user/me, GET} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/user, POST} route +2ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/user/count, GET} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/user, PUT} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/user/profile-image, POST} route +2ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/user/profile-image/:userId, GET} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RoutesResolver] AssetController {/asset}: +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/asset/upload, POST} route +2ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/asset/download, GET} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/asset/file, GET} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/asset/thumbnail/:assetId, GET} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/asset/curated-objects, GET} route +2ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/asset/curated-locations, GET} route +0ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/asset/search-terms, GET} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/asset/search, POST} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/asset/count-by-time-bucket, POST} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/asset/count-by-user-id, GET} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/asset, GET} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/asset/time-bucket, POST} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/asset/:deviceId, GET} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/asset/assetById/:assetId, GET} route +2ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/asset, DELETE} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/asset/check, POST} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RoutesResolver] AuthController {/auth}: +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/auth/login, POST} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/auth/admin-sign-up, POST} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/auth/validateToken, POST} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/auth/logout, POST} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RoutesResolver] DeviceInfoController {/device-info}: +0ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/device-info, POST} route +2ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/device-info, PATCH} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RoutesResolver] ServerInfoController {/server-info}: +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/server-info, GET} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/server-info/ping, GET} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/server-info/version, GET} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RoutesResolver] AlbumController {/album}: +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/album/count-by-user-id, GET} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/album, POST} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/album/:albumId/users, PUT} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/album/:albumId/assets, PUT} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/album, GET} route +0ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/album/:albumId, GET} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/album/:albumId/assets, DELETE} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/album/:albumId, DELETE} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/album/:albumId/user/:userId, DELETE} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [RouterExplorer] Mapped {/album/:albumId, PATCH} route +1ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [NestApplication] Nest application successfully started +52ms [Nest] 7 - 09/18/2022, 9:32:56 AM LOG [ImmichServer] Running Immich Server in PRODUCTION environment - version 1.29.0 [Nest] 7 - 09/18/2022, 9:36:29 AM LOG [WebsocketConnectionEvent] New websocket connection: JssuNX-e_Kt4951NAAAB [Nest] 7 - 09/18/2022, 9:38:09 AM LOG [WebsocketConnectionEvent] Client JssuNX-e_Kt4951NAAAB disconnected from Websocket [Nest] 7 - 09/18/2022, 10:16:04 AM LOG [WebsocketConnectionEvent] New websocket connection: CM7_jR0-PeKelQw5AAAD [Nest] 7 - 09/18/2022, 10:16:07 AM LOG [WebsocketConnectionEvent] Client CM7_jR0-PeKelQw5AAAD disconnected from Websocket [Nest] 7 - 09/18/2022, 10:36:16 AM LOG [WebsocketConnectionEvent] New websocket connection: WPj2iEV6Q6tLMfbSAAAF [Nest] 7 - 09/18/2022, 10:36:32 AM LOG [WebsocketConnectionEvent] Client WPj2iEV6Q6tLMfbSAAAF disconnected from Websocket [Nest] 7 - 09/18/2022, 10:36:39 AM LOG [WebsocketConnectionEvent] New websocket connection: XCg66AXA6aJKnJh7AAAH [Nest] 7 - 09/18/2022, 10:36:43 AM LOG [WebsocketConnectionEvent] Client XCg66AXA6aJKnJh7AAAH disconnected from Websocket [Nest] 7 - 09/18/2022, 1:29:19 PM LOG [createDeviceInfo] Device Info Exist [Nest] 7 - 09/18/2022, 1:29:19 PM LOG [WebsocketConnectionEvent] New websocket connection: 7pN0E1mB9GBNIcm5AAAJ [Nest] 7 - 09/18/2022, 1:30:06 PM LOG [WebsocketConnectionEvent] Client 7pN0E1mB9GBNIcm5AAAJ disconnected from Websocket [Nest] 7 - 09/18/2022, 1:34:55 PM LOG [createDeviceInfo] Device Info Exist [Nest] 7 - 09/18/2022, 1:34:55 PM LOG [WebsocketConnectionEvent] New websocket connection: vMUiCwHVKItlNCVVAAAL [Nest] 7 - 09/18/2022, 1:35:45 PM LOG [WebsocketConnectionEvent] Client vMUiCwHVKItlNCVVAAAL disconnected from Websocket [Nest] 7 - 09/18/2022, 1:52:45 PM LOG [WebsocketConnectionEvent] New websocket connection: K8Y-n23O21witC3NAAAN [Nest] 7 - 09/18/2022, 1:53:00 PM LOG [WebsocketConnectionEvent] Client K8Y-n23O21witC3NAAAN disconnected from Websocket [Nest] 7 - 09/18/2022, 3:40:14 PM LOG [WebsocketConnectionEvent] New websocket connection: RebIcJqXVvllzDs0AAAP [Nest] 7 - 09/18/2022, 3:40:59 PM LOG [WebsocketConnectionEvent] Client RebIcJqXVvllzDs0AAAP disconnected from Websocket [Nest] 7 - 09/18/2022, 3:43:24 PM LOG [createDeviceInfo] Device Info Exist [Nest] 7 - 09/18/2022, 3:43:25 PM LOG [WebsocketConnectionEvent] New websocket connection: 0UrUut7LFvCf3yvrAAAR [Nest] 7 - 09/18/2022, 3:43:33 PM LOG [WebsocketConnectionEvent] Client 0UrUut7LFvCf3yvrAAAR disconnected from Websocket [Nest] 7 - 09/18/2022, 3:43:45 PM LOG [WebsocketConnectionEvent] New websocket connection: 2lBDoPFtUcMDBoavAAAT [Nest] 7 - 09/18/2022, 3:50:55 PM LOG [WebsocketConnectionEvent] Client 2lBDoPFtUcMDBoavAAAT disconnected from Websocket ```
Author
Owner

@alextran1502 commented on GitHub (Sep 18, 2022):

Which operations were you doing when you encountered the error?

Can you share the docker-compose file?

@alextran1502 commented on GitHub (Sep 18, 2022): Which operations were you doing when you encountered the error? Can you share the docker-compose file?
Author
Owner

@stathiskef commented on GitHub (Sep 18, 2022):

Casually scrolling, clicking on pictures. It becomes unresponsive, and then after a random amount of time it comes back alive.

Here is my docker compose file, I added the labels and networks later from portainer:

`
version: "3.8"

services:
immich-server:
image: altran1502/immich-server:release
entrypoint: ["/bin/sh", "./start-server.sh"]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- .env
environment:
- NODE_ENV=production
depends_on:
- redis
- database
restart: always

immich-microservices:
image: altran1502/immich-server:release
entrypoint: ["/bin/sh", "./start-microservices.sh"]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- .env
environment:
- NODE_ENV=production
depends_on:
- redis
- database
restart: always

immich-machine-learning:
image: altran1502/immich-machine-learning:release
entrypoint: ["/bin/sh", "./entrypoint.sh"]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- .env
environment:
- NODE_ENV=production
depends_on:
- database
restart: always

immich-web:
image: altran1502/immich-web:release
entrypoint: ["/bin/sh", "./entrypoint.sh"]
env_file:
- .env
environment:
- PUBLIC_TZ=${TZ}
restart: always

redis:
container_name: immich_redis
image: redis:6.2
restart: always

database:
container_name: immich_postgres
image: postgres:14
env_file:
- .env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
PG_DATA: /var/lib/postgresql/data
volumes:
- pgdata:/var/lib/postgresql/data
restart: always

immich-proxy:
container_name: immich_proxy
image: altran1502/immich-proxy:release
ports:
- 2283:8080
logging:
driver: none
depends_on:
- immich-server
restart: always

volumes:
pgdata:
`

@stathiskef commented on GitHub (Sep 18, 2022): > Casually scrolling, clicking on pictures. It becomes unresponsive, and then after a random amount of time it comes back alive. Here is my docker compose file, I added the labels and networks later from portainer: ` version: "3.8" services: immich-server: image: altran1502/immich-server:release entrypoint: ["/bin/sh", "./start-server.sh"] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload env_file: - .env environment: - NODE_ENV=production depends_on: - redis - database restart: always immich-microservices: image: altran1502/immich-server:release entrypoint: ["/bin/sh", "./start-microservices.sh"] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload env_file: - .env environment: - NODE_ENV=production depends_on: - redis - database restart: always immich-machine-learning: image: altran1502/immich-machine-learning:release entrypoint: ["/bin/sh", "./entrypoint.sh"] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload env_file: - .env environment: - NODE_ENV=production depends_on: - database restart: always immich-web: image: altran1502/immich-web:release entrypoint: ["/bin/sh", "./entrypoint.sh"] env_file: - .env environment: - PUBLIC_TZ=${TZ} restart: always redis: container_name: immich_redis image: redis:6.2 restart: always database: container_name: immich_postgres image: postgres:14 env_file: - .env environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} PG_DATA: /var/lib/postgresql/data volumes: - pgdata:/var/lib/postgresql/data restart: always immich-proxy: container_name: immich_proxy image: altran1502/immich-proxy:release ports: - 2283:8080 logging: driver: none depends_on: - immich-server restart: always volumes: pgdata: `
Author
Owner

@alextran1502 commented on GitHub (Sep 18, 2022):

Hmm on your reverse proxy, I believe you still need to point back to port 2283, not port 8080. Try that

@alextran1502 commented on GitHub (Sep 18, 2022): Hmm on your reverse proxy, I believe you still need to point back to port 2283, not port 8080. Try that
Author
Owner

@alextran1502 commented on GitHub (Sep 18, 2022):

Here is a good thread about Traefik configuration https://github.com/immich-app/immich/discussions/437 for Immich

@alextran1502 commented on GitHub (Sep 18, 2022): Here is a good thread about Traefik configuration https://github.com/immich-app/immich/discussions/437 for Immich
Author
Owner

@stathiskef commented on GitHub (Sep 19, 2022):

Ok, thank you very much. I found the solution. It wasn't a bug at all, I just had to specify traefik to use only its network on the proxy container. The final labels for anyone struggling with traefik are the following:

Labels for the immich_proxy container:

Label Value
traefik.docker.network yourTraefikNetwork
traefik.enable true
traefik.http.routers.immich.entrypoints websecure
traefik.http.routers.immich.rule Host(immich.yourdomain.com)
traefik.http.routers.immich.tls.certresolver cfresolver
traefik.http.services.immich.loadbalancer.server.port 8080
@stathiskef commented on GitHub (Sep 19, 2022): Ok, thank you very much. I found the solution. It wasn't a bug at all, I just had to specify traefik to use only its network on the proxy container. The final labels for anyone struggling with traefik are the following: Labels for the immich_proxy container: Label | Value -- | -- traefik.docker.network | yourTraefikNetwork traefik.enable | true traefik.http.routers.immich.entrypoints | websecure traefik.http.routers.immich.rule | Host(`immich.yourdomain.com`) traefik.http.routers.immich.tls.certresolver | cfresolver traefik.http.services.immich.loadbalancer.server.port | 8080
Author
Owner

@shreyasajj commented on GitHub (Dec 17, 2022):

Could you share your traefik labels with me, im a little confused on what you did to get the proxy to work

@shreyasajj commented on GitHub (Dec 17, 2022): Could you share your traefik labels with me, im a little confused on what you did to get the proxy to work
Author
Owner

@stathiskef commented on GitHub (Dec 17, 2022):

Could you share your traefik labels with me, im a little confused on what you did to get the proxy to work

I put the labels I wrote above, on the immich-proxy container, then I connected it to both the immich network and my traefik network. On the traefik.docker.network label I specified the name of my traefik network.

@stathiskef commented on GitHub (Dec 17, 2022): > Could you share your traefik labels with me, im a little confused on what you did to get the proxy to work I put the labels I wrote above, on the immich-proxy container, then I connected it to both the immich network and my traefik network. On the traefik.docker.network label I specified the name of my traefik network.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#314