Skip to content

Cannot read properties of null (reading 'length') on the media files #32

@C-Fu

Description

@C-Fu

docker compose logs -f

then I initiate a scan on /media/movies

frames          | [Nest] 98  - 04/21/2025, 4:17:23 AM     LOG [RouterExplorer] Mapped {/setup, GET} route +0ms
frames          | [Nest] 98  - 04/21/2025, 4:17:23 AM     LOG [RouterExplorer] Mapped {/*route, GET} route +1ms
frames          | [Nest] 98  - 04/21/2025, 4:17:23 AM     LOG [RouterExplorer] Mapped {/, GET} route +0ms
frames          | [Nest] 98  - 04/21/2025, 4:17:23 AM     LOG [StorageWatcher] Setting watcher to monitor 2 folders
frames          | [Nest] 98  - 04/21/2025, 4:17:23 AM     LOG [PubSubService] Subscribed to channel: PUB_SUB_CHANNEL_NAME
frames          | [Nest] 98  - 04/21/2025, 4:17:23 AM     LOG [PubSubService] Config PubSub service initialized successfully
frames          | [Nest] 98  - 04/21/2025, 4:17:23 AM     LOG [NestApplication] Nest application successfully started +27ms
frames          | [Nest] 98  - 04/21/2025, 4:17:23 AM     LOG [ScannerProcessor] Processing scan all library job: 6
frames          | [Nest] 98  - 04/21/2025, 4:17:52 AM   ERROR [FramesInterceptor] Cannot read properties of null (reading 'length')
frames          | [Nest] 98  - 04/21/2025, 4:17:52 AM   ERROR [FramesInterceptor] Cannot read properties of null (reading 'length')
frames          | [Nest] 98  - 04/21/2025, 4:17:52 AM   ERROR [FramesInterceptor] Cannot read properties of null (reading 'length')
frames          | [Nest] 98  - 04/21/2025, 4:17:55 AM   ERROR [FramesInterceptor] Cannot read properties of null (reading 'length')
frames          | [Nest] 98  - 04/21/2025, 4:18:03 AM     LOG [ScannerProcessor] Processing scan movie library job: 7
frames          | [Nest] 98  - 04/21/2025, 4:18:03 AM     LOG [ScannerProcessor] Finished processing movie job: 7 of library Media

my docker-compose.yml, and yes the password is password since it's just to test

version: '3'

services:
  frames:
    container_name: frames
    image: elevenam/frames:dev
    ports:
      - "3000:3000"
    volumes:
      - /root/media:/media
#      - ./app:/usr/src/app
    environment:
      - DATABASE_URL=postgres://frames:password@frame_postgres:5432/frames
      - DIRECT_DATABASE_URL=postgres://frames:password@frame_postgres:5432/frames
      - REDIS_HOST=frame_redis
      - REDIS_PORT=6379
      - REDIS_TTL=86400
      - REDIS_DB=0
      - JWT_SECRET=password
    depends_on:
      - frame_postgres
      - frame_redis

  frame_postgres:
    container_name: frame_postgres
    image: pgvector/pgvector:pg14
    environment:
      - POSTGRES_USER=frames
      - POSTGRES_PASSWORD=password
      - POSTGRES_DB=frames
    volumes:
      - ./postgres_data:/var/lib/postgresql/data

  frame_redis:
    container_name: frame_redis
    image: redis:alpine
    volumes:
      - ./redis_data:/data

It's running on it's own LXC inside Proxmox, if that matters. Accessing via https://frames.domain.com handled by Nginx Proxy Manager. Not sure why 4 same errors came out when I just clicked on a movie once.

the folder /root/media has changed owner to 1001:1001 via chown -R 1001:1001 since root owner didn't work as well, I figured since if I run docker exec -it frames bash and type in id it returns nestuser(1001).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions