Closed vladboisa closed 2 months ago
When i start to serve locally the Angular repo, see the error:
Local Execution
Clone the angular repo, start locally in WSL1 Ubuntu bash, and see the error
Windows 10 21H1 19043.1200
bazel info release
5.0.0
development version
(@non-git)
No response
git remote get-url origin; git rev-parse HEAD
https://github.com/vladboisa/angular.git 032216ed3490e21fa3ebacd9fb30508aaf32580d
Yes, only this issue But i already start this script's locally in WSL Ubuntu
INFO: Analyzed target //adev:serve (1408 packages loaded, 88024 targets configured). INFO: Found 1 target... INFO: From Action adev/src/content/cli/help/cli_docs_html: Could not find the language 'jsonc', did you forget to load/include a language module? ERROR: /mnt/m/Polka/angular/adev/src/content/guide/di/BUILD.bazel:3:16: Action adev/src/content/guide/di/creating-injectable-service.md.html failed: (Exit 1): markdown.sh failed: error executing command bazel-out/k8-opt-exec-2B5CBBC6/bin/external/npm/@angular/docs/pipeline/markdown.sh bazel-out/k8-fastbuild/bin/adev/src/content/guide/di/creating-injectable-service.md.html-0.params ... (remaining 1 argument skipped) Use --sandbox_debug to see verbose messages from the sandbox /home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/1320/execroot/angular/external/npm/@angular/docs/pipeline/guides.mjs:49691 const browser = await chromium.launch({ ^ browserType.launch: Target page, context or browser has been closed Browser logs: <launching> /home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/1320/execroot/angular/bazel-out/k8-opt-exec-2B5CBBC6/bin/external/npm/@angular/docs/pipeline/markdown.sh.runfiles/org_chromium_chromium_linux_x64/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-UQO2K2 --remote-debugging-pipe --no-startup-window <launched> pid=23351 -[pid=23351][err] /home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/1320/execroot/angular/bazel-out/k8-opt-exec-2B5CBBC6/bin/external/npm/@angular/docs/pipeline/markdown.sh.runfiles/org_chromium_chromium_linux_x64/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory [pid=23351] <process did exit: exitCode=127, signal=null> [pid=23351] starting temporary directories cleanup` Call log: <launching> /home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/1320/execroot/angular/bazel-out/k8-opt-exec-2B5CBBC6/bin/external/npm/@angular/docs/pipeline/markdown.sh.runfiles/org_chromium_chromium_linux_x64/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-UQO2K2 --remote-debugging-pipe --no-startup-window <launched> pid=23351 -[pid=23351][err] /home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/1320/execroot/angular/bazel-out/k8-opt-exec-2B5CBBC6/bin/external/npm/@angular/docs/pipeline/markdown.sh.runfiles/org_chromium_chromium_linux_x64/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory [pid=23351] <process did exit: exitCode=127, signal=null> [pid=23351] starting temporary directories cleanup at Object.processMermaidCodeBlock (/home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/1320/execroot/angular/external/npm/@angular/docs/pipeline/guides.mjs:49691:34) at Marked.walkTokens2 (/home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/1320/execroot/angular/external/npm/@angular/docs/pipeline/guides.mjs:53186:84) at main (/home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/1320/execroot/angular/external/npm/@angular/docs/pipeline/guides.mjs:53227:31) Target //adev:serve failed to build Use --verbose_failures to see the command lines of failed build steps. ERROR: /mnt/m/Polka/angular/adev/src/assets/BUILD.bazel:5:18 Copying files to directory failed: (Exit 1): markdown.sh failed: error executing command bazel-out/k8-opt-exec-2B5CBBC6/bin/external/npm/@angular/docs/pipeline/markdown.sh bazel-out/k8-fastbuild/bin/adev/src/content/guide/di/creating-injectable-service.md.html-0.params ... (remaining 1 argument skipped) Use --sandbox_debug to see verbose messages from the sandbox INFO: Elapsed time: 618.369s, Critical Path: 171.25s INFO: 1621 processes: 807 internal, 402 local, 240 processwrapper-sandbox, 172 worker. FAILED: Build did NOT complete successfully
--verbose-failures
ERROR: /mnt/m/Polka/angular/adev/src/content/introduction/essentials/BUILD.bazel:3:16: Action adev/src/content/introduction/essentials/components.md.html failed: (Exit 1): markdown.sh failed: error executing command (cd /home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/1604/execroot/angular && \ exec env - \ BAZEL_NODE_MODULES_ROOTS='' \ COMPILATION_MODE=fastbuild \ bazel-out/k8-opt-exec-2B5CBBC6/bin/external/npm/@angular/docs/pipeline/markdown.sh bazel-out/k8-fastbuild/bin/adev/src/content/introduction/essentials/components.md.html-0.params '--bazel_node_modules_manifest=bazel-out/k8-fastbuild/bin/adev/src/content/introduction/essentials/_essentials.module_mappings.json') # Configuration: 8e09024857d4ba063228921961a60e2fad19d91ef3af17888baa4d42fc3dc2bf # Execution platform: @local_config_platform//:host
at Object.processMermaidCodeBlock (/home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/1604/execroot/angular/external/npm/@angular/docs/pipeline/guides.mjs:49691:34) at Marked.walkTokens2 (/home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/1604/execroot/angular/external/npm/@angular/docs/pipeline/guides.mjs:53186:84) at main (/home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/1604/execroot/angular/external/npm/@angular/docs/pipeline/guides.mjs:53227:31) Target //adev:serve failed to build ERROR: /mnt/m/Polka/angular/adev/src/assets/BUILD.bazel:5:18 Copying files to directory failed: (Exit 1): markdown.sh failed: error executing command (cd /home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/1604/execroot/angular && \ exec env - \ BAZEL_NODE_MODULES_ROOTS='' \ COMPILATION_MODE=fastbuild \ bazel-out/k8-opt-exec-2B5CBBC6/bin/external/npm/@angular/docs/pipeline/markdown.sh bazel-out/k8-fastbuild/bin/adev/src/content/introduction/essentials/components.md.html-0.params '--bazel_node_modules_manifest=bazel-out/k8-fastbuild/bin/adev/src/content/introduction/essentials/_essentials.module_mappings.json') # Configuration: 8e09024857d4ba063228921961a60e2fad19d91ef3af17888baa4d42fc3dc2bf # Execution platform: @local_config_platform//:host Use --sandbox_debug to see verbose messages from the sandbox INFO: Elapsed time: 478.022s, Critical Path: 169.29s
--sandbox_debug
$ /mnt/m/Polka/angular/node_modules/.bin/bazel run //adev:serve --fast_adev --sandbox_debug INFO: Analyzed target //adev:serve (1408 packages loaded, 88024 targets configured). INFO: Found 1 target... INFO: From Bundling Javascript packages/core/schematics/ng-generate/standalone-migration/index.ts [esbuild]: ▲ [WARNING] "import.meta" is not available in the configured target environment ("es2015") and will be empty [empty-import-meta] bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs:55:43: 55 │ const currentFileUrl = isCommonJS ? null : import.meta.url; ╵ ~~~~~~~~~~~ INFO: From Action adev/src/content/cli/help/cli_docs_html: Could not find the language 'jsonc', did you forget to load/include a language module? ERROR: /mnt/m/Polka/angular/adev/src/content/introduction/essentials/BUILD.bazel:3:16: Action adev/src/content/introduction/essentials/components.md.html failed: (Exit 1): process-wrapper failed: error executing command (cd /home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/2723/execroot/angular && \ exec env - \ BAZEL_NODE_MODULES_ROOTS='' \ COMPILATION_MODE=fastbuild \ TMPDIR=/tmp \ /home/scorp32/.cache/bazel/_bazel_scorp32/install/c87283ec3a7822eea44f4cecb6db792e/process-wrapper '--timeout=0' '--kill_delay=15' bazel-out/k8-opt-exec-2B5CBBC6/bin/external/npm/@angular/docs/pipeline/markdown.sh bazel-out/k8-fastbuild/bin/adev/src/content/introduction/essentials/components.md.html-0.params '--bazel_node_modules_manifest=bazel-out/k8-fastbuild/bin/adev/src/content/introduction/essentials/_essentials.module_mappings.json') /home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/2723/execroot/angular/external/npm/@angular/docs/pipeline/guides.mjs:49691 const browser = await chromium.launch({ ^ browserType.launch: Target page, context or browser has been closed Browser logs: <launching> /home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/2723/execroot/angular/bazel-out/k8-opt-exec-2B5CBBC6/bin/external/npm/@angular/docs/pipeline/markdown.sh.runfiles/org_chromium_chromium_linux_x64/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-PfnQJx --remote-debugging-pipe --no-startup-window <launched> pid=13620 [pid=13620][err] /home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/2723/execroot/angular/bazel-out/k8-opt-exec-2B5CBBC6/bin/external/npm/@angular/docs/pipeline/markdown.sh.runfiles/org_chromium_chromium_linux_x64/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory [pid=13620] <process did exit: exitCode=127, signal=null> [pid=13620] starting temporary directories cleanup Call log: - <launching> /home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/2723/execroot/angular/bazel-out/k8-opt-exec-2B5CBBC6/bin/external/npm/@angular/docs/pipeline/markdown.sh.runfiles/org_chromium_chromium_linux_x64/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-PfnQJx --remote-debugging-pipe --no-startup-window - <launched> pid=13620 - [pid=13620][err] /home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/2723/execroot/angular/bazel-out/k8-opt-exec-2B5CBBC6/bin/external/npm/@angular/docs/pipeline/markdown.sh.runfiles/org_chromium_chromium_linux_x64/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory - [pid=13620] <process did exit: exitCode=127, signal=null> - [pid=13620] starting temporary directories cleanup at Object.processMermaidCodeBlock (/home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/2723/execroot/angular/external/npm/@angular/docs/pipeline/guides.mjs:49691:34) at Marked.walkTokens2 (/home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/2723/execroot/angular/external/npm/@angular/docs/pipeline/guides.mjs:53186:84) at main (/home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/2723/execroot/angular/external/npm/@angular/docs/pipeline/guides.mjs:53227:31) Target //adev:serve failed to build Use --verbose_failures to see the command lines of failed build steps. ERROR: /mnt/m/Polka/angular/adev/src/assets/BUILD.bazel:5:18 Copying files to directory failed: (Exit 1): process-wrapper failed: error executing command (cd /home/scorp32/.cache/bazel/_bazel_scorp32/e2f937d30d70b3d2dbf1e45fe5ca017a/sandbox/processwrapper-sandbox/2723/execroot/angular && \ exec env - \ BAZEL_NODE_MODULES_ROOTS='' \ COMPILATION_MODE=fastbuild \ TMPDIR=/tmp \ /home/scorp32/.cache/bazel/_bazel_scorp32/install/c87283ec3a7822eea44f4cecb6db792e/process-wrapper '--timeout=0' '--kill_delay=15' bazel-out/k8-opt-exec-2B5CBBC6/bin/external/npm/@angular/docs/pipeline/markdown.sh bazel-out/k8-fastbuild/bin/adev/src/content/introduction/essentials/components.md.html-0.params '--bazel_node_modules_manifest=bazel-out/k8-fastbuild/bin/adev/src/content/introduction/essentials/_essentials.module_mappings.json') INFO: Elapsed time: 937.670s, Critical Path: 188.99s INFO: 1916 processes: 807 internal, 403 local, 450 processwrapper-sandbox, 256 worker. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Done with answer
Description of the bug:
When i start to serve locally the Angular repo, see the error:
Which category does this issue belong to?
Local Execution
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Clone the angular repo, start locally in WSL1 Ubuntu bash, and see the error
Which operating system are you running Bazel on?
Windows 10 21H1 19043.1200
What is the output of
bazel info release
?5.0.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
No response
Have you found anything relevant by searching the web?
Yes, only this issue But i already start this script's locally in WSL Ubuntu
Any other information, logs, or outputs that you want to share?
The Log with
--verbose-failures
The Log with
--sandbox_debug