Giter Club home page Giter Club logo

docker-jdownloader-headless's Introduction

Hi there ๐Ÿ‘‹

Anurag's GitHub stats

docker-jdownloader-headless's People

Contributors

auanasgheps avatar avk93 avatar bertof avatar darkdragon-001 avatar dependabot[bot] avatar jaymoulin avatar tuxpeople avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

ilfmoussa

docker-jdownloader-headless's Issues

Jdownloader endlessly updates if you create the container using `podman run --rm`.

I'm having the issue where this container endlessly updates when launched with podman instead of docker. Once the container finishes updating, it shuts down and then it is restarted due to restart=always. The container then checks for and finds it needs to update again, and the process begins again. There should be a way to persist updates to a volume such that recreating the container every time with docker/podman run --rm vs start allows for proper operation of the container.

Better error handling while downloading JDownloader.jar

Hi, I'm running this image for a couple of years now in Kubernetes and everything works great. I recently added Gluetun as a sidecar container to my JDownloader pod. This means that the whole network traffic will be automatically routed though a VPN.

I noticed when Gluetun is a bit slow that the JDownloader Container doesn't start correctly. The reason is that this wget command doesn't work on its first start (and the automatic restart doesn't work because the file already exists.

# Redownload if no JDownloader exists
if [ ! -f /opt/JDownloader/JDownloader.jar ]; then
wget -O /opt/JDownloader/JDownloader.jar "http://installer.jdownloader.org/JDownloader.jar"
chmod +x /JDownloader.jar
fi

Here is the Log:

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-prepare-jdownloader: executing... 
--2023-05-15 12:21:25--  http://installer.jdownloader.org/JDownloader.jar
Resolving installer.jdownloader.org (installer.jdownloader.org)... failed: Try again.
wget: unable to resolve host address 'installer.jdownloader.org'
chmod: cannot access '/JDownloader.jar': No such file or directory
[cont-init.d] 30-prepare-jdownloader: exited 0.
[cont-init.d] 99-custom-files: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
0022
[services.d] done.
Error: Invalid or corrupt jarfile /opt/JDownloader/JDownloader.jar
0022
Error: Invalid or corrupt jarfile /opt/JDownloader/JDownloader.jar
0022
Error: Invalid or corrupt jarfile /opt/JDownloader/JDownloader.jar
0022
Error: Invalid or corrupt jarfile /opt/JDownloader/JDownloader.jar
0022
Error: Invalid or corrupt jarfile /opt/JDownloader/JDownloader.jar
0022
Error: Invalid or corrupt jarfile /opt/JDownloader/JDownloader.jar
0022
Error: Invalid or corrupt jarfile /opt/JDownloader/JDownloader.jar
0022

It looks like wget already has some retry logic that can be enabled: https://superuser.com/a/689340 (and/or the wget needs to be in a while loop)

Docker Swarm Support

@zevektor Would you mind to test this for me, if the restart loop still exists? Please mount a volume to /opt/JDownloader

Related to jaymoulin#82

Use quay.io/tdeutsch/jdownloader-headless:edge

permission denied errors

When starting the container, I get several errors:

18.11.2022 6:46:15 s6-chmod: fatal: unable to change mode of /var/run/s6/etc/cont-init.d/99-custom-files: Operation not permitted
18.11.2022 6:46:15 s6-chown: fatal: unable to chown /var/run/s6/etc/services.d/jdownloader/run: Operation not permitted
18.11.2022 6:46:15 s6-chmod: fatal: unable to change mode of /var/run/s6/etc/services.d/jdownloader/run: Operation not permitted
18.11.2022 6:46:15 s6-chown: fatal: unable to chown /var/run/s6/etc/services.d/jdownloader/finish: Operation not permitted
18.11.2022 6:46:15 s6-chmod: fatal: unable to change mode of /var/run/s6/etc/services.d/jdownloader/finish: Operation not permitted
18.11.2022 6:46:15 [s6-init] ensuring user provided files have correct perms...exited 0.
18.11.2022 6:46:15 [fix-attrs.d] applying ownership & permissions fixes...
18.11.2022 6:46:15 [fix-attrs.d] done.
18.11.2022 6:46:15 [cont-init.d] executing container initialization scripts...
18.11.2022 6:46:15 [cont-init.d] 01-envfile: executing... 
18.11.2022 6:46:15 foreground: warning: unable to spawn /var/run/s6/etc/cont-init.d/01-envfile: Permission denied
18.11.2022 6:46:15 [cont-init.d] 01-envfile: exited 127.
18.11.2022 6:46:15 [cont-init.d] 10-adduser: executing... 
18.11.2022 6:46:15 foreground: warning: unable to spawn /var/run/s6/etc/cont-init.d/10-adduser: Permission denied
18.11.2022 6:46:15 [cont-init.d] 10-adduser: exited 127.
18.11.2022 6:46:15 [cont-init.d] 30-prepare-jdownloader: executing... 
18.11.2022 6:46:15 foreground: warning: unable to spawn /var/run/s6/etc/cont-init.d/30-prepare-jdownloader: Permission denied
18.11.2022 6:46:15 [cont-init.d] 30-prepare-jdownloader: exited 127.
18.11.2022 6:46:15 [cont-init.d] 99-custom-files: executing... 
18.11.2022 6:46:15 foreground: warning: unable to spawn /var/run/s6/etc/cont-init.d/99-custom-files: Permission denied
18.11.2022 6:46:15 [cont-init.d] 99-custom-files: exited 127.
18.11.2022 6:46:15 [cont-init.d] done.
18.11.2022 6:46:15 [services.d] starting services
18.11.2022 6:46:15 s6-supervise (child): fatal: unable to exec run: Permission denied
18.11.2022 6:46:15 s6-supervise jdownloader: warning: unable to spawn ./run - waiting 10 seconds
18.11.2022 6:46:15 [services.d] done.

I have used the docker-compose snippet, just changed the volume pathes accordingly.

invalid jar file on armv7 (Openwrt)

This error occurs in the container logs:

Error: Invalid or corrupt jarfile /opt/JDownloader/JDownloader.jar

Don't know how to fix this. I manually downloaded the .jar file still gettin this message.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.