JiaLiangC commented on PR #3751:
URL: https://github.com/apache/ambari/pull/3751#issuecomment-1928641503

   @arshadmohammad 
   Conclusion: This CI error is not related to PR AMBARI-26000; it's an issue 
with the trunk branch.
   
   The error can be reproduced in the trunk branch code due to PR 
https://github.com/apache/ambari/pull/3760.
   
   Cause:
   PR https://github.com/apache/ambari/pull/3760 introduced `chromium-browser`, 
which caused the error during test execution because of the `chromium-browser` 
settings in our CI environment. This needs to be fixed in CI.
   
   How to reproduce:
   Operating System: Rocky Linux 8
   
   1. Install chromium:
   yum install -y chromium
   
   2. Change directory to ambari:
   cd ambari
   
   3. Start compilation:
   mvn -X -T 2C -am test -pl ambari-web -Dmaven.artifact.threads=10 -Drat.skip
    
   
![image](https://github.com/apache/ambari/assets/18082602/4ed97f79-6c9d-4243-9ac9-66850f962ab3)
   
   
   As shown above, the error message is the same as in CI, confirming the 
reproduction of the issue!
   
   Below is the error from CI:
   
![image](https://github.com/apache/ambari/assets/18082602/2700915a-e9e3-4001-9ff4-cbbb4fcf55bc)
   
   
   How to solve:
   
   1. The error message indicates that `CHROME_BIN` is not set, so let's set it:
   
   export CHROME_BIN=/usr/bin/chromium-browser
   
   Continue execution:
   mvn -X -T 2C -am test -pl ambari-web -Dmaven.artifact.threads=10 -Drat.skip
   
![image](https://github.com/apache/ambari/assets/18082602/febe9492-3ef6-49a9-ae85-b63b49debe25)
   
   
   2. Error message:
   ERROR:zygote_host_impl_linux.cc(100)] Running as root without --no-sandbox 
is not supported. See https://crbug.com/638180.
   
   
   How to solve:
   Edit `/usr/bin/chromium-browser`:
   
   vim /usr/bin/chromium-browser
   
    Add `--no-sandbox` at the end of the file.
   
![image](https://github.com/apache/ambari/assets/18082602/7c637459-a546-45ed-a683-0439e377c347)
   
   Then the compilation succeeds.
   
   
![image](https://github.com/apache/ambari/assets/18082602/04d4a50e-7f52-4226-a8b5-5f90542a0fa8)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to