Description of problem: I only installed the package chromium-headless. When I try to execute the contained headless_shell, it fails: $ /usr/lib64/chromium-browser/headless_shell [1230/125746.230047:WARNING:headless_browser_main_parts.cc(83)] Cannot create Pref Service with no user data dir. [1230/125746.264845:ERROR:egl_util.cc(74)] Failed to load GLES library: /usr/lib64/chromium-browser/swiftshader/libGLESv2.so: /usr/lib64/chromium-browser/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory [1230/125746.267370:ERROR:viz_main_impl.cc(150)] Exiting GPU process due to errors during initialization [1230/125746.273181:ERROR:egl_util.cc(74)] Failed to load GLES library: /usr/lib64/chromium-browser/swiftshader/libGLESv2.so: /usr/lib64/chromium-browser/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory Version-Release number of selected component (if applicable): 90.0.4430.212 (CentOS Linux release 7.9) Expected results: The headless_shell should start without any errors.
Chromium in EPEL7 is unmaintained. Newer versions of Chromium will no longer build with any of the available toolchains for EL7. As there are many (many, MANY) security holes in the last build of Chromium in EPEL7, I strongly recommend that you remove it (or update your system to EL8, where newer builds are still possible). If you still wish to use this ancient build, installing the "chromium" package will provide the missing files. I'm moving these files to chromium-common so this problem will not be an issue in current builds.
This bug still exist in EPEL-8 and EPEL-9 in the latest version (v103, v109 v110) ~]$ /usr/lib64/chromium-browser/headless_shell [0221/161743.332269:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable. [0221/161743.334912:ERROR:egl_util.cc(55)] Failed to load GLES library: /usr/lib64/chromium-browser/libGLESv2.so: /usr/lib64/chromium-browser/libGLESv2.so: cannot open shared object file: No such file or directory [0221/161743.345816:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization [0221/161743.350917:ERROR:egl_util.cc(55)] Failed to load GLES library: /usr/lib64/chromium-browser/libGLESv2.so: /usr/lib64/chromium-browser/libGLESv2.so: cannot open shared object file: No such file or directory [0221/161743.354260:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization [0221/161743.361653:ERROR:gpu_init.cc(486)] Passthrough is not supported, GL is disabled, ANGLE is
i can reproduce this issue. I am working on a fix.
FEDORA-EPEL-2023-29b054d297 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-29b054d297
Could you please download and test? Please don't forget to add the karma! Thanks!
FEDORA-EPEL-2023-29b054d297 has been pushed to the Fedora EPEL 7 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-29b054d297 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-523a24d90a has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-523a24d90a
FEDORA-2023-523a24d90a has been pushed to the Fedora 38 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-523a24d90a See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
Tested with chromium-headless-110.0.5481.177-1.el7.x86_64 It works as expected now. ~]$ /usr/lib64/chromium-browser/headless_shell --no-sandbox --disable-gpu --screenshot https://www.kernel.org [0301/160704.372538:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process. [0301/160709.177494:INFO:headless_shell.cc(107)] 106730 bytes written to file screenshot.png
FEDORA-EPEL-2023-29b054d297 has been pushed to the Fedora EPEL 7 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2023-523a24d90a has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.