Open helderco opened 1 year ago
I'm not sure what is causing this issue and am not familiar with Synology, but have tried mounting your config
volume somewhere else? I've only ever mounted docker volumes using the complete directory path, rather than using .
.
Yeah, it's not the volume.
Unfortunately, I am unable to reproduce the error, so I can't really troubleshoot it.
I know you said that any YACReaderLibraryServer
command creates the same error, but you have run the command to create your comic library, correct?
docker exec YACReaderLibraryServer YACReaderLibraryServer create-library <library-name> /comics
I just ask, because I know that there have been issues with YACReaderLibrary in the past when people tried to run it with an empty library.
Other than that I'm not sure what the issue could be, but I can follow up upstream with the YACReader devs, since I assume the issue may be with YACReaderLibrary, not the docker image.
Yes I can't run any YACReaderLibraryServer
command. I do have a non-empty library. I created it via my laptop, same docker image.
My laptop is running linux/arm64 on Docker 24.0.2 while Synology is on linux/amd64 on Docker 20.10.3
❯ docker run -it --rm xthursdayx/yacreaderlibrary-server-docker:p7zip
[migrations] started
[migrations] no migrations found
usermod: no changes
----------------------------------------------------------
_ __________ ____ ______ _____ ____ _____ ___ __
| |/ /_ __/ / / / / / / __ \/ ___// __ \/ \ \/ / |/ /
| / / / / /_/ / / / / /_/ /\__ \/ / / / /| |\ /| /
/ | / / / __ / /_/ / _, _/___/ / /_/ / ___ |/ // |
/_/|_|/_/ /_/ /_/\____/_/ |_|/____/_____/_/ |_/_//_/|_|
Brought to you by xthursdayx
----------------------------------------------------------
GID/UID
----------------------------------------------------------
User uid: 911
User gid: 911
-------------------------------------
[custom-init] No custom files found, skipping...
INFO 2023-07-25T23:24:29.595 YACReaderLibraryServer attempting to start
INFO 2023-07-25T23:24:29.595 ---------- System & configuration ----------
INFO 2023-07-25T23:24:29.595 OS: "Ubuntu 22.04.2 LTS" Version: "22.04"
INFO 2023-07-25T23:24:29.595 Kernel: "linux" "5.15.49-linuxkit-pr" Architecture: "arm64"
INFO 2023-07-25T23:24:29.595 Libraries: QMap()
INFO 2023-07-25T23:24:29.595 --------------------------------------------
INFO 2023-07-25T23:24:29.595 YACReaderLibrary starting
INFO 2023-07-25T23:24:29.596 Running on "172.17.0.3:8080"
INFO 2023-07-25T23:24:29.596 "███████████████████████████████"
INFO 2023-07-25T23:24:29.596 "███████████████████████████████"
INFO 2023-07-25T23:24:29.596 "█████ ▄▄▄▄▄ ██▀▀▄ █ ▄▄▄▄▄ █████"
INFO 2023-07-25T23:24:29.596 "█████ █ █ █▄▄▀ █ █ █ █████"
INFO 2023-07-25T23:24:29.596 "█████ █▄▄▄█ █ ▀▀ ▄█ █▄▄▄█ █████"
INFO 2023-07-25T23:24:29.596 "█████▄▄▄▄▄▄▄█▄▀ █▄█▄▄▄▄▄▄▄█████"
INFO 2023-07-25T23:24:29.596 "█████▀▄█▀ █▄▀ ▀ █ █ ▀▀█████"
INFO 2023-07-25T23:24:29.596 "█████ █ ▀▀ ▄▄▀█ █▄█▀█▀▀█ ▀█████"
INFO 2023-07-25T23:24:29.596 "██████▄████▄▄▀▄▄ █ ▄▀█▄ █████"
INFO 2023-07-25T23:24:29.596 "█████ ▄▄▄▄▄ ██▄ █▀███▄ █▀ █████"
INFO 2023-07-25T23:24:29.596 "█████ █ █ █▄▄ █ ▀ █▀▄▀ █████"
INFO 2023-07-25T23:24:29.596 "█████ █▄▄▄█ █▀▄▄ ███▄▄▀██▀█████"
INFO 2023-07-25T23:24:29.596 "█████▄▄▄▄▄▄▄██▄▄█▄▄▄█▄▄█▄▄█████"
INFO 2023-07-25T23:24:29.596 "███████████████████████████████"
INFO 2023-07-25T23:24:29.596 "███████████████████████████████"
[ls.io-init] done.
# docker run -it --rm xthursdayx/yacreaderlibrary-server-docker:p7zip
[migrations] started
[migrations] no migrations found
usermod: no changes
----------------------------------------------------------
_ __________ ____ ______ _____ ____ _____ ___ __
| |/ /_ __/ / / / / / / __ \/ ___// __ \/ \ \/ / |/ /
| / / / / /_/ / / / / /_/ /\__ \/ / / / /| |\ /| /
/ | / / / __ / /_/ / _, _/___/ / /_/ / ___ |/ // |
/_/|_|/_/ /_/ /_/\____/_/ |_|/____/_____/_/ |_/_//_/|_|
Brought to you by xthursdayx
----------------------------------------------------------
GID/UID
----------------------------------------------------------
User uid: 911
User gid: 911
-------------------------------------
[custom-init] No custom files found, skipping...
YACReaderLibraryServer: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
YACReaderLibraryServer: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
YACReaderLibraryServer: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
YACReaderLibraryServer: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
YACReaderLibraryServer: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
YACReaderLibraryServer: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
YACReaderLibraryServer: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
YACReaderLibraryServer: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
YACReaderLibraryServer: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
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.
Same result:
❯ docker inspect xthursdayx/yacreaderlibrary-server-docker -f '{{json .Config.Labels}}' | jq
{
"build_version": "Linuxserver.io version:- abb6e73a-ls75 Build-date:- 2023-07-25T23:25:54+00:00",
"maintainer": "xthursdayx",
"org.opencontainers.image.authors": "linuxserver.io",
"org.opencontainers.image.created": "2023-07-28T16:41:23.183Z",
"org.opencontainers.image.description": "Docker image running a headless version of YACReaderLibraryServer 📦",
"org.opencontainers.image.documentation": "https://docs.linuxserver.io/images/docker-baseimage-ubuntu",
"org.opencontainers.image.licenses": "GPL-3.0",
"org.opencontainers.image.ref.name": "3adcc653ddd4febf61e13930a8c724086b4adcb5",
"org.opencontainers.image.revision": "404c8ca93bb61fbc9ab40df48b37f38ed2a196a7",
"org.opencontainers.image.source": "https://github.com/xthursdayx/yacreaderlibrary-server-docker",
"org.opencontainers.image.title": "yacreaderlibrary-server-docker",
"org.opencontainers.image.url": "https://github.com/xthursdayx/yacreaderlibrary-server-docker",
"org.opencontainers.image.vendor": "linuxserver.io",
"org.opencontainers.image.version": "v1.6.1"
}
Thanks for looking into this 🙏
❯ docker run --rm -d --name=yaclibrary xthursdayx/yacreaderlibrary-server-docker@sha256:524a179b31ecd5b8d6627ce2b1c05472604065d2879ac68a350eeb6101366dbc
❯ docker logs yaclibrary
[migrations] started
[migrations] no migrations found
usermod: no changes
----------------------------------------------------------
_ __________ ____ ______ _____ ____ _____ ___ __
| |/ /_ __/ / / / / / / __ \/ ___// __ \/ \ \/ / |/ /
| / / / / /_/ / / / / /_/ /\__ \/ / / / /| |\ /| /
/ | / / / __ / /_/ / _, _/___/ / /_/ / ___ |/ // |
/_/|_|/_/ /_/ /_/\____/_/ |_|/____/_____/_/ |_/_//_/|_|
Brought to you by xthursdayx
----------------------------------------------------------
GID/UID
----------------------------------------------------------
User uid: 911
User gid: 911
-------------------------------------
[custom-init] No custom files found, skipping...
YACReaderLibraryServer: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
YACReaderLibraryServer: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
YACReaderLibraryServer: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
YACReaderLibraryServer: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
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.
Tried to install on my Synology (DS1817+) as well, same sad result.
This is a known Synology problem. You will find this bug listed under a million different docker images and packages.
There is a workaround! (yay!!!!!!)
This bug has been around so long and affects so many packages, some kind soul found a fix. This fix seems to work for a large variety of docker images.
Step 1: Install this docker image however you prefer. My Portainer.io Stack looks like this, yours could look very different, or you could be using Docker directly instead of Portainer... it doesn't matter. Just get this docker installed and running.
version: "3"
services:
image: xthursdayx/yacreaderlibrary-server-docker
container_name: YACReaderLibraryServer
healthcheck:
test: curl -f http://localhost:8080/ || exit 1
mem_limit: 4g
cpu_shares: 192
security_opt:
- no-new-privileges:true
restart: unless-stopped
ports:
- 8080:8080
volumes:
- "/volume1/docker/yaclibraryserver:/config"
- "/volume1/music/My Media/Comics and Comic Strips/Comics Sorted:/comics"
environment:
PUID: 1024
PGID: 100
TZ: America/New_York
NOTE- If you try to run YACReaderLibraryServer right now, you're going to get the dreaded "YACReaderLibraryServer: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory" error.
Step 2: You're going to need to run three commands inside the docker in order to fix this problem. You can use "docker exec" to do this, or (like me) just run docker exec /bin/bash and then run your commands from there.
apt-get update
apt-get install binutils
strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
Step 3: You're all good! That was it. Now just use it. For my Portainer Container script shown above, I then run:
YACReaderLibraryServer create-library "Comic Books and Graphic Novels" /comics
Don't forget to have opened up port 8080 inside Synology's firewall!
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.
Expected Behavior
Expected to interact with
YACReaderLibraryServer
and be able to see something when opening the exposed port in a browser.Current Behavior
Nothing happens. There's an
error while loading shared libaries
.Steps to Reproduce
docker compose up -d
:8100
YACReaderLibraryServer <command>
returns same errorEnvironment
I'm using a Synology DS716+II with DSM 7.1.1 and supported Docker package installed:
Command used to create docker container (run/create/compose/screenshot)
I tried with
:unarr
first, but same issue.Docker logs