veldenb / plugin.program.moonlight-qt

A launcher and updater for running Moonlight-qt on LibreELEC.
GNU General Public License v3.0
94 stars 15 forks source link

Strange things with building image of `generic` Dockerfile #39

Closed ArtemkaKun closed 11 months ago

ArtemkaKun commented 1 year ago

I have the following error when my LibreELEC 11.0.3 system tries to build the mentioned Dockerfile (both from the Moonlight plugin and manually):

Step 1/5 : FROM debian:bullseye-slim
---> 1411dd05edfc
Step 2/5 : RUN apt-get update  && DEBIAN_FRONTEND=noninteractive apt-get install -y     libfuse2     libgudev-1.0-0     libinput10     libsm6     libxcb-cursor0     libxcursor1     libxi6     qml-module-qtquick2     wget&& apt-get clean  && rm -rf /var/lib/apt/lists/*  && DOWNLOAD_URL=$(wget --quiet --header "Accept: application/vnd.github.v3+json" --output-document - https://api.github.com/repos/moonlight-stream/moonlight-qt/releases/latest | grep -o '"browser_download_url": "[^"]*' | grep -o '[^"]*$' | grep ".AppImage")  && wget "$DOWNLOAD_URL" -O /tmp/Moonlight-downloaded.AppImage  && chmod a+x /tmp/Moonlight-downloaded.AppImage
---> Running in 67c44f664f5a
exec /bin/sh: no such file or directory
The command '/bin/sh -c apt-get update  && DEBIAN_FRONTEND=noninteractive apt-get install -y     libfuse2     libgudev-1.0-0     libinput10     libsm6     libxcb-cursor0     libxcursor1     libxi6     qml-module-qtquick2wget  && apt-get clean  && rm -rf /var/lib/apt/lists/*  && DOWNLOAD_URL=$(wget --quiet --header "Accept: application/vnd.github.v3+json" --output-document - https://api.github.com/repos/moonlight-stream/moonlight-qt/releases/latest | grep -o '"browser_download_url": "[^"]*' | grep -o '[^"]*$' | grep ".AppImage")  && wget "$DOWNLOAD_URL" -O /tmp/Moonlight-downloaded.AppImage  && chmod a+x /tmp/Moonlight-downloaded.AppImage' returned a non-zero code: 1

if I switch this Dockerfile to bookworm/-slim image - it works as expected. If I will try to build the following Dockerfile on my PC - everything works.

Not sure what the cause of it is. I tried to reinstall Docker on my LibreELEV system and run docker system prune -a - didn't help

veldenb commented 1 year ago

I'll see if I can reproduce it and if the problem occurs fix it. I think upgrading the docker-image to a newer Debian version is a good idea anyway.

veldenb commented 1 year ago

I tried a clean installed LibreELEC today on a Intel NUC and had no problems. Have you tried a clean install of LibreELEC and then installing the plugin?

ArtemkaKun commented 1 year ago

No, but I remembered details:

Maybe you will reproduce the issue with these steps

veldenb commented 1 year ago

It looks like LibreELEC doesn't fully clean up all Docker cache when uninstalling and the Debian image gets corrupted. Running the following command's should fully delete the Debian image so the build-script starts working again:

$ docker container prune --force
$ docker image prune --force
$ docker image ls
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
debian              bullseye-slim       1411dd05edfc        2 weeks ago         80.5MB

$ docker image remove 1411dd05edfc
Untagged: debian:bullseye-slim
Untagged: debian@sha256:c618be84fc82aa8ba203abbb07218410b0f5b3c7cb6b4e7248fda7785d4f9946
Deleted: sha256:1411dd05edfc5c370cf31b93b49589e5a48a0422418dcf0160b226437f490dbf
Deleted: sha256:10764c37bcbc8dff79bd134e34e5e8d9c6a3e0d482ca2e6e0ff978485ada5c3c

Does this help?