Just a warning: I’ ve been told we should be using /var/snap/mir-kiosk/current/ not /var/snap/mir-kiosk/common/ for the config files. So beware that you may need to move the miral-kiosk.config file in the near future. (One of the perils of using edge!)

Using fresh install of Ubuntu 18.04.1 Server and using mir-kiosk and chromium-mir-kiosk from --channel edge/wayland-interface. Mir-kiosk starts, I get the orange-to-black animation. However, chromium-mir-kiosk is still generating errors. See the output of journalctl -u snap.chromium-mir-kiosk*:

I get random reboots on my Ubuntu Core. Not sure if this is due to chromium-mir-kiosk, mir-kiosk och core itself. But when checking the log of snap.chromium-mir-kiosk I get a bunch of permission errors. Check this out:

Can you shed any light over this? How do I give the snap permissions to do what it wants? On screen everything looks good but the reboots makes me suspicious and therefor I checked the log out with journalctl -u snap.chromium-mir-kiosk*

This is a new error to me though. Can you share your “snap interfaces” output? It might be a failure culprit. But I don’t know how it would cause the device to reboot. What kind of device are you using?
-G

error: snap “chromium-mir-kiosk” has no plug named “wayland-socket-dir”

We’re in the process of eliminating use of the wayland-socket-dir interface. I didn’t think that work was yet published on edge (it should be on “edge/wayland-interface”). We’ll be updating the snaps and documentation at some point in the next few days. I’ll check what’s happening here tomorrow.

@alan_g darn… that’s where I started, and I believe as someone mentioned above “edge” the only option for ARM right now (nothings on beta). Your original point stands. Edge must already have these changes because that plug isn’t available in either channel.

Hey @desquare ,
the basic interfaces are in place for chromium to function. Tell me, does Chromium start up at all? Or are you finding that it runs ok, and then randomly crashes? Or runs and the device randomly reboots? Maybe device reboots itself for another reason? (snap core updates maybe).

If Chromium crashes, it should just be restarted automatically. It should never cause the device to reboot. I have seen more exotic hardware with dodgy GPU drivers, where a crash/bad client would cause a GPU hang, which a watchdog would notice and force a reboot. But you’re using Intel hardware which has good drivers.
-G

Actually, it ran stable when I set it up using your guide. The reboots, which occurs very random, first appear after refreshing the mir-kiosk snap to --edge from --stable. What I wanted to achieve was to change the startup URL, hide the cursor and prevent reload of the URL as I looking into using this for a digital signage solution.
But the hidecursor config in chromium-mir-kiosk had no effect and @alan_g instructed med to use mir-kiosk from --edge which has a configuration file where I can hide the cursor successfully.

With those settings I get the occasionally reboots. At first I thought that it may have to do with the snap and system updates but it is not in time with the timers that handle the update checks.

@desquare
if you switch back to stable mir-kiosk, do these random reboots go away? I’m very intrigued how Mir/Chromium could possibly cause the whole device to reboot!

Note: chromium-mir-kiosk is lacking a little polish to be a full production-ready digital signage solution. It has minimal testing, security updates are not guaranteed, and I know the hide cursor thing didn’t quite work either. There’s no OSK solution for touch-screen devices either.

I’ll try that out and see if that changes things. I also have a Dragonboard 410 that I can deploy the snap on to see if the problems occur on that ARM platform as well.

I’ve 14 years of experience in the digital signage business and I think that now the web technology is somewhat mature enough to be used for 24/7 applications. That in combination with IoT focused operating sysmtems such as Ubuntu Core (and also Windows IoT Core that I have created some customised images for) is very exiting and secure to work with. However I’m an entrepreneur and designer with a good feeling for user experience and not a developer. I’m fairly good at tweaking systems on an OS level, as long as I have good documentation, but not when it comes to programming.

I would love to work with you to improve this snap if you are interested in what I can provide as an expert of the market and user needs from a business point a view.