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] Segmentation fault when running update-library (p7zip image)

zurden opened this issue Β· comments

commented

When using p7zip tagged image i got a Segmentation fault (core dumped) on update-library

Also tried with a new config folder in case something in the settings from previous version was the root cause, but it wasnt.


Expected Behavior

Library updated.

Current Behavior

Instant core dumped when triggered the update-library.

Steps to Reproduce

  1. $ docker exec -ti YACReaderLibraryServer bash
  2. $ YACReaderLibraryServer update-library /comics

Environment

OS: Ubuntu 22.04.2 LTS
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:p7zip
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Madrid
    volumes:
      - ./config:/config
      - /biblio/comics/srv-test-comics:/comics
    ports:
      - 2536:8080
    restart: unless-stopped

Docker logs

root@2c81bcc024b1:/# YACReaderLibraryServer update-library /comics
Processing comicsSegmentation fault (core dumped)

[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  2023-07-22T14:30:52.072 YACReaderLibraryServer attempting to start
INFO  2023-07-22T14:30:52.072 ---------- System & configuration ----------
INFO  2023-07-22T14:30:52.072 OS: "Ubuntu 22.04.2 LTS" Version:  "22.04"
INFO  2023-07-22T14:30:52.072 Kernel: "linux" "5.19.0-46-generic" Architecture: "x86_64"
INFO  2023-07-22T14:30:52.072 Libraries:  QMap(("ComicsVault", QPair(1,"/comics")))
INFO  2023-07-22T14:30:52.072 --------------------------------------------
INFO  2023-07-22T14:30:52.072 YACReaderLibrary starting
INFO  2023-07-22T14:30:52.072 Running on port "8080"
[ls.io-init] done.

Hmmm, I haven't seen this before and am not really sure how to troubleshoot it. Have you tried creating your library with a limited number of comics in a smaller Comics directory? I ask because I was wondering if one of your comic files is what is causing the the segmentation fault while YACReaderLibraryServer is processing your comics.

commented

Hi,

It was already a small folder just for testing. Including zip,rar and rar5.

I just tried to update-library with an empty library and got the same error "Segmentation fault (core dumped)". Also tried with just one .cbz and again with just one rar5 file, same result.

I'm able to create and delete libraries but core dumped when doing the update-library.

I'm not sure it will make any difference, but do you want to try this again with the newly released image? If I bring this issue to the YACReader devs, I want to make sure the issue persists on the most recent release.

commented

same.

$ docker-compose pull && docker-compose up -d
Pulling yacreaderlibrary-server-docker ... done
Recreating YACReaderLibraryServer ... done

$ docker exec -ti YACReaderLibraryServer bash
root@0d67ed6bbbd9:/# YACReaderLibraryServer update-library /comics
Processing comicsSegmentation fault (core dumped)
$ 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  2023-07-31T00:46:49.068 YACReaderLibraryServer attempting to start
INFO  2023-07-31T00:46:49.068 ---------- System & configuration ----------
INFO  2023-07-31T00:46:49.068 OS: "Ubuntu 22.04.2 LTS" Version:  "22.04"
INFO  2023-07-31T00:46:49.068 Kernel: "linux" "5.19.0-46-generic" Architecture: "x86_64"
INFO  2023-07-31T00:46:49.068 Libraries:  QMap(("ComicsVault", QPair(1,"/comics")))
INFO  2023-07-31T00:46:49.068 --------------------------------------------
INFO  2023-07-31T00:46:49.068 YACReaderLibrary starting
INFO  2023-07-31T00:46:49.069 Running on "192.168.48.2:8080"

INFO  2023-07-31T00:46:49.069 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2023-07-31T00:46:49.069 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2023-07-31T00:46:49.069 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–„β–„β–„β–„β–„ β–ˆβ–„β–€β–€β–€ β–ˆ β–„β–„β–„β–„β–„ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2023-07-31T00:46:49.069 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆ   β–ˆ β–ˆβ–„β–„β–ˆβ–„β–€β–ˆ β–ˆ   β–ˆ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2023-07-31T00:46:49.069 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–„β–„β–„β–ˆ β–ˆβ–€ β–€β–ˆβ–„β–ˆ β–ˆβ–„β–„β–„β–ˆ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2023-07-31T00:46:49.069 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–€β–„β–€β–„β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2023-07-31T00:46:49.069 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β–€ β–€β–ˆβ–ˆβ–„ β–ˆβ–€β–ˆβ–„β–„β–€β–€β–„β–€β–ˆβ–„β–ˆ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2023-07-31T00:46:49.069 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–„β–„ β–„β–„β–„β–€β–ˆ β–ˆβ–€β–„ β–ˆβ–ˆβ–ˆβ–„β–€ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2023-07-31T00:46:49.069 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β–„β–ˆβ–„β–„β–„β–ˆ  β–„β–ˆβ–ˆβ–€ β–€β–€β–„ β–„β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2023-07-31T00:46:49.069 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–„β–„β–„β–„β–„ β–ˆβ–„β–ˆβ–€β–„β–„β–ˆβ–ˆβ–„β–ˆβ–„β–„β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2023-07-31T00:46:49.069 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆ   β–ˆ β–ˆβ–ˆ  β–„β–„β–ˆβ–„ β–„  β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2023-07-31T00:46:49.069 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–„β–„β–„β–ˆ β–ˆβ–„β–„β–„β–„β–„β–„β–„β–„β–ˆ  β–„ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2023-07-31T00:46:49.069 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–„β–„β–ˆβ–ˆβ–„β–„β–„β–ˆβ–ˆβ–„β–„β–„β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2023-07-31T00:46:49.069 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
INFO  2023-07-31T00:46:49.069 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
[ls.io-init] done.
WARN  2023-07-31T15:58:38.891 QObject: Cannot create children for a parent that is in a different thread.
(Parent is RequestMapper(0x560cb9a9ae50), parent's thread is QThread(0x560cb9a904f0), current thread is QThread(0x560cb9abf260)
WARN  2023-07-31T22:55:19.445 QObject: Cannot create children for a parent that is in a different thread.
(Parent is RequestMapper(0x560cb9a9ae50), parent's thread is QThread(0x560cb9a904f0), current thread is QThread(0x560cb9abf260)
WARN  2023-07-31T23:16:23.011 QObject: Cannot create children for a parent that is in a different thread.
(Parent is RequestMapper(0x560cb9a9ae50), parent's thread is QThread(0x560cb9a904f0), current thread is QThread(0x560cb9abf260)

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.

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.

I've just pushed updated versions of this docker image which use 7zip 23.01 and QT6 to Docker Hub, please pull the new image and update your container and let me know if you're still having this issue. Thanks!

Hi xthursdayx,

I used the 7zip tag and a clean install. Still getting the same segfault.

root@49f6288ec687:/# YACReaderLibraryServer create-library test /comics
Processing comicsSegmentation fault (core dumped)

root@49f6288ec687:/# YACReaderLibraryServer -v
YACReaderLibraryServer 9.14.2

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.