You are not logged in.

#1 2020-05-10 18:26:22

mjd119
Member
Registered: 2020-05-07
Posts: 119

[SOLVED] Systemwide MPD Pulse Connection Refused

I recently installed mpd and decided to run mpd as its own user for security reasons and so audio keeps playing when I end my session. I followed the steps on the wiki to stream pulse audio through the localhost but I am getting error messages in the log.

May 10 13:57 : exception: Failed to open "My Pulse Output" (pulse)
May 10 13:57 : exception: nested: failed to connect: Connection refused

The user mpd is a part of the groups: audio, mpd, and {MY_USERNAME} (to access my ntfs drive that has my music)

This is my /etc/pulse/default.pa file

#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <[url]http://www.gnu.org/licenses/[/url]>.

# This startup script is used only if PulseAudio is started per-user
# (i.e. not in system mode)

.fail

### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore

### Automatically augment property information from .desktop files
### stored in /usr/share/application
load-module module-augment-properties

### Should be after module-*-restore but before module-*-detect
load-module module-switch-on-port-available

### Load audio drivers statically
### (it's probably better to not load these drivers manually, but instead
### use module-udev-detect -- see below -- for doing this automatically)
#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
#load-module module-null-sink
#load-module module-pipe-sink

### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
### Use the static hardware detection module (for systems that lack udev support)
load-module module-detect
.endif

### Automatically connect sink and source if JACK server is present
.ifexists module-jackdbus-detect.so
.nofail
load-module module-jackdbus-detect channels=2
.fail
.endif

### Automatically load driver modules for Bluetooth hardware
.ifexists module-bluetooth-policy.so
load-module module-bluetooth-policy
.endif

.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif

### Load several protocols
load-module module-dbus-protocol
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix

### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
load-module module-native-protocol-tcp #Uncommented by mjd119
#load-module module-zeroconf-publish
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 # Added by mjd119 (Arch Wiki)

### Load the RTP receiver module (also configured via paprefs, see above)
#load-module module-rtp-recv

### Load the RTP sender module (also configured via paprefs, see above)
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
#load-module module-rtp-send source=rtp.monitor

### Load additional modules from GSettings. This can be configured with the paprefs tool.
### Please keep in mind that the modules configured by paprefs might conflict with manually
### loaded modules.
.ifexists module-gsettings.so
.nofail
load-module module-gsettings
.fail
.endif


### Automatically restore the default sink/source when changed by the user
### during runtime
### NOTE: This should be loaded as early as possible so that subsequent modules
### that look up the default sink/source get the right value
load-module module-default-device-restore

### Automatically move streams to the default sink if the sink they are
### connected to dies, similar for sources
load-module module-rescue-streams

### Make sure we always have a sink around, even if it is a null sink.
load-module module-always-sink

### Honour intended role device property
load-module module-intended-roles

### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle

### If autoexit on idle is enabled we want to make sure we only quit
### when no local session needs us anymore.
.ifexists module-console-kit.so
load-module module-console-kit
.endif
.ifexists module-systemd-login.so
load-module module-systemd-login
.endif

### Enable positioned event sounds
load-module module-position-event-sounds

### Cork music/video streams when a phone stream is active
load-module module-role-cork

### Modules to allow autoloading of filters (such as echo cancellation)
### on demand. module-filter-heuristics tries to determine what filters
### make sense, and module-filter-apply does the heavy-lifting of
### loading modules and rerouting streams.
load-module module-filter-heuristics
load-module module-filter-apply

### Make some devices default
#set-default-sink output
#set-default-source input

and this is my /etc/mpd.conf
file

# An example configuration file for MPD.
# Read the user manual for documentation: [url]http://www.musicpd.org/doc/user/[/url]
# Modified from example (see [url]https://www.youtube.com/watch?v=Jk8hn8xAgzo&t=58s[/url] [provided on Debian Buster])

# Files and directories #######################################################
#
# This setting controls the top directory which MPD will search to discover the
# available audio files and add them to the daemon's online database. This 
# setting defaults to the XDG directory, otherwise the music directory will be
# be disabled and audio files will only be accepted over ipc socket (using
# file:// protocol) or streaming files over an accepted protocol.
#
music_directory		"/home/{MY_USERNAME}/Music"
#
# This setting sets the MPD internal playlist directory. The purpose of this
# directory is storage for playlists created by MPD. The server will use 
# playlist files not created by the server but only if they are in the MPD
# format. This setting defaults to playlist saving being disabled.
#
playlist_directory		"/var/lib/mpd/playlists"
#
# This setting sets the location of the MPD database. This file is used to
# load the database at server start up and store the database while the 
# server is not up. This setting defaults to disabled which will allow
# MPD to accept files over ipc socket (using file:// protocol) or streaming
# files over an accepted protocol.
#
db_file			"/var/lib/mpd/tag_cache"
# 
# These settings are the locations for the daemon log files for the daemon.
# These logs are great for troubleshooting, depending on your log_level
# settings.
#
# The special value "syslog" makes MPD use the local syslog daemon. This
# setting defaults to logging to syslog.
#
log_file			"/var/log/mpd/mpd.log"
#
# This setting sets the location of the file which stores the process ID
# for use of mpd --kill and some init scripts. This setting is disabled by
# default and the pid file will not be stored.
#
pid_file			"/run/mpd/pid"
#
# This setting sets the location of the file which contains information about
# most variables to get MPD back into the same general shape it was in before
# it was brought down. This setting is disabled by default and the server 
# state will be reset on server start up.
#
state_file			"/var/lib/mpd/state"
#
# The location of the sticker database.  This is a database which
# manages dynamic information attached to songs.
#
sticker_file			"/var/lib/mpd/sticker.sql"
#
###############################################################################


# General music daemon options ################################################
#
# This setting specifies the user that MPD will run as. MPD should never run as
# root and you may use this setting to make MPD change its user ID after
# initialization. This setting is disabled by default and MPD is run as the
# current user.
#
user				"mpd"
#
# This setting specifies the group that MPD will run as. If not specified
# primary group of user specified with "user" setting will be used (if set).
# This is useful if MPD needs to be a member of group such as "audio" to
# have permission to use sound card.
#
group				"mpd"
#
# This setting sets the address for the daemon to listen on. Careful attention
# should be paid if this is assigned to anything other then the default, any.
# This setting can deny access to control of the daemon. Not effective if
# systemd socket activiation is in use.
#
# For network
bind_to_address		"127.0.0.1"
#
# And for Unix Socket
bind_to_address		"/run/mpd/socket"
#
# This setting is the TCP port that is desired for the daemon to get assigned
# to.
#
port				"6600"
#
# This setting controls the type of information which is logged. Available 
# setting arguments are "default", "secure" or "verbose". The "verbose" setting
# argument is recommended for troubleshooting, though can quickly stretch
# available resources on limited hardware storage.
#
log_level			"default"
#
# Setting "restore_paused" to "yes" puts MPD into pause mode instead
# of starting playback after startup.
#
#restore_paused "no"
#
# This setting enables MPD to create playlists in a format usable by other
# music players.
#
#save_absolute_paths_in_playlists	"no"
#
# This setting defines a list of tag types that will be extracted during the
# audio file discovery process. The complete list of possible values can be
# found in the user manual.
#metadata_to_use	"artist,album,title,track,name,genre,date,composer,performer,disc"
#
# This example just enables the "comment" tag without disabling all
# the other supported tags:
#metadata_to_use "+comment"
#
# This setting enables automatic update of MPD's database when files in 
# music_directory are changed.
#
#auto_update	"yes"
#
# Limit the depth of the directories being watched, 0 means only watch
# the music directory itself.  There is no limit by default.
#
#auto_update_depth "3"
#
###############################################################################


# Symbolic link behavior ######################################################
#
# If this setting is set to "yes", MPD will discover audio files by following 
# symbolic links outside of the configured music_directory.
#
follow_outside_symlinks	"yes"
#
# If this setting is set to "yes", MPD will discover audio files by following
# symbolic links inside of the configured music_directory.
#
follow_inside_symlinks		"yes"
#
###############################################################################


# Zeroconf / Avahi Service Discovery ##########################################
#
# If this setting is set to "yes", service information will be published with
# Zeroconf / Avahi.
#
#zeroconf_enabled		"yes"
#
# The argument to this setting will be the Zeroconf / Avahi unique name for
# this MPD server on the network. %h will be replaced with the hostname.
#
#zeroconf_name			"Music Player @ %h"
#
###############################################################################


# Permissions #################################################################
#
# If this setting is set, MPD will require password authorization. The password
# setting can be specified multiple times for different password profiles.
#
#password                        "password@read,add,control,admin"
#
# This setting specifies the permissions a user has who has not yet logged in. 
#
#default_permissions             "read,add,control,admin"
#
###############################################################################


# Database #######################################################################
#

#database {
#       plugin "proxy"
#       host "other.mpd.host"
#       port "6600"
#}

# Input #######################################################################
#

input {
        plugin "curl"
#       proxy "proxy.isp.com:8080"
#       proxy_user "user"
#       proxy_password "password"
}

#
###############################################################################

# Audio Output ################################################################
#
# MPD supports various audio output types, as well as playing through multiple 
# audio outputs at the same time, through multiple audio_output settings 
# blocks. Setting this block is optional, though the server will only attempt
# autodetection for one sound card.
#
# An example of an ALSA output:
#
#audio_output {
#	type		"alsa"
#	name		"My ALSA Device"
##	device		"hw:0,0"	# optional
##	mixer_type      "hardware"	# optional
##	mixer_device	"default"	# optional
##	mixer_control	"PCM"		# optional
##	mixer_index	"0"		# optional
#}
#
# An example of an OSS output:
#
#audio_output {
#	type		"oss"
#	name		"My OSS Device"
##	device		"/dev/dsp"	# optional
##	mixer_type      "hardware"	# optional
##	mixer_device	"/dev/mixer"	# optional
##	mixer_control	"PCM"		# optional
#}
#
# An example of a shout output (for streaming to Icecast):
#
#audio_output {
#	type		"shout"
#	encoder		"vorbis"		# optional
#	name		"My Shout Stream"
#	host		"localhost"
#	port		"8000"
#	mount		"/mpd.ogg"
#	password	"hackme"
#	quality		"5.0"
#	bitrate		"128"
#	format		"44100:16:1"
##	protocol	"icecast2"		# optional
##	user		"source"		# optional
##	description	"My Stream Description"	# optional
##	url		"[url]http://example.com[/url]"	# optional
##	genre		"jazz"			# optional
##	public		"no"			# optional
##	timeout		"2"			# optional
##	mixer_type      "software"		# optional
#}
#
# An example of a recorder output:
#
#audio_output {
#	type		"recorder"
#	name		"My recorder"
#	encoder		"vorbis"		# optional, vorbis or lame
#	path		"/var/lib/mpd/recorder/mpd.ogg"
##	quality		"5.0"			# do not define if bitrate is defined
#	bitrate		"128"			# do not define if quality is defined
#	format		"44100:16:1"
#}
#
# An example of a httpd output (built-in HTTP streaming server):
#
#audio_output {
#	type		"httpd"
#	name		"My HTTP Stream"
#	encoder		"vorbis"		# optional, vorbis or lame
#	port		"8000"
#	bind_to_address	"0.0.0.0"		# optional, IPv4 or IPv6
##	quality		"5.0"			# do not define if bitrate is defined
#	bitrate		"128"			# do not define if quality is defined
#	format		"44100:16:1"
#	max_clients	"0"			# optional 0=no limit
#}
#
# An example of a pulseaudio output (streaming to a remote pulseaudio server)
#
audio_output {
	type		"pulse"
	name		"My Pulse Output"
	server		"127.0.0.1"		# optional
##	sink		"remote_server_sink"	# optional
}
#
# An example of a winmm output (Windows multimedia API).
#
#audio_output {
#	type		"winmm"
#	name		"My WinMM output"
##	device		"Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
#		or
##	device		"0"		# optional
##	mixer_type	"hardware"	# optional
#}
#
# An example of an openal output.
#
#audio_output {
#	type		"openal"
#	name		"My OpenAL output"
##	device		"Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
#}
#
# An example of an sndio output.
#
#audio_output {
#	type		"sndio"
#	name		"sndio output"
#	mixer_type	"hardware"
#}
#
# An example of an OS X output:
#
#audio_output {
#	type		"osx"
#	name		"My OS X Device"
##	device		"Built-in Output"	# optional
##	channel_map      "-1,-1,0,1"	# optional
#}
#
## Example "pipe" output:
#
#audio_output {
#	type		"pipe"
#	name		"my pipe"
#	command		"aplay -f cd 2>/dev/null"
## Or if you're want to use AudioCompress
#	command		"AudioCompress -m | aplay -f cd 2>/dev/null"
## Or to send raw PCM stream through PCM:
#	command		"nc example.org 8765"
#	format		"44100:16:2"
#}
#
## An example of a null output (for no audio output):
#
#audio_output {
#	type		"null"
#	name		"My Null Output"
#	mixer_type      "none"			# optional
#}
#
###############################################################################


# Normalization automatic volume adjustments ##################################
#
# This setting specifies the type of ReplayGain to use. This setting can have
# the argument "off", "album", "track" or "auto". "auto" is a special mode that
# chooses between "track" and "album" depending on the current state of
# random playback. If random playback is enabled then "track" mode is used.
# See <[url]http://www.replaygain.org[/url]> for more details about ReplayGain.
# This setting is off by default.
#
#replaygain			"album"
#
# This setting sets the pre-amp used for files that have ReplayGain tags. By
# default this setting is disabled.
#
#replaygain_preamp		"0"
#
# This setting sets the pre-amp used for files that do NOT have ReplayGain tags.
# By default this setting is disabled.
#
#replaygain_missing_preamp	"0"
#
# This setting enables or disables ReplayGain limiting.
# MPD calculates actual amplification based on the ReplayGain tags
# and replaygain_preamp / replaygain_missing_preamp setting.
# If replaygain_limit is enabled MPD will never amplify audio signal
# above its original level. If replaygain_limit is disabled such amplification
# might occur. By default this setting is enabled.
#
#replaygain_limit		"yes"
#
# This setting enables on-the-fly normalization volume adjustment. This will
# result in the volume of all playing audio to be adjusted so the output has 
# equal "loudness". This setting is disabled by default.
#
#volume_normalization		"no"
#
###############################################################################

# Character Encoding ##########################################################
#
# If file or directory names do not display correctly for your locale then you 
# may need to modify this setting.
#
#filesystem_charset		"UTF-8"
#
###############################################################################

I deleted the mpd.conf file in my home directory and there is no default.pa file in my home directory.
I followed https://wiki.archlinux.org/index.php/Mu … yer_Daemon and https://wiki.archlinux.org/index.php/Mu … _mpd_user)
Audio works elsewhere on the computer (like in my web browser). Running mpd as the user I am signed on as with config files in the home directory did not have this issue since I didn't try to send audio over the network. I start the program using sudo systemctl start mpd. I can provide extra information if needed.

EDIT:
The result is the same if the line "load-module module-native-protocol-tcp" is commented or not. Another guide I read recommended this so I thought I'd try it.

Last edited by mjd119 (2020-05-11 18:03:28)

Offline

#2 2020-05-10 19:50:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,697

Re: [SOLVED] Systemwide MPD Pulse Connection Refused

Please edit your post and wrap the file contents in "code" tags (intead of quote tags). Thanks.

Offline

#3 2020-05-10 20:16:07

mjd119
Member
Registered: 2020-05-07
Posts: 119

Re: [SOLVED] Systemwide MPD Pulse Connection Refused

Fixed

Offline

#4 2020-05-10 20:25:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,697

Re: [SOLVED] Systemwide MPD Pulse Connection Refused

Is PA listening on the port?

nmap -p 4713 127.0.0.1
netstat -tnp | grep 4713; netstat -tnp | grep pulse

Offline

#5 2020-05-10 20:30:25

mjd119
Member
Registered: 2020-05-07
Posts: 119

Re: [SOLVED] Systemwide MPD Pulse Connection Refused

Running "nmap -p 4713 127.0.0.1" gives:

Starting Nmap 7.80 ( https://nmap.org ) at 2020-05-10 16:27 EDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000055s latency).

PORT     STATE  SERVICE
4713/tcp closed pulseaudio

Nmap done: 1 IP address (1 host up) scanned in 0.02 seconds

Running "netstat -tnp | grep 4713; netstat -tnp | grep pulse" as root (or using sudo) gives no output.

Offline

#6 2020-05-10 20:47:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,697

Re: [SOLVED] Systemwide MPD Pulse Connection Refused

Did you restart the PA daemon after editing the PA config?
Check the journal if there's an issue w/ loading the module.

Offline

#7 2020-05-10 21:07:34

mjd119
Member
Registered: 2020-05-07
Posts: 119

Re: [SOLVED] Systemwide MPD Pulse Connection Refused

I call pulseaudio --kill and pulseaudio --start like the wiki says. Restarting the computer in addition doesn't resolve the issue. Calling "journalctl | grep pulse" gives output like this:

May 10 13:48:07 Arch sudo[4087]:     {MY_USERNAME} : TTY=pts/1 ; PWD=/etc/pulse ; USER=root ; COMMAND=/usr/bin/nano default.pa
May 10 13:52:02 Arch sudo[4216]:     {MY_USERNAME} : TTY=pts/1 ; PWD=/etc/pulse ; USER=root ; COMMAND=/usr/bin/systemctl stop mpd
May 10 13:52:58 Arch plasmashell[846]: org.kde.plasma.pulseaudio: context kaput
May 10 13:52:58 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo"
May 10 13:52:58 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 13:52:58 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo"
May 10 13:52:58 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 13:52:58 Arch systemd[728]: pulseaudio.service: Succeeded.
May 10 13:52:58 Arch pulseaudio[4238]: E: [pulseaudio] module-protocol-stub.c: Failed to parse module arguments
May 10 13:52:58 Arch pulseaudio[4238]: E: [pulseaudio] module.c: Failed to load module "module-native-protocol-tcp" (argument: "auth-ip-acl=127.0.0.1 # Added by mjd119 (Arch Wiki)"): initialization failed.
May 10 13:52:58 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo"
May 10 13:52:58 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 13:52:58 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 13:52:58 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 13:53:01 Arch plasmashell[846]: org.kde.plasma.pulseaudio: context kaput
May 10 13:53:01 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo"
May 10 13:53:01 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 13:53:01 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo"
May 10 13:53:01 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 13:53:01 Arch systemd[728]: pulseaudio.service: Succeeded.
May 10 13:53:01 Arch pulseaudio[4253]: E: [pulseaudio] module-protocol-stub.c: Failed to parse module arguments
May 10 13:53:01 Arch pulseaudio[4253]: E: [pulseaudio] module.c: Failed to load module "module-native-protocol-tcp" (argument: "auth-ip-acl=127.0.0.1 # Added by mjd119 (Arch Wiki)"): initialization failed.
May 10 13:53:01 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo"
May 10 13:53:01 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 13:53:01 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 13:53:01 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 13:53:13 Arch pulseaudio[4296]: Daemon already running.
May 10 13:53:13 Arch plasmashell[846]: org.kde.plasma.pulseaudio: context kaput
May 10 13:53:13 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo"
May 10 13:53:13 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 13:53:13 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo"
May 10 13:53:13 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 13:53:13 Arch systemd[728]: pulseaudio.service: Succeeded.
May 10 13:53:14 Arch pulseaudio[4297]: E: [pulseaudio] module-protocol-stub.c: Failed to parse module arguments
May 10 13:53:14 Arch pulseaudio[4297]: E: [pulseaudio] module.c: Failed to load module "module-native-protocol-tcp" (argument: "auth-ip-acl=127.0.0.1 # Added by mjd119 (Arch Wiki)"): initialization failed.
May 10 13:53:14 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo"
May 10 13:53:14 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 13:53:14 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 13:53:14 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 13:54:11 Arch sudo[4340]:     {MY_USERNAME} : TTY=pts/1 ; PWD=/etc/pulse ; USER=root ; COMMAND=/usr/bin/systemctl stop mpd
May 10 13:54:18 Arch sudo[4351]:     {MY_USERNAME} : TTY=pts/1 ; PWD=/etc/pulse ; USER=root ; COMMAND=/usr/bin/systemctl start mpd
May 10 13:54:32 Arch sudo[4365]:     {MY_USERNAME} : TTY=pts/1 ; PWD=/etc/pulse ; USER=root ; COMMAND=/usr/bin/systemctl status mpd
May 10 13:54:35 Arch sudo[4368]:     {MY_USERNAME} : TTY=pts/1 ; PWD=/etc/pulse ; USER=root ; COMMAND=/usr/bin/systemctl status mpd
May 10 13:56:26 Arch sudo[4431]:     {MY_USERNAME} : TTY=pts/1 ; PWD=/etc/pulse ; USER=root ; COMMAND=/usr/bin/killall mpd
May 10 13:56:29 Arch sudo[4444]:     {MY_USERNAME} : TTY=pts/1 ; PWD=/etc/pulse ; USER=root ; COMMAND=/usr/bin/systemctl stop mpd
May 10 13:57:31 Arch sudo[4481]:     {MY_USERNAME} : TTY=pts/1 ; PWD=/etc/pulse ; USER=root ; COMMAND=/usr/bin/systemctl start mpd
May 10 13:57:37 Arch sudo[4493]:     {MY_USERNAME} : TTY=pts/1 ; PWD=/etc/pulse ; USER=root ; COMMAND=/usr/bin/systemctl status mpd
May 10 13:59:43 Arch sudo[4722]:     {MY_USERNAME} : TTY=pts/1 ; PWD=/etc/pulse ; USER=root ; COMMAND=/usr/bin/nano /etc/default/pulseaudio
May 10 14:00:49 Arch sudo[4809]:     {MY_USERNAME} : TTY=pts/1 ; PWD=/etc/pulse ; USER=root ; COMMAND=/usr/bin/nano /etc/pulse/system.pa
May 10 14:02:27 Arch sudo[4974]:     {MY_USERNAME} : TTY=pts/1 ; PWD=/etc/pulse ; USER=root ; COMMAND=/usr/bin/nano /etc/pulse/default.pa
May 10 14:04:03 Arch sudo[5057]:     {MY_USERNAME} : TTY=pts/1 ; PWD=/etc/pulse ; USER=root ; COMMAND=/usr/bin/systemctl stop mpd
May 10 14:04:43 Arch plasmashell[846]: org.kde.plasma.pulseaudio: context kaput
May 10 14:04:43 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo"
May 10 14:04:43 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 14:04:43 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo"
May 10 14:04:43 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 14:04:43 Arch systemd[728]: pulseaudio.service: Succeeded.
May 10 14:04:43 Arch pulseaudio[5083]: E: [pulseaudio] module-protocol-stub.c: Failed to parse module arguments
May 10 14:04:43 Arch pulseaudio[5083]: E: [pulseaudio] module.c: Failed to load module "module-native-protocol-tcp" (argument: "#Uncommented by mjd119"): initialization failed.
May 10 14:04:43 Arch pulseaudio[5083]: E: [pulseaudio] module-protocol-stub.c: Failed to parse module arguments
May 10 14:04:43 Arch pulseaudio[5083]: E: [pulseaudio] module.c: Failed to load module "module-native-protocol-tcp" (argument: "auth-ip-acl=127.0.0.1 # Added by mjd119 (Arch Wiki)"): initialization failed.
May 10 14:04:43 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo"
May 10 14:04:43 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 14:04:44 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 14:04:44 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 14:04:52 Arch sudo[5100]:     {MY_USERNAME} : TTY=pts/1 ; PWD=/etc/pulse ; USER=root ; COMMAND=/usr/bin/systemctl start mpd
May 10 14:04:56 Arch sudo[5112]:     {MY_USERNAME} : TTY=pts/1 ; PWD=/etc/pulse ; USER=root ; COMMAND=/usr/bin/systemctl status mpd
May 10 14:16:28 Arch sudo[5765]:     {MY_USERNAME} : TTY=pts/1 ; PWD=/home/{MY_USERNAME}/.mpdscribble ; USER=root ; COMMAND=/usr/bin/atom /etc/pulse/default.pa
May 10 14:50:30 Arch pulseaudio[5083]: E: [alsa-sink-ALC887-VD Analog] alsa-sink.c: ALSA woke us up to write new data to the device, but there was actually nothing to write.
May 10 14:50:30 Arch pulseaudio[5083]: E: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Most likely this is a bug in the ALSA driver 'snd_hda_intel'. Please report this issue to the ALSA developers.
May 10 14:50:30 Arch pulseaudio[5083]: E: [alsa-sink-ALC887-VD Analog] alsa-sink.c: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail.
May 10 15:49:29 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 16:13:33 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 16:13:36 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 16:13:39 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 16:29:35 Arch sudo[20212]:     {MY_USERNAME} : TTY=pts/3 ; PWD=/home/{MY_USERNAME} ; USER=root ; COMMAND=/usr/bin/grep pulse

What's provided is what's been produced since I restarted the computer I believe (I replaced my actual username on my computer with "{MY_USERNAME}" Is it possible I have a syntax error somewhere in default.pa?

Offline

#8 2020-05-10 21:10:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,697

Re: [SOLVED] Systemwide MPD Pulse Connection Refused

Yes, the journal actually explicitly states that. Have a look.

Offline

#9 2020-05-10 21:28:09

mjd119
Member
Registered: 2020-05-07
Posts: 119

Re: [SOLVED] Systemwide MPD Pulse Connection Refused

I'm not sure what is wrong about the syntax. I moved the comments so the edited section look like this:

### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
#Uncommented by mjd119
load-module module-native-protocol-tcp
#load-module module-zeroconf-publish
# Added by mjd119 (Arch Wiki)
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1

but I still get these messages after restarting mpd with "sudo systemctl restart mpd" and "pulseaudio --kill && pulseaudio --start"

May 10 17:23:31 Arch sudo[25965]:     {MY_USERNAME} : TTY=pts/2 ; PWD=/home/{MY_USERNAME ; USER=root ; COMMAND=/usr/bin/nano /etc/pulse/default.pa
May 10 17:25:52 Arch pulseaudio[25991]: Daemon already running.
May 10 17:25:52 Arch plasmashell[846]: org.kde.plasma.pulseaudio: context kaput
May 10 17:25:52 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo"
May 10 17:25:52 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 17:25:52 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo"
May 10 17:25:52 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 17:25:52 Arch systemd[728]: pulseaudio.service: Succeeded.
May 10 17:25:53 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo"
May 10 17:25:53 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 17:25:53 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 17:25:53 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 17:25:59 Arch pulseaudio[25992]: W: [pulseaudio] protocol-native.c: Denied access to client with invalid authentication data.

Offline

#10 2020-05-10 21:33:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,697

Re: [SOLVED] Systemwide MPD Pulse Connection Refused

You have "load-module module-native-protocol-tcp" twice and only the second one opens it to all connections from 127.0.0.1 - which is likely going to be ignored because of the first instance.

Offline

#11 2020-05-10 21:41:58

mjd119
Member
Registered: 2020-05-07
Posts: 119

Re: [SOLVED] Systemwide MPD Pulse Connection Refused

Commenting that out fixed it. Thanks a lot! Did the attempt at a comment on the same line with "#" make it so that it's interpreted as an argument? It wasn't working before even without the extra line "load-module module-native-protocol-tcp" that I just commented out.
EDIT:
I changed the post title to "[SOLVED]" but changed it back because now I have no audio in my web browser. but for whatever reason I get audio feedback (blips) when I adjust the volume using the KDE audio widget.
With mpd and mpdscribble both stopped with systemctl, calling "pulseaudio --kill && pulseaudio --start" gives tjhis using "journalctl | grep pulse":

May 10 19:31:13 Arch pulseaudio[45054]: Daemon already running.
May 10 19:31:13 Arch plasmashell[846]: org.kde.plasma.pulseaudio: context kaput
May 10 19:31:13 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo"
May 10 19:31:13 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 19:31:13 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo"
May 10 19:31:13 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 19:31:13 Arch systemd[728]: pulseaudio.service: Succeeded.
May 10 19:31:14 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo"
May 10 19:31:14 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 19:31:14 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"
May 10 19:31:14 Arch plasmashell[846]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_0b_00.4.analog-stereo.monitor"

Not sure what these messages mean. I did not install pulseaudio or alsa explicitly from what I remember.

Last edited by mjd119 (2020-05-10 23:43:37)

Offline

#12 2020-05-11 08:07:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,697

Re: [SOLVED] Systemwide MPD Pulse Connection Refused

You had those messages before.
It's more important to check for errors from your browser, which browser that is, whether restarting the browser process (not necessarily equivalent to closing all windows, check the process list) fixes it and whether the browser returns to playing audio when you start PA w/o the tcp module.

I don't use PA at all… smile

Offline

#13 2020-05-11 08:08:43

K3N8
Member
From: The Netherlands
Registered: 2011-11-02
Posts: 63

Re: [SOLVED] Systemwide MPD Pulse Connection Refused

I use snapcast to stream my mpd from my server to all my clients. Works perfectly! I found the pulseaudio stream option te be very buggy.


Arch Linux x86_64 LTS

Offline

#14 2020-05-11 08:12:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,697

Re: [SOLVED] Systemwide MPD Pulse Connection Refused

OP isn't trying to stream MPD to other clients (mpd satellite ftw!) but to do https://wiki.archlinux.org/index.php/Mu … _mpd_user)

Offline

#15 2020-05-11 08:24:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,363

Re: [SOLVED] Systemwide MPD Pulse Connection Refused

What's your output for

systemctl status

during "MPD works, browser doesn't" ? I have a suspicion that mpd might inadvertly invoke it's own pulse daemon and you running into conflicts.

Offline

#16 2020-05-11 13:27:41

mjd119
Member
Registered: 2020-05-07
Posts: 119

Re: [SOLVED] Systemwide MPD Pulse Connection Refused

seth wrote:

You had those messages before.
It's more important to check for errors from your browser, which browser that is, whether restarting the browser process (not necessarily equivalent to closing all windows, check the process list) fixes it and whether the browser returns to playing audio when you start PA w/o the tcp module.

I don't use PA at all… smile

What would you recommend instead? I'm trying to run mpd as its own user so I can logout and still have music playing since I want to enable streaming from my other computers in my house and my phone. I didn't see anything on the Arch Wiki about running mpd as its own user with a different sound server.
EDIT:
I want to enable HTTP streaming or another streaming method where audio outputs to my phone and other computers from my desktop (server).

Last edited by mjd119 (2020-05-11 14:35:26)

Offline

#17 2020-05-11 13:35:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,697

Re: [SOLVED] Systemwide MPD Pulse Connection Refused

The alsa output will not be affected by your (UID and/or) session status at all - the first question is whether and why you need PA in the first place.
You might require https://wiki.archlinux.org/index.php/Ad … cture#Dmix (if your HW doesn't have a HW mixer)

Offline

#18 2020-05-11 18:00:43

mjd119
Member
Registered: 2020-05-07
Posts: 119

Re: [SOLVED] Systemwide MPD Pulse Connection Refused

UPDATE:
I now get audio from both mpd and from my web browser chromium. I looked in the audio settings in KDE plasma and it turned out that chromium was muted. I must've accidentally muted the browser. I feel pretty dumb right now. Thank you seth and everyone else for your assistance. I may end up ditching pulseaudio in the future based on what people here are saying but for now my setup is sufficient.

Offline

Board footer

Powered by FluxBB