nerves-web-kiosk / kiosk_system_rpi3

Nerves QtWebEngine Kiosk system for Raspberry Pi 3
Apache License 2.0
67 stars 25 forks source link

Example boots to splashscreen, but no browser #54

Closed terkianders closed 4 years ago

terkianders commented 4 years ago

Preface: I'm new to nerves and trying to use the kiosk example project. My build environment is a fresh ubuntu 19.10 with all "getting started" stuff installed. I've done

export MIX_TARGET=rpi3
export KIOSK_URL=https://google.com

like instructed. ~/kiosk_system_rpi3/example$ mix do deps.get, firmware, firmware.burn works without errors. My rpi3 boots to splashscreen "Built with nerves". I can ssh into it and get to iex console. I've been at this for days now and I'm stuck. (Not listing every fruitless attempt here, to keep it readable)

Question: Can anyone give a hint to how do I debug what's going wrong/why I can't see a browser? It would be greatly appreciated! (I'm probably missing something obvious, but can't figure out what it may be)

terkianders commented 4 years ago

Embarrasingly I just now got to see the log, and I guess webengine kiosk is missing even build happened without errors:

[error] Kiosk port application is missing. It should be at /srv/erlang/lib/webengine_kiosk-0.2.4/priv/kiosk.
terkianders commented 4 years ago

Sorry for spamming, but this fixed my issues:

mix deps.update --all
Upgraded:
  muontrap 0.5.0 => 0.5.1
  nerves_runtime 0.10.2 => 0.11.0 (minor)
  nerves_time 0.3.0 => 0.4.1 (minor)
  nerves_toolchain_arm_unknown_linux_gnueabihf 1.3.0 => 1.3.1
  nerves_toolchain_ctng 1.7.0 => 1.7.1
  one_dhcpd 0.2.2 => 0.2.4
  webengine_kiosk 0.2.4 => 0.2.5

KIOSK_URL is not used, but I can place index.html in kiosk_system_rpi3/example/rootfs_overlay/srv/erlang/lib/webengine_kiosk-0.2.5/priv/www/ to show my content, so I'm happy.