Mycroft Community Forum

Msm /tmp lock file is broken

When I try to use the msm app in the virtual enviroment then this happens.
Traceback (most recent call last):
File “/usr/share/mycroft-core/.venv/bin/msm”, line 8, in
sys.exit(main())
File “/usr/share/mycroft-core/.venv/lib/python3.8/site-packages/msm/main.py”, line 96, in main
msm = MycroftSkillsManager(
File “/usr/share/mycroft-core/.venv/lib/python3.8/site-packages/msm/mycroft_skills_manager.py”, line 109, in init
with self.lock:
File “/usr/share/mycroft-core/.venv/lib/python3.8/site-packages/fasteners/process_lock.py”, line 174, in enter
self.acquire()
File “/usr/share/mycroft-core/.venv/lib/python3.8/site-packages/fasteners/process_lock.py”, line 151, in acquire
self._do_open()
File “/usr/share/mycroft-core/.venv/lib/python3.8/site-packages/fasteners/process_lock.py”, line 123, in _do_open
self.lockfile = open(self.path, ‘a’)
PermissionError: [Errno 13] Permission denied: ‘/tmp/msm_lock’

permissions look like this
0 drwxrwxrwt 19 root root 720 Oct 23 13:23 .
4.0K drwxr-xr-x 19 root root 4.0K Sep 30 17:10 …
0 drwxrwxrwt 2 root root 40 Oct 23 12:34 .font-unix
0 drwxrwxrwt 2 root root 40 Oct 23 12:34 .ICE-unix
0 drwxr-xr-x 4 mycroft mycroft 140 Oct 23 12:35 mycroft
0 drwxr-xr-x 82 mycroft mycroft 2.0K Oct 23 12:36 .skills-repo
0 drwx------ 2 daniel wheel 60 Oct 23 12:35 ssh-JMQcW98C2f64
0 drwx------ 3 root root 60 Oct 23 12:35 systemd-private-89bb8633b58046ea9815bf5b5ee1bb8b-colord.service-zsW5fi
0 drwx------ 3 root root 60 Oct 23 12:35 systemd-private-89bb8633b58046ea9815bf5b5ee1bb8b-geoclue.service-v11zuh
0 drwx------ 3 root root 60 Oct 23 12:34 systemd-private-89bb8633b58046ea9815bf5b5ee1bb8b-systemd-logind.service-t8igef
0 drwx------ 2 daniel wheel 40 Oct 23 12:36 Temp-87570ecc-f8c3-45cf-b031-d2bbc2698907
0 drwx------ 2 daniel wheel 40 Oct 23 12:36 Temp-cb00f3eb-ad93-45cf-a488-687a9394861e
0 drwxrwxrwt 2 root root 40 Oct 23 12:34 .Test-unix
0 drwxr-xr-x 6 mycroft mycroft 220 Oct 23 12:58 tmp0tgtnzcn
0 drwxr-xr-x 6 mycroft mycroft 180 Oct 23 13:01 tmp811_z34_
0 drwxr-xr-x 4 mycroft mycroft 200 Oct 23 12:44 tmp872_u38m
0 drwx------ 2 daniel wheel 60 Oct 23 12:59 .vifm-Trash-1000
0 drwxrwxrwt 2 root root 60 Oct 23 12:35 .X11-unix
0 drwxrwxrwt 2 root root 40 Oct 23 12:34 .XIM-unix
0 -rwxrwxrwx 1 mycroft mycroft 0 Oct 23 12:35 identity-lock
0 prw-r–r-- 1 daniel wheel 0 Oct 23 12:35 mpd.fifo
0 -rwxrwxrwx 1 mycroft mycroft 0 Oct 23 12:35 msm_lock
0 -rwxrwxrwx 1 mycroft mycroft 0 Oct 23 12:35 mycroft-msm.lck
0 prw-r–r-- 1 daniel wheel 0 Oct 23 12:35 polybar_mqueue.934
4.0K -rw------- 1 daniel wheel 159 Oct 23 12:35 serverauth.sH0qbGkKB9
92K -rw-r–r-- 1 mycroft mycroft 91K Oct 23 13:19 .skills-meta.json
4.0K -rw------- 1 mycroft mycroft 22 Oct 23 12:35 tmpe9ykd_wg
4.0K -rw------- 1 mycroft mycroft 22 Oct 23 12:39 tmpgxa_nzpi
4.0K -rw-r–r-- 1 mycroft mycroft 2.9K Oct 23 12:40 tts.wav
0 prw------- 1 daniel wheel 0 Oct 23 12:45 vifm-ipc-vifm
0 prw------- 1 daniel wheel 0 Oct 23 12:49 vifm-ipc-vifm1
0 prw------- 1 daniel wheel 0 Oct 23 13:11 vifm-ipc-vifm2
0 prw------- 1 daniel wheel 0 Oct 23 13:11 vifm-ipc-vifm3
0 prw-r–r-- 1 daniel wheel 0 Oct 23 13:11 vifm-ueberzug-27753
0 prw-r–r-- 1 daniel wheel 0 Oct 23 13:11 vifm-ueberzug-28041
4.0K -r–r--r-- 1 daniel wheel 11 Oct 23 12:35 .X0-lock

Who is the owner of the packages in

This is a weird combination daniel/mycroft/root and mycroft-core in /usr/share/

Everything there is owned by user group mycroft.
I used the aur to install it.

works on mine btw.

check htop. something’s not running under mycroft

you can easily check the permission:
su mycroft
nano /tmp/msm_lock