Title
h

high-hospital-85984

09/21/2020, 11:39 AM
I’m trying to build the
datahub-frontend
image, but hitting
| Launcher Chrome not found. Not installed?
. Couldn’t find any mention about this in the docs. Any ideas?
b

bumpy-keyboard-50565

09/21/2020, 11:41 AM
@breezy-forest-52817 ^^^
Do you have Chrome installed locally?
h

high-hospital-85984

09/21/2020, 11:43 AM
yes. I ran the build outside Docker without a hitch.
Here is the end of the logs
@nacho-ui/core
 | $ ember test
 | Building
 | Environment: test
 | building... 
 | cleaning up
 | cleaning up...
 | Built project successfully. Stored in "/tmp/tests-dist-2020821-1076-1dmvpqp.k15q".
 | Launcher Chrome not found. Not installed?
 | 
 | =================================================================================
 | 
 | ENV Summary:
 | 
 |   TIME: Mon Sep 21 2020 11:37:49 GMT+0000 (Coordinated Universal Time)
 |   TITLE: ember
 |   ARGV:
 |   - /datahub-@nacho-ui/nacho-core/src/datahub-web/build/nodejs/node-v12.8.0-linux-x64/bin/node
 |   - /datahub-src/datahub-web/@nacho-ui/nacho-core/node_modules/.bin/ember
 |   - test
 |   EXEC_PATH: /datahub-@nacho-ui/nacho-core/src/datahub-web/build/nodejs/node-v12.8.0-linux-x64/bin/node
 |   TMPDIR: /tmp
 |   SHELL: /bin/bash
 |   PATH:
 |   - /tmp/yarn--1600688251845-0.9526463078006133
 |   - /datahub-src/datahub-web/@nacho-ui/nacho-core/node_modules/.bin
 |   - /usr/local/share/.config/yarn/link/node_modules/.bin
 |   - /datahub-src/datahub-web/node_modules/.bin
 |   - /datahub-src/datahub-web/@nacho-ui/nacho-core/node_modules/.bin
 |   - /usr/local/share/.config/yarn/link/node_modules/.bin
 |   - /datahub-src/datahub-web/node_modules/.bin
 |   - /datahub-@nacho-ui/nacho-core/src/datahub-web/build/nodejs/node-v12.8.0-linux-x64/libexec/lib/node_modules/npm/bin/node-gyp-bin
 |   - /datahub-@nacho-ui/nacho-core/src/datahub-web/build/nodejs/node-v12.8.0-linux-x64/lib/node_modules/npm/bin/node-gyp-bin
 |   - /datahub-@nacho-ui/nacho-core/src/datahub-web/build/nodejs/node-v12.8.0-linux-x64/bin/node_modules/npm/bin/node-gyp-bin
 |   - /tmp/yarn--1600688249212-0.9790087033538193
 |   - /datahub-src/datahub-web/node_modules/.bin
 | not ok 1 [undefined ms] - Error
 |     ---
 |         message: >
 |             Launcher Chrome not found. Not installed?
 |     ...
 | 
 | 1..1
 | # tests 1
 | # pass  0
 | # skip  0
 | # fail  1
 |   - /usr/local/share/.config/yarn/link/node_modules/.bin
 |   - /datahub-src/datahub-web/node_modules/.bin
 |   - /datahub-src/datahub-web/node_modules/.bin
 |   - /usr/local/share/.config/yarn/link/node_modules/.bin
 |   - /datahub-src/datahub-web/node_modules/.bin
 |   - /datahub-@nacho-ui/nacho-core/src/datahub-web/build/nodejs/node-v12.8.0-linux-x64/libexec/lib/node_modules/npm/bin/node-gyp-bin
 |   - /datahub-@nacho-ui/nacho-core/src/datahub-web/build/nodejs/node-v12.8.0-linux-x64/lib/node_modules/npm/bin/node-gyp-bin
 |   - /datahub-@nacho-ui/nacho-core/src/datahub-web/build/nodejs/node-v12.8.0-linux-x64/bin/node_modules/npm/bin/node-gyp-bin
 |   - /datahub-@nacho-ui/nacho-core/src/datahub-web/build/yarn/yarn-v1.13.0/bin
 |   - /datahub-@nacho-ui/nacho-core/src/datahub-web/build/nodejs/node-v12.8.0-linux-x64/bin
 |   - /datahub-@nacho-ui/nacho-core/src/datahub-web/build/nodejs/node-v12.8.0-linux-x64/bin
 |   - /usr/local/openjdk-8/bin
 |   - /usr/local/sbin
 |   - /usr/local/bin
 |   - /usr/sbin
 |   - /usr/bin
 |   - /sbin
 |   - /bin
 |   PLATFORM: linux x64
 |   FREEMEM: 7949529088
 |   TOTALMEM: 16795869184
 |   UPTIME: 478
 |   LOADAVG: 2.80859375,1.68896484375,0.70849609375
 |   CPUS:
 |   - Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz - 2300
 |   - Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz - 2300
 |   - Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz - 2300
 |   - Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz - 2300
 |   - Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz - 2300
 |   - Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz - 2300
 |   - Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz - 2300
 |   - Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz - 2300
 |   ENDIANNESS: LE
 |   VERSIONS:
 |   - ares: 1.15.0
 |   - brotli: 1.0.7
 |   - cldr: 35.1
 |   - http_parser: 2.8.0
 |   - icu: 64.2
 |   - llhttp: 1.1.4
 |   - modules: 72
 |   - napi: 4
 |   - nghttp2: 1.39.1
 |   - node: 12.8.0
 |   - openssl: 1.1.1c
 |   - tz: 2019a
 |   - unicode: 12.1
 |   - uv: 1.30.1
 |   - v8: 7.5.288.22-node.16
 |   - zlib: 1.2.11
 | 
 | ERROR Summary:
 | 
 |   - broccoliBuilderErrorStack: [undefined]
 |   - code: [undefined]
 |   - codeFrame: [undefined]
 |   - errorMessage: Launcher Chrome not found. Not installed?
 |   - errorType: [undefined]
 |   - location:
 |     - column: [undefined]
 |     - file: [undefined]
 |     - line: [undefined]
 |   - message: Launcher Chrome not found. Not installed?
 |   - name: Error
 |   - nodeAnnotation: [undefined]
 |   - nodeName: [undefined]
 |   - originalErrorMessage: [undefined]
 |   - stack: Error: Launcher Chrome not found. Not installed?
 |     at /datahub-@nacho-ui/nacho-core/src/datahub-web/node_modules/testem/lib/config.js:318:17
 |     at Array.forEach (<anonymous>)
 |     at Config.getWantedLaunchers (/datahub-@nacho-ui/nacho-core/src/datahub-web/node_modules/testem/lib/config.js:312:12)
 |     at /datahub-@nacho-ui/nacho-core/src/datahub-web/node_modules/testem/lib/config.js:285:12
 |     at /datahub-@nacho-ui/nacho-core/src/datahub-web/node_modules/testem/lib/config.js:275:7
 |     at tryCatcher (/datahub-@nacho-ui/nacho-core/src/datahub-web/node_modules/bluebird/js/release/util.js:16:23)
 |     at Promise.successAdapter [as _fulfillmentHandler0] (/datahub-@nacho-ui/nacho-core/src/datahub-web/node_modules/bluebird/js/release/nodeify.js:23:30)
 |     at Promise._settlePromise (/datahub-@nacho-ui/nacho-core/src/datahub-web/node_modules/bluebird/js/release/promise.js:601:21)
 |     at Promise._settlePromise0 (/datahub-@nacho-ui/nacho-core/src/datahub-web/node_modules/bluebird/js/release/promise.js:649:10)
 |     at Promise._settlePromises (/datahub-@nacho-ui/nacho-core/src/datahub-web/node_modules/bluebird/js/release/promise.js:729:18)
 |     at Promise._fulfill (/datahub-@nacho-ui/nacho-core/src/datahub-web/node_modules/bluebird/js/release/promise.js:673:18)
 |     at MappingPromiseArray.PromiseArray._resolve (/datahub-@nacho-ui/nacho-core/src/datahub-web/node_modules/bluebird/js/release/promise_array.js:127:19)
 |     at MappingPromiseArray._filter (/datahub-@nacho-ui/nacho-core/src/datahub-web/node_modules/bluebird/js/release/map.js:134:10)
 |     at MappingPromiseArray._promiseFulfilled (/datahub-@nacho-ui/nacho-core/src/datahub-web/node_modules/bluebird/js/release/map.js:106:18)
 |     at Promise._settlePromise (/datahub-@nacho-ui/nacho-core/src/datahub-web/node_modules/bluebird/js/release/promise.js:609:26)
 |     at Promise._settlePromise0 (/datahub-@nacho-ui/nacho-core/src/datahub-web/node_modules/bluebird/js/release/promise.js:649:10)
 | 
 | =================================================================================
 | 
 | error Command failed with exit code 1.
 | `yarn test` failed with exit code 1
Aborted execution due to previous error
error Command failed with exit code 1.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':datahub-web:emberWorkspaceTest'.
> Process 'command '/datahub-src/datahub-web/build/yarn/yarn-v1.13.0/bin/yarn'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at <https://help.gradle.org>
 | info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
Stopping 2 active children

Report:
  1 packages finished `test` with error: @nacho-ui/core
  1 packages finished `test` successfully: @datahub/pdsc
  15 packages have not started running `test`: @datahub/data-models, @datahub/datasets-core, @datahub/entities, @datahub/metadata-types, @datahub/shared, @datahub/user, @datahub/utils, @nacho-ui/animations, @nacho-ui/avatars, @nacho-ui/button, @nacho-ui/dropdown, @nacho-ui/pill, @nacho-ui/search, @nacho-ui/table, datahub-web
  1 packages have been skipped: @datahub/eslint-plugin

info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.

> Task :datahub-web:emberWorkspaceTest FAILED

idl compatibility report:
Compatible changes:
  1) com.linkedin.dataset.Dataset: new record added optional fields comment, rating

[RS-COMPAT]: true
[MD-COMPAT]: true
[MD-C]:com.linkedin.dataset.Dataset: new record added optional fields comment, rating



Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.

BUILD FAILED in 4m 33s
Use '--warning-mode all' to show the individual deprecation warnings.
See <https://docs.gradle.org/5.6.4/userguide/command_line_interface.html#sec:command_line_warnings>
101 actionable tasks: 101 executed
The command '/bin/sh -c cd datahub-src && ./gradlew :datahub-frontend:dist     && cp datahub-frontend/build/distributions/datahub-frontend.zip ../datahub-frontend.zip     && cd .. && rm -rf datahub-src && unzip datahub-frontend.zip' returned a non-zero code: 1
b

bumpy-keyboard-50565

09/21/2020, 11:45 AM
Got it. Will let @breezy-forest-52817 or @witty-hydrogen-79411 comment on this.
h

high-hospital-85984

09/21/2020, 11:53 AM
Thanks! And just to be clear, this was in master (
57fdc5c00ca6272a293b7ff268fc61e8abf12a5a
)
b

bumpy-keyboard-50565

09/21/2020, 12:02 PM
Got it. Likely the base image we use lacks Chrome preinstalled.
Hum it does have it: https://github.com/linkedin/datahub/blob/master/docker/datahub-frontend/Dockerfile#L4. What command did you use to build the image?
h

high-hospital-85984

09/21/2020, 12:31 PM
I tried both
docker-compose build
and
docker build . -f <my_path>/datahub/docker/datahub-frontend/Dockerfile
w

witty-hydrogen-79411

09/21/2020, 4:42 PM
Seems like we are missing chrome on the docker?
h

high-hospital-85984

09/21/2020, 5:20 PM
Are you able to reproduce?
w

witty-hydrogen-79411

09/21/2020, 5:22 PM
Will try in a bit
b

bumpy-keyboard-50565

09/22/2020, 4:25 AM
I did try to rebuild all docker images from head using the following command (from here) and it worked for me?
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -p datahub build
h

high-hospital-85984

09/22/2020, 7:14 AM
Ran the command, but still encountered the same error
So it seems the chrome installation doesn’t go through. Here is a subset of the build log (
docker build . -f <my_path>datahub/docker/datahub-frontend/Dockerfile --no-cache
):
68250K .......... .......... .......... .......... .......... 99% 18.3M 0s
 68300K .......... .......... .......... .......... .......... 99% 60.8M 0s
 68350K .......... .......... .......... .......... .......... 99% 6.83M 0s
 68400K .......... .......... .......... .......... .......... 99% 9.50M 0s
 68450K .......... .......... .......... .......... .......... 99% 18.7M 0s
 68500K .......... .......... .......... .......... .......... 99% 42.7M 0s
 68550K .......... .......... .......... .......              100% 88.8M=8.5s

2020-09-22 07:22:29 (7.84 MB/s) - 'google-chrome-stable_current_amd64.deb' saved [70233788/70233788]

Selecting previously unselected package google-chrome-stable.
(Reading database ... 12561 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (85.0.4183.121-1) ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
 google-chrome-stable depends on fonts-liberation; however:
  Package fonts-liberation is not installed.
 google-chrome-stable depends on libappindicator3-1; however:
  Package libappindicator3-1 is not installed.
 google-chrome-stable depends on libasound2 (>= 1.0.16); however:
  Package libasound2 is not installed.
 google-chrome-stable depends on libatk-bridge2.0-0 (>= 2.5.3); however:
  Package libatk-bridge2.0-0 is not installed.
 google-chrome-stable depends on libatk1.0-0 (>= 2.2.0); however:
  Package libatk1.0-0 is not installed.
 google-chrome-stable depends on libatspi2.0-0 (>= 2.9.90); however:
  Package libatspi2.0-0 is not installed.
 google-chrome-stable depends on libcairo2 (>= 1.6.0); however:
  Package libcairo2 is not installed.
 google-chrome-stable depends on libcups2 (>= 1.4.0); however:
  Package libcups2 is not installed.
 google-chrome-stable depends on libdbus-1-3 (>= 1.5.12); however:
  Package libdbus-1-3 is not installed.
 google-chrome-stable depends on libdrm2 (>= 2.4.38); however:
  Package libdrm2 is not installed.
 google-chrome-stable depends on libgbm1 (>= 8.1~0); however:
  Package libgbm1 is not installed.
 google-chrome-stable depends on libgdk-pixbuf2.0-0 (>= 2.22.0); however:
  Package libgdk-pixbuf2.0-0 is not installed.
 google-chrome-stable depends on libglib2.0-0 (>= 2.39.4); however:
  Package libglib2.0-0 is not installed.
 google-chrome-stable depends on libgtk-3-0 (>= 3.9.10); however:
  Package libgtk-3-0 is not installed.
 google-chrome-stable depends on libnspr4 (>= 2:4.9-2~); however:
  Package libnspr4 is not installed.
 google-chrome-stable depends on libnss3 (>= 2:3.22); however:
  Package libnss3 is not installed.
 google-chrome-stable depends on libpango-1.0-0 (>= 1.14.0); however:
  Package libpango-1.0-0 is not installed.
 google-chrome-stable depends on libpangocairo-1.0-0 (>= 1.14.0); however:
  Package libpangocairo-1.0-0 is not installed.
 google-chrome-stable depends on libx11-6 (>= 2:1.4.99.1); however:
  Package libx11-6 is not installed.
 google-chrome-stable depends on libx11-xcb1; however:
  Package libx11-xcb1 is not installed.
 google-chrome-stable depends on libxcb-dri3-0; however:
  Package libxcb-dri3-0 is not installed.
 google-chrome-stable depends on libxcb1 (>= 1.6); however:
  Package libxcb1 is not installed.
 google-chrome-stable depends on libxcomposite1 (>= 1:0.3-1); however:
  Package libxcomposite1 is not installed.
 google-chrome-stable depends on libxcursor1 (>> 1.1.2); however:
  Package libxcursor1 is not installed.
 google-chrome-stable depends on libxdamage1 (>= 1:1.1); however:
  Package libxdamage1 is not installed.
 google-chrome-stable depends on libxext6; however:
  Package libxext6 is not installed.
 google-chrome-stable depends on libxfixes3; however:
  Package libxfixes3 is not installed.
 google-chrome-stable depends on libxi6 (>= 2:1.2.99.4); however:
  Package libxi6 is not installed.
 google-chrome-stable depends on libxrandr2; however:
  Package libxrandr2 is not installed.
 google-chrome-stable depends on libxrender1; however:
  Package libxrender1 is not installed.
 google-chrome-stable depends on libxtst6; however:
  Package libxtst6 is not installed.
 google-chrome-stable depends on xdg-utils (>= 1.0.2); however:
  Package xdg-utils is not installed.

dpkg: error processing package google-chrome-stable (--install):
 dependency problems - leaving unconfigured
Processing triggers for mime-support (3.62) ...
Errors were encountered while processing:
 google-chrome-stable
Making the build retry installing chrome after installing the dependencies helped. So the L5 of
docker/datahub-frontend/Dockerfile
looks like
&& dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install; dpkg -i google-chrome-stable_current_amd64.deb
I can make an PR if you want?
b

bumpy-keyboard-50565

09/22/2020, 10:18 AM
Yes please. Thanks!
h

high-hospital-85984

09/22/2020, 5:45 PM
w

witty-hydrogen-79411

09/22/2020, 5:50 PM
Thanks!
b

bumpy-keyboard-50565

09/22/2020, 5:52 PM
Commented
h

high-hospital-85984

09/22/2020, 6:09 PM
Fixed