simon987 / sist2

Lightning-fast file system indexer and search tool
GNU General Public License v3.0
865 stars 55 forks source link

Docker cant find the Doc path? #457

Closed gerroon closed 9 months ago

gerroon commented 9 months ago

Device Information (please complete the following information):

Hi

I am using the docker compose as is. So my documents path is /host/mnt/z/books I login to sist2-sist2-admin-1 to check if I can browse that path, and yes I can browse the path in the docker container. So I assumed that should be the actual path that I put in a task job that I created.

I also tested elastic and the admin panel was able to connect to it.

It returns and error. It seems like it is the wrong path, but how could that be given I test that exact path in the running container?

{"sist2-admin": "Starting sist2 command with args ['/root/sist2', 'index', '/sist2-admin/scan-books-2024-01-12 21:23:56.984741.sist2', '--threads=1', '--es-url=http://elasticsearch:9200', '--es-index=sist2', '--batch-size=70', '--incremental-index', '--json-logs', '--very-verbose']"}
{"thread": "T0", "datetime": "2024-01-12 21:24:12", "level": "FATAL", "filepath": "cli.c", "message": "Invalid PATH argument. File not found: /sist2-admin/scan-books-2024-01-12 21:23:56.984741.sist2"}

docker compose

version: "3"

services:
  elasticsearch:
    image: elasticsearch:7.17.9
    restart: unless-stopped
    environment:
      - "discovery.type=single-node"
      - "ES_JAVA_OPTS=-Xms2g -Xmx2g"
  sist2-admin:
    image: simon987/sist2:3.3.4-x64-linux
    restart: unless-stopped
    volumes:
      - ./sist2-admin-data/:/sist2-admin/
      - /:/host
    ports:
      - 14090:4090 # sist2
      - 13080:8080 # sist2-admin
    working_dir: /root/sist2-admin/
    entrypoint: python3 /root/sist2-admin/sist2_admin/app.py

image

gerroon commented 9 months ago

Hmm, maybe it is not creating the /sist2-admin/scan-books-2024-01-12 21:23:56.984741.sist2 ? Because I do not see such file in the actual container.

EDIT: adding a new tasks with sqlite backend works. So it seem like Elastic is broken in the docker container. Started a new task scanning with the sqlite backend. It will probably take a while.

gerroon commented 9 months ago

The sqlite scan finished but I am unable to create the GUI entry for that scan. The indexer job is listed in the panel but I am unable to click on it so I cant create t.

image

simon987 commented 9 months ago

Can you go to the job page and see what its status is? It will not be selectable until the status is "indexed"