Cant get chromium browser working

Hello, I cant find any info about this error I get when running chromium browser, this is the entire log:
root@entabeni:/usr/src/app# startx /home/chromium/ – -nocursor
xauth: file /root/.Xauthority does not exist

X.Org X Server 1.19.2
Release Date: 2017-03-02
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.9.41-v7+ armv7l Raspbian
Current Operating System: Linux entabeni 4.19.75 #1 SMP PREEMPT Tue May 26 11:06:42 UTC 2020 aarch64
Kernel command line: coherent_pool=1M 8250.nr_uarts=1 cma=64M cma=256M video=HDMI-A-1:1920x1080M@60,margin_left=0,margin_right=0,margin_top=0,margin_bottom=0 smsc95xx.macaddr=DC:A6:32:60:40:BA vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=tty1 console=ttyS0,115200 rootfstype=ext4 rootwait root=UUID=ba1eadef-bf85-40b0-ac6e-9b3b4b2f9779 rootwait
Build Date: 18 October 2017  04:55:30PM
xorg-server 2:1.19.2-1+rpt1+deb9u2 (
Current version of pixman: 0.34.0
	Before reporting problems, check
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Jun 23 09:35:56 2020
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
Draw call returned Invalid argument.  Expect corruption.
xinit: connection to X server lost

waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.

This is my docker file:

FROM balenalib/raspberrypi3-golang as builder

RUN go get -d -v

WORKDIR /go/src/

RUN go build 

FROM balenalib/raspberry-pi-node:8-stretch-run

RUN install_packages \
    libcups2-dev \
    libcupsimage2-dev \
    iptables \
    avahi-daemon \
    dbus \
    python build-essential libusb-1.0-0-dev \
    cups \
    libnss-mdns \
    foomatic-db-compressed-ppds \
    printer-driver-brlaser \
    hplip \
    hplip-data \
    libudev-dev \
    xserver-xorg-video-fbdev \
  xserver-xorg xinit \
  xterm x11-xserver-utils \
  usbutils \
  xterm \
  xserver-xorg-input-evdev \
  xserver-xorg-legacy \
  mesa-vdpau-drivers \
  chromium-browser \
  nano \
  systemd-sysv \
  libxcb-image0 \
  libxcb-util0 \
  xdg-utils \
  libdbus-1-dev \
  libcap-dev \
  libxtst-dev \
  libxss1 \
  fbset \
  udev \
  rpi-chromium-mods \ 
  libgles2-mesa \

RUN echo "#!/bin/bash" > /etc/X11/xinit/xserverrc \
  && echo "" >> /etc/X11/xinit/xserverrc \
  && echo 'exec /usr/bin/X -s 0 dpms -nocursor -nolisten tcp "$@"' >> /etc/X11/xinit/xserverrc

WORKDIR /usr/src/app
COPY ./kiosk ./

RUN useradd chromium -m -s /bin/bash -G root && \
  groupadd -r -f chromium && id -u chromium \
  && chown -R chromium:chromium /home/chromium 

 RUN echo 'SUBSYSTEM=="vchiq",GROUP="video",MODE="0660"' > /etc/udev/rules.d/10-vchiq-permissions.rules
RUN usermod -a -G audio,video,tty chromium

 RUN ln -s /host/run/dbus /var/run/dbus
 COPY ./kiosk/public_html /home/chromium/public_html

 COPY --from=builder /go/src/ /home/chromium/tohora
 COPY /home/chromium/

CMD ["bash", ""]

version: β€œ2.1”



build: ./
- β€œ80”
privileged: true
restart: always
- β€œentabeni:”
network_mode: host
# volumes:
# - β€˜cups:/etc/cups’
- β€œ/dev:/dev”
- DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket
# - 8080:8080
io.balena.features.kernel-modules: β€œ1”
io.balena.features.firmware: β€œ1”
io.balena.features.dbus: β€œ1”
io.balena.features.kernel: β€œ1”
io.balena.features.supervisor-api: β€˜1’
io.balena.features.balena-api: β€˜1’

export DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket

sed -i -e 's/console/anybody/g' /etc/X11/Xwrapper.config
echo "needs_root_rights=yes" >> /etc/X11/Xwrapper.config
dpkg-reconfigure xserver-xorg-legacy
echo "#!/bin/bash" > /home/chromium/
echo "xset s off -dpms" >> /home/chromium/
chmod 770 /home/chromium/*.sh 
chown chromium:chromium /home/chromium/

# Set rules for connection only through the public device URL
iptables -A INPUT -i resin-vpn -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -i resin-vpn -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j REJECT

cd /home/chromium/tohora && ./tohora 8080 /home/chromium/ &
# # wait for it
sleep 3

sleep 5
wget --post-data "url=" http://localhost:8080/launch/

tail -f /dev/null

while : ; do echo "${MESSAGE=Idling...}"; sleep ${INTERVAL=600}; done

Does anyone have any ideas, I am working off this repo

Hi Patrick

Which device are you using? Did you set RESIN_HOST_CONFIG_gpu_mem?

The chromium-ha repo is experimental we recommend users try balena-dash if they would like to run a browser on their device and display sites or galleries.

1 Like

Thanks, Ill try out the balena-dash repo