Startx no longer works

I used to have a working container that started an X11 server.

After I upgraded to balenaOS 2.41.0r3 my startx script fails (it’s being run as an unprivileged user) saying xf86OpenConsole: Cannot open virtual console 2 (Permission denied)

It works if you run it as root… but then it doesn’t execute my .xinitrc for that user…

What version did you upgrade from?

Upgraded from 2.38. 4 hours later and I mended everything that was busted…

Had to do chmod 660 /dev/tty* and now it works (my non-priv user was already in the tty group).

Also needed to add my user to the video group so that it could open /dev/fb0. strace is such a great tool for debugging this sort of thing !

Finally I needed to add needs_root_rights=yes to /etc/X11/Xwrapper.config otherwise modeset would fail. Probably mucking about with the groups is actually not necessary with the Xwrapper change…

cool that you figured it out o/ this is on a Raspberry Pi 3 right?

Aye, Pi 3.

However, now it’s gone completely crackers and every minute the following happens - any idea? I don’t really know where to start on that one…

28.08.19 16:05:00 (+0200) wallboard Systemd init system enabled.
28.08.19 16:05:00 (+0200) wallboard systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
28.08.19 16:05:00 (+0200) wallboard Detected virtualization docker.
28.08.19 16:05:00 (+0200) wallboard Detected architecture arm.
28.08.19 16:05:00 (+0200) wallboard Set hostname to <b83d65ecdb5b>.
28.08.19 16:05:00 (+0200) wallboard Failed to bump fs.file-max, ignoring: Invalid argument
28.08.19 16:05:00 (+0200) wallboard Failed to attach 1 to compat systemd cgroup /docker/b83d65ecdb5bc27bd19d096c89942fb8b7376f30532ad899aaefac091d0a0803/init.scope: No such file or directory
28.08.19 16:05:00 (+0200) wallboard Failed to open pin file: No such file or directory
28.08.19 16:05:00 (+0200) wallboard Failed to allocate manager object: No such file or directory
28.08.19 16:05:00 (+0200) wallboard [!!!!!!] Failed to allocate manager object.

I think I’ll start another thread - this is offtopic now…