Logg is filled with snapd-errors

My syslog is filled with a LOT of records like this.


Dec  8 14:53:09 localhost systemd[3450]: Started Service for snap application snapd-desktop-integration.snapd-desktop-integration.
Dec  8 14:53:09 localhost snapd-desktop-integration.snapd-desktop-integration[795476]: Sorry, home directories outside of /home are not currently supported.
 Dec  8 14:53:09 localhost snapd-desktop-integration.snapd-desktop-integration[795476]: See https://forum.snapcraft.io/t/11209 for details.
 Dec  8 14:53:09 localhost systemd[3450]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
 Dec  8 14:53:09 localhost systemd[3450]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
Dec  8 14:53:11 localhost systemd[3450]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Scheduled restart job, restart counter is at 152748.
Dec  8 14:53:11 localhost systemd[3450]: Stopped Service for snap application snapd-desktop-integration.snapd-desktop-integration.  
 Dec  8 14:53:11 localhost systemd[3450]: Started Service for snap application snapd-desktop-integration.snapd-desktop-integration.
 Dec  8 14:53:11 localhost snapd-desktop-integration.snapd-desktop-integration[795509]: Sorry, home directories outside of /home are not currently supported.
 Dec  8 14:53:11 localhost snapd-desktop-integration.snapd-desktop-integration[795509]: See https:/ /forum.snapcraft.io/t/11209 for details.
 Dec  8 14:53:11 localhost systemd[3450]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
Dec  8 14:53:11 localhost systemd[3450]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
Dec  8 14:53:14 localhost systemd[3450]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Scheduled restart job, restart counter is at 152749. 
 Dec  8 14:53:14 localhost systemd[3450]: Stopped Service for snap application snapd-desktop-integration.snapd-desktop-integration.
Dec  8 14:53:14 localhost systemd[3450]: Started Service for snap application snapd-desktop-integration.snapd-desktop-integration.
Dec  8 14:53:14 localhost snapd-desktop-integration.snapd-desktop-integration[795543]: Sorry, home directories outside of /home are not currently supported.
Dec  8 14:53:14 localhost snapd-desktop-integration.snapd-desktop-integration[795543]: See https:/ /forum.snapcraft.io/t/11209 for details.
Dec  8 14:53:14 localhost systemd[3450]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
Dec  8 14:53:14 localhost systemd[3450]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
Dec  8 14:53:16 localhost systemd[3450]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Scheduled restart job, restart counter is at 152750.
Dec  8 14:53:16 localhost systemd[3450]: Stopped Service for snap application snapd-desktop-integration.snapd-desktop-integration.  
Dec  8 14:53:16 localhost systemd[3450]: Started Service for snap application snapd-desktop-integration.snapd-desktop-integration.
 Dec  8 14:53:16 localhost snapd-desktop-integration.snapd-desktop-integration[795575]: Sorry, home directories outside of /home are not currently supported.
Dec  8 14:53:16 localhost snapd-desktop-integration.snapd-desktop-integration[795575]: See https:/ /forum.snapcraft.io/t/11209 for details.
Dec  8 14:53:16 localhost systemd[3450]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
Dec  8 14:53:16 localhost systemd[3450]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
Dec  8 14:53:18 localhost systemd[3450]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Scheduled restart job, restart counter is at 152751.
 Dec  8 14:53:18 localhost systemd[3450]: Stopped Service for snap application snapd-desktop-integration.snapd-desktop-integration.
Dec  8 14:53:18 localhost systemd[3450]: Started Service for snap application snapd-desktop-integration.snapd-desktop-integration.
Dec  8 14:53:18 localhost snapd-desktop-integration.snapd-desktop-integration[795609]: Sorry, home directories outside of /home are not currently supported.
Dec  8 14:53:18 localhost snapd-desktop-integration.snapd-desktop-integration[795609]: See https:/ /forum.snapcraft.io/t/11209 for details.
Dec  8 14:53:18 localhost systemd[3450]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE

// GH

did you consider reading the url it desperately points you to in all these messages ?

In what way does my reading of webb-pages amend a broken software? // GH

it is a technical limitation of the apparmor implementation in the kernel, the log message (and me) just tried to point you to a thread with possible workaround and explanation …

indeed you are not obliged to follow people that try to help you …

Hello,

I’m also having similar issues, however my homedirs aren’t outside of /home and unable to run apps like Firefox or OBS within XRDP session on ubuntu 22.05.1 LTS

The reason for those messages is that, due to some current limitations in snapd, snapd-desktop-integration is launched in all “sessions”, no matter if that session is a true user session or not. In this specific case, the error is because it is launched in the GDM session (the program that asks your user name and password during startup), and the problem is that the GDM session has its HOME folder in another place, outside /home.

This error doesn’t affect the normal use, because another instance is launched inside the user session when you log-in in your system. The messages are from the instance in the GDM session, that keeps failing and trying to be launched over and over again, but the one in your session should be working fine (just check it with “ps ax |grep snapd-desktop-integration”; the process should be there).

Anyway, the last version of snapd-desktop-integration, uploaded a few days ago, should fix this.

2 Likes

Would this explain why I’m unable to launch any snap apps like firefox over xrdp ?

*note: I only access by ubuntu box via remote desktop (don’t even have a screen on it), but have been having issues with snap based apps for a little while now… its quite paralizing)

@9Qr84 Not sure, I would have to ask. Have you tried to launch it from a terminal and see what error message does it return? That would help.

(better if you launch it with “snap run firefox”)

@9Qr84 Ok, the problem seems more complex… there is a bug report about that, and it seems that the problem isn’t in Snap itself, but in Xrdp. Check this: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1968908

1 Like