Mopidy Discourse

Hifiberry Amp2 plays no sound when playing spotify playlist

Hey there,

I am trying to set up mopidy as a service on a raspberry pi 2b (raspbian), with a Hifiberry Amp2 mounted on top. This is my Mopidy-Config:
######################################
[core]

cache_dir = /var/cache/mopidy
config_dir = /etc/mopidy
data_dir = /var/lib/mopidy

[logging]

config_file = /etc/mopidy/logging.conf
debug_file = /var/log/mopidy/mopidy-debug.log

[local]

media_dir = /var/lib/mopidy/media

[m3u]

playlists_dir = /var/lib/mopidy/playlists

[audio]

mixer = none
#output = alsaink
#output = snd_rpi_hifiberry_dacplus=hw:0,0
output = autoaudiosink

[alsamixer]

card = 0
control = Digital
min_volume = 0
max_volume = 100
volume_scale = cubic

[spotify]

username = XXXXX
password = XXXXX
client_id = XXXXXX
client_secret = XXXXXX
private_session = true

[mpd]

enabled = true
hostname = localhost
port = 6601
password =
max_connections = 20
connection_timeout = 60
zeroconf = Mopidy MPD server on $hostname
command_blacklist = listall,listallinfo
default_playlist_scheme = m3u

[http]
enabled = true
hostname = 0.0.0.0
port = 6680

[mobile]
enabled = true
title =
############################################

I succesfully installed and configured mopidy, mopidy-mpd, mopidy-spotify, mopidy-alsamixer and got it all running. I then tried to control the whole thingy using mpc. However, when trying to play a spotify-playlist, i never hear any sound. After intense hours of troubleshooting im hoping to find help on here.

The Sound (with hififberry) works as ‘aplay /usr/share/sounds/alsa/Front_Center.wav’ is playing the sound alright. But while trying to use mopidy i do get the confirmation that my playlist is being played, but i cant hear anything:
##########
pi@raspberrypi:~ $ mpc --host=localhost -p 6601 status
Daði Freyr - Think About Things
[playing] #1/4 0:04/2:53 (2%)
volume: n/a repeat: off random: off single: off consume: off
##########

Any suggestions? I already tried a lot of things in order to approach my volume-control with mixer set as none, alsamixer, software. I do get a Volume reading in mpc whenever i set alsaink as output. Still, there is no sound.

Regards,

Patrick

https://docs.mopidy.com/en/latest/troubleshooting/ shows the info we need, including deps and logs.

debug_file = /var/log/mopidy/mopidy-debug.log 

Is not a Mopidy 3.x config option.

Hey,
thanks for your fast answer! (and sorry for my late replay)

So i updated my logging info, but cant really find my solution: The Log gives this message over and over:

Jun 11 15:31:12 raspberrypi mopidy[547]: DEBUG [Dummy-9] spotify.session Audio buffer stats requested, but no listener
Jun 11 15:31:12 raspberrypi mopidy[547]: DEBUG [Dummy-9] spotify.session Audio buffer stats requested, but no listener
Jun 11 15:31:12 raspberrypi mopidy[547]: DEBUG [Dummy-9] spotify.session Music delivery of 2048 frames, 2048 consumed
Jun 11 15:31:12 raspberrypi mopidy[547]: DEBUG [Dummy-9] spotify.session Audio buffer stats requested, but no listener
Jun 11 15:31:12 raspberrypi mopidy[547]: From cffi callback <function _SessionCallbacks.music_delivery at 0x73cc2618>:
Jun 11 15:31:12 raspberrypi mopidy[547]: Traceback (most recent call last):
Jun 11 15:31:12 raspberrypi mopidy[547]: File “/usr/lib/python3/dist-packages/spotify/session.py”, line 1101, in music_delivery
Jun 11 15:31:12 raspberrypi mopidy[547]: num_frames,
Jun 11 15:31:12 raspberrypi mopidy[547]: File “/usr/lib/python3/dist-packages/spotify/utils.py”, line 98, in call
Jun 11 15:31:12 raspberrypi mopidy[547]: return listener.callback(*args)
Jun 11 15:31:12 raspberrypi mopidy[547]: File “/usr/lib/python3/dist-packages/mopidy_spotify/playback.py”, line 205, in music_delivery_callback
Jun 11 15:31:12 raspberrypi mopidy[547]: consumed = audio_actor.emit_data(buf).get()
Jun 11 15:31:12 raspberrypi mopidy[547]: File “/usr/lib/python3/dist-packages/pykka/_threading.py”, line 45, in get
Jun 11 15:31:12 raspberrypi mopidy[547]: _compat.reraise(*self._data[‘exc_info’])
Jun 11 15:31:12 raspberrypi mopidy[547]: File “/usr/lib/python3/dist-packages/pykka/_compat/init.py”, line 29, in reraise
Jun 11 15:31:12 raspberrypi mopidy[547]: raise value
Jun 11 15:31:12 raspberrypi mopidy[547]: File “/usr/lib/python3/dist-packages/pykka/_ref.py”, line 107, in ask
Jun 11 15:31:12 raspberrypi mopidy[547]: raise ActorDeadError(’{} not found’.format(self))
Jun 11 15:31:12 raspberrypi mopidy[547]: pykka._exceptions.ActorDeadError: Audio (urn:uuid:e542ef88-f884-4123-bd85-4e7d141de698) not found
Jun 11 15:31:12 raspberrypi mopidy[547]: DEBUG [Dummy-9] spotify.session Music delivery of 2048 frames, 2048 consumed
Jun 11 15:31:12 raspberrypi mopidy[547]: From cffi callback <function _SessionCallbacks.music_delivery at 0x73cc2618>:
Jun 11 15:31:12 raspberrypi mopidy[547]: Traceback (most recent call last):
Jun 11 15:31:12 raspberrypi mopidy[547]: File “/usr/lib/python3/dist-packages/spotify/session.py”, line 1101, in music_delivery
Jun 11 15:31:12 raspberrypi mopidy[547]: num_frames,
Jun 11 15:31:12 raspberrypi mopidy[547]: File “/usr/lib/python3/dist-packages/spotify/utils.py”, line 98, in call
Jun 11 15:31:12 raspberrypi mopidy[547]: return listener.callback(*args)
Jun 11 15:31:12 raspberrypi mopidy[547]: File “/usr/lib/python3/dist-packages/mopidy_spotify/playback.py”, line 205, in music_delivery_callback
Jun 11 15:31:12 raspberrypi mopidy[547]: consumed = audio_actor.emit_data(buf).get()
Jun 11 15:31:12 raspberrypi mopidy[547]: File “/usr/lib/python3/dist-packages/pykka/_threading.py”, line 45, in get
Jun 11 15:31:12 raspberrypi mopidy[547]: _compat.reraise(*self._data[‘exc_info’])
Jun 11 15:31:12 raspberrypi mopidy[547]: File “/usr/lib/python3/dist-packages/pykka/_compat/init.py”, line 29, in reraise
Jun 11 15:31:12 raspberrypi mopidy[547]: raise value
Jun 11 15:31:12 raspberrypi mopidy[547]: File “/usr/lib/python3/dist-packages/pykka/_ref.py”, line 107, in ask
Jun 11 15:31:12 raspberrypi mopidy[547]: raise ActorDeadError(’{} not found’.format(self))
Jun 11 15:31:12 raspberrypi mopidy[547]: pykka._exceptions.ActorDeadError: Audio (urn:uuid:e542ef88-f884-4123-bd85-4e7d141de698) not found
Jun 11 15:31:12 raspberrypi mopidy[547]: DEBUG [Dummy-9] spotify.session Music delivery of 2048 frames, 2048 consumed
Jun 11 15:31:12 raspberrypi mopidy[547]: From cffi callback <function _SessionCallbacks.music_delivery at 0x73cc2618>:
Jun 11 15:31:12 raspberrypi mopidy[547]: Traceback (most recent call last):
Jun 11 15:31:12 raspberrypi mopidy[547]: File “/usr/lib/python3/dist-packages/spotify/session.py”, line 1101, in music_delivery
Jun 11 15:31:12 raspberrypi mopidy[547]: num_frames,
Jun 11 15:31:12 raspberrypi mopidy[547]: File “/usr/lib/python3/dist-packages/spotify/utils.py”, line 98, in call
Jun 11 15:31:12 raspberrypi mopidy[547]: return listener.callback(*args)
Jun 11 15:31:12 raspberrypi mopidy[547]: File “/usr/lib/python3/dist-packages/mopidy_spotify/playback.py”, line 205, in music_delivery_callback
Jun 11 15:31:12 raspberrypi mopidy[547]: consumed = audio_actor.emit_data(buf).get()
Jun 11 15:31:12 raspberrypi mopidy[547]: File “/usr/lib/python3/dist-packages/pykka/_threading.py”, line 45, in get
Jun 11 15:31:12 raspberrypi mopidy[547]: _compat.reraise(*self._data[‘exc_info’])
Jun 11 15:31:12 raspberrypi mopidy[547]: File “/usr/lib/python3/dist-packages/pykka/_compat/init.py”, line 29, in reraise
Jun 11 15:31:12 raspberrypi mopidy[547]: raise value
Jun 11 15:31:12 raspberrypi mopidy[547]: File “/usr/lib/python3/dist-packages/pykka/_ref.py”, line 107, in ask
Jun 11 15:31:12 raspberrypi mopidy[547]: raise ActorDeadError(’{} not found’.format(self))
Jun 11 15:31:12 raspberrypi mopidy[547]: pykka._exceptions.ActorDeadError: Audio (urn:uuid:e542ef88-f884-4123-bd85-4e7d141de698) not found

[…]

any ideas?

Best,
Patrick

No ideas until you provide the things described at Troubleshooting — Mopidy 3.1.1-1-gf17acacf documentation namely

  • sudo mopidyctl deps
  • sudo mopidyctl config