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
56 stars 5 forks source link

[BUG] iOS import not working #52

Open xavier7179 opened 7 months ago

xavier7179 commented 7 months ago

Trying to synch the iOS app through server connection but, after browsing, importing gives an error ("There were errors during the import process, check your files and/or network connectivity - error: Error retrieving comic pages, HTTP: 404") that seems to correspond to the following lines on logs:

WARN  2023-10-07T08:16:10.431 QObject: Cannot create children for a parent that is in a different thread.
(Parent is RequestMapper(0x557971038f30), parent's thread is QThread(0x55797102e4f0), current thread is QThread(0x557971042470)
INFO  2023-10-07T08:16:27.639 YACReaderLibrary closed with exit code : 700
INFO  2023-10-07T08:16:27.662 YACReaderLibraryServer attempting to start

Expected Behavior

Sync perfectly working

Current Behavior

Sync is not working at all

Environment

**OS: Ubuntu 20.04.6 LTS

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

yacserver:
      image: xthursdayx/yacreaderlibrary-server-docker:p7zip
      container_name: yacserver
      restart: always
      networks:
         t2_proxy:
            ipv4_address: $YACSERVER_T2_IP
      security_opt:
         - no-new-privileges:true
      environment:
         PUID: $PUID
         PGID: $PGID
         TZ: $TZ
      ports:
         - "$YACSERVER_PORT:8080"
      volumes:
         - /etc/localtime:/etc/localtime:ro
         - $DOCKERDIR/yacserver/config:/config
         - $MEDIADIR/comics:/comics

Docker logs (QR code omitted)


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

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

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

[custom-init] No custom files found, skipping...
INFO  2023-10-07T08:14:57.651 YACReaderLibraryServer attempting to start
INFO  2023-10-07T08:14:57.651 ---------- System & configuration ----------
INFO  2023-10-07T08:14:57.651 OS: "Ubuntu 22.04.2 LTS" Version:  "22.04"
INFO  2023-10-07T08:14:57.651 Kernel: "linux" "5.4.0-164-generic" Architecture: "x86_64"
INFO  2023-10-07T08:14:57.652 Libraries:  QMap(("comics", QPair(1,"/comics")))
INFO  2023-10-07T08:14:57.652 --------------------------------------------
INFO  2023-10-07T08:14:57.656 YACReaderLibrary starting
INFO  2023-10-07T08:14:57.660 Running on "192.168.17.112:8080"

[ls.io-init] done.
WARN  2023-10-07T08:16:10.281 QObject: Cannot create children for a parent that is in a different thread.
(Parent is RequestMapper(0x561578de6f30), parent's thread is QThread(0x561578ddc4f0), current thread is QThread(0x561578df0e80)
INFO  2023-10-07T08:16:10.308 YACReaderLibrary closed with exit code : 700
INFO  2023-10-07T08:16:10.368 YACReaderLibraryServer attempting to start
INFO  2023-10-07T08:16:10.368 ---------- System & configuration ----------
INFO  2023-10-07T08:16:10.368 OS: "Ubuntu 22.04.2 LTS" Version:  "22.04"
INFO  2023-10-07T08:16:10.368 Kernel: "linux" "5.4.0-164-generic" Architecture: "x86_64"
INFO  2023-10-07T08:16:10.369 Libraries:  QMap(("comics", QPair(1,"/comics")))
INFO  2023-10-07T08:16:10.369 --------------------------------------------
INFO  2023-10-07T08:16:10.369 YACReaderLibrary starting
INFO  2023-10-07T08:16:10.370 Running on "192.168.17.112:8080"

WARN  2023-10-07T08:16:10.431 QObject: Cannot create children for a parent that is in a different thread.
(Parent is RequestMapper(0x557971038f30), parent's thread is QThread(0x55797102e4f0), current thread is QThread(0x557971042470)
INFO  2023-10-07T08:16:27.639 YACReaderLibrary closed with exit code : 700
INFO  2023-10-07T08:16:27.662 YACReaderLibraryServer attempting to start
INFO  2023-10-07T08:16:27.662 ---------- System & configuration ----------
INFO  2023-10-07T08:16:27.662 OS: "Ubuntu 22.04.2 LTS" Version:  "22.04"
INFO  2023-10-07T08:16:27.662 Kernel: "linux" "5.4.0-164-generic" Architecture: "x86_64"
INFO  2023-10-07T08:16:27.662 Libraries:  QMap(("comics", QPair(1,"/comics")))
INFO  2023-10-07T08:16:27.662 --------------------------------------------
INFO  2023-10-07T08:16:27.663 YACReaderLibrary starting
INFO  2023-10-07T08:16:27.663 Running on "192.168.17.112:8080"

WARN  2023-10-07T08:16:27.760 QObject: Cannot create children for a parent that is in a different thread.
(Parent is RequestMapper(0x55bac1a0cf30), parent's thread is QThread(0x55bac1a024f0), current thread is QThread(0x55bac1a15530)
xthursdayx commented 5 months ago

Sorry for the delayed response. I have been able to reproduce this error, and iOS syncing with YACReader Library Server seems to work fine on my network. Is it possible that there is a firewall rule preventing syncing, either on your router/firewall or Ubuntu?

xavier7179 commented 5 months ago

No problem at all. I thought the same too, but when I ran the command to check if port 8080 is open (zc on OSX), I got this: port 8080 [tcp/http-alt] succeeded!

xavier7179 commented 5 months ago

If it helps track the issue, I checked the logs. It was not there in the first place (or at least I did not notice it before :( ), but now, when I press sync on my iOS app, the server goes down and restarts (within the docker image, I suppose) because I have the following error (after which the log contains all starting messages again, QR code include):

INFO  2023-12-10T07:27:49.556 YACReaderLibrary closed with exit code : 700

This complements the original strange log message that I was not able to track in any YacReader forum that appears at the end of the startup:

WARN  2023-12-10T07:27:49.881 QObject: Cannot create children for a parent that is in a different thread.
(Parent is RequestMapper(0x55c1f868df30), parent's thread is QThread(0x55c1f86834f0), current thread is QThread(0x55c1f8696740)
github-actions[bot] commented 4 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.

xavier7179 commented 4 months ago

I found out that, apparently, this issue is related to the #43. Once I switched to the unrar version, it worked out smoothly.

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.

xthursdayx commented 3 months ago

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

github-actions[bot] commented 2 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.

patricklewis commented 1 month ago

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

I am seeing this same issue with the latest 7zip version of yacreaderlibrary-server-docker when trying to import comics via the iPadOS app. The unarr version works correctly and allows me to import comics.

Whenever I try to open a comic via the 7zip version, YACReaderLibrary closes with exit code 700 and restarts:

yacserver  | INFO  2024-03-27T13:43:23.341 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | [ls.io-init] done.
yacserver  | WARN  2024-03-27T13:44:54.588 QObject: Cannot create children for a parent that is in a different thread.
yacserver  | (Parent is RequestMapper(0x55e931d1f760), parent's thread is QThread(0x55e931d13450), current thread is QThread(0x55e931d228c0)
yacserver  | INFO  2024-03-27T13:45:12.310 YACReaderLibrary closed with exit code : 700
yacserver  | INFO  2024-03-27T13:45:12.356 YACReaderLibraryServer attempting to start
yacserver  | INFO  2024-03-27T13:45:12.356 ---------- System & configuration ----------
yacserver  | INFO  2024-03-27T13:45:12.356 OS: "Ubuntu 22.04.2 LTS" Version:  "22.04"
yacserver  | INFO  2024-03-27T13:45:12.356 Kernel: "linux" "5.15.0-101-generic" Architecture: "x86_64"
yacserver  | INFO  2024-03-27T13:45:12.356 Libraries:  QList("comics [1, ed31d3af-6dab-480e-bf80-219f01a6dd5d, /comics]")
yacserver  | INFO  2024-03-27T13:45:12.356 --------------------------------------------
yacserver  | INFO  2024-03-27T13:45:12.356 YACReaderLibrary starting
yacserver  | INFO  2024-03-27T13:45:12.357 Running on "172.19.0.10:8080"
yacserver  |
yacserver  | INFO  2024-03-27T13:45:12.357 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:12.357 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:12.357 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–„β–„β–„β–„β–„ β–ˆβ–€β–„β–ˆβ–ˆβ–„β–ˆ β–„β–„β–„β–„β–„ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:12.357 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆ   β–ˆ β–ˆβ–€β–ˆ β–„ β–ˆ β–ˆ   β–ˆ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:12.357 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–„β–„β–„β–ˆ β–ˆβ–„β–ˆβ–„β–ˆβ–ˆβ–ˆ β–ˆβ–„β–„β–„β–ˆ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:12.357 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆ β–€ β–ˆ β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:12.357 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β–€ β–„ β–„β–€ β–€β–ˆ β–ˆ  β–ˆ β–„β–€β–„β–€β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:12.357 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–„β–ˆβ–ˆ  β–„ β–€β–ˆβ–„β–€β–„β–„  β–ˆβ–€   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:12.357 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β–„β–ˆβ–ˆβ–ˆβ–„β–„  β–€β–€β–€β–„ β–„ β–„β–„  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:12.357 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–„β–„β–„β–„β–„ β–ˆβ–€β–ˆβ–„ β–€β–ˆβ–ˆβ–€β–„β–ˆ β–„β–€β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:12.357 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆ   β–ˆ β–ˆ β–€β–ˆβ–€β–€β–ˆβ–ˆβ–€β–€β–„β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:12.357 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–„β–„β–„β–ˆ β–ˆβ–€ β–„β–„  β–„  β–ˆβ–„ β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:12.357 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–ˆβ–„β–„β–„β–„β–ˆβ–„β–„β–ˆβ–„β–ˆβ–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:12.357 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:12.357 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | WARN  2024-03-27T13:45:12.365 QObject: Cannot create children for a parent that is in a different thread.
yacserver  | (Parent is RequestMapper(0x55e6c802d970), parent's thread is QThread(0x55e6c8021450), current thread is QThread(0x55e6c802b300)
yacserver  | INFO  2024-03-27T13:45:25.845 YACReaderLibrary closed with exit code : 700
yacserver  | INFO  2024-03-27T13:45:25.883 YACReaderLibraryServer attempting to start
yacserver  | INFO  2024-03-27T13:45:25.883 ---------- System & configuration ----------
yacserver  | INFO  2024-03-27T13:45:25.883 OS: "Ubuntu 22.04.2 LTS" Version:  "22.04"
yacserver  | INFO  2024-03-27T13:45:25.883 Kernel: "linux" "5.15.0-101-generic" Architecture: "x86_64"
yacserver  | INFO  2024-03-27T13:45:25.883 Libraries:  QList("comics [1, ed31d3af-6dab-480e-bf80-219f01a6dd5d, /comics]")
yacserver  | INFO  2024-03-27T13:45:25.883 --------------------------------------------
yacserver  | INFO  2024-03-27T13:45:25.883 YACReaderLibrary starting
yacserver  | INFO  2024-03-27T13:45:25.883 Running on "172.19.0.10:8080"
yacserver  |
yacserver  | INFO  2024-03-27T13:45:25.884 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:25.884 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:25.884 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–„β–„β–„β–„β–„ β–ˆβ–€β–„β–ˆβ–ˆβ–„β–ˆ β–„β–„β–„β–„β–„ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:25.884 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆ   β–ˆ β–ˆβ–€β–ˆ β–„ β–ˆ β–ˆ   β–ˆ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:25.884 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–„β–„β–„β–ˆ β–ˆβ–„β–ˆβ–„β–ˆβ–ˆβ–ˆ β–ˆβ–„β–„β–„β–ˆ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:25.884 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆ β–€ β–ˆ β–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:25.884 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β–€ β–„ β–„β–€ β–€β–ˆ β–ˆ  β–ˆ β–„β–€β–„β–€β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:25.884 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–„β–ˆβ–ˆ  β–„ β–€β–ˆβ–„β–€β–„β–„  β–ˆβ–€   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:25.884 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β–„β–ˆβ–ˆβ–ˆβ–„β–„  β–€β–€β–€β–„ β–„ β–„β–„  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:25.884 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–„β–„β–„β–„β–„ β–ˆβ–€β–ˆβ–„ β–€β–ˆβ–ˆβ–€β–„β–ˆ β–„β–€β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:25.884 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆ   β–ˆ β–ˆ β–€β–ˆβ–€β–€β–ˆβ–ˆβ–€β–€β–„β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:25.884 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–„β–„β–„β–ˆ β–ˆβ–€ β–„β–„  β–„  β–ˆβ–„ β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:25.884 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β–„β–„β–„β–„β–„β–„β–ˆβ–ˆβ–„β–„β–„β–„β–ˆβ–„β–„β–ˆβ–„β–ˆβ–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:25.884 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | INFO  2024-03-27T13:45:25.884 "β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ"
yacserver  | WARN  2024-03-27T13:45:25.908 QObject: Cannot create children for a parent that is in a different thread.
yacserver  | (Parent is RequestMapper(0x564366b08970), parent's thread is QThread(0x564366afc450), current thread is QThread(0x564366b062d0)
github-actions[bot] commented 3 weeks 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.