fphammerle / docker-brave-browser

brave-browser https://brave.com/ 🐳
https://hub.docker.com/r/fphammerle/brave-browser/tags
11 stars 8 forks source link

Some errors - not sure if benign #1

Open chrisamow opened 3 years ago

chrisamow commented 3 years ago

Hi Peter - thanks for this image, it's just what I was hoping for!

I had to remove the line 32: mode: '1777' to get it to work.

And the brave does come up - but it has the warning "You are using an unsupported command-line flag: --no-sandbox. Stability and security will suffer."

And this is the docker output - some dbus, display and disk errors - kind of alarming looking :) but I didn't see the effect in the browser...

Attaching to brave_browser
brave_browser | [15:24:0413/031356.296329:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
brave_browser | [15:38:0413/031356.374456:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
brave_browser | [15:38:0413/031356.374487:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
brave_browser | [15:38:0413/031356.374512:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
brave_browser | [15:38:0413/031356.374524:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
brave_browser | [15:73:0413/031356.456223:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
brave_browser | [15:73:0413/031356.456264:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
brave_browser | [15:73:0413/031356.456304:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
brave_browser | [15:73:0413/031356.456331:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
brave_browser | [15:73:0413/031356.456363:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
brave_browser | libGL error: No matching fbConfigs or visuals found
brave_browser | libGL error: failed to load driver: swrast
brave_browser | [37:37:0413/031356.567848:ERROR:angle_platform_impl.cc(43)] Display.cpp:833 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
brave_browser | [37:37:0413/031356.568045:ERROR:gl_surface_egl.cc(773)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
brave_browser | [37:37:0413/031356.568091:ERROR:gl_surface_egl.cc(1322)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
brave_browser | [37:37:0413/031356.571199:ERROR:angle_platform_impl.cc(43)] Display.cpp:833 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
brave_browser | [37:37:0413/031356.571342:ERROR:gl_surface_egl.cc(773)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
brave_browser | [37:37:0413/031356.571400:ERROR:gl_surface_egl.cc(1322)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
brave_browser | [37:37:0413/031356.571463:ERROR:gl_initializer_linux_x11.cc(160)] GLSurfaceEGL::InitializeOneOff failed.
brave_browser | [37:37:0413/031356.573579:ERROR:viz_main_impl.cc(150)] Exiting GPU process due to errors during initialization
brave_browser | [57:98:0413/031356.662761:ERROR:command_buffer_proxy_impl.cc(122)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
brave_browser | [79:92:0413/031404.682559:ERROR:disk_data_allocator.cc(176)] DISK: Cannot write to disk. written = -1 FILE_ERROR_FAILED
brave_browser | [79:89:0413/031404.682489:ERROR:disk_data_allocator.cc(176)] DISK: Cannot write to disk. written = 1147 FILE_ERROR_FAILED
brave_browser | [79:197:0413/031404.682489:ERROR:disk_data_allocator.cc(176)] DISK: Cannot write to disk. written = -1 FILE_ERROR_FAILED
brave_browser | [74:82:0413/031404.688214:ERROR:disk_data_allocator.cc(176)] DISK: Cannot write to disk. written = -1 FILE_ERROR_FAILED
brave_browser | [64:76:0413/031404.692933:ERROR:disk_data_allocator.cc(176)] DISK: Cannot write to disk. written = -1 FILE_ERROR_FAILED
brave_browser | [57:85:0413/031404.757152:ERROR:disk_data_allocator.cc(176)] DISK: Cannot write to disk. written = -1 FILE_ERROR_FAILED
brave_browser | [57:66:0413/031404.757152:ERROR:disk_data_allocator.cc(176)] DISK: Cannot write to disk. written = -1 FILE_ERROR_FAILED
brave_browser | [123:128:0413/031552.376895:ERROR:xproto_internal.cc(109)] Cannot send request of length 16923144
brave_browser | [123:128:0413/031552.426676:ERROR:xproto_internal.cc(109)] Cannot send request of length 18532424
brave_browser | [123:128:0413/031552.479340:ERROR:xproto_internal.cc(109)] Cannot send request of length 19542504
...
brave_browser | [123:128:0413/031600.221633:ERROR:xproto_internal.cc(109)] Cannot send request of length 16964504
brave_browser | [123:128:0413/031600.290647:ERROR:xproto_internal.cc(109)] Cannot send request of length 16821528
fphammerle commented 3 years ago

Hi,

great to hear that the image works for you :-)

What line did you have to remove? the find ... -exec chmod ... ? That should only be required when starting brave without --no-sandbox. See build output:

mode of '/opt/brave.com/brave/chrome-sandbox' changed from 4755 (rwsr-xr-x) to 0755 (rwxr-xr-x)

Using --no-sandbox is safe here because docker / podman already isolates the process (does the sandboxing)

Regarding the logs: All errors related to bus.cc / dbus can safely be ignored. Apparently brave is trying to connect to same other processes via dbus.

I am not sure about the graphics warnings though. I get:

libGL error: MESA-LOADER: failed to retrieve device information
libGL error: Version 4 or later of flush extension not found
libGL error: failed to load driver: i915
libGL error: failed to open drm device: No such file or directory
libGL error: failed to load driver: i965
[...]
[35:35:0413/061959.648146:ERROR:viz_main_impl.cc(150)] Exiting GPU process due to errors during initialization

Do you have an idea how we could fix those?

chrisamow commented 3 years ago

No, it was actually line 32 in the docker-compose.yml file. It would be nice to supress that warning dialog but it doesnt seem like there's an obvious way...

Not sure about the graphics warning either... I do notice that the fonts seem not quite right - have you seen that?

fphammerle commented 3 years ago

No, it was actually line 32 in the docker-compose.yml file.

Oh that's surprising. What error did you get?

I do notice that the fonts seem not quite right - have you seen that?

I think a font package was missing. Added it here: https://github.com/fphammerle/docker-brave-browser/commit/30fccb7fc1cd09e302db400466dcb4a66421f384 Could you retry on the current master?

chrisamow commented 3 years ago
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.browser.volumes contains unsupported option: 'mode'

the font still doesn't quite seem right... look at "java - Chrome" - top is normal brave, bottom is docker brave

screenshot

fphammerle commented 3 years ago
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.browser.volumes contains unsupported option: 'mode'

oh, that's surprising

what versions of docker-compose and docker are you using?

I use:

$ docker-compose --version
docker-compose version 1.25.0, build unknown
$ dockerd --version
Docker version 19.03.13, build 4484c46

the font still doesn't quite seem right... look at "java - Chrome" - top is normal brave, bottom is docker brave

I pushed a commit exchanging the font package. Could you retry on master?