dan-online / autopulse

💫 automated scanning tool that bridges media organizers such as Sonarr and Radarr with media servers such as Plex and Jellyfin
https://autopulse.dancodes.online
MIT License
127 stars 5 forks source link

bug: no sqlite db is created #24

Closed BaukeZwart closed 2 months ago

BaukeZwart commented 2 months ago

Description of the bug

I setup autopulse using the docker-compose-sqlite.yml. The container is running but no sqlite db is created and I'm getting these errors: autopulse::service::runner: unable to delete not found events: DatabaseError(Unknown, "database is locked")

Steps To Reproduce

See above

Additional Information

This is my compose:


  autopulse:
    container_name: autopulse
    image: danonline/autopulse
    restart: unless-stopped
    ports:
      - 2875:2875
    volumes:
      - ${DOCKERCONFDIR}/autopulse/config.yaml:/app/config.yaml
      - ${DOCKERSTORAGEDIR}:/data
    environment:
      AUTOPULSE__APP__DATABASE_URL: app/autopulse.db
dan-online commented 2 months ago

Hi @BaukeZwart database url should be in this format: sqlite://<location> see the SQLite docs for more information. In your case I think sqlite:///data/autopulse.db is what you want. Also make sure you have the latest pull of danonline/autopulse:latest as I updated SQLite things yesterday

BaukeZwart commented 2 months ago

Thanks for the response. It think I have it working now.