tuxpeople / docker-jdownloader-headless Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jaymoulin/docker-jdownloader
JDownloader 2 Docker Image (Multiarch)
License: MIT License
This project forked from jaymoulin/docker-jdownloader
JDownloader 2 Docker Image (Multiarch)
License: MIT License
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.
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.
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)
@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
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.