PlusMinus0 / headless-jd2-docker

Headless JDownloader 2 Docker Container
31 stars 38 forks source link

Can't find *.json #3

Closed Melf11 closed 7 years ago

Melf11 commented 7 years ago

Actually is it possible to install on RPi3 with Libreelec installed? They got Docker Support on board now. I'm able to install your headless docker but i can't find the *.json config file anywhere. If i just create one with nano nothing happening. Would be so nice, if it's possible

PlusMinus0 commented 7 years ago

Did you run it once?

Melf11 commented 7 years ago

yes, i did "docker start jd2" and than "docker stop jd2", and after that i tried to find the *,json in the folder which i selected for config and its emtpy

Melf11 commented 7 years ago

here is my terminal:

LibreELEC:~/JDownloader2/config # docker run -d --name jd2 -v /storage/JDownloader2/config:/
opt/JDownloader/cfg -v /media/Ext_Black/JDownloads:/root/Downloads plusminus/jdownloader2-he
adless
c0132a9fc8daca52a20430c1cb9db6583194b3d2f30c335d3a85a4e0d7f6771b
LibreELEC:~/JDownloader2/config # docker stop jd2
jd2
LibreELEC:~/JDownloader2/config # ls
LibreELEC:~/JDownloader2/config # 
PlusMinus0 commented 7 years ago

Looks like you're in the wrong folder. What's the output of ls /storage/JDownloader2/config ?

Melf11 commented 7 years ago

is empty and kodi.log doesn't have any usefull entries as well

PlusMinus0 commented 7 years ago

Could you paste the output of docker logs -t --tail 200 jd2 ?

Melf11 commented 7 years ago
LibreELEC:~/JDownloader2/config # docker logs -t --tail 200 jd2
2017-02-21T12:09:13.616130000Z standard_init_linux.go:178: exec user process caused "exec format error"

2017-02-21T12:28:57.917243000Z standard_init_linux.go:178: exec user process caused "exec format error"
PlusMinus0 commented 7 years ago

That seems to be a problem with your docker environment or with the java:jre container I'm using. Have you tried other containers?

Melf11 commented 7 years ago

other dockers from the docker repository are working, but your docker is the first i tried

PlusMinus0 commented 7 years ago

I switched bases and the new image should be done compiling, please give it a try.

Melf11 commented 7 years ago

still the same problem. I installed now the Portainer Docker, and it works great. Than deleted all previous jd2 dockers and reinstalled it. I can't run jd2 and i don't receive a *.json and in log is the same failure.

PlusMinus0 commented 7 years ago

Weird. Could you try this Docker file?

Melf11 commented 7 years ago

no, sorry, still the same problem. i removed the container and image and did a new pull, and got the same

PlusMinus0 commented 7 years ago

Don't pull, build the Dockerfile from my last comment and run a container from it.

Melf11 commented 7 years ago

ok, how can i do that? i'm really new in dockers.

PlusMinus0 commented 7 years ago

https://docs.docker.com/engine/getstarted/step_four/

Melf11 commented 7 years ago

hmm..propably i'm making mistakes, the Dockerfile is just copied:

LibreELEC:~/mydockerbuild # ls
Dockerfile
LibreELEC:~/mydockerbuild # docker build -t plusminus/jdownloader2-headless .
Sending build context to Docker daemon  2.56 kB
Error response from daemon: Unknown instruction: --PROGRESS=BAR:FORCE
LibreELEC:~/mydockerbuild # 
PlusMinus0 commented 7 years ago

Remove --PROGRESS=BAR:FORCE from the Dockerfile

Melf11 commented 7 years ago

ok i got it done, but it won't work. still can't start jd2

[...]
---> c3b6278957da
Removing intermediate container 9c1a0a774a9b
Step 4/6 : COPY startJD2.sh /opt/JDownloader/
lstat startJD2.sh: no such file or directory
LibreELEC:~/mydockerbuild #
PlusMinus0 commented 7 years ago

Eh my bad. You need this shell script.

Melf11 commented 7 years ago

okay, it seems to work, but in terminal i got this massage and it isn't going further.

25|Log.L.log 2/22/17 11:12:19 AM - SEVERE [ Log.L.log ] -> java.lang.ExceptionInInitializerError
    at jd.SecondLevelLaunch$12$1.run(SecondLevelLaunch.java:883)
Caused by: java.lang.RuntimeException: No Console Available!
    at org.appwork.console.ConsoleDialog.<init>(ConsoleDialog.java:56)
    at org.jdownloader.api.myjdownloader.MyJDownloaderController.start(MyJDownloaderController.java:102)
    at org.jdownloader.api.myjdownloader.MyJDownloaderController.<init>(MyJDownloaderController.java:91)
    at org.jdownloader.api.myjdownloader.MyJDownloaderController.<clinit>(MyJDownloaderController.java:33)
    ... 1 more

in Portainer is jolly_wozniak with image plusminus/jdownloader2-headless:latest running. so just stop it an have a look at the config and where it have to be?

Melf11 commented 7 years ago

it work :) one last question, is the org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json already in the config folder? i might have overwritten the file, what should be the whole content?

and thanks a lot for your help!!!

PlusMinus0 commented 7 years ago

Your credentials should suffice, create an empty file and paste them.