Giter Site home page Giter Site logo

Comments (27)

jlesage avatar jlesage commented on August 18, 2024 3

With the latest image (v1.5.0), JDownloader should work without issue from a filesystem without execution permission.
Thanks to the developer of JDownloader who quickly pushed some fixes to make this work!

from docker-jdownloader-2.

pokrzys avatar pokrzys commented on August 18, 2024 1

Just did and it's working as expected at partition mounted without noexec flag :-)
The problem is that openmediavault mount every partition with noexec by default and to change this behaviour you need to alter fstab parameter in environmental variables.
It can be done by editing /etc/default/openmediavault file and adding at the end:
OMV_FSTAB_MNTOPS_EXT4=defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0") - in case using ext4 of course.
OMV needs to be restarted and already mounted partitions needs to be remounted after adding this line.
Maybe someone will make use of it.
Thanks for your fast answer @jlesage

Source:

  1. https://openmediavault.readthedocs.io/en/latest/various/fs_env_vars.html
  2. https://openmediavault.readthedocs.io/en/latest/various/advset.html

from docker-jdownloader-2.

jlesage avatar jlesage commented on August 18, 2024

On which system are you running the container? Can you provide the whole docker log?

from docker-jdownloader-2.

erdnussflips avatar erdnussflips commented on August 18, 2024

System information:

$ docker --version
Docker version 18.03.1-ce, build 9ee9f40

$ uname -a
Linux ****** 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.4 (stretch)
Release: 9.4
Codename: stretch

Update exception:

org.appwork.updatesys.client.InstallException: Could not set /config/JDownloader.jar executable toTRUE
at org.appwork.updatesys.client.UpdateClient.applyClientOptions(UpdateClient.java:461)
at org.appwork.updatesys.client.UpdateClient.runPackageInstallation(UpdateClient.java:3152)
at org.jdownloader.update.JDUpdateClient.runPackageInstallation(JDUpdateClient.java:183)
at org.jdownloader.update.UpdateManager.installPendingAWFFiles(UpdateManager.java:686)
at org.jdownloader.update.DefaultCallbackHandler.onResults(DefaultCallbackHandler.java:396)
at org.jdownloader.update.UpdateManager.runUpdateLoop(UpdateManager.java:1055)
at org.jdownloader.update.UpdateManager$4.run(UpdateManager.java:386)
at java.lang.Thread.run(Thread.java:748)

Container log:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.,
[s6-init] ensuring user provided files have correct perms...exited 0.,
[fix-attrs.d] applying ownership & permissions fixes...,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts...,
[cont-init.d] 00-app-niceness.sh: executing... ,
[cont-init.d] 00-app-niceness.sh: exited 0.,
[cont-init.d] 00-app-script.sh: executing... ,
[cont-init.d] 00-app-script.sh: exited 0.,
[cont-init.d] 00-app-user-map.sh: executing... ,
[cont-init.d] 00-app-user-map.sh: exited 0.,
[cont-init.d] 00-clean-logmonitor-states.sh: executing... ,
[cont-init.d] 00-clean-logmonitor-states.sh: exited 0.,
[cont-init.d] 00-clean-tmp-dir.sh: executing... ,
[cont-init.d] 00-clean-tmp-dir.sh: exited 0.,
[cont-init.d] 00-set-app-deps.sh: executing... ,
[cont-init.d] 00-set-app-deps.sh: exited 0.,
[cont-init.d] 00-set-home.sh: executing... ,
[cont-init.d] 00-set-home.sh: exited 0.,
[cont-init.d] 00-take-config-ownership.sh: executing... ,
[cont-init.d] 00-take-config-ownership.sh: exited 0.,
[cont-init.d] 10-certs.sh: executing... ,
[cont-init.d] 10-certs.sh: exited 0.,
[cont-init.d] 10-cjk-font.sh: executing... ,
[cont-init.d] 10-cjk-font.sh: exited 0.,
[cont-init.d] 10-nginx.sh: executing... ,
[cont-init.d] 10-nginx.sh: exited 0.,
[cont-init.d] 10-vnc-password.sh: executing... ,
[cont-init.d] 10-vnc-password.sh: exited 0.,
[cont-init.d] 10-web-index.sh: executing... ,
[cont-init.d] 10-web-index.sh: exited 0.,
[cont-init.d] jdownloader2.sh: executing... ,
[cont-init.d] jdownloader2.sh: exited 0.,
[cont-init.d] done.,
[services.d] starting services,
[services.d] starting s6-fdholderd...,
[services.d] starting nginx...,
[services.d] starting certsmonitor...,
[nginx] starting...,
[services.d] starting xvfb...,
[certsmonitor] disabling service: secure connection not enabled.,
[xvfb] starting...,
[services.d] starting statusmonitor...,
[services.d] starting x11vnc...,
[statusmonitor] no file to monitor: disabling service...,
[services.d] starting openbox...,
[x11vnc] starting...,
01/05/2018 13:18:34 passing arg to libvncserver: -rfbport,
01/05/2018 13:18:34 passing arg to libvncserver: 5900,
01/05/2018 13:18:34 passing arg to libvncserver: -rfbportv6,
01/05/2018 13:18:34 passing arg to libvncserver: -1,
01/05/2018 13:18:34 passing arg to libvncserver: -httpportv6,
01/05/2018 13:18:34 passing arg to libvncserver: -1,
01/05/2018 13:18:34 passing arg to libvncserver: -desktop,
01/05/2018 13:18:34 passing arg to libvncserver: JDownloader 2,
01/05/2018 13:18:34 x11vnc version: 0.9.14 lastmod: 2015-11-14 pid: 763,
[openbox] starting...,
01/05/2018 13:18:34 Using X display :0,
01/05/2018 13:18:34 rootwin: 0x43 reswin: 0x200001 dpy: 0xfaa5ca40,
01/05/2018 13:18:34 ,
01/05/2018 13:18:34 ------------------ USEFUL INFORMATION ------------------,
01/05/2018 13:18:34 X DAMAGE available on display, using it for polling hints.,
01/05/2018 13:18:34 To disable this behavior use: '-noxdamage',
01/05/2018 13:18:34 ,
01/05/2018 13:18:34 Most compositing window managers like 'compiz' or 'beryl',
01/05/2018 13:18:34 cause X DAMAGE to fail, and so you may not see any screen,
01/05/2018 13:18:34 updates via VNC. Either disable 'compiz' (recommended) or,
01/05/2018 13:18:34 supply the x11vnc '-noxdamage' command line option.,
01/05/2018 13:18:34 X COMPOSITE available on display, using it for window polling.,
01/05/2018 13:18:34 To disable this behavior use: '-noxcomposite',
01/05/2018 13:18:34 ,
01/05/2018 13:18:34 Wireframing: -wireframe mode is in effect for window moves.,
01/05/2018 13:18:34 If this yields undesired behavior (poor response, painting,
01/05/2018 13:18:34 errors, etc) it may be disabled:,
01/05/2018 13:18:34 - use '-nowf' to disable wireframing completely.,
01/05/2018 13:18:34 - use '-nowcr' to disable the Copy Rectangle after the,
01/05/2018 13:18:34 moved window is released in the new position.,
01/05/2018 13:18:34 Also see the -help entry for tuning parameters.,
01/05/2018 13:18:34 You can press 3 Alt_L's (Left "Alt" key) in a row to ,
01/05/2018 13:18:34 repaint the screen, also see the -fixscreen option for,
01/05/2018 13:18:34 periodic repaints.,
01/05/2018 13:18:34 GrabServer control via XTEST.,
01/05/2018 13:18:34 ,
01/05/2018 13:18:34 Scroll Detection: -scrollcopyrect mode is in effect to,
01/05/2018 13:18:34 use RECORD extension to try to detect scrolling windows,
01/05/2018 13:18:34 (induced by either user keystroke or mouse input).,
01/05/2018 13:18:34 If this yields undesired behavior (poor response, painting,
01/05/2018 13:18:34 errors, etc) it may be disabled via: '-noscr',
01/05/2018 13:18:34 Also see the -help entry for tuning parameters.,
01/05/2018 13:18:34 You can press 3 Alt_L's (Left "Alt" key) in a row to ,
01/05/2018 13:18:34 repaint the screen, also see the -fixscreen option for,
01/05/2018 13:18:34 periodic repaints.,
01/05/2018 13:18:34 ,
01/05/2018 13:18:34 XKEYBOARD: number of keysyms per keycode 7 is greater,
01/05/2018 13:18:34 than 4 and 51 keysyms are mapped above 4.,
01/05/2018 13:18:34 Automatically switching to -xkb mode.,
01/05/2018 13:18:34 If this makes the key mapping worse you can,
01/05/2018 13:18:34 disable it with the "-noxkb" option.,
01/05/2018 13:18:34 Also, remember "-remap DEAD" for accenting characters.,
01/05/2018 13:18:34 ,
01/05/2018 13:18:34 X FBPM extension not supported.,
01/05/2018 13:18:34 X display is not capable of DPMS.,
01/05/2018 13:18:34 --------------------------------------------------------,
01/05/2018 13:18:34 ,
01/05/2018 13:18:34 Default visual ID: 0x21,
01/05/2018 13:18:34 Read initial data from X display into framebuffer.,
01/05/2018 13:18:34 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/5120,
01/05/2018 13:18:34 ,
01/05/2018 13:18:34 X display :0 is 32bpp depth=24 true color,
01/05/2018 13:18:34 ,
01/05/2018 13:18:34 Listening for VNC connections on TCP port 5900,
01/05/2018 13:18:34 ,
01/05/2018 13:18:34 Xinerama is present and active (e.g. multi-head).,
01/05/2018 13:18:34 Xinerama: number of sub-screens: 1,
01/05/2018 13:18:34 Xinerama: no blackouts needed (only one sub-screen),
01/05/2018 13:18:34 ,
01/05/2018 13:18:34 fb read rate: 2257 MB/sec,
01/05/2018 13:18:34 fast read: reset -wait ms to: 10,
01/05/2018 13:18:34 fast read: reset -defer ms to: 10,
01/05/2018 13:18:34 The X server says there are 10 mouse buttons.,
01/05/2018 13:18:34 screen setup finished.,
01/05/2018 13:18:34 ,
,
The VNC desktop is: 5d1f567336ce:0,�,
0,
,
******************************************************************************,
Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?,
,
The scheme stores pixel data offscreen on the VNC viewer side for faster,
retrieval. It should work with any VNC viewer. Try it by running:,
,
x11vnc -ncache 10 ...,
,
One can also add -ncache_cr for smooth 'copyrect' window motion.,
More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching,
,
Openbox-Message: Openbox was compiled without image loading support. Icons in menus will not be loaded.,
[services.d] starting logmonitor...,
[services.d] starting app...,
[logmonitor] no file to monitor: disabling service...,
[app] starting JDownloader 2...,
[services.d] done.,
[jdsupervisor] JDownloader2 not started yet. Proceeding...,
01/05/2018 13:18:38 Got connection from client 127.0.0.1,
01/05/2018 13:18:38 other clients:,
01/05/2018 13:18:38 Got 'ws' WebSockets handshake,
01/05/2018 13:18:38 Got protocol: binary,
01/05/2018 13:18:38 - webSocketsHandshake: using binary/raw encoding,
01/05/2018 13:18:38 - WebSockets client version hybi-13,
01/05/2018 13:18:38 Disabled X server key autorepeat.,
01/05/2018 13:18:38 to force back on run: 'xset r on' (3 times),
01/05/2018 13:18:38 incr accepted_client=1 for 127.0.0.1:57768 sock=10,
01/05/2018 13:18:39 Client Protocol Version 3.8,
01/05/2018 13:18:39 Protocol version sent 3.8, using 3.8,
01/05/2018 13:18:39 rfbProcessClientSecurityType: executing handler for type 1,
01/05/2018 13:18:39 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8,
01/05/2018 13:18:39 copy_tiles: allocating first_line at size 41,
01/05/2018 13:18:39 Pixel format for client 127.0.0.1:,
01/05/2018 13:18:39 32 bpp, depth 24, little endian,
01/05/2018 13:18:39 true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0,
01/05/2018 13:18:39 no translation needed,
01/05/2018 13:18:39 Enabling NewFBSize protocol extension for client 127.0.0.1,
01/05/2018 13:18:39 Enabling full-color cursor updates for client 127.0.0.1,
01/05/2018 13:18:39 Using image quality level 6 for client 127.0.0.1,
01/05/2018 13:18:39 Using JPEG subsampling 0, Q79 for client 127.0.0.1,
01/05/2018 13:18:39 Using compression level 9 for client 127.0.0.1,
01/05/2018 13:18:39 Enabling LastRect protocol extension for client 127.0.0.1,
01/05/2018 13:18:39 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFECC),
01/05/2018 13:18:39 Using tight encoding for client 127.0.0.1,
01/05/2018 13:18:39 client_set_net: 127.0.0.1 0.0001,
01/05/2018 13:18:39 created xdamage object: 0x20002c,
01/05/2018 13:18:48 created selwin: 0x20002d,
01/05/2018 13:18:48 called initialize_xfixes(),
01/05/2018 13:19:01 client 1 network rate 360.9 KB/sec (26726.9 eff KB/sec),
01/05/2018 13:19:01 client 1 latency: 2.4 ms,
01/05/2018 13:19:01 dt1: 0.0196, dt2: 0.0146 dt3: 0.0024 bytes: 11933,
01/05/2018 13:19:01 link_rate: LR_LAN - 2 ms, 360 KB/s,

from docker-jdownloader-2.

jlesage avatar jlesage commented on August 18, 2024

Could you provide the output of:
docker exec jdownloader-2 ls -l /
docker exec jdownloader-2 ls -l /config

Also, I'm assuming you are running the latest image version? Did you try to map the /config folder?

from docker-jdownloader-2.

erdnussflips avatar erdnussflips commented on August 18, 2024

Yes, it tried the latest image:

docker volume create jdownloader2-test_config
docker run -d --name=jdownloader2-test -p 5800:5800 -v jdownloader2-test_config:/config jlesage/jdownloader-2:v1.4.3

Here the requested output (i attached both, persisted and temporary volume mount):
jdownloader2.withoutMount.config.txt
jdownloader2.withoutMount.root.txt
jdownloader2.withMount.root.txt
jdownloader2.withMount.config.txt

from docker-jdownloader-2.

jlesage avatar jlesage commented on August 18, 2024

And what about:
docker exec jdownloader-2 ps -A
docker inspect jdownloader-2

from docker-jdownloader-2.

computeus avatar computeus commented on August 18, 2024

I am trying to use the image on openmediavault and I received the same error.

This is the output of docker exec jdownloader-2 ps -A

PID USER TIME COMMAND
1 root 0:00 s6-svscan -s -t0 /var/run/s6/services
35 root 0:00 s6-supervise s6-fdholderd
509 root 0:00 s6-supervise x11vnc
510 root 0:00 s6-supervise xvfb
515 root 0:00 s6-supervise openbox
516 root 0:00 s6-supervise app
517 root 0:00 s6-supervise nginx
647 daemon 0:00 s6-fdholderd -1 -i rules
654 root 0:04 /usr/bin/Xvfb :0 -screen 0 1280x768x24
670 root 0:00 [s6-notifyonchec]
696 root 0:06 /usr/bin/x11vnc -display :0 -rfbport 5900 -rfbportv6 -1 -no6 -noipv6 -httpportv6 -1 -forever -desktop JDownloader 2 -cursor arrow -shared -nopw
714 app 0:00 /usr/bin/openbox
749 root 0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf -g daemon off;
759 app 0:00 {startapp.sh} /bin/sh /startapp.sh
806 nginx 0:00 nginx: worker process
807 nginx 0:00 nginx: worker process
838 root 0:00 s6-supervise certsmonitor
839 root 0:00 s6-supervise statusmonitor
840 root 0:00 s6-supervise logmonitor
2521 app 0:17 /opt/jre/bin/java -Dawt.useSystemAAFontSettings=gasp -Djava.awt.headless=false -jar JDownloader.jar -afterupdate
2860 app 0:00 sleep 1
2861 root 0:00 ps -A

This is the output of docker inspect jdownloader-2

[
{
"Id": "8b5727f0761d2e262802160bad47bc94988ff5246daedcfa34984acf794d8b70",
"Created": "2018-07-08T20:10:31.693905061Z",
"Path": "/init",
"Args": [],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 3752,
"ExitCode": 0,
"Error": "",
"StartedAt": "2018-07-08T20:14:51.316504106Z",
"FinishedAt": "2018-07-08T20:14:48.919141397Z"
},
"Image": "sha256:0b8afacbf7e38fceb6ff5dd2c8ed7fc8baba7229fc34637aa03595ff86ea00ef",
"ResolvConfPath": "/var/lib/docker/containers/8b5727f0761d2e262802160bad47bc94988ff5246daedcfa34984acf794d8b70/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/8b5727f0761d2e262802160bad47bc94988ff5246daedcfa34984acf794d8b70/hostname",
"HostsPath": "/var/lib/docker/containers/8b5727f0761d2e262802160bad47bc94988ff5246daedcfa34984acf794d8b70/hosts",
"LogPath": "/var/lib/docker/containers/8b5727f0761d2e262802160bad47bc94988ff5246daedcfa34984acf794d8b70/8b5727f0761d2e262802160bad47bc94988ff5246daedcfa34984acf794d8b70-json.log",
"Name": "/jd2",
"RestartCount": 1,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "docker-default",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/srv/dev-disk-by-id-usb-Samsung_M3_Portable_00000000011E448B-0-0-part1/torrent:/output:rw",
"/etc/localtime:/etc/localtime:ro",
"/srv/dev-disk-by-id-usb-Samsung_M3_Portable_00000000011E448B-0-0-part1/torrent/jd2config:/config:rw",
"/srv/dev-disk-by-id-usb-Samsung_M3_Portable_00000000011E448B-0-0-part1/torrent:/storage:rw"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "bridge",
"PortBindings": {
"5800/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "5800"
}
],
"5900/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "5900"
}
]
},
"RestartPolicy": {
"Name": "always",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "shareable",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": [],
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DeviceCgroupRules": null,
"DiskQuota": 0,
"KernelMemory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"PidsLimit": 0,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0
},
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/31896158d44e73085f9fc7d24276e4b05181f8ed28e1c6740d23ac9f1fa39fac-init/diff:/var/lib/docker/overlay2/057108952ef93a042d38c4c296f2ff75d55f6663a890535911cf3c9eddd7a97b/diff:/var/lib/docker/overlay2/b618d41f7d0d661411cd879ae608c5b651356474da65f92e2f209819a6ff57d0/diff:/var/lib/docker/overlay2/d219639273f89fd22e6d3f60d3e75c2ade5f4cf8594ca7d470d0b44339001934/diff:/var/lib/docker/overlay2/182656d6f81711e89cfc2ba8e4d151ccbfb8d1a6252013232eb8065e255e6789/diff:/var/lib/docker/overlay2/f1858da1127fef436f533a321acb135a8499a66c6288c0452ab6ab0b8e059e0e/diff:/var/lib/docker/overlay2/7ae9986d5744b0302076e09d35a7f87c2c673dd98ee1b7777b36d1199dbf7013/diff:/var/lib/docker/overlay2/f8425d1ea1e4047d5061afc4f3868a35b29b1f307ad8c2b9d00c9abdbdbe22d1/diff:/var/lib/docker/overlay2/da054d6c3cded94617b113f85f23fbb9fa171244a8fa66b13e59ef3fb17ab12f/diff:/var/lib/docker/overlay2/91fc20e01045a57a4bca6941b16de91be103805ba85789699e0d16dbb84ecbb7/diff:/var/lib/docker/overlay2/f853a252e8dcd734ac5ad2b41cacaaa57a0c0a46c0a2c19c99c94cdcba0bf904/diff:/var/lib/docker/overlay2/f9b9f6451529ec9ea5235c9f3bfebe0cf2c18b880278dd51eab12112889e6164/diff:/var/lib/docker/overlay2/e2e8547c8d0e9c7927adadf9845ad87f413949f88ef80f220dd030ff15fd9d6a/diff:/var/lib/docker/overlay2/568220d779590f1b18ded4b9f2081e8314f535375de420fb108a3727bebb4a5e/diff:/var/lib/docker/overlay2/9ae70f2649e44cefa215ae3c1e0a438ff86432c8dc59507dab1d7dc6ec9f635f/diff:/var/lib/docker/overlay2/5ef6715ae8eb056ba028b7d0a728482294b1d04b5151d82bb2cb8e6bbf7184dd/diff:/var/lib/docker/overlay2/9f7cb6d69fed158bed681042d7b6f212a9d5d4f259a3fddc2eede0af1cde64f2/diff:/var/lib/docker/overlay2/cc4eaecd576e62e76869a5a26baa6a3628b5d7451c34c8f73c2fa3e0f83e7e2b/diff:/var/lib/docker/overlay2/6582ad9a74af6aab73869aa8230ce8c36a30d04661c42ae30613e17d628dd00f/diff:/var/lib/docker/overlay2/b7326400644ba2aa53ab003502ccb3b23297c7ff1cb1b4d7b767f3257604828c/diff:/var/lib/docker/overlay2/b9b303dc1cd1751b5670d06a45bd526c005564fb8f84e7b9025f3f543c6e643d/diff:/var/lib/docker/overlay2/f2a87b687bc5af4d97e811b0c239928887625981f27c894f7d07ba45f619b8f5/diff:/var/lib/docker/overlay2/3015e114463e37b2019e7a9f2cfe5936aaad2fae4df4ebe43ba9b0b1448ac7fa/diff",
"MergedDir": "/var/lib/docker/overlay2/31896158d44e73085f9fc7d24276e4b05181f8ed28e1c6740d23ac9f1fa39fac/merged",
"UpperDir": "/var/lib/docker/overlay2/31896158d44e73085f9fc7d24276e4b05181f8ed28e1c6740d23ac9f1fa39fac/diff",
"WorkDir": "/var/lib/docker/overlay2/31896158d44e73085f9fc7d24276e4b05181f8ed28e1c6740d23ac9f1fa39fac/work"
},
"Name": "overlay2"
},
"Mounts": [
{
"Type": "bind",
"Source": "/srv/dev-disk-by-id-usb-Samsung_M3_Portable_00000000011E448B-0-0-part1/torrent/jd2config",
"Destination": "/config",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/srv/dev-disk-by-id-usb-Samsung_M3_Portable_00000000011E448B-0-0-part1/torrent",
"Destination": "/storage",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/srv/dev-disk-by-id-usb-Samsung_M3_Portable_00000000011E448B-0-0-part1/torrent",
"Destination": "/output",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/etc/localtime",
"Destination": "/etc/localtime",
"Mode": "ro",
"RW": false,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "8b5727f0761d",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"5800/tcp": {},
"5900/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"XDG_CONFIG_HOME=/config/xdg/config",
"XDG_CACHE_HOME=/config/xdg/cache",
"DISPLAY_HEIGHT=768",
"DISPLAY=:0",
"DISPLAY_WIDTH=1280",
"S6_KILL_GRACETIME=8000",
"S6_BEHAVIOUR_IF_STAGE2_FAILS=3",
"S6_SERVICE_DEPS=1",
"APP_NAME=JDownloader 2",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"LANG=en_US.UTF-8",
"USER_ID=1000",
"GROUP_ID=1000",
"APP_USER=app",
"XDG_DATA_HOME=/config/xdg/data"
],
"Cmd": [
"/init"
],
"ArgsEscaped": true,
"Image": "jlesage/jdownloader-2:latest",
"Volumes": {
"/config": {},
"/output": {},
"/storage": {}
},
"WorkingDir": "/tmp",
"Entrypoint": null,
"OnBuild": null,
"Labels": {
"org.label-schema.description": "Docker container for JDownloader 2",
"org.label-schema.name": "jdownloader-2",
"org.label-schema.schema-version": "1.0",
"org.label-schema.vcs-url": "https://github.com/jlesage/docker-jdownloader-2",
"org.label-schema.version": "1.4.3"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "10675b89cd45154e74fc3820af4b21d25fc532a0557723a8b67f7502b2387a62",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"5800/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "5800"
}
],
"5900/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "5900"
}
]
},
"SandboxKey": "/var/run/docker/netns/10675b89cd45",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "4db5bd511b0e08cc0aaddea99fc54a946c2c2653e008633515f2c10e33e7ec4f",
"Gateway": "172.17.0.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "172.17.0.6",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"MacAddress": "02:42:ac:11:00:06",
"Networks": {
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "3df9dce70d08f2d94aa2a5a7664428062ad6bfb2178d71e17f9e9cf44c64f525",
"EndpointID": "4db5bd511b0e08cc0aaddea99fc54a946c2c2653e008633515f2c10e33e7ec4f",
"Gateway": "172.17.0.1",
"IPAddress": "172.17.0.6",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:11:00:06",
"DriverOpts": null
}
}
}
}
]

from docker-jdownloader-2.

jlesage avatar jlesage commented on August 18, 2024

Do you get the same error if you don't map the /config folder?

from docker-jdownloader-2.

computeus avatar computeus commented on August 18, 2024

It works if I do not map config folder.

from docker-jdownloader-2.

jlesage avatar jlesage commented on August 18, 2024

So there is something wrong with the mapping of /config. Could you provide the output of (when /config is mapped):

  • docker exec jdownloader-2 ls -l /
  • docker exec jdownloader-2 ls -l /config

from docker-jdownloader-2.

computeus avatar computeus commented on August 18, 2024

docker exec jd2 ls -l /

total 112
drwxr-xr-x 1 root root 4096 Mar 3 00:20 bin
drwxr-sr-x 8 app app 4096 Jul 12 02:37 config
drwxr-xr-x 1 root root 4096 Mar 3 00:18 defaults
drwxr-xr-x 5 root root 340 Jul 12 02:37 dev
drwxr-xr-x 1 root root 4096 Jul 12 02:37 etc
drwxr-xr-x 1 root root 4096 Mar 2 13:49 home
-rwxr-xr-x 1 root root 389 Dec 19 2017 init
drwxr-xr-x 1 root root 4096 Mar 3 00:19 lib
drwxr-xr-x 2 root root 4096 Mar 2 13:48 lib64
drwxr-xr-x 2 root root 4096 Nov 1 2017 libexec
drwxr-xr-x 5 root root 4096 Jan 9 2018 media
drwxr-xr-x 2 root root 4096 Jan 9 2018 mnt
drwxr-xr-x 1 root root 4096 Mar 3 00:19 opt
drwxrwsrwx 15 app app 4096 Jul 12 02:37 output
dr-xr-xr-x 266 root root 0 Jul 12 02:37 proc
drwx------ 2 root root 4096 Jan 9 2018 root
drwxr-xr-x 1 root root 4096 Jul 12 02:37 run
drwxr-xr-x 1 root root 4096 Mar 2 13:49 sbin
drwxr-xr-x 2 root root 4096 Jan 9 2018 srv
-rwxr-xr-x 1 root root 1413 Mar 3 00:18 startapp.sh
drwxrwsrwx 15 app app 4096 Jul 12 02:37 storage
dr-xr-xr-x 13 root root 0 Jul 12 02:37 sys
drwxrwxrwt 1 root root 4096 Jul 12 02:37 tmp
drwxr-xr-x 1 root root 4096 Mar 3 00:19 usr
drwxr-xr-x 1 root root 4096 Mar 3 00:19 var

docker exec jd2 ls -l /config

total 3328
-rw-rw-rw- 1 app app 0 Jul 12 02:37 JD2.lock
-rw-rw-rw- 1 app app 4 Jul 12 02:37 JD2.port
-rw-r--r-- 1 app app 3329436 Jul 12 02:37 JDownloader.jar
-rw-rw-rw- 1 app app 4 Jul 12 02:37 JDownloader.pid
drwxr-xr-x 2 app app 4096 Jul 12 02:37 cfg
-rw-r--r-- 1 app app 1115 Jul 12 02:37 default_site.conf
-rw-r--r-- 1 app app 424 Jul 12 02:37 dhparam.pem
-rw-r--r-- 1 app app 696 Jul 12 02:37 group
drwxrwsrwx 3 app app 4096 Jul 12 02:37 log
drwxrwsrwx 3 app app 4096 Jul 12 02:37 logs
-rw-r--r-- 1 app app 1265 Jul 12 02:37 passwd
-rw-r----- 1 app app 440 Jul 12 02:37 shadow
drwxrwsrwx 3 app app 4096 Jul 12 02:37 tmp
drwxrwsrwx 3 app app 4096 Jul 12 02:37 update
drwxrwsrwx 3 app app 4096 Jul 12 02:37 xdg

from docker-jdownloader-2.

jlesage avatar jlesage commented on August 18, 2024

And if you map /config to a different, empty folder? If this is working, then try to run the following command (with the container having /config mapped to the folder producing the error):

docker exec jd2 chmod 766 /config/JDownloader.jar

from docker-jdownloader-2.

computeus avatar computeus commented on August 18, 2024

The last output I sent is from a new empty folder.

I also set the file permissions to 0777 but the files

-rw-rw-rw- 1 app app 0 Jul 12 02:37 JD2.lock
-rw-rw-rw- 1 app app 4 Jul 12 02:37 JD2.port
-rw-r--r-- 1 app app 3329436 Jul 12 02:37 JDownloader.jar

return to the old permissions.

from docker-jdownloader-2.

jlesage avatar jlesage commented on August 18, 2024

And what's the output of df -h (on the host)?

from docker-jdownloader-2.

spaceman-zz avatar spaceman-zz commented on August 18, 2024

Same problem here when i map the volume config. Is there any solution?

from docker-jdownloader-2.

jlesage avatar jlesage commented on August 18, 2024

It’s probably related to the underlying file system. On which system are you running the container?

from docker-jdownloader-2.

spaceman-zz avatar spaceman-zz commented on August 18, 2024

Sorry for my late response. I am running openmediavault and the config data are on a ext4 share.

My workaround is to start the container the first time without mapping the volume. Then i stop the container and move the unnamed volume from /var/lib/docker/volumes to /sharedfolders/AppData/jdownloader. After that the volume starts without any errors.

from docker-jdownloader-2.

jlesage avatar jlesage commented on August 18, 2024

Can you provide the output of docker exec [container name] df -h?

from docker-jdownloader-2.

spaceman-zz avatar spaceman-zz commented on August 18, 2024

Unfortunately right now i have a different problem. As soon as the captcha dialog appears jdownloader 2 crash. In the log i found this:

Inconsistency detected by ld.so: dl-lookup.c: 128: check_match: Assertion `version->filename == NULL || ! _dl_name_match_p (version->filename, map)' failed!

Here is the output of docker exec jdownloader2 df -h:

Filesystem                Size      Used Available Use% Mounted on
overlay                  25.5G     16.7G      7.4G  69% /
tmpfs                    64.0M         0     64.0M   0% /dev
tmpfs                     1.9G         0      1.9G   0% /sys/fs/cgroup
/dev/sda1                25.5G     16.7G      7.4G  69% /config
/dev/md126               19.5G     17.0G      2.5G  87% /output
/dev/sda1                25.5G     16.7G      7.4G  69% /storage
/dev/sda1                25.5G     16.7G      7.4G  69% /etc/localtime
/dev/sda1                25.5G     16.7G      7.4G  69% /etc/resolv.conf
/dev/sda1                25.5G     16.7G      7.4G  69% /etc/hostname
/dev/sda1                25.5G     16.7G      7.4G  69% /etc/hosts
shm                      64.0M         0     64.0M   0% /dev/shm
tmpfs                     1.9G         0      1.9G   0% /proc/acpi
tmpfs                    64.0M         0     64.0M   0% /proc/kcore
tmpfs                    64.0M         0     64.0M   0% /proc/keys
tmpfs                    64.0M         0     64.0M   0% /proc/timer_list
tmpfs                    64.0M         0     64.0M   0% /proc/sched_debug
tmpfs                     1.9G         0      1.9G   0% /sys/firmware

from docker-jdownloader-2.

jlesage avatar jlesage commented on August 18, 2024

As soon as the captcha dialog appears jdownloader 2 crash.

Do you mean that you perform a download that requires resolving captcha? Which captcha resolver are you using?

from docker-jdownloader-2.

spaceman-zz avatar spaceman-zz commented on August 18, 2024

Yes. When i start a download from shareonline.biz. I have the following captcha resolver activated:

JAntiCaptcha
2captcha.com
Dialog (Windows) in Jdownloader
Dialog (Window) in Browser( Chrome, Firefox...)

Jdownloader crash even when i have only "Dialog (Window) in Browser" active..

from docker-jdownloader-2.

jlesage avatar jlesage commented on August 18, 2024

You should probably disable "Dialog (Window) in Browser", since there is no browser available the container. Can you try to active others one at time to see which one could cause the crash?

from docker-jdownloader-2.

pokrzys avatar pokrzys commented on August 18, 2024

Sorry for my late response. I am running openmediavault and the config data are on a ext4 share.

My workaround is to start the container the first time without mapping the volume. Then i stop the container and move the unnamed volume from /var/lib/docker/volumes to /sharedfolders/AppData/jdownloader. After that the volume starts without any errors.

I'm having same problem also running openmediavault. Does default mount option NOEXEC can be the cause? I can force all files created in the mount points to have other permissions (with x bit) but that's not something I would want to do.
Also the same error occurs if I install Jdownloader (java -jar JDownloader.jar) to mounted share. Which doesn't happed if I install to the default /opt/JDownloader.
Do you know how to resolve this?

from docker-jdownloader-2.

jlesage avatar jlesage commented on August 18, 2024

The noexec mount option does not allow the execution of executable binaries in the mounted file system. So yes it could be a problem. Can you try without this option to see if it fixes the issue?

from docker-jdownloader-2.

juliangaal avatar juliangaal commented on August 18, 2024

I'm getting the same error in the browser, which is strange, because it just worked yesterday.

System:
Ubuntu 18.04

Docker command:

sudo docker run --rm --name=jdownloader-2 -p 5800:5800 -v /media/julian/moviesIII/jdownloader/config:/config:rw -v /media/julian/moviesIII/jdownloader:/output:rw jlesage/jdownloader-2

Ouput of container:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-app-niceness.sh: executing... 
[cont-init.d] 00-app-niceness.sh: exited 0.
[cont-init.d] 00-app-script.sh: executing... 
[cont-init.d] 00-app-script.sh: exited 0.
[cont-init.d] 00-app-user-map.sh: executing... 
[cont-init.d] 00-app-user-map.sh: exited 0.
[cont-init.d] 00-clean-logmonitor-states.sh: executing... 
[cont-init.d] 00-clean-logmonitor-states.sh: exited 0.
[cont-init.d] 00-clean-tmp-dir.sh: executing... 
[cont-init.d] 00-clean-tmp-dir.sh: exited 0.
[cont-init.d] 00-set-app-deps.sh: executing... 
[cont-init.d] 00-set-app-deps.sh: exited 0.
[cont-init.d] 00-set-home.sh: executing... 
[cont-init.d] 00-set-home.sh: exited 0.
[cont-init.d] 00-take-config-ownership.sh: executing... 
[cont-init.d] 00-take-config-ownership.sh: exited 0.
[cont-init.d] 00-xdg-runtime-dir.sh: executing... 
[cont-init.d] 00-xdg-runtime-dir.sh: exited 0.
[cont-init.d] 10-certs.sh: executing... 
[cont-init.d] 10-certs.sh: exited 0.
[cont-init.d] 10-cjk-font.sh: executing... 
[cont-init.d] 10-cjk-font.sh: exited 0.
[cont-init.d] 10-nginx.sh: executing... 
[cont-init.d] 10-nginx.sh: exited 0.
[cont-init.d] 10-vnc-password.sh: executing... 
[cont-init.d] 10-vnc-password.sh: exited 0.
[cont-init.d] 10-web-index.sh: executing... 
[cont-init.d] 10-web-index.sh: exited 0.
[cont-init.d] jdownloader2.sh: executing... 
[cont-init.d] jdownloader2.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] starting s6-fdholderd...
[services.d] starting xvfb...
[xvfb] starting...
[services.d] starting certsmonitor...
[services.d] starting nginx...
[certsmonitor] disabling service: secure connection not enabled.
[nginx] starting...
[services.d] starting x11vnc...
[services.d] starting statusmonitor...
[x11vnc] starting...
[statusmonitor] no file to monitor: disabling service...
25/03/2020 08:47:54 passing arg to libvncserver: -rfbport
25/03/2020 08:47:54 passing arg to libvncserver: 5900
25/03/2020 08:47:54 passing arg to libvncserver: -rfbportv6
25/03/2020 08:47:54 passing arg to libvncserver: -1
25/03/2020 08:47:54 passing arg to libvncserver: -httpportv6
25/03/2020 08:47:54 passing arg to libvncserver: -1
25/03/2020 08:47:54 passing arg to libvncserver: -desktop
25/03/2020 08:47:54 passing arg to libvncserver: JDownloader 2
25/03/2020 08:47:54 x11vnc version: 0.9.14 lastmod: 2015-11-14  pid: 9712
25/03/2020 08:47:54 Using X display :0
25/03/2020 08:47:54 rootwin: 0x43 reswin: 0x200001 dpy: 0xd3c9c9e0
25/03/2020 08:47:54 
25/03/2020 08:47:54 ------------------ USEFUL INFORMATION ------------------
25/03/2020 08:47:54 X DAMAGE available on display, using it for polling hints.
25/03/2020 08:47:54   To disable this behavior use: '-noxdamage'
25/03/2020 08:47:54 
25/03/2020 08:47:54   Most compositing window managers like 'compiz' or 'beryl'
25/03/2020 08:47:54   cause X DAMAGE to fail, and so you may not see any screen
25/03/2020 08:47:54   updates via VNC.  Either disable 'compiz' (recommended) or
25/03/2020 08:47:54   supply the x11vnc '-noxdamage' command line option.
25/03/2020 08:47:54 X COMPOSITE available on display, using it for window polling.
25/03/2020 08:47:54   To disable this behavior use: '-noxcomposite'
25/03/2020 08:47:54 
25/03/2020 08:47:54 Wireframing: -wireframe mode is in effect for window moves.
25/03/2020 08:47:54   If this yields undesired behavior (poor response, painting
25/03/2020 08:47:54   errors, etc) it may be disabled:
25/03/2020 08:47:54    - use '-nowf' to disable wireframing completely.
25/03/2020 08:47:54    - use '-nowcr' to disable the Copy Rectangle after the
25/03/2020 08:47:54      moved window is released in the new position.
25/03/2020 08:47:54   Also see the -help entry for tuning parameters.
25/03/2020 08:47:54   You can press 3 Alt_L's (Left "Alt" key) in a row to 
25/03/2020 08:47:54   repaint the screen, also see the -fixscreen option for
25/03/2020 08:47:54   periodic repaints.
25/03/2020 08:47:54 GrabServer control via XTEST.
25/03/2020 08:47:54 
25/03/2020 08:47:54 Scroll Detection: -scrollcopyrect mode is in effect to
25/03/2020 08:47:54   use RECORD extension to try to detect scrolling windows
25/03/2020 08:47:54   (induced by either user keystroke or mouse input).
25/03/2020 08:47:54   If this yields undesired behavior (poor response, painting
25/03/2020 08:47:54   errors, etc) it may be disabled via: '-noscr'
25/03/2020 08:47:54   Also see the -help entry for tuning parameters.
25/03/2020 08:47:54   You can press 3 Alt_L's (Left "Alt" key) in a row to 
25/03/2020 08:47:54   repaint the screen, also see the -fixscreen option for
25/03/2020 08:47:54   periodic repaints.
25/03/2020 08:47:54 
25/03/2020 08:47:54 XKEYBOARD: number of keysyms per keycode 7 is greater
25/03/2020 08:47:54   than 4 and 51 keysyms are mapped above 4.
25/03/2020 08:47:54   Automatically switching to -xkb mode.
25/03/2020 08:47:54   If this makes the key mapping worse you can
25/03/2020 08:47:54   disable it with the "-noxkb" option.
25/03/2020 08:47:54   Also, remember "-remap DEAD" for accenting characters.
25/03/2020 08:47:54 
25/03/2020 08:47:54 X FBPM extension not supported.
Xlib:  extension "DPMS" missing on display ":0".
25/03/2020 08:47:54 X display is not capable of DPMS.
25/03/2020 08:47:54 --------------------------------------------------------
25/03/2020 08:47:54 
25/03/2020 08:47:54 Default visual ID: 0x21
25/03/2020 08:47:54 Read initial data from X display into framebuffer.
25/03/2020 08:47:54 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/5120
25/03/2020 08:47:54 
25/03/2020 08:47:54 X display :0 is 32bpp depth=24 true color
25/03/2020 08:47:54 
25/03/2020 08:47:54 Listening for VNC connections on TCP port 5900
25/03/2020 08:47:54 
25/03/2020 08:47:54 Xinerama is present and active (e.g. multi-head).
25/03/2020 08:47:54 Xinerama: number of sub-screens: 1
25/03/2020 08:47:54 Xinerama: no blackouts needed (only one sub-screen)
25/03/2020 08:47:54 
25/03/2020 08:47:54 fb read rate: 1404 MB/sec
25/03/2020 08:47:54 fast read: reset -wait  ms to: 10
25/03/2020 08:47:54 fast read: reset -defer ms to: 10
25/03/2020 08:47:54 The X server says there are 10 mouse buttons.
25/03/2020 08:47:54 screen setup finished.
25/03/2020 08:47:54 

The VNC desktop is:      d3cdbabd50f5:0
PORT=5900

******************************************************************************
Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?

The scheme stores pixel data offscreen on the VNC viewer side for faster
retrieval.  It should work with any VNC viewer.  Try it by running:

    x11vnc -ncache 10 ...

One can also add -ncache_cr for smooth 'copyrect' window motion.
More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching

[services.d] starting openbox...
[openbox] starting...
[services.d] starting logmonitor...
[services.d] starting app...
[logmonitor] no file to monitor: disabling service...
[app] starting JDownloader 2...
[jdsupervisor] JDownloader2 not started yet.  Proceeding...

and just hangs here

from docker-jdownloader-2.

jlesage avatar jlesage commented on August 18, 2024

Which error are you talking about ?

from docker-jdownloader-2.

Related Issues (20)

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.