Open seanprince opened 1 year ago
Can you share the content of the Dockerfile
?
Please try to use the chromedp.CombinedOutput option to capture the error log of the browser. Hopefully that the log contains why the tab is crashed.
Hi there - thanks for helping out. Dockerfile is a combination of:
FROM alpine:3.17.3
# add root certificates, mime types and required c libraries
RUN apk add --update --no-cache \
ca-certificates=20220614-r4 \
mailcap=2.1.53-r0 && \
openssl=3.0.8-r4 && \
libssl3=3.0.8-r4 && \
mkdir /lib64 && \
ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
RUN mkdir /app
RUN addgroup -S bumblebee && adduser -S -g bumblebee bumblebee
RUN chown bumblebee:bumblebee /app
USER bumblebee
and
FROM eu.gcr.io/cybertron-164209/andellor/base-images.bumblebee-go:1.0.24
USER root
# Install chrome depedencies
RUN set -ex && \
apk update && \
apk add --update bash chromium && \
rm -rf /var/cache/apk/*
USER bumblebee
EXPOSE 8080
USER bumblebee
COPY ./bumblebee-pulse-server /app/
COPY ./P04 /app/
CMD /app/bumblebee-pulse-server --port 8080 --host 0.0.0.0
I'm working on using chromedp.CombinedOutput to get the browser error log - will update you when I have that information.
Hi there, could you share an example of how to use chromedp.CombinedOutput, please? I'm struggling to know how to use this.
Hi, here is one of the examples: https://github.com/chromedp/chromedp/issues/1216#issuecomment-1341901485.
Hi there, I can see the chromedp.CombinedOutput when running locally. Unfortunately this output is not visible when running inside Kubernetes (maybe for the same reason as the browser tab crashing?), so I'm no further forward there.
Can you see any issue with the Dockerfile? Is there any missing software when using alpine as the base image?
The first Dockerfile has some errors (The first two &&
should be removed). But since you have built a docker image successfully and you can run the docker image outside Kubernetes, I assume that you were using a correct Dockerfile.
My guess is that the node does not have enough resource to run the browser. But we have to check the error log of the browser to confirm that. Maybe you could execute the following command in the pod to see if it reports any error:
chromium-browser --headless --no-sandbox
If possible, please provide a detailed instruction to guide me to reproduce the issue myself. Thank you!
The browser does not start when I run it from within the pod:
[1101/171823.985658:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
[1101/171824.089308:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[1101/171824.089596:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[1101/171824.089879:WARNING:dns_config_service_linux.cc(429)] Failed to read DnsConfig.
[1101/171824.093110:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 10979: Permission denied (13)
[1101/171824.187907:ERROR:angle_platform_impl.cc(43)] RendererVk.cpp:157 (VerifyExtensionsPresent): Extension not supported: VK_KHR_surface
ERR: RendererVk.cpp:157 (VerifyExtensionsPresent): Extension not supported: VK_KHR_surface
[1101/171824.188255:ERROR:angle_platform_impl.cc(43)] RendererVk.cpp:157 (VerifyExtensionsPresent): Extension not supported: VK_KHR_xcb_surface
ERR: RendererVk.cpp:157 (VerifyExtensionsPresent): Extension not supported: VK_KHR_xcb_surface
[1101/171824.188514:ERROR:angle_platform_impl.cc(43)] Display.cpp:1019 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, enableInstanceExtensions:1639.
ERR: Display.cpp:1019 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, enableInstanceExtensions:1639.
[1101/171824.188693:ERROR:gl_display.cc(504)] EGL Driver message (Critical) eglInitialize: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, enableInstanceExtensions:1639.
[1101/171824.188884:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 10981: Permission denied (13)
[1101/171824.188899:ERROR:gl_display.cc(793)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[1101/171824.189070:ERROR:gl_display.cc(819)] Initialization of all EGL display types failed.
[1101/171824.189191:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1101/171824.283496:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.
[1101/171824.283800:ERROR:angle_platform_impl.cc(43)] RendererVk.cpp:157 (VerifyExtensionsPresent): Extension not supported: VK_KHR_surface
ERR: RendererVk.cpp:157 (VerifyExtensionsPresent): Extension not supported: VK_KHR_surface
[1101/171824.284027:ERROR:angle_platform_impl.cc(43)] RendererVk.cpp:157 (VerifyExtensionsPresent): Extension not supported: VK_KHR_xcb_surface
ERR: RendererVk.cpp:157 (VerifyExtensionsPresent): Extension not supported: VK_KHR_xcb_surface
[1101/171824.284225:ERROR:angle_platform_impl.cc(43)] Display.cpp:1019 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, enableInstanceExtensions:1639.
ERR: Display.cpp:1019 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, enableInstanceExtensions:1639.
[1101/171824.284374:ERROR:gl_display.cc(504)] EGL Driver message (Critical) eglInitialize: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, enableInstanceExtensions:1639.
[1101/171824.284589:ERROR:gl_display.cc(793)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[1101/171824.284717:ERROR:gl_display.cc(819)] Initialization of all EGL display types failed.
[1101/171824.284892:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1101/171824.287090:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[1101/171824.483778:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 10994: Permission denied (13)
[1101/171824.587279:ERROR:angle_platform_impl.cc(43)] RendererVk.cpp:157 (VerifyExtensionsPresent): Extension not supported: VK_KHR_surface
ERR: RendererVk.cpp:157 (VerifyExtensionsPresent): Extension not supported: VK_KHR_surface
[1101/171824.587553:ERROR:angle_platform_impl.cc(43)] RendererVk.cpp:157 (VerifyExtensionsPresent): Extension not supported: VK_KHR_xcb_surface
ERR: RendererVk.cpp:157 (VerifyExtensionsPresent): Extension not supported: VK_KHR_xcb_surface
[1101/171824.587789:ERROR:angle_platform_impl.cc(43)] Display.cpp:1019 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, enableInstanceExtensions:1639.
ERR: Display.cpp:1019 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, enableInstanceExtensions:1639.
[1101/171824.587965:ERROR:gl_display.cc(504)] EGL Driver message (Critical) eglInitialize: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, enableInstanceExtensions:1639.
[1101/171824.588105:ERROR:gl_display.cc(793)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[1101/171824.588223:ERROR:gl_display.cc(819)] Initialization of all EGL display types failed.
[1101/171824.588320:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1101/171824.590335:ERROR:angle_platform_impl.cc(43)] RendererVk.cpp:157 (VerifyExtensionsPresent): Extension not supported: VK_KHR_surface
ERR: RendererVk.cpp:157 (VerifyExtensionsPresent): Extension not supported: VK_KHR_surface
[1101/171824.590545:ERROR:angle_platform_impl.cc(43)] RendererVk.cpp:157 (VerifyExtensionsPresent): Extension not supported: VK_KHR_xcb_surface
ERR: RendererVk.cpp:157 (VerifyExtensionsPresent): Extension not supported: VK_KHR_xcb_surface
[1101/171824.590688:ERROR:angle_platform_impl.cc(43)] Display.cpp:1019 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, enableInstanceExtensions:1639.
ERR: Display.cpp:1019 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, enableInstanceExtensions:1639.
[1101/171824.590829:ERROR:gl_display.cc(504)] EGL Driver message (Critical) eglInitialize: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, enableInstanceExtensions:1639.
[1101/171824.591004:ERROR:gl_display.cc(793)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[1101/171824.591110:ERROR:gl_display.cc(819)] Initialization of all EGL display types failed.
[1101/171824.591215:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1101/171824.684604:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[1101/171824.783766:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 11005: Permission denied (13)
[1101/171825.090536:WARNING:dns_config_service_linux.cc(429)] Failed to read DnsConfig.
Looks like a writeable folder required does not exist?
Looks like the browser can not start at all. There is very little we can do unless you tell us how to reproduce the issue ourselves.
What versions are you running?
What did you do? Include clear steps.
Attempt to navigate to a page. Code is running in a Docker container within a Kubernetes cluster.
What did you expect to see?
Nil error returned from Run().
What did you see instead?
'context deadline exceeded' error after 2 minute timeout period. The last few lines of debug output is:
If I run the same Docker image outside Kubernetes, then this works fine.