You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Michael Miklavcic (Jira)" <ji...@apache.org> on 2019/08/22 14:08:00 UTC

[jira] [Commented] (METRON-2226) Metron GUI testing on Centos7 requires explicit xvfb install

    [ https://issues.apache.org/jira/browse/METRON-2226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16913338#comment-16913338 ] 

Michael Miklavcic commented on METRON-2226:
-------------------------------------------

Is this issue exclusive to the Centos 7 box, or have you run into this on Centos 6 as well?

> 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
>            Priority: Minor
>
> 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*] > metron-alerts@0.7.2 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! metron-alerts@0.7.2 cypress:run: `cypress run`
> [*ERROR*] npm ERR! Exit status 1
> [*ERROR*] npm ERR! 
> [*ERROR*] npm ERR! Failed at the metron-alerts@0.7.2 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! metron-alerts@0.7.2 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 metron-alerts@0.7.2 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! metron-alerts@0.7.2 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 metron-alerts@0.7.2 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)