Hi,
We try to setup a two container, communicating with a websocket, between chromium and a websocket server in Qt5.
It works, based on this project: https://github.com/jayatvars/balena-chromium-kiosk
Here is our code :
This code is working on raspberrypi 4 but not on RPI3B+
Here’s the log related to Xserver failing, any idea?
20.02.20 23:03:58 (+0100) <qtapp> Echoserver listening on port 1234
20.02.20 23:04:06 (+0100) <chromium-kiosk> xinit: giving up
20.02.20 23:04:06 (+0100) <chromium-kiosk> xinit: unable to connect to X server: Cannot assign requested address
20.02.20 23:04:06 (+0100) <chromium-kiosk> xinit: server error
20.02.20 23:04:06 (+0100) <chromium-kiosk> xauth: (argv):1: bad display name "bk-rpi-531582a:0" in "remove" command
20.02.20 23:04:06 (+0100) <chromium-kiosk> useradd: user 'chromium' already exists
20.02.20 23:04:06 (+0100) <chromium-kiosk> hostname: No address associated with hostname
20.02.20 23:04:07 (+0100) <chromium-kiosk> xauth: (stdin):1: bad display name "bk-rpi-531582a:0" in "add" command
20.02.20 23:04:07 (+0100) <chromium-kiosk>
20.02.20 23:04:07 (+0100) <chromium-kiosk>
20.02.20 23:04:07 (+0100) <chromium-kiosk> X.Org X Server 1.20.4
20.02.20 23:04:07 (+0100) <chromium-kiosk> X Protocol Version 11, Revision 0
20.02.20 23:04:07 (+0100) <chromium-kiosk> Build Operating System: Linux 4.15.0-48-generic armv8l Raspbian
20.02.20 23:04:07 (+0100) <chromium-kiosk> Current Operating System: Linux bk-rpi-531582a 4.19.71 #1 SMP PREEMPT Fri Jan 31 09:53:40 UTC 2020 aarch64
20.02.20 23:04:07 (+0100) <chromium-kiosk> Kernel command line: coherent_pool=1M 8250.nr_uarts=1 cma=256M video=HDMI-A-1:1920x1080@60 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000 dwc_otg.lpm_enable=0 console=tty1 console=ttyS0,115200 rootfstype=ext4 rootwait root=PARTUUID=564dc7a5-02 rootwait
20.02.20 23:04:07 (+0100) <chromium-kiosk> Build Date: 05 June 2019 12:49:54PM
20.02.20 23:04:07 (+0100) <chromium-kiosk> xorg-server 2:1.20.4-1+rpt1 (https://www.debian.org/support)
20.02.20 23:04:07 (+0100) <chromium-kiosk> Current version of pixman: 0.36.0
20.02.20 23:04:07 (+0100) <chromium-kiosk> Before reporting problems, check http://wiki.x.org
20.02.20 23:04:07 (+0100) <chromium-kiosk> to make sure that you have the latest version.
20.02.20 23:04:07 (+0100) <chromium-kiosk> Markers: (--) probed, (**) from config file, (==) default setting,
20.02.20 23:04:07 (+0100) <chromium-kiosk> (++) from command line, (!!) notice, (II) informational,
20.02.20 23:04:07 (+0100) <chromium-kiosk> (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
20.02.20 23:04:07 (+0100) <chromium-kiosk> (==) Log file: "/home/chromium/.local/share/xorg/Xorg.0.log", Time: Thu Feb 20 22:04:07 2020
20.02.20 23:04:07 (+0100) <chromium-kiosk> (==) Using system config directory "/usr/share/X11/xorg.conf.d"
20.02.20 23:04:07 (+0100) <chromium-kiosk> (EE)
20.02.20 23:04:07 (+0100) <chromium-kiosk> Fatal server error:
20.02.20 23:04:07 (+0100) <chromium-kiosk> (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)
20.02.20 23:04:07 (+0100) <chromium-kiosk> (EE)
20.02.20 23:04:07 (+0100) <chromium-kiosk> (EE)
20.02.20 23:04:07 (+0100) <chromium-kiosk> Please consult the The X.Org Foundation support
20.02.20 23:04:07 (+0100) <chromium-kiosk> at http://wiki.x.org
20.02.20 23:04:07 (+0100) <chromium-kiosk> for help.
20.02.20 23:04:07 (+0100) <chromium-kiosk> (EE) Please also check the log file at "/home/chromium/.local/share/xorg/Xorg.0.log" for additional information.
20.02.20 23:04:07 (+0100) <chromium-kiosk> (EE)
20.02.20 23:04:07 (+0100) <chromium-kiosk> (EE) Server terminated with error (1). Closing log file.
20.02.20 23:04:22 (+0100) <chromium-kiosk> xinit: giving up
20.02.20 23:04:22 (+0100) <chromium-kiosk> xinit: unable to connect to X server: Cannot assign requested address
20.02.20 23:04:22 (+0100) <chromium-kiosk> xinit: server error
20.02.20 23:04:22 (+0100) <chromium-kiosk> xauth: (argv):1: bad display name "bk-rpi-531582a:0" in "remove" command
20.02.20 23:04:22 (+0100) <chromium-kiosk> useradd: user 'chromium' already exists
20.02.20 23:04:22 (+0100) <chromium-kiosk> hostname: No address associated with hostname
20.02.20 23:04:22 (+0100) <chromium-kiosk> xauth: (stdin):1: bad display name "bk-rpi-531582a:0" in "add" command
20.02.20 23:04:22 (+0100) <chromium-kiosk>
20.02.20 23:04:22 (+0100) <chromium-kiosk>
20.02.20 23:04:22 (+0100) <chromium-kiosk> X.Org X Server 1.20.4
20.02.20 23:04:22 (+0100) <chromium-kiosk> X Protocol Version 11, Revision 0
20.02.20 23:04:22 (+0100) <chromium-kiosk> Build Operating System: Linux 4.15.0-48-generic armv8l Raspbian
20.02.20 23:04:22 (+0100) <chromium-kiosk> Current Operating System: Linux bk-rpi-531582a 4.19.71 #1 SMP PREEMPT Fri Jan 31 09:53:40 UTC 2020 aarch64
20.02.20 23:04:22 (+0100) <chromium-kiosk> Kernel command line: coherent_pool=1M 8250.nr_uarts=1 cma=256M video=HDMI-A-1:1920x1080@60 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000 dwc_otg.lpm_enable=0 console=tty1 console=ttyS0,115200 rootfstype=ext4 rootwait root=PARTUUID=564dc7a5-02 rootwait
20.02.20 23:04:22 (+0100) <chromium-kiosk> Build Date: 05 June 2019 12:49:54PM
20.02.20 23:04:22 (+0100) <chromium-kiosk> xorg-server 2:1.20.4-1+rpt1 (https://www.debian.org/support)
20.02.20 23:04:22 (+0100) <chromium-kiosk> Current version of pixman: 0.36.0
20.02.20 23:04:22 (+0100) <chromium-kiosk> Before reporting problems, check http://wiki.x.org
20.02.20 23:04:22 (+0100) <chromium-kiosk> to make sure that you have the latest version.
20.02.20 23:04:22 (+0100) <chromium-kiosk> Markers: (--) probed, (**) from config file, (==) default setting,
20.02.20 23:04:22 (+0100) <chromium-kiosk> (++) from command line, (!!) notice, (II) informational,
20.02.20 23:04:22 (+0100) <chromium-kiosk> (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
20.02.20 23:04:22 (+0100) <chromium-kiosk> (==) Log file: "/home/chromium/.local/share/xorg/Xorg.0.log", Time: Thu Feb 20 22:04:22 2020
20.02.20 23:04:22 (+0100) <chromium-kiosk> (==) Using system config directory "/usr/share/X11/xorg.conf.d"
20.02.20 23:04:22 (+0100) <chromium-kiosk> (EE)
20.02.20 23:04:22 (+0100) <chromium-kiosk> Fatal server error:
20.02.20 23:04:22 (+0100) <chromium-kiosk> (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)
20.02.20 23:04:22 (+0100) <chromium-kiosk> (EE)
20.02.20 23:04:22 (+0100) <chromium-kiosk> (EE)
20.02.20 23:04:22 (+0100) <chromium-kiosk> Please consult the The X.Org Foundation support
20.02.20 23:04:22 (+0100) <chromium-kiosk> at http://wiki.x.org
20.02.20 23:04:22 (+0100) <chromium-kiosk> for help.
20.02.20 23:04:22 (+0100) <chromium-kiosk> (EE) Please also check the log file at "/home/chromium/.local/share/xorg/Xorg.0.log" for additional information.
20.02.20 23:04:22 (+0100) <chromium-kiosk> (EE)
20.02.20 23:04:22 (+0100) <chromium-kiosk> (EE) Server terminated with error (1). Closing log file.
20.02.20 23:04:37 (+0100) <chromium-kiosk> xinit: giving up
20.02.20 23:04:37 (+0100) <chromium-kiosk> xinit: unable to connect to X server: Cannot assign requested address
20.02.20 23:04:37 (+0100) <chromium-kiosk> xinit: server error
20.02.20 23:04:37 (+0100) <chromium-kiosk> xauth: (argv):1: bad display name "bk-rpi-531582a:0" in "remove" command
20.02.20 23:04:38 (+0100) <chromium-kiosk> useradd: user 'chromium' already exists
20.02.20 23:04:38 (+0100) <chromium-kiosk> hostname: No address associated with hostname
20.02.20 23:04:38 (+0100) <chromium-kiosk> xauth: (stdin):1: bad display name "bk-rpi-531582a:0" in "add" command
20.02.20 23:04:38 (+0100) <chromium-kiosk>
20.02.20 23:04:38 (+0100) <chromium-kiosk>
20.02.20 23:04:38 (+0100) <chromium-kiosk> X.Org X Server 1.20.4
20.02.20 23:04:38 (+0100) <chromium-kiosk> X Protocol Version 11, Revision 0
20.02.20 23:04:38 (+0100) <chromium-kiosk> Build Operating System: Linux 4.15.0-48-generic armv8l Raspbian
20.02.20 23:04:38 (+0100) <chromium-kiosk> Current Operating System: Linux bk-rpi-531582a 4.19.71 #1 SMP PREEMPT Fri Jan 31 09:53:40 UTC 2020 aarch64
20.02.20 23:04:38 (+0100) <chromium-kiosk> Kernel command line: coherent_pool=1M 8250.nr_uarts=1 cma=256M video=HDMI-A-1:1920x1080@60 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000 dwc_otg.lpm_enable=0 console=tty1 console=ttyS0,115200 rootfstype=ext4 rootwait root=PARTUUID=564dc7a5-02 rootwait
20.02.20 23:04:38 (+0100) <chromium-kiosk> Build Date: 05 June 2019 12:49:54PM
20.02.20 23:04:38 (+0100) <chromium-kiosk> xorg-server 2:1.20.4-1+rpt1 (https://www.debian.org/support)
20.02.20 23:04:38 (+0100) <chromium-kiosk> Current version of pixman: 0.36.0
20.02.20 23:04:38 (+0100) <chromium-kiosk> Before reporting problems, check http://wiki.x.org
20.02.20 23:04:38 (+0100) <chromium-kiosk> to make sure that you have the latest version.
20.02.20 23:04:38 (+0100) <chromium-kiosk> Markers: (--) probed, (**) from config file, (==) default setting,
20.02.20 23:04:38 (+0100) <chromium-kiosk> (++) from command line, (!!) notice, (II) informational,
20.02.20 23:04:38 (+0100) <chromium-kiosk> (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
20.02.20 23:04:38 (+0100) <chromium-kiosk> (==) Log file: "/home/chromium/.local/share/xorg/Xorg.0.log", Time: Thu Feb 20 22:04:38 2020
20.02.20 23:04:38 (+0100) <chromium-kiosk> (==) Using system config directory "/usr/share/X11/xorg.conf.d"
20.02.20 23:04:38 (+0100) <chromium-kiosk> (EE)
20.02.20 23:04:38 (+0100) <chromium-kiosk> Fatal server error:
20.02.20 23:04:38 (+0100) <chromium-kiosk> (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)
20.02.20 23:04:38 (+0100) <chromium-kiosk> (EE)
20.02.20 23:04:38 (+0100) <chromium-kiosk> (EE)
20.02.20 23:04:38 (+0100) <chromium-kiosk> Please consult the The X.Org Foundation support
20.02.20 23:04:38 (+0100) <chromium-kiosk> at http://wiki.x.org
20.02.20 23:04:38 (+0100) <chromium-kiosk> for help.
20.02.20 23:04:38 (+0100) <chromium-kiosk> (EE) Please also check the log file at "/home/chromium/.local/share/xorg/Xorg.0.log" for additional information.
20.02.20 23:04:38 (+0100) <chromium-kiosk> (EE)
20.02.20 23:04:38 (+0100) <chromium-kiosk> (EE) Server terminated with error (1). Closing log file.
20.02.20 23:04:47 (+0100) Killing service 'chromium-kiosk sha256:78353f41feb6ad4c13af22cd9a2f62e78e9f4c7301762c58c75401291bb5a6b7'
20.02.20 23:04:47 (+0100) <chromium-kiosk>
20.02.20 23:04:47 (+0100) <chromium-kiosk> Session terminated, killing shell...xinit: giving up
20.02.20 23:04:47 (+0100) <chromium-kiosk> xinit: unable to connect to X server: Cannot assign requested address
20.02.20 23:04:47 (+0100) <chromium-kiosk> xinit: unexpected signal 15
20.02.20 23:04:47 (+0100) <chromium-kiosk> ...killed.
Regards,
Sylvain.