When starting, if TMPDIR is set, the xkb component of the X server appears to try create a temporary file in $TMPDIR and then move it to /tmp. This obviously fails if both directories are not on the same filesystem.
What steps will reproduce the problem?
(1) Edit ~/.profile to set TMPDIR to a path on a separate filesystem from /tmp
(2) sudo service chrome-remote-desktop restart
What is the expected result?
The host starts successfully.
What happens instead?
Starting the X server fails with an error such as the following:
[xkb] Can't rename /usr/local/google/tmp/filezA5HaZ to /tmp/server-B20D7FC79C7F597315E3E501AEF10E0D866E8E92.xkm, error: Invalid cross-device link
Solution appears to be to omit TMPDIR from the environment used to start the X server
Comment 1 by bugdroid1@chromium.org
, Dec 21 2016