Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Satelite MPD changes queue on startup #606

Open
roizcorp opened this issue Jul 18, 2019 · 7 comments

Comments

@roizcorp
Copy link

commented Jul 18, 2019

Bug report

Describe the bug

My configuration:
Laptop: MPD Satelite "client"
Raspi: MPD "server" + music_dir NAS via nfs, always run, NAS goes to sleep in inactivity but wakes up when Laptop startup.
Laptop's queue is updated via mpc add / (mpc update - does not do anything clearly, but should return error msg)
Problem: whenever I boot up the laptop the queue changes in terms of number of songs it contains instead the full list ~10k I usually get ~6-8K
I have to manually mpc clear and mpc -w add / to ensure I will have the full queue, this phenomena is consistent only to boot time, not when I manually start and stop the mpd service

I have no idea how to produce the logs you need to debug

Expected Behavior

the full queue will be used after boot (like it was before)

Actual Behavior

only partial queue is used, I suspect it is because some timeout due to the queue's size

Version

Music Player Daemon 0.21.11 (0.21.11)
Copyright 2003-2007 Warren Dukes warren.dukes@gmail.com
Copyright 2008-2018 Max Kellermann max.kellermann@gmail.com
This is free software; see the source for copying conditions. There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Database plugins:
simple proxy upnp

Storage plugins:
local smbclient udisks nfs curl

Neighbor plugins:
smbclient upnp udisks

Decoders plugins:
[mad] mp3 mp2
[mpg123] mp3
[vorbis] ogg oga
[oggflac] ogg oga
[flac] flac
[opus] opus ogg oga
[sndfile] wav aiff aif au snd paf iff svx sf voc w64 pvf xi htk caf sd2
[audiofile] wav au aiff aif
[dsdiff] dff
[dsf] dsf
[hybrid_dsd] m4a
[faad] aac
[mpcdec] mpc
[wavpack] wv
[modplug] 669 amf ams dbm dfm dsm far it med mdl mod mtm mt2 okt s3m stm ult umx xm
[mikmod] amf dsm far gdm imf it med mod mtm s3m stm stx ult uni xm
[wildmidi] mid
[fluidsynth] mid
[ffmpeg] 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 adx afc aif aifc aiff al alaw amr anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv g726 gsm gxf iss m1v m2v m2t m2ts m4a m4b m4v mad mj2 mjpeg mjpg mka mkv mlp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve mvi mxf nc nsv nut nuv oga ogm ogv ogx oma ogg omg opus psp pva qcp qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tak tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav webm wma wmv wsaud wsvga wv wve
[gme] ay gbs gym hes kss nsf nsfe sap spc vgm vgz
[pcm]

Filters:
libsamplerate soxr

Tag plugins:
id3tag

Output plugins:
shout null fifo pipe alsa ao oss openal solaris pulse jack httpd recorder

Encoder plugins:
null vorbis opus lame twolame wave flac

Archive plugins:
[bz2] bz2
[zzip] zip
[iso] iso

Input plugins:
file archive alsa tidal qobuz curl ffmpeg smbclient nfs mms cdio_paranoia

Playlist plugins:
extm3u m3u pls xspf asx rss soundcloud flac cue embcue

Protocols:
file:// alsa:// tidal:// qobuz:// http:// https:// gopher:// rtp:// rtsp:// rtmp:// rtmpt:// rtmps:// smb:// nfs:// mms:// mmsh:// mmst:// mmsu:// cdda://

Other features:
avahi dbus udisks epoll icu inotify ipv6 systemd tcp un

Log

@MaxKellermann

This comment has been minimized.

Copy link
Member

commented Jul 29, 2019

How does MPD get started during boot? If it's a systemd service, add After=network-online.target to mpd.service. In the default service file, I did not add this dependency because MPD can usually do without, but some configurations (like yours) require it.

@roizcorp

This comment has been minimized.

Copy link
Author

commented Jul 29, 2019

done...I'm sorry but it does NOT work...verified it 3 times before replying...always around 8k songs

@MaxKellermann

This comment has been minimized.

Copy link
Member

commented Jul 30, 2019

What did not work? What did you verify?

@roizcorp

This comment has been minimized.

Copy link
Author

commented Aug 3, 2019

I tired you advice by adding After=network-online.target to the mpd.service...

  • I loaded the full list manually mpc clear and mpc -w add /

  • reboot the laptop

  • checked how many songs are loaded to playlist after reboot - ~8k instead of ~9300

I've tried these 3 steps 3 times (i.e. 3 reboots)

@MaxKellermann

This comment has been minimized.

Copy link
Member

commented Aug 3, 2019

And now tell me why you didn't paste the verbose log.

@roizcorp

This comment has been minimized.

Copy link
Author

commented Aug 3, 2019

I have no idea how to produce the logs you need to debug

also, from which mpd you need the logs? the satelite? or the "server" ?

@MaxKellermann

This comment has been minimized.

Copy link
Member

commented Aug 6, 2019

Both.
MPD's documentation describes how to configure logging. That's how.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.