Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend: could not load image reason: list index out of range #1268

Open
nzlov opened this issue May 16, 2024 · 0 comments
Open

Backend: could not load image reason: list index out of range #1268

nzlov opened this issue May 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nzlov
Copy link

nzlov commented May 16, 2024

📝 Description of issue:

backend  | ERROR:ownphotos:job 5629b0ee-3d23-4779-8189-aea609bddf8f: could not load image /data/2019/04/MVIMG_20190420_105230.jpg. reason: list index out of range
backend  | Traceback (most recent call last):
backend  |   File "/code/api/directory_watcher.py", line 247, in rescan_image
backend  |     photo._add_location_to_album_dates()
backend  |   File "/code/api/models/photo.py", line 562, in _add_location_to_album_dates
backend  |     city_name = self.geolocation_json["places"][-2]
backend  |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^
backend  | IndexError: list index out of range

Please provide additional information:

  • 💻 Operating system: linux
  • ⚙ Architecture (x86 or ARM): x86
  • 🔢 Librephotos version: 2024w18
  • 📸 Librephotos installation method (Docker, Kubernetes, .deb, etc.): docker
  • 📁 How is you picture library mounted (Local file system (Type), NFS, SMB, etc.): local
version: "3.8"
services:
  proxy:
    image: reallibrephotos/librephotos-proxy:latest
    container_name: librephotos-proxy
    restart: unless-stopped
    volumes:
      - /docs/nextcloud/data/kk/files/Photos:/data/kk
      - /docs/lib/librephotos/protected_media:/protected_media
    ports:
      - 40001:80
    depends_on:
      - backend
      - frontend

  db:
    image: postgres:13
    container_name: librephotos-db
    restart: unless-stopped
    environment:
      - POSTGRES_USER=librephotos
      - POSTGRES_PASSWORD=t20qwf9cjaer
      - POSTGRES_DB=librephotos
    volumes:
      - /docs/lib/librephotos/db:/var/lib/postgresql/data
    command: postgres -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c random_page_cost=1.0

  frontend:
    image: reallibrephotos/librephotos-frontend:latest
    container_name: librephotos-frontend
    restart: unless-stopped
    depends_on:
      - backend

  backend:
    image: reallibrephotos/librephotos:latest
    container_name: backend
    restart: unless-stopped
    volumes:
      - /docs/nextcloud/data/kk/files/Photos:/data/kk
      - /docs/lib/librephotos/protected_media:/protected_media
      - /var/log/librephotos:/logs
      - /var/cache/librephotos:/root/.cache
    environment:
      - SECRET_KEY=
      - BACKEND_HOST=backend
      - DB_BACKEND=postgresql
      - DB_NAME=librephotos
      - DB_USER=librephotos
      - DB_PASS=
      - DB_HOST=librephotos-db
      - DB_PORT=5432
      - REDIS_HOST=librephotos-redis
      - REDIS_PORT=6379
      - DEBUG=0
    # Wait for Postgres
    depends_on:
      - db
      - redis

  redis:
    image: redis:6
    container_name: librephotos-redis
    restart: unless-stopped
@nzlov nzlov added the bug Something isn't working label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant