Question / Help unable to run on headless machine

Marco G.

New Member
I installed obs and openGL on an headless server on AWS and using an ssh tunnel to log in and to use a remote display.

ubuntu@ip-172-30-0-159:~$ echo $DISPLAY
localhost:10.0

Staring obs bring up a pop-up erroe window with the message "Failed to initialize video: Unspecified error" and the following on the terminal:

ubuntu@ip-172-30-0-159:~$ obs
Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/themes/Default.qss
Attempted path: /usr/share/obs/obs-studio/themes/Default.qss
Attempted path: share/obs/obs-studio/license/gplv2.txt
Attempted path: /usr/share/obs/obs-studio/license/gplv2.txt
info: Processor: 1 logical cores
info: Processor: Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz
info: Physical Memory: 992MB Total
info: Kernel Version: Linux 3.13.0-48-generic
info: Distribution: "Ubuntu" "14.04"
QObject::connect: invalid null parameter
info: OBS 0.12.2 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
samples per sec: 44100
speakers: 2
buffering (ms): 1000
libGL error: failed to open drm device: No such file or directory
libGL error: failed to load driver: i965
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
libGL: driver does not expose __driDriverGetExtensions_swrast(): /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so: undefined symbol
: __driDriverGetExtensions_swrast
libGL: Can't open configuration file /home/ubuntu/.drirc: No such file or directory.
libGL: Can't open configuration file /home/ubuntu/.drirc: No such file or directory.
error: X Error: GLXBadFBConfig
error: Failed to create OpenGL context.
error: Failed to create context!
error: device_create (GL) failed
error: Failed to initialize video: Unspecified error
libGL error: failed to open drm device: No such file or directory
libGL error: failed to load driver: i965
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
libGL: driver does not expose __driDriverGetExtensions_swrast(): /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so: undefined symbol
: __driDriverGetExtensions_swrast
libGL: Can't open configuration file /home/ubuntu/.drirc: No such file or directory.
libGL: Can't open configuration file /home/ubuntu/.drirc: No such file or directory.

The file /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so does exist on my system (64-bit Ubuntu 15.04).

OpenGL seems also to be installed properly as I can run and see the display on my local machine for glxgears, although there are some errors:

ubuntu@ip-172-30-0-159:~$ glxgears
libGL error: failed to open drm device: No such file or directory
libGL error: failed to load driver: i965
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
libGL: driver does not expose __driDriverGetExtensions_swrast(): /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so: undefined symbol: __driDriverGetExtensions_swrast
libGL: Can't open configuration file /home/ubuntu/.drirc: No such file or directory.
libGL: Can't open configuration file /home/ubuntu/.drirc: No such file or directory.
19 frames in 5.3 seconds = 3.596 FPS


ubuntu@ip-172-30-0-159:~$ glewinfo | head
libGL error: failed to open drm device: No such file or directory
libGL error: failed to load driver: i965
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
libGL: driver does not expose __driDriverGetExtensions_swrast(): /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so: undefined symbol
: __driDriverGetExtensions_swrast
libGL: Can't open configuration file /home/ubuntu/.drirc: No such file or directory.
libGL: Can't open configuration file /home/ubuntu/.drirc: No such file or directory.
---------------------------
GLEW Extension Info
---------------------------

GLEW version 1.10.0
Reporting capabilities of display localhost:10.0, visual 0xba
Running on a Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits) from VMware, Inc.
OpenGL version 2.1 Mesa 10.1.3 is supported

GL_VERSION_1_1: OK

Please advise.

Thanks,

-Marco G.
 

R1CH

Forum Admin
Developer
OBS requires a GPU to render on. An emulated adapter / remote display is unlikely to work.
 

R1CH

Forum Admin
Developer
Probably not very well. But with AWS I suppose you can test it and only pay for an hour of time.
 
Top