simon987 / sist2

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

Error in sist2-admin: search backend not found: None #386

Open mviejo33 opened 1 year ago

mviejo33 commented 1 year ago

Device Information (please complete the following information):

Command with arguments docker-compose file

version: "3"

services:
  elasticsearch:
    image: elasticsearch:7.17.9
    restart: unless-stopped
    environment:
      - "discovery.type=single-node"
      - "ES_JAVA_OPTS=-Xms1g -Xmx1g"
      - "ingest.geoip.downloader.enabled=false"
  sist2-admin:
    image: simon987/sist2:3.1.1-x64-linux
    restart: unless-stopped
    volumes:
      - ./sist2-admin-data/:/sist2-admin/
      - /:/host
    ports:
      - 4090:4090 # sist2
      - 8080:8080 # sist2-admin
    working_dir: /root/sist2-admin/
    entrypoint: python3 /root/sist2-admin/sist2_admin/app.py

Describe the bug Tried testing the tool via UI with a single pdf file. Scan passes with no errors, Index fails with no error (or any other line) visible on the UI. However, found 'Error while running task: search backend not found: None' error in server logs

Steps To Reproduce

  1. Create a job that reads spanish and english ebooks
  2. click on Index

Expected behavior Should see the pdf file in the generated UI

Actual Behavior I dont see the file listed in the corresponding UI

Screenshots

Index fails but no lines were logged

simon987 commented 1 year ago

Hi, can you share the value of the search backend for this job?

By default it should be "elasticsearch"

image

And are you upgrading from a previous sist2 version or is this a fresh install?

mviejo33 commented 1 year ago

I dont see the search backend options, this is what I see. (I confirmed elasticsearch service is running with docker-compose ps)

Screenshot 2023-07-12 at 19 22 48

Not sure if this is considered an upgrade or clean install.

  1. I edited the docker-compose.yml to pull the 3.1.1v image as per https://github.com/simon987/sist2/issues/377 (I was getting the same error as them with version 3.1.0)
  2. I ran docker-compose up
simon987 commented 1 year ago

That's odd. Can you try to delete ./sist2-admin-data/state.db and use the latest version simon987/sist2:x64-linux instead?

simon987 commented 1 year ago

And if that doesn't work can you clear your browser cache and/or try with an incognito window

mviejo33 commented 1 year ago

I deleted the .db file, got the new version and cleared the cache. I couldnt get past here with the new version:

Screenshot 2023-07-12 at 19 39 02

I keep getting TypeError: Theencoderargument is no longer supported; use field serializers instead in the server logs.

simon987 commented 1 year ago

Thanks. Okay that must be an issue with a new pydantic package version, I'll update the image tomorrow

arthuraltino commented 1 year ago

Thanks. Okay that must be an issue with a new pydantic package version, I'll update the image tomorrow

It is. I've fixed it by adding pydantic==1.10.11 to requirements.txt

simon987 commented 1 year ago

@mviejo33 could you try again but with the newest image (docker pull simon987/sist2:x64-linux)