[ubuntu-studio-users] autojack causes crash report popup at boot

Dj ZU djzu89 at gmail.com
Thu Apr 30 14:21:43 UTC 2020

Hi there,

I upgraded from 18.04 to 20.04 early since I use the same machine as a
server for many purposes and needed some new features not related with
audio production.

The upgrade went smooth and my system is stable except I got an annoying
popup windows at every boot asking to send a bug report.

In /var/crash/, I can find a crash report related to 'autojack' that says:
Traceback (most recent call last):
  File "/usr/bin/autojack", line 966, in <module>
  File "/usr/bin/autojack", line 909, in main
  File "/usr/lib/python3.8/os.py", line 223, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/var/lib/sendmail/.log'

Running 'journalctl -b | grep autojack' returned 3 times the line 'Started
Studio autojack session daemon.'

I understood that this 'autojack' was called at each user session opening
which is not expected in my setup because I have my main user (say 'user1')
opening its session as autologin at boot, plus some program runned by
another user of mine (say 'user2') through '/etc/rc.local' with ' su -l
user2 -c "command" ', plus the mysterious user 'smmsp' (related to
sendmail, explaining what is found in the above crash log) opening and
closing a session at boot.

I have been able to solve this issue by adding 'ConditionUser=user1' to the
[Unit] section of '/usr/lib/systemd/user/studio.service'.

Note that I only use 'user1' for audio production but 'user2' also need to
be in 'audio' group for other purposes.

Don't you agree that this 'studio.service' behaviour is not the expected
one, i.e. does it need to be run for every user session? I think that my
workaround is dirty and might not withstand upcoming updates.

Long live Ubuntu Studio!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-studio-users/attachments/20200430/e34750dd/attachment.html>

More information about the ubuntu-studio-users mailing list