xthursdayx / yacreaderlibrary-server-docker

Docker image running a headless version of YACReaderLibraryServer πŸ“¦

Home Page:https://hub.docker.com/r/xthursdayx/yacreaderlibrary-server-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] create-library and update-library do not work - resultant library.ydb is empty

Chlorus opened this issue Β· comments

When running the create-library or update-library commands within this container, it creates a database file that is totally blank for each library. If a populated database file already exists, it will not update it after running update-library.


Expected Behavior

It should populate a .yacreaderlibrary/library.ydb file that isn't empty, or if it exists, it should update it with new entries.

Current Behavior

After running the create-library or update-library commands, the resulting .yacreaderlibrary/library.ydb file is totally empty. The cover metadata directory seems to populate as expected.

Steps to Reproduce

  1. Delete .yacreaderlibrary directory, if one exists.
  2. Run docker-compose up -d with specified docker-compose.yml
  3. Attempt to create a library for /comics/Super\ Play directory, comprised of .cbz files
  4. docker exec -it YACReaderLibraryServer YACReaderLibraryServer create-library "Super Play" /comics/Super\ Play
    Processing comics................................................Done!
    Number of comics processed = 48
  5. Attempt to display contents of library.ydb
  6. (utils) root@faramir:/home/aalles/Sources/YACReaderHeadless# docker exec -it YACReaderLibraryServer cat /comics/Super\ P
    lay/.yacreaderlibrary/library.ydb
    (no output)
  7. Attempt to connect to YACReader instance with the YACReader mobile app and import via the YACReaderLibrary connection: listed library is totally empty (see screenshot)

Screenshots

yacreader_empty
Screenshot 2024-02-08 122721
IMG_2315

Environment

OS: Ubuntu 22.04.2 LTS container, Linux faramir 4.19.0-26-amd64 #1 SMP Debian 4.19.304-1 (2024-01-09) x86_64 GNU/Linux host
CPU architecture: x86_64

Command used to create docker container (run/create/compose/screenshot)

---
version: "3"
services:
  yacreaderlibrary-server-docker:
    container_name: YACReaderLibraryServer
    image: xthursdayx/yacreaderlibrary-server-docker:latest
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Phoenix
    volumes:
      - ./config:/config
      - /mnt/Documents/Books/Gaming/Periodicals:/comics
    ports:
      - 9080:8080
    restart: unless-stopped

Docker logs

(utils) root@faramir:/home/aalles/Sources/YACReaderHeadless# docker logs YACReaderLibraryServer
[migrations] started
[migrations] no migrations found

----------------------------------------------------------
   _  __________  ____  ______  _____ ____  _____  ___  __
  | |/ /_  __/ / / / / / / __ \/ ___// __ \/   \ \/ / |/ /
  |   / / / / /_/ / / / / /_/ /\__ \/ / / / /| |\  /|   /
 /   | / / / __  / /_/ / _, _/___/ / /_/ / ___ |/ //   |
/_/|_|/_/ /_/ /_/\____/_/ |_|/____/_____/_/  |_/_//_/|_|

Brought to you by xthursdayx
----------------------------------------------------------
GID/UID
----------------------------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[custom-init] No custom files found, skipping...
INFO  2024-02-08T12:26:20.830 YACReaderLibraryServer attempting to start
INFO  2024-02-08T12:26:20.830 ---------- System & configuration ----------
INFO  2024-02-08T12:26:20.830 OS: "Ubuntu 22.04.2 LTS" Version:  "22.04"
INFO  2024-02-08T12:26:20.830 Kernel: "linux" "4.19.0-26-amd64" Architecture: "x86_64"
INFO  2024-02-08T12:26:20.830 Libraries:  QMap(("N64 Magazine", QPair(2,"/comics/N64 Magazine")))
INFO  2024-02-08T12:26:20.830 --------------------------------------------
INFO  2024-02-08T12:26:20.830 YACReaderLibrary starting
INFO  2024-02-08T12:26:20.831 Running on "192.168.16.2:8080"

INFO  2024-02-08T12:26:20.832 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2024-02-08T12:26:20.832 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2024-02-08T12:26:20.832 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–„β–„β–„β–„β–„ β–ˆβ–„β–ˆβ–ˆβ–€β–€β–ˆ β–„β–„β–„β–„β–„ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2024-02-08T12:26:20.832 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆ   β–ˆ β–ˆβ–€β–„β–ˆβ–€β–„β–ˆ β–ˆ   β–ˆ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2024-02-08T12:26:20.832 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–„β–„β–„β–ˆ β–ˆ β–ˆ β–„ β–ˆ β–ˆβ–„β–„β–„β–ˆ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2024-02-08T12:26:20.832 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆ β–€ β–ˆβ–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2024-02-08T12:26:20.832 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–€β–ˆ β–€β–„β–„β–„β–„ β–ˆ β–„β–„β–„ β–„β–€β–€β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2024-02-08T12:26:20.832 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–€β–„ β–€β–„β–ˆβ–„β–ˆβ–€β–ˆβ–ˆβ–€ β–ˆβ–€β–ˆβ–ˆβ–€β–ˆ β–€β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2024-02-08T12:26:20.832 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β–ˆβ–ˆβ–ˆβ–„β–ˆβ–„β–„ β–€β–€β–„β–€β–ˆβ–„β–€β–€β–ˆβ–„  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2024-02-08T12:26:20.832 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–„β–„β–„β–„β–„ β–ˆβ–„β–€β–ˆ β–ˆβ–„β–„   β–ˆβ–ˆβ–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2024-02-08T12:26:20.832 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆ   β–ˆ β–ˆβ–„ β–„β–ˆ β–€ β–€β–ˆβ–€β–„ β–€β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2024-02-08T12:26:20.832 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–„β–„β–„β–ˆ β–ˆβ–ˆβ–ˆβ–„ β–ˆβ–ˆβ–ˆ β–€β–„β–€β–ˆβ–€β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2024-02-08T12:26:20.832 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–„β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2024-02-08T12:26:20.832 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2024-02-08T12:26:20.832 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
[ls.io-init] done.

Additional information

If I create the libraries via the YACReaderLibrary desktop application, then everything works as expected - I can even serve them just fine with this container (but reading progress isn't saved)

I haven't been able to reproduce this issue locally, but I have also been in the process of updating the docker image(s). Could you try pulling the updated version of the docker image, create a new container, and see if you're still having this issue?

Pulled down latest tag, removed all the .yacreaderlibrary folders, and wiped the .ini in /config/.local and the issue persists. I wonder if it has something to do with the fact that those files live on a samba mount and there's some ACL complications happening.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.