jlesage / docker-crashplan-pro

Docker container for CrashPlan PRO (aka CrashPlan for Small Business)
290 stars 39 forks source link

[Bug] Container is stopped when apply new memory usage settings #441

Closed nekerd closed 8 months ago

nekerd commented 8 months ago

Current Behavior

Container is stopped when apply new memory usage settings, and new configuration is not applied after restarting container

Expected Behavior

Container do not stop. Crashplan restart inside the active container and new setting are applied

Steps To Reproduce

Ctrl+Shift+C > Popup terminal from application appears > instruction provided: "java mx 4096, restart" container stopped

Environment

Container creation

/init

Container log

[supervisor  ] loading service 'default'...
[supervisor  ] loading service 'logrotate'...
[supervisor  ] loading service 'logmonitor'...
[supervisor  ] loading service 'app'...
[supervisor  ] loading service 'CrashPlanEngine'...
[supervisor  ] loading service 'gui'...
[supervisor  ] loading service 'xvnc'...
[supervisor  ] loading service 'certsmonitor'...
[supervisor  ] service 'certsmonitor' is disabled.
[supervisor  ] loading service 'openbox'...
[supervisor  ] loading service 'nginx'...
[supervisor  ] all services loaded.
[supervisor     ] starting services...
[supervisor     ] starting service 'logmonitor'...
[logmonitor     ] Monitoring log file: /config/log/service.log.0
[logmonitor     ] Monitoring status file: /config/log/app.log
[supervisor     ] starting service 'CrashPlanEngine'...
[supervisor     ] starting service 'xvnc'...
[xvnc           ] Xvnc TigerVNC 1.13.1 - built Nov 10 2023 13:14:48
[xvnc           ] Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
[xvnc           ] See https://www.tigervnc.org for information on TigerVNC.
[xvnc           ] Underlying X server release 12014000
[xvnc           ] Sat Nov 11 02:25:42 2023
[xvnc           ]  vncext:      VNC extension running!
[xvnc           ]  vncext:      Listening for VNC connections on /tmp/vnc.sock (mode 0660)
[xvnc           ]  vncext:      Listening for VNC connections on all interface(s), port 5900
[xvnc           ]  vncext:      created VNC server for screen 0
[supervisor     ] starting service 'openbox'...
[supervisor     ] starting service 'nginx'...
[nginx          ] Listening for HTTP connections on port 5800.
[supervisor     ] starting service 'app'...
[supervisor     ] all services started.
[xvnc           ] Sat Nov 11 02:25:45 2023
[xvnc           ]  Connections: accepted: /tmp/vnc.sock
[xvnc           ]  SConnection: Client needs protocol version 3.8
[xvnc           ]  SConnection: Client requests security type None(1)
[xvnc           ]  VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888
[xvnc           ]  VNCSConnST:  Client pixel format depth 24 (32bpp) little-endian bgr888
[xvnc           ]  ComparingUpdateTracker: 0 pixels in / 0 pixels out
[xvnc           ]  ComparingUpdateTracker: (1:-nan ratio)
[xvnc           ] Sat Nov 11 02:26:21 2023
[xvnc           ]  VNCSConnST:  closing /tmp/vnc.sock: Clean disconnection
[xvnc           ]  EncodeManager: Framebuffer updates: 78
[xvnc           ]  EncodeManager:   Tight:
[xvnc           ]  EncodeManager:     Solid: 179 rects, 2.21501 Mpixels
[xvnc           ]  EncodeManager:            2.79688 KiB (1:3094.34 ratio)
[xvnc           ]  EncodeManager:     Bitmap RLE: 59 rects, 43.938 kpixels
[xvnc           ]  EncodeManager:                 1.72852 KiB (1:99.6949 ratio)
[xvnc           ]  EncodeManager:     Indexed RLE: 290 rects, 178.242 kpixels
[xvnc           ]  EncodeManager:                  50.5596 KiB (1:13.8383 ratio)
[xvnc           ]  EncodeManager:   Tight (JPEG):
[xvnc           ]  EncodeManager:     Full Colour: 326 rects, 982.537 kpixels
[xvnc           ]  EncodeManager:                  574.005 KiB (1:6.69307 ratio)
[xvnc           ]  EncodeManager:   Total: 854 rects, 3.41973 Mpixels
[xvnc           ]  EncodeManager:          629.09 KiB (1:21.2502 ratio)
[xvnc           ]  Connections: closed: /tmp/vnc.sock
[xvnc           ]  ComparingUpdateTracker: 28.6652 Mpixels in / 1.01635 Mpixels out
[xvnc           ]  ComparingUpdateTracker: (1:28.204 ratio)
[xvnc           ]  Connections: accepted: /tmp/vnc.sock
[xvnc           ]  SConnection: Client needs protocol version 3.8
[xvnc           ]  SConnection: Client requests security type None(1)
[xvnc           ]  VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888
[xvnc           ]  VNCSConnST:  Client pixel format depth 24 (32bpp) little-endian bgr888
[logmonitor     ] ERROR: CrashPlan for Small Business is running out of memory. The application crashed because of lack of memory.  More memory needs to be allocated.  This can be done via the CRASHPLAN_SRV_MAX_MEM environment variable.
[supervisor     ] service 'app' exited (with status 0).
[supervisor     ] service 'app' exited, shutting down...
[supervisor     ] stopping service 'nginx'...
[xvnc           ] Sat Nov 11 10:03:45 2023
[xvnc           ]  VNCSConnST:  closing /tmp/vnc.sock: Clean disconnection
[xvnc           ]  EncodeManager: Framebuffer updates: 88
[xvnc           ]  EncodeManager:   Tight:
[xvnc           ]  EncodeManager:     Solid: 97 rects, 1.85315 Mpixels
[xvnc           ]  EncodeManager:            1.51562 KiB (1:4776.9 ratio)
[xvnc           ]  EncodeManager:     Bitmap RLE: 34 rects, 24.551 kpixels
[xvnc           ]  EncodeManager:                 1021 B (1:96.5837 ratio)
[xvnc           ]  EncodeManager:     Indexed RLE: 217 rects, 94.77 kpixels
[xvnc           ]  EncodeManager:                  35.7178 KiB (1:10.4357 ratio)
[xvnc           ]  EncodeManager:   Tight (JPEG):
[xvnc           ]  EncodeManager:     Full Colour: 199 rects, 571.06 kpixels
[xvnc           ]  EncodeManager:                  439.037 KiB (1:5.08621 ratio)
[xvnc           ]  EncodeManager:   Total: 547 rects, 2.54353 Mpixels
[xvnc           ]  EncodeManager:          477.268 KiB (1:20.8312 ratio)
[xvnc           ]  Connections: closed: /tmp/vnc.sock
[xvnc           ]  ComparingUpdateTracker: 2.37169 Gpixels in / 1.59394 Gpixels out
[xvnc           ]  ComparingUpdateTracker: (1:1.48794 ratio)
[supervisor     ] service 'nginx' exited (with status 0).
[supervisor     ] stopping service 'openbox'...
[supervisor     ] service 'openbox' exited (with status 0).
[supervisor     ] stopping service 'xvnc'...
[xvnc           ]  ComparingUpdateTracker: 0 pixels in / 0 pixels out
[xvnc           ]  ComparingUpdateTracker: (1:-nan ratio)
[supervisor     ] service 'xvnc' exited (with status 0).
[supervisor     ] stopping service 'CrashPlanEngine'...
[supervisor     ] stopping service 'logmonitor'...
[supervisor     ] service 'logmonitor' exited (got signal SIGTERM).
[supervisor     ] sending SIGTERM to all processes...
[supervisor     ] sending SIGKILL to all processes...
[supervisor     ] service 'CrashPlanEngine' exited (got signal SIGKILL).
[finish      ] executing container finish scripts...
[finish      ] all container finish scripts executed.

Container inspect

No response

Anything else?

No response

jlesage commented 8 months ago

Container is stopped when apply new memory usage settings

By default, when CrashPlan quits, the container also terminates. If you prefer CrashPlan to be automatically restarted instead, set KEEP_APP_RUNNING=1 environment variable. See https://github.com/jlesage/docker-crashplan-pro#environment-variables

and new configuration is not applied after restarting container

If CRASHPLAN_SRV_MAX_MEM variable is set, it will take precedence. It's usually better to use this variable to set the memory limit.

nekerd commented 8 months ago

Hi Jocelyn, thanks for all your help. Your work is amazing!