opensearch-project / reporting

Export and automate PNG, PDF, and CSV reports in OpenSearch Dashboards
https://opensearch.org/docs/latest/dashboards/reporting/
Apache License 2.0
29 stars 66 forks source link

[BUG] Report generation fails on Helm deployment of 2.4.0 #543

Open tomte76 opened 1 year ago

tomte76 commented 1 year ago

I deployed opensearch and opensearch-dashboard using the latest helm files. I can write data to it, can explore and graph my data, but I cannot generate reports. If I go to a dashboard and hit the PDF or PNG report link from the pulldown I can see the headless_shell processes spawn on the corresponding kubernetes worker inside the pod. But they never finish. If I generate another report the process count doubles. The only way to get rid of the processes is to restart the pod. I can also see all my reports in the reporting dashboard but I also cannot download a PDF or PNG there.

These are the processes I can see when generating the first report after pod restart.

1000 2778128 0.4 0.0 33946460 78580 ? Ssl 12:49 0:02 /usr/share/opensearch-dashboards/plugins/reportsDashboards/server/routes/utils/../../../.chromium/headless_shell --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=Translate,BackForwardCache --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --enable-blink-features=IdleDetection --export-tagged-pdf --headless --hide-scrollbars --mute-audio about:blank --no-sandbox --disable-setuid-sandbox --disable-gpu --no-zygote --font-render-hinting=none --js-flags="--jitless --no-opt" --disable-features=V8OptimizeJavascript --remote-debugging-pipe --user-data-dir=/tmp/puppeteer_dev_chrome_profile-0OnwWk

1000 2778147 0.3 0.0 33859828 60644 ? Sl 12:49 0:01 /usr/share/opensearch-dashboards/plugins/reportsDashboards/.chromium/headless_shell --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US@posix --service-sandbox-type=none --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --use-gl=angle --mute-audio --headless --shared-files --field-trial-handle=0,i,3632486633852991257,1434830542212920959,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=PaintHolding,V8

1000 2778165 0.0 0.0 1179740928 97664 ? Sl 12:49 0:00 /usr/share/opensearch-dashboards/plugins/reportsDashboards/.chromium/headless_shell --type=renderer --headless --lang=en-US@posix --first-renderer-process --no-sandbox --disable-dev-shm-usage --disable-background-timer-throttling --disable-breakpad --enable-automation --force-color-profile=srgb --no-zygote --remote-debugging-pipe --allow-pre-commit-input --js-flags="--jitless --no-opt" --ozone-platform=headless --disable-gpu-compositing --enable-blink-features=IdleDetection --lang=en-US@posix --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=4 --time-ticks-at-unix-epoch=-1667818749120505 --launch-time-ticks=1558237902084 --shared-files --field-trial-handle=0,i,3632486633852991257,1434830542212920959,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=PaintHolding,V8

1000 2778684 1.3 0.0 33831384 57272 ? Sl 12:49 0:05 /usr/share/opensearch-dashboards/plugins/reportsDashboards/.chromium/headless_shell --type=gpu-process --no-sandbox --disable-dev-shm-usage --disable-breakpad --headless --ozone-platform=headless --use-angle=swiftshader-webgl --headless --gpu-preferences=WAAAAAAAAAAgAAAYAAAAAAAAAAAAAAAAAABgAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAIAAAAAAAAAA== --use-gl=disabled --shared-files --field-trial-handle=0,i,3632486633852991257,1434830542212920959,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=PaintHolding,V8

1000 2778729 6.8 0.0 1179806136 263192 ? Rl 12:49 0:29 /usr/share/opensearch-dashboards/plugins/reportsDashboards/.chromium/headless_shell --type=renderer --headless --lang=en-US@posix --no-sandbox --disable-dev-shm-usage --disable-background-timer-throttling --disable-breakpad --enable-automation --force-color-profile=srgb --no-zygote --remote-debugging-pipe --allow-pre-commit-input --js-flags="--jitless --no-opt" --ozone-platform=headless --disable-gpu-compositing --enable-blink-features=IdleDetection --lang=en-US@posix --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=7 --time-ticks-at-unix-epoch=-1667818749120505 --launch-time-ticks=1558240700997 --shared-files --field-trial-handle=0,i,3632486633852991257,1434830542212920959,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=PaintHolding,V8

I would appreciate any support to fix this problem. Thank you very much.

rupal-bq commented 1 year ago

chromium was removed as part of https://github.com/opensearch-project/reporting/issues/577. This should work in v2.5.