Pulsemixer testing on 17.10 upgraded from 14.04

I understand you’re looking for feedback on UbuntuMATE specific. I only have 17.10 stock Ubuntu at hand. I installed it via snap, receive the error Failed to connect to pulseaudio daemon: Connection refused dmesg output below.

I’ve not worked with snaps before, so am at a lose to debug the issue, wondering if others have a similar problem?

[851419.802513] audit: type=1400 audit(1507810663.194:276): apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.pulsemixer.pulsemixer" pid=25748 comm="apparmor_parser"
[851419.999950] audit: type=1400 audit(1507810663.392:277): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/snap/core/3017/usr/lib/snapd/snap-confine" pid=25756 comm="apparmor_parser"
[851420.000136] audit: type=1400 audit(1507810663.392:278): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/snap/core/3017/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=25756 comm="apparmor_parser"
[851420.006557] audit: type=1400 audit(1507810663.398:279): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.core.hook.configure" pid=25759 comm="apparmor_parser"
[851425.174773] audit: type=1400 audit(1507810668.566:280): apparmor="DENIED" operation="open" profile="snap.pulsemixer.pulsemixer" name="/proc/25772/mounts" pid=25772 comm="python3" requested_mask="r" denied_mask="r" fsuid=1001 ouid=1001
[851437.811172] audit: type=1400 audit(1507810681.203:281): apparmor="DENIED" operation="open" profile="snap.pulsemixer.pulsemixer" name="/proc/25788/mounts" pid=25788 comm="python3" requested_mask="r" denied_mask="r" fsuid=1001 ouid=1001
[851440.243167] audit: type=1400 audit(1507810683.635:282): apparmor="DENIED" operation="open" profile="snap.pulsemixer.pulsemixer" name="/proc/25803/mounts" pid=25803 comm="python3" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[851440.309692] audit: type=1400 audit(1507810683.701:283): apparmor="DENIED" operation="capable" profile="snap.pulsemixer.pulsemixer" pid=25803 comm="python3" capability=2  capname="dac_read_search"
[851440.309697] audit: type=1400 audit(1507810683.701:284): apparmor="DENIED" operation="capable" profile="snap.pulsemixer.pulsemixer" pid=25803 comm="python3" capability=1  capname="dac_override"
[851440.335138] audit: type=1400 audit(1507810683.727:285): apparmor="DENIED" operation="mkdir" profile="snap.pulsemixer.pulsemixer" name="/run/user/0/" pid=25803 comm="python3" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
[851820.379240] audit: type=1400 audit(1507811063.770:286): apparmor="DENIED" operation="open" profile="snap.pulsemixer.pulsemixer" name="/proc/26366/mounts" pid=26366 comm="python3" requested_mask="r" denied_mask="r" fsuid=1001 ouid=1001
1 Like

It looks like you invoked pulsemixer in the root context, probably with sudo pulsemixer? This is not required, you can run pulsemixer as a regular user :slight_smile:

1 Like

Yeah, I tested pulsemixer on 17.10 under X and Wayland and it works fine here. Confirmed likely running as root is the problem

1 Like

I ran it as an unprivileged user first, then in an attempt to debug it, I ran it again with sudo. >.< Both times failed.

Non-root:

Failed to connect to pulseaudio daemon: Connection refused

Root:

No protocol specified
xcb_connection_has_error() returned true
Failed to create secure directory (/run/user/0/snap.pulsemixer/pulse): No such file or directory
Failed to connect to pulseaudio daemon: Connection refused

Are you using Ubuntu Desktop 17.10 or a server image?

It was a Ubuntu 14.04 LTS which I updated to 17.10. I would not be surprised if that was the issue.

I broke this off, because this is verging on tech support for 17.10, not what the original thread requested which was testing the MATE ISO.

Ok, so it’s not quite “stock” 17.10, but upgraded, but that’s cool.

I wonder if something is missing. Try this:-

sudo apt install ubuntu-desktop^

Note the caret is important.