DomiStyle / docker-idrac6

iDRAC 6 web interface and VNC proxy
https://hub.docker.com/r/domistyle/idrac6/
MIT License
778 stars 142 forks source link

Container using up all memory then crashing/stopping #57

Closed ebreen closed 1 year ago

ebreen commented 1 year ago

I'm having issues with running this container. When i start the container the resource usage jumps up to 20+ GB memory used and then it stops after a couple minutes.

docker run -d \
        -p 5800:5800 \
        -p 5900:5900 \
        -e IDRAC_HOST=IP \
        -e IDRAC_USER=username \
        -e IDRAC_PASSWORD=password \
        domistyle/idrac6

Output from docker log from crashed 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] done.
[services.d] starting services
[services.d] starting s6-fdholderd...
[services.d] starting certsmonitor...
[services.d] starting nginx...
[services.d] starting xvfb...
[nginx] starting...
./run: 10: ps: not found
[certsmonitor] disabling service: secure connection not enabled.
[xvfb] starting...
Failed to create /config/xdg/cache for shader cache (No such file or directory)---disabling.
[services.d] starting x11vnc...
[services.d] starting openbox...
[x11vnc] starting...
[openbox] starting...
Failed to create /config/xdg/cache for shader cache (No such file or directory)---disabling.
26/03/2023 22:18:44 passing arg to libvncserver: -rfbport
26/03/2023 22:18:44 passing arg to libvncserver: 5900
26/03/2023 22:18:44 passing arg to libvncserver: -rfbportv6
26/03/2023 22:18:44 passing arg to libvncserver: -1
26/03/2023 22:18:44 passing arg to libvncserver: -httpportv6
26/03/2023 22:18:44 passing arg to libvncserver: -1
26/03/2023 22:18:44 passing arg to libvncserver: -desktop
26/03/2023 22:18:44 passing arg to libvncserver: iDRAC 6
26/03/2023 22:18:44 x11vnc version: 0.9.14 lastmod: 2015-11-14  pid: 761
26/03/2023 22:18:44 Using X display :0
26/03/2023 22:18:44 rootwin: 0x50e reswin: 0x400001 dpy: 0xd1170c00
26/03/2023 22:18:44
26/03/2023 22:18:44 ------------------ USEFUL INFORMATION ------------------
26/03/2023 22:18:44 X DAMAGE available on display, using it for polling hints.
26/03/2023 22:18:44   To disable this behavior use: '-noxdamage'
26/03/2023 22:18:44
26/03/2023 22:18:44   Most compositing window managers like 'compiz' or 'beryl'
26/03/2023 22:18:44   cause X DAMAGE to fail, and so you may not see any screen
26/03/2023 22:18:44   updates via VNC.  Either disable 'compiz' (recommended) or
26/03/2023 22:18:44   supply the x11vnc '-noxdamage' command line option.
26/03/2023 22:18:44 X COMPOSITE available on display, using it for window polling.
26/03/2023 22:18:44   To disable this behavior use: '-noxcomposite'
26/03/2023 22:18:44
26/03/2023 22:18:44 Wireframing: -wireframe mode is in effect for window moves.
26/03/2023 22:18:44   If this yields undesired behavior (poor response, painting
26/03/2023 22:18:44   errors, etc) it may be disabled:
26/03/2023 22:18:44    - use '-nowf' to disable wireframing completely.
26/03/2023 22:18:44    - use '-nowcr' to disable the Copy Rectangle after the
26/03/2023 22:18:44      moved window is released in the new position.
26/03/2023 22:18:44   Also see the -help entry for tuning parameters.
26/03/2023 22:18:44   You can press 3 Alt_L's (Left "Alt" key) in a row to
26/03/2023 22:18:44   repaint the screen, also see the -fixscreen option for
26/03/2023 22:18:44   periodic repaints.
26/03/2023 22:18:44 GrabServer control via XTEST.
26/03/2023 22:18:44
26/03/2023 22:18:44 Scroll Detection: -scrollcopyrect mode is in effect to
26/03/2023 22:18:44   use RECORD extension to try to detect scrolling windows
26/03/2023 22:18:44   (induced by either user keystroke or mouse input).
26/03/2023 22:18:44   If this yields undesired behavior (poor response, painting
26/03/2023 22:18:44   errors, etc) it may be disabled via: '-noscr'
26/03/2023 22:18:44   Also see the -help entry for tuning parameters.
26/03/2023 22:18:44   You can press 3 Alt_L's (Left "Alt" key) in a row to
26/03/2023 22:18:44   repaint the screen, also see the -fixscreen option for
26/03/2023 22:18:44   periodic repaints.
26/03/2023 22:18:44
26/03/2023 22:18:44 XKEYBOARD: number of keysyms per keycode 7 is greater
26/03/2023 22:18:44   than 4 and 51 keysyms are mapped above 4.
26/03/2023 22:18:44   Automatically switching to -xkb mode.
26/03/2023 22:18:44   If this makes the key mapping worse you can
26/03/2023 22:18:44   disable it with the "-noxkb" option.
26/03/2023 22:18:44   Also, remember "-remap DEAD" for accenting characters.
26/03/2023 22:18:44
26/03/2023 22:18:44 X FBPM extension not supported.
Xlib:  extension "DPMS" missing on display ":0".
26/03/2023 22:18:44 X display is not capable of DPMS.
26/03/2023 22:18:44 --------------------------------------------------------
26/03/2023 22:18:44
26/03/2023 22:18:44 Default visual ID: 0x21
26/03/2023 22:18:44 Read initial data from X display into framebuffer.
26/03/2023 22:18:44 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/3204
26/03/2023 22:18:44 WARNING: Width (801) is not a multiple of 4. VncViewer has problems with that.
26/03/2023 22:18:44
26/03/2023 22:18:44 X display :0 is 32bpp depth=24 true color
26/03/2023 22:18:44
26/03/2023 22:18:44 Listening for VNC connections on TCP port 5900
26/03/2023 22:18:44
26/03/2023 22:18:44 Xinerama is present and active (e.g. multi-head).
26/03/2023 22:18:44 Xinerama: number of sub-screens: 1
26/03/2023 22:18:44 Xinerama: no blackouts needed (only one sub-screen)
26/03/2023 22:18:44
26/03/2023 22:18:44 fb read rate: 1079 MB/sec
26/03/2023 22:18:44 fast read: reset -wait  ms to: 10
26/03/2023 22:18:44 fast read: reset -defer ms to: 10
26/03/2023 22:18:44 The X server says there are 10 mouse buttons.
26/03/2023 22:18:44 screen setup finished.
26/03/2023 22:18:44

The VNC desktop is:      6849ebdd54ef: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 statusmonitor...
[services.d] starting logmonitor...
[services.d] starting app...
[statusmonitor] no file to monitor: disabling service...
[logmonitor] no file to monitor: disabling service...
[services.d] done.
[app] starting iDRAC 6...
Starting
Environment ok
Creating library folder
Downloading avctKVM
--2023-03-26 22:18:46--  https://10.101.13.45/software/avctKVM.jar
Connecting to 10.101.13.45:443... connected.
WARNING: The certificate of '10.101.13.45' is not trusted.
WARNING: The certificate of '10.101.13.45' doesn't have a known issuer.
The certificate's owner does not match hostname '10.101.13.45'
HTTP request sent, awaiting response... 200 OK
Length: 1006155 (983K) [application/octet-stream]
Saving to: 'avctKVM.jar'

     0K .......... .......... .......... .......... ..........  5%  145K 6s
    50K .......... .......... .......... .......... .......... 10%  244K 5s
   100K .......... .......... .......... .......... .......... 15%  196K 4s
   150K .......... .......... .......... .......... .......... 20%  296K 4s
   200K .......... .......... .......... .......... .......... 25%  198K 4s
   250K .......... .......... .......... .......... .......... 30%  311K 3s
   300K .......... .......... .......... .......... .......... 35%  312K 3s
   350K .......... .......... .......... .......... .......... 40%  204K 3s
   400K .......... .......... .......... .......... .......... 45%  269K 2s
   450K .......... .......... .......... .......... .......... 50%  202K 2s
   500K .......... .......... .......... .......... .......... 55%  315K 2s
   550K .......... .......... .......... .......... .......... 61%  227K 2s
   600K .......... .......... .......... .......... .......... 66%  215K 1s
   650K .......... .......... .......... .......... .......... 71%  280K 1s
   700K .......... .......... .......... .......... .......... 76%  302K 1s
   750K .......... .......... .......... .......... .......... 81%  235K 1s
   800K .......... .......... .......... .......... .......... 86%  312K 1s
   850K .......... .......... .......... .......... .......... 91%  313K 0s
   900K .......... .......... .......... .......... .......... 96%  313K 0s
   950K .......... .......... .......... ..                   100%  281K=4.0s

2023-03-26 22:18:52 (246 KB/s) - 'avctKVM.jar' saved [1006155/1006155]

Downloading avctKVMIOLinux64
--2023-03-26 22:18:52--  https://10.101.13.45/software/avctKVMIOLinux64.jar
Connecting to 10.101.13.45:443... connected.
WARNING: The certificate of '10.101.13.45' is not trusted.
WARNING: The certificate of '10.101.13.45' doesn't have a known issuer.
The certificate's owner does not match hostname '10.101.13.45'
HTTP request sent, awaiting response... 200 OK
Length: 983674 (961K) [application/octet-stream]
Saving to: 'lib/avctKVMIOLinux64.jar'

     0K .......... .......... .......... .......... ..........  5%  163K 6s
    50K .......... .......... .......... .......... .......... 10%  309K 4s
   100K .......... .......... .......... .......... .......... 15%  126K 5s
   150K .......... .......... .......... .......... .......... 20%  282K 4s
   200K .......... .......... .......... .......... .......... 26%  214K 4s
   250K .......... .......... .......... .......... .......... 31%  297K 3s
   300K .......... .......... .......... .......... .......... 36%  305K 3s
   350K .......... .......... .......... .......... .......... 41%  211K 3s
   400K .......... .......... .......... .......... .......... 46%  310K 2s
   450K .......... .......... .......... .......... .......... 52%  190K 2s
   500K .......... .......... .......... .......... .......... 57%  242K 2s
   550K .......... .......... .......... .......... .......... 62%  165K 2s
   600K .......... .......... .......... .......... .......... 67%  223K 1s
   650K .......... .......... .......... .......... .......... 72%  310K 1s
   700K .......... .......... .......... .......... .......... 78%  289K 1s
   750K .......... .......... .......... .......... .......... 83%  232K 1s
   800K .......... .......... .......... .......... .......... 88%  312K 0s
   850K .......... .......... .......... .......... .......... 93%  304K 0s
   900K .......... .......... .......... .......... .......... 98%  315K 0s
   950K ..........                                            100%  305K=4.1s

2023-03-26 22:18:57 (236 KB/s) - 'lib/avctKVMIOLinux64.jar' saved [983674/983674]

Downloading avctVMLinux64
--2023-03-26 22:18:57--  https://10.101.13.45/software/avctVMLinux64.jar
Connecting to 10.101.13.45:443... connected.
WARNING: The certificate of '10.101.13.45' is not trusted.
WARNING: The certificate of '10.101.13.45' doesn't have a known issuer.
The certificate's owner does not match hostname '10.101.13.45'
HTTP request sent, awaiting response... 200 OK
Length: 135203 (132K) [application/octet-stream]
Saving to: 'lib/avctVMLinux64.jar'

     0K .......... .......... .......... .......... .......... 37% 50.8K 2s
    50K .......... .......... .......... .......... .......... 75%  157K 0s
   100K .......... .......... .......... ..                   100%  158K=1.5s

2023-03-26 22:19:01 (87.7 KB/s) - 'lib/avctVMLinux64.jar' saved [135203/135203]

Extracting avctKVMIOLinux64
26/03/2023 22:19:46 Got connection from client 127.0.0.1
26/03/2023 22:19:46   other clients:
26/03/2023 22:19:46 Got 'ws' WebSockets handshake
26/03/2023 22:19:46 Got protocol: binary
26/03/2023 22:19:46   - webSocketsHandshake: using binary/raw encoding
26/03/2023 22:19:46   - WebSockets client version hybi-13
26/03/2023 22:19:46 Disabled X server key autorepeat.
26/03/2023 22:19:46   to force back on run: 'xset r on' (3 times)
26/03/2023 22:19:46 incr accepted_client=1 for 127.0.0.1:54300  sock=10
26/03/2023 22:19:46 Client Protocol Version 3.8
26/03/2023 22:19:46 Protocol version sent 3.8, using 3.8
26/03/2023 22:19:46 rfbProcessClientSecurityType: executing handler for type 1
26/03/2023 22:19:46 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8
26/03/2023 22:19:46 Pixel format for client 127.0.0.1:
26/03/2023 22:19:46   32 bpp, depth 24, little endian
26/03/2023 22:19:46   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
26/03/2023 22:19:46 no translation needed
26/03/2023 22:19:46 Enabling NewFBSize protocol extension for client 127.0.0.1
26/03/2023 22:19:46 Enabling full-color cursor updates for client 127.0.0.1
26/03/2023 22:19:46 Using image quality level 6 for client 127.0.0.1
26/03/2023 22:19:46 Using JPEG subsampling 0, Q79 for client 127.0.0.1
26/03/2023 22:19:46 Using compression level 9 for client 127.0.0.1
26/03/2023 22:19:46 Enabling LastRect protocol extension for client 127.0.0.1
26/03/2023 22:19:46 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFECC)
26/03/2023 22:19:46 Using tight encoding for client 127.0.0.1
Killed
Extracting avctVMLinux64
26/03/2023 22:19:50 client_set_net: 127.0.0.1  0.0301
26/03/2023 22:19:50 created   xdamage object: 0x40001e
26/03/2023 22:19:56 created selwin: 0x40001f
26/03/2023 22:19:56 called initialize_xfixes()
Killed
Initialization complete, starting virtual console
[services.d] stopping services
[services.d] stopping app...
[services.d] stopping logmonitor...
[services.d] stopping statusmonitor...
[services.d] stopping openbox...
[services.d] stopping x11vnc...
caught signal: 15
26/03/2023 22:20:41 deleted 26 tile_row polling images.
26/03/2023 22:20:41 Restored X server key autorepeat to: 1
[services.d] stopping xvfb...
[services.d] stopping nginx...
[services.d] stopping certsmonitor...
[services.d] stopping s6-fdholderd...
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

I've tried to limit the memory for a container to see if that helped but it still crashes after a couple min.

mckamyk commented 1 year ago

Having the same issue. For me, its filling up my entire 32GB of ram for my WSL instance is less than a minute. I also see a lot of disk read.

ebreen commented 1 year ago

Thanks!