xthursdayx / yacreaderlibrary-server-docker

Docker image running a headless version of YACReaderLibraryServer πŸ“¦
https://hub.docker.com/r/xthursdayx/yacreaderlibrary-server-docker
GNU General Public License v3.0
57 stars 5 forks source link

[BUG] Segmentation fault when running update-library (p7zip image) #43

Open zurden opened 11 months ago

zurden commented 11 months ago

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.
xthursdayx commented 11 months ago

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.

zurden commented 11 months ago

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.

xthursdayx commented 11 months ago

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.

zurden commented 11 months ago

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)
zurden commented 11 months ago

It seems that they are migrating to 7zip 23.01.

https://github.com/YACReader/yacreader/pull/389

https://github.com/YACReader/yacreader/blob/develop/dependencies/7zip/linux/Steps%20for%20building%207z.so%20with%20rar%20support.txt

github-actions[bot] commented 10 months ago

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.

github-actions[bot] commented 5 months ago

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.

xthursdayx commented 4 months ago

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!

zurden commented 4 months ago

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
github-actions[bot] commented 3 months ago

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.