Dale Richardson created METRON-2226:
---------------------------------------
Summary: Metron GUI testing on Centos7 requires explicit xvfb
install
Key: METRON-2226
URL: https://issues.apache.org/jira/browse/METRON-2226
Project: Metron
Issue Type: Bug
Reporter: Dale Richardson
Just noticed setting up a recent centos7 to be a build box for Metron.
The headless GUI testing requires xvfb to be installed, and it does not appear
to be documented as a dependency anywhere.
The error appears during test for Metron-alerts as follows:
*INFO*] > [email protected] cypress:run
/home/dale/metron/metron-interface/metron-alerts
[*INFO*] > cypress run
[*INFO*]
[*INFO*] [HPM] Proxy created: / -> http://localhost:4200
[*INFO*] [HPM] Proxy created: / -> http://localhost:4200
[*INFO*] Metron alerts ui is listening on
[*INFO*] http://127.0.0.1:4200
[*INFO*] http://192.168.0.17:4200
[*INFO*] It looks like this is your first time using Cypress: 3.1.0
[*INFO*]
[*INFO*] [13:45:51] Verifying Cypress can run
/home/dale/.cache/Cypress/3.1.0/Cypress [started]
[*INFO*] [13:45:51] Verifying Cypress can run
/home/dale/.cache/Cypress/3.1.0/Cypress [failed]
[*INFO*] [13:45:51] → Your system is missing the dependency: XVFB
[*INFO*]
[*INFO*] Install XVFB and run Cypress again.
[*INFO*]
[*INFO*] Read our documentation on dependencies for more information:
[*INFO*]
[*INFO*] https://on.cypress.io/required-dependencies
[*INFO*]
[*INFO*] If you are using Docker, we provide containers with all required
dependencies installed.
[*INFO*] ----------
[*INFO*]
[*INFO*] Caught error trying to run XVFB: "Your system is missing the
dependency: XVFB
[*INFO*]
[*INFO*] Install XVFB and run Cypress again.
[*INFO*]
[*INFO*] Read our documentation on dependencies for more information:
[*INFO*]
[*INFO*] https://on.cypress.io/required-dependencies
[*INFO*]
[*INFO*] If you are using Docker, we provide containers with all required
dependencies installed.
[*INFO*] ----------
[*INFO*]
[*INFO*] Error: spawn Xvfb ENOENT
[*INFO*] ----------
[*INFO*]
[*INFO*] Platform: linux (Centos - 7.6.1810)
[*INFO*] Cypress Version: 3.1.0"
[*INFO*] ----------
[*INFO*]
[*INFO*] Platform: linux (Centos - 7.6.1810)
[*INFO*] Cypress Version: 3.1.0
[*INFO*] Your system is missing the dependency: XVFB
[*INFO*]
[*INFO*] Install XVFB and run Cypress again.
[*INFO*]
[*INFO*] Read our documentation on dependencies for more information:
[*INFO*]
[*INFO*] https://on.cypress.io/required-dependencies
[*INFO*]
[*INFO*] If you are using Docker, we provide containers with all required
dependencies installed.
[*INFO*] ----------
[*INFO*]
[*INFO*] Caught error trying to run XVFB: "Your system is missing the
dependency: XVFB
[*INFO*]
[*INFO*] Install XVFB and run Cypress again.
[*INFO*]
[*INFO*] Read our documentation on dependencies for more information:
[*INFO*]
[*INFO*] https://on.cypress.io/required-dependencies
[*INFO*]
[*INFO*] If you are using Docker, we provide containers with all required
dependencies installed.
[*INFO*] ----------
[*INFO*]
[*INFO*] Error: spawn Xvfb ENOENT
[*INFO*] ----------
[*INFO*]
[*INFO*] Platform: linux (Centos - 7.6.1810)
[*INFO*] Cypress Version: 3.1.0"
[*INFO*] ----------
[*INFO*]
[*INFO*] Platform: linux (Centos - 7.6.1810)
[*INFO*] Cypress Version: 3.1.0
[*ERROR*] npm ERR! code ELIFECYCLE
[*ERROR*] npm ERR! errno 1
[*ERROR*] npm ERR! [email protected] cypress:run: `cypress run`
[*ERROR*] npm ERR! Exit status 1
[*ERROR*] npm ERR!
[*ERROR*] npm ERR! Failed at the [email protected] cypress:run script.
[*ERROR*] npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.
[*ERROR*]
[*ERROR*] npm ERR! A complete log of this run can be found in:
[*ERROR*] npm ERR! /home/dale/.npm/_logs/2019-08-22T03_45_51_932Z-debug.log
[*ERROR*] ERROR: "cypress:run" exited with 1.
[*ERROR*] npm ERR! code ELIFECYCLE
[*ERROR*] npm ERR! errno 1
[*ERROR*] npm ERR! [email protected] cypress:ci: `ng build --prod && run-p
--race start:ci cypress:run`
[*ERROR*] npm ERR! Exit status 1
[*ERROR*] npm ERR!
[*ERROR*] npm ERR! Failed at the [email protected] cypress:ci script.
[*ERROR*] npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.
[*ERROR*]
[*ERROR*] npm ERR! A complete log of this run can be found in:
[*ERROR*] npm ERR! /home/dale/.npm/_logs/2019-08-22T03_45_52_008Z-debug.log
[*ERROR*] npm ERR! code ELIFECYCLE
[*ERROR*] npm ERR! errno 1
[*ERROR*] npm ERR! [email protected] testCI: `ng test --watch=false
--browsers=ChromeHeadless && npm run cypress:ci`
[*ERROR*] npm ERR! Exit status 1
[*ERROR*] npm ERR!
[*ERROR*] npm ERR! Failed at the [email protected] testCI script.
[*ERROR*] npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.
[*ERROR*]
[*ERROR*] npm ERR! A complete log of this run can be found in:
[*ERROR*] npm ERR! /home/dale/.npm/_logs/2019-08-22T03_45_52_023Z-debug.log
[*INFO*]
[*INFO*]
*------------------------------------------------------------------------*
[*INFO*] *BUILD FAILURE*
[*INFO*]
*------------------------------------------------------------------------*
[*INFO*] Total time: 07:30 min
[*INFO*] Finished at: 2019-08-22T13:45:52+10:00
[*INFO*]
*------------------------------------------------------------------------*
[*ERROR*] Failed to execute goal
com.github.eirslett:frontend-maven-plugin:1.3:npm *(npm testCI)* on project
metron-alerts: *Failed to run task*: 'npm run testCI' failed. (error code 1) ->
*[Help 1]*
[*ERROR*]
[*ERROR*] To see the full stack trace of the errors, re-run Maven with the *-e*
switch.
[*ERROR*] Re-run Maven using the *-X* switch to enable full debug logging.
[*ERROR*]
[*ERROR*] For more information about the errors and possible solutions, please
read the following articles:
[*ERROR*] *[Help 1]*
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Fix:
{{sudo yum install chromedriver chromium xorg-x11-server-Xvfb appears to fix
the issue.}}
{{}}
{{Documentation should be updated to include the dependencies.}}
{{}}
--
This message was sent by Atlassian Jira
(v8.3.2#803003)