scrapinghub / splash

Lightweight, scriptable browser as a service with an HTTP API
BSD 3-Clause "New" or "Revised" License
4.09k stars 513 forks source link

splash-jupyter docker image OpenGL issue #546

Open rjbks opened 7 years ago

rjbks commented 7 years ago

While trying to get Splash to work with the live WebKit window I started getting this error at same point/page every time (walmart.com login page during checkout):

process 41: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/etc/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
libGL error: dlopen /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so failed (/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL error: dlopen ${ORIGIN}/dri/swrast_dri.so failed (${ORIGIN}/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL error: dlopen /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
load glyph failed err=6 face=0x16f0350, glyph=1912
load glyph failed err=6 face=0x3a72770, glyph=1912
load glyph failed err=6 face=0x17b85c0, glyph=1912
load glyph failed err=6 face=0x17f41f0, glyph=1912
Unrecognized OpenGL version
Unrecognized OpenGL version

Odd because it was working fine for a while...

I know the D-Bus message isn't important. I believe it has worked before while also complaining about swrast (maybe??) but it always becomes unresponsive after the Unrecognized OpenGL version messages. Not really sure what changed from one day to the next (as it was working a few days ago).

I run it with the command from the docs:

xhost +

sudo docker run -e DISPLAY=unix$DISPLAY \
             -v /tmp/.X11-unix:/tmp/.X11-unix \
             -v $XAUTHORITY:$XAUTHORITY \
             -v path/to/notebooks:/notebooks \
             -e XAUTHORITY=$XAUTHORITY \
             -p 8888:8888 \
             -it scrapinghub/splash-jupyter --disable-xvfb

Any insights would be appreciated.

kmike commented 7 years ago

Sorry, I don't have much experience with that. What OS are you using?

rjbks commented 7 years ago

ubuntu 16.04

Gallaecio commented 4 years ago

Did you solve your issue?