[BUG] Web server error at loading on fresh installs (error loading dynamically imported module: http://192.168.2.160:2283/_app/immutable/nodes/20.17a3e120.js (500)) #1684

Closed
opened 2026-02-05 03:07:56 +03:00 by OVERLORD · 9 comments
Owner

Originally created by @T13nou on GitHub (Nov 24, 2023).

The bug

Hi !

My context : I use Immich on a Proxmox container. The version 1.87 was running fine.

I decided to run a new container for Immich 1.88 with updated .yml files.

Installation is OK but when I go into the web URL I have an error message

"error loading dynamically imported module: http://192.168.2.160:2283/_app/immutable/nodes/20.17a3e120.js (500)"

Screenshot_20231124_120002

The OS that Immich Server is running on

Ubuntu 22.04 LXC Container

Version of Immich Server

v1.88

Version of Immich Mobile App

v1.88

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

version: "3.8"

#
# WARNING: Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.
#

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    command: [ "start.sh", "immich" ]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - 2283:3001
    depends_on:
      - redis
      - database
      - typesense
    restart: always

  immich-microservices:
    container_name: immich_microservices
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    extends:
       file: hwaccel.yml
       service: hwaccel
    command: [ "start.sh", "microservices" ]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    depends_on:
      - redis
      - database
      - typesense
    restart: always

  immich-machine-learning:
    container_name: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always

  typesense:
    container_name: immich_typesense
    image: typesense/typesense:0.24.1@sha256:9bcff2b829f12074426ca044b56160ca9d777a
0c488303469143dd9f8259d4dd
    environment:
      - TYPESENSE_API_KEY=${TYPESENSE_API_KEY}
      - TYPESENSE_DATA_DIR=/data
      # remove this to get debug messages
      - GLOG_minloglevel=1
    volumes:
      - tsdata:/data
    restart: always

  redis:
    container_name: immich_redis
    image: redis:6.2-alpine@sha256:80cc8518800438c684a53ed829c621c94afd1087aaeb59b0
d4343ed3e7bcf6c5
    restart: always

  database:
    container_name: immich_postgres
    image: postgres:14-alpine@sha256:50d9be76e9a90da4c781554955e0ffc79d9d5c4226838e
64b36aacc97cbc35ad
    env_file:
      - .env
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
    volumes:
      - pgdata:/var/lib/postgresql/data
    restart: always

volumes:
  pgdata:
  model-cache:
  tsdata:

Your .env content

# You can find documentation for all the supported env variables at https://immich.
app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=./library

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secrets for postgres and typesense. You should change these to random 
passwords
TYPESENSE_API_KEY=some-random-text
DB_PASSWORD=postgres

# The values below this line do not need to be changed
###################################################################################
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

REDIS_HOSTNAME=immich_redis

Reproduction steps

1. Install Immich
2. Go to Web Interface
3. See the error message "error loading dynamically imported module: http://192.168.2.160:2283/_app/immutable/nodes/20.17a3e120.js (500)"

Additional information

No response

Originally created by @T13nou on GitHub (Nov 24, 2023). ### The bug Hi ! My context : I use Immich on a Proxmox container. The version 1.87 was running fine. I decided to run a new container for Immich 1.88 with updated .yml files. Installation is OK but when I go into the web URL I have an error message "error loading dynamically imported module: http://192.168.2.160:2283/_app/immutable/nodes/20.17a3e120.js (500)" ![Screenshot_20231124_120002](https://github.com/immich-app/immich/assets/64090484/1062845d-8373-4c05-9ab5-ebb1d73a938e) ### The OS that Immich Server is running on Ubuntu 22.04 LXC Container ### Version of Immich Server v1.88 ### Version of Immich Mobile App v1.88 ### Platform with the issue - [ ] Server - [X] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML version: "3.8" # # WARNING: Make sure to use the docker-compose.yml of the current release: # # https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml # # The compose file on main may not be compatible with the latest release. # services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} command: [ "start.sh", "immich" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - .env ports: - 2283:3001 depends_on: - redis - database - typesense restart: always immich-microservices: container_name: immich_microservices image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} extends: file: hwaccel.yml service: hwaccel command: [ "start.sh", "microservices" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - .env depends_on: - redis - database - typesense restart: always immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} volumes: - model-cache:/cache env_file: - .env restart: always typesense: container_name: immich_typesense image: typesense/typesense:0.24.1@sha256:9bcff2b829f12074426ca044b56160ca9d777a 0c488303469143dd9f8259d4dd environment: - TYPESENSE_API_KEY=${TYPESENSE_API_KEY} - TYPESENSE_DATA_DIR=/data # remove this to get debug messages - GLOG_minloglevel=1 volumes: - tsdata:/data restart: always redis: container_name: immich_redis image: redis:6.2-alpine@sha256:80cc8518800438c684a53ed829c621c94afd1087aaeb59b0 d4343ed3e7bcf6c5 restart: always database: container_name: immich_postgres image: postgres:14-alpine@sha256:50d9be76e9a90da4c781554955e0ffc79d9d5c4226838e 64b36aacc97cbc35ad env_file: - .env environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} volumes: - pgdata:/var/lib/postgresql/data restart: always volumes: pgdata: model-cache: tsdata: ``` ### Your .env content ```Shell # You can find documentation for all the supported env variables at https://immich. app/docs/install/environment-variables # The location where your uploaded files are stored UPLOAD_LOCATION=./library # The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=release # Connection secrets for postgres and typesense. You should change these to random passwords TYPESENSE_API_KEY=some-random-text DB_PASSWORD=postgres # The values below this line do not need to be changed ################################################################################### DB_HOSTNAME=immich_postgres DB_USERNAME=postgres DB_DATABASE_NAME=immich REDIS_HOSTNAME=immich_redis ``` ### Reproduction steps ```bash 1. Install Immich 2. Go to Web Interface 3. See the error message "error loading dynamically imported module: http://192.168.2.160:2283/_app/immutable/nodes/20.17a3e120.js (500)" ``` ### Additional information _No response_
Author
Owner

@jrasm91 commented on GitHub (Nov 24, 2023):

Can you try an incognito window, without extensions and see if you get the same issue?

@jrasm91 commented on GitHub (Nov 24, 2023): Can you try an incognito window, without extensions and see if you get the same issue?
Author
Owner

@T13nou commented on GitHub (Nov 24, 2023):

It does work thanks @jrasm91 !

But without incognito mode, still in error ... I'll try to clean the cache :)

@T13nou commented on GitHub (Nov 24, 2023): It does work thanks @jrasm91 ! But without incognito mode, still in error ... I'll try to clean the cache :)
Author
Owner

@jrasm91 commented on GitHub (Nov 24, 2023):

If you hit F12 it should open up the dev console and you could check for errors. Hitting refresh with it open a few times should probably make it reload be content either way

@jrasm91 commented on GitHub (Nov 24, 2023): If you hit F12 it should open up the dev console and you could check for errors. Hitting refresh with it open a few times should probably make it reload be content either way
Author
Owner

@jrasm91 commented on GitHub (Nov 26, 2023):

This can be resolved by clearing your cache.

@jrasm91 commented on GitHub (Nov 26, 2023): This can be resolved by clearing your cache.
Author
Owner

@lslvxy commented on GitHub (Dec 16, 2023):

When I use port forwarding for a public network, it the same error , but using LAN access is normal

@lslvxy commented on GitHub (Dec 16, 2023): When I use port forwarding for a public network, it the same error , but using LAN access is normal
Author
Owner

@jrasm91 commented on GitHub (Dec 16, 2023):

Clear your browser cache and try again it or open an incognito window or open dev tools and do a hard reset or hit f5 a bunch of times.

@jrasm91 commented on GitHub (Dec 16, 2023): Clear your browser cache and try again it or open an incognito window or open dev tools and do a hard reset or hit f5 a bunch of times.
Author
Owner

@lslvxy commented on GitHub (Dec 16, 2023):

I've tried all kinds of methods to no avail, and another problem is that when I use the app to automatically back up, the progress is stuck when it reaches 100%, and I can't complete the photo backup

@lslvxy commented on GitHub (Dec 16, 2023): I've tried all kinds of methods to no avail, and another problem is that when I use the app to automatically back up, the progress is stuck when it reaches 100%, and I can't complete the photo backup
Author
Owner

@lslvxy commented on GitHub (Dec 16, 2023):

Screenshot_20231216-223145_Evolution X Launcher

@lslvxy commented on GitHub (Dec 16, 2023): ![Screenshot_20231216-223145_Evolution X Launcher](https://github.com/immich-app/immich/assets/5688054/f56a3014-14be-442b-9cee-8bf9a4d21bc3)
Author
Owner

@undaunt commented on GitHub (Jan 4, 2024):

@lslvxy see my post https://github.com/immich-app/immich/issues/6057#issuecomment-1877608277

@undaunt commented on GitHub (Jan 4, 2024): @lslvxy see my post https://github.com/immich-app/immich/issues/6057#issuecomment-1877608277
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1684