balena-io-examples / x11-window-manager

Example project showing how to run a desktop manager with balenaCloud in order to run GUI applications.
43 stars 19 forks source link

Running using docker-compose on a NUC produces errors, no image. #8

Open odyslam opened 4 years ago

odyslam commented 4 years ago

docker-compose.yaml:

desktop:
    build:  desktop
    privileged: true
    labels:
      io.balena.features.dbus: '1'
      io.balena.features.firmware   : '1'
      io.balena.features.kernel-modules: '1'

Dockerfile is as shown in the project. INTEL NUC: BOXNUC7i5BNH

Error log:

STARTING X
16.03.20 14:22:28 (+0200) xauth:  file /root/.Xauthority does not exist
16.03.20 14:22:28 (+0200) 
16.03.20 14:22:28 (+0200) 
16.03.20 14:22:28 (+0200) X.Org X Server 1.19.2
16.03.20 14:22:28 (+0200) Release Date: 2017-03-02
16.03.20 14:22:28 (+0200) X Protocol Version 11, Revision 0
16.03.20 14:22:28 (+0200) Build Operating System: Linux 4.9.0-8-amd64 x86_64 Debian
16.03.20 14:22:28 (+0200) Current Operating System: Linux 03ccecbf4eb0 5.2.10-yocto-standard #1 SMP PREEMPT Fri Jan 31 07:23:09 UTC 2020 x86_64
16.03.20 14:22:28 (+0200) Kernel command line: BOOT_IMAGE=/boot/bzImage root=LABEL=resin-rootA rootwait intel_idle.max_cstate=1
16.03.20 14:22:28 (+0200) Build Date: 03 November 2018  03:09:11AM
16.03.20 14:22:28 (+0200) xorg-server 2:1.19.2-1+deb9u5 (https://www.debian.org/support) 
16.03.20 14:22:28 (+0200) Current version of pixman: 0.34.0
16.03.20 14:22:28 (+0200)       Before reporting problems, check http://wiki.x.org
16.03.20 14:22:28 (+0200)       to make sure that you have the latest version.
16.03.20 14:22:28 (+0200) Markers: (--) probed, (**) from config file, (==) default setting,
16.03.20 14:22:28 (+0200)       (++) from command line, (!!) notice, (II) informational,
16.03.20 14:22:28 (+0200)       (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
16.03.20 14:22:28 (+0200) (==) Log file: "/var/log/Xorg.0.log", Time: Mon Mar 16 12:22:28 2020
16.03.20 14:22:28 (+0200) (==) Using system config directory "/usr/share/X11/xorg.conf.d"
16.03.20 14:22:28 (+0200) gbm: failed to open any driver (search paths /usr/lib/x86_64-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
16.03.20 14:22:28 (+0200) gbm: Last dlopen error: /usr/lib/dri/i965_dri.so: cannot open shared object file: No such file or directory
16.03.20 14:22:28 (+0200) failed to load driver: i965
16.03.20 14:22:28 (+0200) gbm: failed to open any driver (search paths /usr/lib/x86_64-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
16.03.20 14:22:28 (+0200) gbm: Last dlopen error: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory
16.03.20 14:22:28 (+0200) failed to load driver: kms_swrast
16.03.20 14:22:28 (+0200) gbm: failed to open any driver (search paths /usr/lib/x86_64-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
16.03.20 14:22:28 (+0200) gbm: Last dlopen error: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory
16.03.20 14:22:28 (+0200) failed to load swrast driver
16.03.20 14:22:28 (+0200) couldn't get display device
jordan-lumley commented 2 years ago

docker-compose.yaml:

desktop:
    build:  desktop
    privileged: true
    labels:
      io.balena.features.dbus: '1'
      io.balena.features.firmware : '1'
      io.balena.features.kernel-modules: '1'

Dockerfile is as shown in the project. INTEL NUC: BOXNUC7i5BNH

Error log:

STARTING X
16.03.20 14:22:28 (+0200) xauth:  file /root/.Xauthority does not exist
16.03.20 14:22:28 (+0200) 
16.03.20 14:22:28 (+0200) 
16.03.20 14:22:28 (+0200) X.Org X Server 1.19.2
16.03.20 14:22:28 (+0200) Release Date: 2017-03-02
16.03.20 14:22:28 (+0200) X Protocol Version 11, Revision 0
16.03.20 14:22:28 (+0200) Build Operating System: Linux 4.9.0-8-amd64 x86_64 Debian
16.03.20 14:22:28 (+0200) Current Operating System: Linux 03ccecbf4eb0 5.2.10-yocto-standard #1 SMP PREEMPT Fri Jan 31 07:23:09 UTC 2020 x86_64
16.03.20 14:22:28 (+0200) Kernel command line: BOOT_IMAGE=/boot/bzImage root=LABEL=resin-rootA rootwait intel_idle.max_cstate=1
16.03.20 14:22:28 (+0200) Build Date: 03 November 2018  03:09:11AM
16.03.20 14:22:28 (+0200) xorg-server 2:1.19.2-1+deb9u5 (https://www.debian.org/support) 
16.03.20 14:22:28 (+0200) Current version of pixman: 0.34.0
16.03.20 14:22:28 (+0200)       Before reporting problems, check http://wiki.x.org
16.03.20 14:22:28 (+0200)       to make sure that you have the latest version.
16.03.20 14:22:28 (+0200) Markers: (--) probed, (**) from config file, (==) default setting,
16.03.20 14:22:28 (+0200)       (++) from command line, (!!) notice, (II) informational,
16.03.20 14:22:28 (+0200)       (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
16.03.20 14:22:28 (+0200) (==) Log file: "/var/log/Xorg.0.log", Time: Mon Mar 16 12:22:28 2020
16.03.20 14:22:28 (+0200) (==) Using system config directory "/usr/share/X11/xorg.conf.d"
16.03.20 14:22:28 (+0200) gbm: failed to open any driver (search paths /usr/lib/x86_64-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
16.03.20 14:22:28 (+0200) gbm: Last dlopen error: /usr/lib/dri/i965_dri.so: cannot open shared object file: No such file or directory
16.03.20 14:22:28 (+0200) failed to load driver: i965
16.03.20 14:22:28 (+0200) gbm: failed to open any driver (search paths /usr/lib/x86_64-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
16.03.20 14:22:28 (+0200) gbm: Last dlopen error: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory
16.03.20 14:22:28 (+0200) failed to load driver: kms_swrast
16.03.20 14:22:28 (+0200) gbm: failed to open any driver (search paths /usr/lib/x86_64-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
16.03.20 14:22:28 (+0200) gbm: Last dlopen error: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory
16.03.20 14:22:28 (+0200) failed to load swrast driver
16.03.20 14:22:28 (+0200) couldn't get display device

I too have this issue, did you happen to get around it?