problem with connection of other instance of MPD

Need help with MPD?
Post Reply
bern
Posts: 13
Joined: April 28th, 2019, 6:06 pm

problem with connection of other instance of MPD

Post by bern » April 29th, 2019, 12:25 pm

Hi,
I just installed MPD on my home x64 Ubuntu 19.04 server (NAS, router, firewal, music server etc). I have three HardDisk mounted and samba shares (hd1, hd2, hd3). I also have some DHCP home Lan 10.10.10.1 and wifi 10.10.11.1 clients:

Code: Select all

ela@akacja:~$ ip route
default via 192.168.15.1 dev enp1s0 proto static
10.8.0.0/24 via 10.8.0.2 dev tun0
10.8.0.2 dev tun0 proto kernel scope link src 10.8.0.1
10.10.10.0/24 dev enp3s0f1 proto kernel scope link src 10.10.10.1
10.10.11.0/24 dev wlp4s0 proto kernel scope link src 10.10.11.1
192.168.15.0/24 dev enp1s0 proto kernel scope link src 192.168.15.145
I have installed mpd/mpc on the server and on one of thin (RPi2) wifi client. I would like to use proxy plugin and allow wifi client 10.10.11.19 to use mpd ubuntu server 10.10.10.1 database. Without the proxy plugin I can play music on wifi client. However when I switch to database proxy plugin I cannot reach server database. I receive ' Failed to connect to remote MPD'

Code: Select all

volumio@volumio:~$ sudo mpd --no-daemon --stdout --verbose
config_file: loading file /etc/mpd.conf
exception: bind to '0.0.0.0:6600' failed (continuing anyway, because binding to '[::]:6600' succeeded): Failed to bind socket: Address already in use
path: SetFSCharset: fs charset is:
soxr: soxr converter 'high'
vorbis: Xiph.Org libVorbis 1.3.4
opus: libopus 1.1
sndfile: libsndfile-1.0.25
wildmidi: configuration file does not exist: /etc/timidity/timidity.cfg
adplug: adplug 2.2.1
exception: Failed to connect to remote MPD '10.10.10.1'
exception: nested: Connection refused
curl: version 7.38.0
curl: with GnuTLS/3.3.30
avahi: Initializing interface
avahi: Client changed to state 2
avahi: Client is RUNNING
avahi: Registering service _mpd._tcp/Music Player
avahi: Service group changed to state 0
avahi: Service group is UNCOMMITED
avahi: Service group changed to state 1
avahi: Service group is REGISTERING
avahi: Service group changed to state 2
avahi: Service 'Music Player' successfully established.
client: [0] opened from 127.0.0.1:50138
client: [0] process command list
client: process command "update """
exception: Failed to connect to remote MPD '10.10.10.1'
exception: nested: Connection refused
client: command returned 2
client: [0] process command list returned 2
client: [0] closed
client: [1] opened from 127.0.0.1:52886
client: [1] process command list
client: process command "update """
exception: Failed to connect to remote MPD '10.10.10.1'
exception: nested: Connection refused
client: command returned 2
normally other LAN/wifi clients can connect to samba shares (disks) 10.10.10.1/hd1, 10.10.10.1/hd2, 10.10.10.1/hd3
Bellow there is my current wifi client mpd configuration file /etc/mpd.conf:
http://paste.debian.net/1080524/
and server /etc/samba/smb.conf
http://paste.ubuntu.com/p/HpdkxpH3xG/

What should I change to allow wifi client 'seeing' mpd server database?
Regards
Last edited by bern on April 29th, 2019, 2:38 pm, edited 1 time in total.

max
Forum team
Posts: 915
Joined: January 15th, 2013, 3:43 pm

Re: problem with connection of other instance of MPD

Post by max » April 29th, 2019, 1:41 pm

What is your configuration on the machine 10.10.10.1? It looks like MPD is not running over there.

bern
Posts: 13
Joined: April 28th, 2019, 6:06 pm

Re: problem with connection of other instance of MPD

Post by bern » April 29th, 2019, 2:37 pm

max wrote:
April 29th, 2019, 1:41 pm
What is your configuration on the machine 10.10.10.1? It looks like MPD is not running over there.
please see details on Ubuntu server 19.04 side:
http://paste.ubuntu.com/p/PBFz2S5HMn/
and /etc/mpd.conf
http://paste.ubuntu.com/p/XFP2pJRwYx/
Looks like MPD is running on my Ubuntu 19.04.
MPD has been installed from standard Ubuntu packages.

skidoo
Posts: 167
Joined: April 28th, 2013, 10:06 pm
Location: Western Germany

Re: problem with connection of other instance of MPD

Post by skidoo » April 29th, 2019, 3:24 pm

Code: Select all

bind_to_address "any"
expose database to MPD satellites.

max
Forum team
Posts: 915
Joined: January 15th, 2013, 3:43 pm

Re: problem with connection of other instance of MPD

Post by max » April 29th, 2019, 3:37 pm

skidoo is right. Your configuration explicitly disables network access!
I wonder why you do such a configuration when it's the opposite of what you're trying to do. This is not the default, after all. This must have been your explicit decision.

bern
Posts: 13
Joined: April 28th, 2019, 6:06 pm

Re: problem with connection of other instance of MPD

Post by bern » April 29th, 2019, 6:30 pm

Thanks guys for the suggestion.
I changed mpd.conf from:

Code: Select all

bind_to_address "localhost"
to

Code: Select all

bind_to_address "any"
and RPi client 'see' the database on the server. From RPi I can browse the database. However cannot play tracks.
see log:

Code: Select all

volumio@volumio:~$ sudo mpd --no-daemon --stdout --verbose
config_file: loading file /etc/mpd.conf
exception: bind to '0.0.0.0:6600' failed (continuing anyway, because binding to '[::]:6600' succeeded): Failed to bind socket: Address already in use
path: SetFSCharset: fs charset is:
soxr: soxr converter 'high'
vorbis: Xiph.Org libVorbis 1.3.4
opus: libopus 1.1
sndfile: libsndfile-1.0.25
wildmidi: configuration file does not exist: /etc/timidity/timidity.cfg
adplug: adplug 2.2.1
curl: version 7.38.0
curl: with GnuTLS/3.3.30
avahi: Initializing interface
avahi: Client changed to state 2
avahi: Client is RUNNING
avahi: Registering service _mpd._tcp/Music Player
avahi: Service group changed to state 0
avahi: Service group is UNCOMMITED
avahi: Service group changed to state 1
avahi: Service group is REGISTERING
avahi: Service group changed to state 2
avahi: Service 'Music Player' successfully established.
client: [0] opened from 127.0.0.1:54122
client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "plchanges "0""
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "decoders"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "lsinfo "/""
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "lsinfo "MUSIC 5""
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "lsinfo "MUSIC 5/Art Garfunkel - Scissor's Cut [FLAC]""
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "lsinfo "MUSIC 5""
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "lsinfo "/""
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "lsinfo "MUSIC 3""
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "lsinfo "MUSIC 3/vaya_con_dios-best_of-retail-vorbis""
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "addid "MUSIC 3/vaya_con_dios-best_of-retail-vorbis/01-vaya_con_dios-dont_cry_for_louie.ogg""
client: [0] command returned 0
client: [0] process command "playid "1""
playlist: play 0:"MUSIC 3/vaya_con_dios-best_of-retail-vorbis/01-vaya_con_dios-dont_cry_for_louie.ogg"
client: [0] command returned 0
client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "plchanges "1""
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
exception: Failed to decode smb://ela:sowa@10.10.10.1/hd3/MUSIC 3/vaya_con_dios-best_of-retail-vorbis/01-vaya_con_dios-dont_cry_for_louie.ogg
exception: nested: smbc_open() failed: No such file or directory
player: played "MUSIC 3/vaya_con_dios-best_of-retail-vorbis/01-vaya_con_dios-dont_cry_for_louie.ogg"
playlist: stop
client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "playid "1""
playlist: play 0:"MUSIC 3/vaya_con_dios-best_of-retail-vorbis/01-vaya_con_dios-dont_cry_for_louie.ogg"
client: [0] command returned 0
client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
exception: Failed to decode smb://ela:sowa@10.10.10.1/hd3/MUSIC 3/vaya_con_dios-best_of-retail-vorbis/01-vaya_con_dios-dont_cry_for_louie.ogg
exception: nested: smbc_open() failed: No such file or directory
player: played "MUSIC 3/vaya_con_dios-best_of-retail-vorbis/01-vaya_con_dios-dont_cry_for_louie.ogg"
playlist: stop
client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "setvol "38""
client: [0] command returned 0
client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "lsinfo "MUSIC 3""
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "lsinfo "MUSIC 3/Nina Simone - The Very Best Of Nina Simone""
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "lsinfo "MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1""
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "addid "MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/01 - Ain't Got No, I Got Life.flac""
client: [0] command returned 0
client: [0] process command "playid "2""
playlist: play 1:"MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/01 - Ain't Got No, I Got Life.flac"
client: [0] command returned 0
client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
exception: Failed to decode smb://ela:sowa@10.10.10.1/hd3/MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/01 - Ain't Got No, I Got Life.flac
exception: nested: smbc_open() failed: No such file or directory
player: played "MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/01 - Ain't Got No, I Got Life.flac"
playlist: stop
client: [0] process command "plchanges "2""
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "addid "MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/02 - My Baby Just Cares for Me.flac""
client: [0] command returned 0
client: [0] process command "playid "3""
playlist: play 2:"MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/02 - My Baby Just Cares for Me.flac"
client: [0] command returned 0
client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
exception: Failed to decode smb://ela:sowa@10.10.10.1/hd3/MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/02 - My Baby Just Cares for Me.flac
exception: nested: smbc_open() failed: No such file or directory
player: played "MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/02 - My Baby Just Cares for Me.flac"
playlist: stop
client: [0] process command "plchanges "3""
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "addid "MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/03 - Feeling Good.flac""
client: [0] command returned 0
client: [0] process command "playid "4""
playlist: play 3:"MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/03 - Feeling Good.flac"
client: [0] command returned 0
client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
exception: Failed to decode smb://ela:sowa@10.10.10.1/hd3/MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/03 - Feeling Good.flac
exception: nested: smbc_open() failed: No such file or directory
player: played "MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/03 - Feeling Good.flac"
playlist: stop
client: [0] process command "plchanges "4""
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "playid "3""
playlist: play 2:"MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/02 - My Baby Just Cares for Me.flac"
client: [0] command returned 0
playlist: queue song 3:"MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/03 - Feeling Good.flac"
client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
exception: Failed to decode smb://ela:sowa@10.10.10.1/hd3/MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/02 - My Baby Just Cares for Me.flac
exception: nested: smbc_open() failed: No such file or directory
player: played "MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/02 - My Baby Just Cares for Me.flac"
playlist: play 3:"MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/03 - Feeling Good.flac"
exception: Failed to decode smb://ela:sowa@10.10.10.1/hd3/MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/03 - Feeling Good.flac
exception: nested: smbc_open() failed: No such file or directory
player: played "MUSIC 3/Nina Simone - The Very Best Of Nina Simone/Volume 1/03 - Feeling Good.flac"
playlist: stop
client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] closed
^Cavahi: Shutting down interface
listen: listen_global_finish called
What could I change to move on?
max wrote:
April 29th, 2019, 3:37 pm
skidoo is right. Your configuration explicitly disables network access!
I wonder why you do such a configuration when it's the opposite of what you're trying to do. This is not the default, after all. This must have been your explicit decision.
Yes I installed mpd yesterday and at the begining I experimented with local playback on the server. I forgot to change 'bind_to_address' when I started 'satelite mode'.

max
Forum team
Posts: 915
Joined: January 15th, 2013, 3:43 pm

Re: problem with connection of other instance of MPD

Post by max » April 30th, 2019, 9:25 am

Your Samba server tells MPD that the requested file does not exist. So, does it exist or not?

bern
Posts: 13
Joined: April 28th, 2019, 6:06 pm

Re: problem with connection of other instance of MPD

Post by bern » April 30th, 2019, 2:25 pm

Ofcourse exist.
I can play files from //10.10.10.1/hd3 share on my wifi WIN7 device.

Please have look at samba configuration (Iink from my first post in this thread).
Maybe I should change something there?

max
Forum team
Posts: 915
Joined: January 15th, 2013, 3:43 pm

Re: problem with connection of other instance of MPD

Post by max » April 30th, 2019, 3:34 pm

If it exists, why does Samba pretend it does not?
This forum is about MPD and not about Samba. I can't assist with Samba specific problems.

bern
Posts: 13
Joined: April 28th, 2019, 6:06 pm

Re: problem with connection of other instance of MPD

Post by bern » April 30th, 2019, 4:54 pm

I am inattentive... :twisted:
Instead of music directory set:

Code: Select all

"smb://ela:sowa@10.10.10.1/hd3/MUSIC"
I had:

Code: Select all

"smb://ela:sowa@10.10.10.1/hd3"
After the change I can play the music on my RPI host :)

BTW can I add other music directories to 'music_directory'?
If so what is the syntax?

max
Forum team
Posts: 915
Joined: January 15th, 2013, 3:43 pm

Re: problem with connection of other instance of MPD

Post by max » April 30th, 2019, 7:11 pm

You can mount additional directories at runtime with "mpc mount".
https://www.musicpd.org/doc/html/user.h ... -directory

bern
Posts: 13
Joined: April 28th, 2019, 6:06 pm

Re: problem with connection of other instance of MPD

Post by bern » May 1st, 2019, 4:38 pm

According to link you provided I'm trying to find HD disk to mount using command:

Code: Select all

mpc listneighbors

Of course erlier I added:

Code: Select all

neighbors {
    plugin "udisks"
}
to MPD installed on Ubuntu server
And after restart MPD service
I can see:

Code: Select all

unknown command "listneighbors"
I use mpc ver 0.31:

Code: Select all

Usage: mpc [options] <command> [<arguments>]
mpc version: 0.31

Options:
  -v, --verbose                   Give verbose output
  -q, --quiet                     Suppress status message
  -q, --no-status                 synonym for --quiet
  -h, --host=<host>               Connect to server on <host>
  -P, --password=<password>       Connect to server using password <password>
  -p, --port=<port>               Connect to server port <port>
  -f, --format=<format>           Print status with format <format>
  -w, --wait                      Wait for operation to finish (e.g. database update)
  -r, --range=[<start>]:[<end>]   Operate on a range (e.g. when loading a playlist)

Commands:
  mpc                                                   Display status
  mpc add <uri>                                         Add a song to the queue
  mpc crop                                              Remove all but the currently playing song
  mpc current                                           Show the currently playing song
  mpc del <position>                                    Remove a song from the queue
  mpc play [<position>]                                 Start playing at <position>
  mpc next                                              Play the next song in the queue
  mpc prev                                              Play the previous song in the queue
  mpc pause                                             Pauses the currently playing song
  mpc pause-if-playing                                  Pauses the currently playing song; exits with failure if not playing
  mpc toggle                                            Toggles Play/Pause, plays if stopped
  mpc cdprev                                            Compact disk player-like previous command
  mpc stop                                              Stop playback
  mpc seek [+-][HH:MM:SS]|<0-100>%                      Seeks to the specified position
  mpc seekthrough [+-][HH:MM:SS]                        Seeks by an amount of time within the song and playlist
  mpc clear                                             Clear the queue
  mpc outputs                                           Show the current outputs
  mpc enable [only] <output # or name> [...]            Enable output(s)
  mpc disable [only] <output # or name> [...]           Disable output(s)
  mpc toggleoutput <output # or name> [...]             Toggle output(s)
  mpc outputset <output # or name> <name>=<value>       Set output attributes
  mpc queued                                            Show the next queued song
  mpc shuffle                                           Shuffle the queue
  mpc move <from> <to>                                  Move song in queue
  mpc playlist [<playlist>]                             Print <playlist>
  mpc listall [<file>]                                  List all songs in the music dir
  mpc ls [<directory>]                                  List the contents of <directory>
  mpc lsplaylists                                       List currently available playlists
  mpc load <file>                                       Load <file> into the queue
  mpc insert <uri>                                      Insert a song to the queue after the current track
  mpc prio <prio> <position/range> ...                  Change song priorities in the queue
  mpc save <file>                                       Save a queue as <file>
  mpc rm <file>                                         Remove a playlist
  mpc volume [+-]<num>                                  Set volume to <num> or adjusts by [+-]<num>
  mpc repeat <on|off>                                   Toggle repeat mode, or specify state
  mpc random <on|off>                                   Toggle random mode, or specify state
  mpc single <on|off>                                   Toggle single mode, or specify state
  mpc consume <on|off>                                  Toggle consume mode, or specify state
  mpc search <type> <query>                             Search for a song
  mpc searchadd <type> <query>                          Search songs and add them to the queue
  mpc find <type> <query>                               Find a song (exact match)
  mpc findadd <type> <query>                            Find songs and add them to the queue
  mpc searchplay <pattern>                              Find and play a song in the queue
  mpc list <type> [<type> <query>]                      Show all tags of <type>
  mpc crossfade [<seconds>]                             Set and display crossfade settings
  mpc clearerror                                        Clear the current error
  mpc mixrampdb [<dB>]                                  Set and display mixrampdb settings
  mpc mixrampdelay [<seconds>]                          Set and display mixrampdelay settings
  mpc update [<path>]                                   Scan music directory for updates
  mpc rescan [<path>]                                   Rescan music directory (including unchanged files)
  mpc sticker <uri> <get|set|list|delete|find> [args..] Sticker management
  mpc stats                                             Display statistics about MPD
  mpc version                                           Report version of MPD
  mpc idle [events]                                     Idle until an event occurs
  mpc idleloop [events]                                 Continuously idle until an event occurs
  mpc replaygain [off|track|album]                      Set or display the replay gain mode
  mpc channels                                          List the channels that other clients have subscribed to.
  mpc sendmessage <channel> <message>                   Send a message to the specified channel.
  mpc waitmessage <channel>                             Wait for at least one message on the specified channel.
  mpc subscribe <channel>                               Subscribe to the specified channel and continuously receive messages.
  mpc mount [<uri> <storage>]                           List mounts or add a new mount.
  mpc unmount <uri>                                     Remove a mount.

See man 1 mpc for more information about mpc commands and options
There is no 'mpc listneighbors' on the list.
Is my mpc version installed from newest Ubundu distro wrong?
Below there are current HD diks mounted on my Ubuntu server:

Code: Select all

ela@akacja:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0    7:0    0  89.4M  1 loop /snap/core/6818
loop1    7:1    0  53.9M  1 loop /snap/lxd/10601
loop2    7:2    0  53.8M  1 loop /snap/lxd/10508
loop3    7:3    0  89.3M  1 loop /snap/core/6673
loop4    7:4    0  91.1M  1 loop /snap/core/6531
loop5    7:5    0  53.8M  1 loop /snap/lxd/10526
sda      8:0    0  29.8G  0 disk
├─sda1   8:1    0   512M  0 part /boot/efi
└─sda2   8:2    0  29.3G  0 part /
sdb      8:16   0 931.5G  0 disk
└─sdb1   8:17   0 931.5G  0 part /mnt/harddisk
sdc      8:32   1 465.8G  0 disk
└─sdc1   8:33   1 465.8G  0 part /mnt/harddisk1
sdd      8:48   1 931.5G  0 disk
└─sdd1   8:49   1 931.5G  0 part /mnt/harddisk2
and directory linked currently to MPD:

Code: Select all

ela@akacja:~$ mpc mount
        /mnt/harddisk2/MUSIC
I wolud like to add three other directories to MPD databases from disks /mnt/harddisk and /mnt/harddisk1.
My ubuntu instead of udisks uses udisksctl.

bern
Posts: 13
Joined: April 28th, 2019, 6:06 pm

Re: problem with connection of other instance of MPD

Post by bern » May 5th, 2019, 12:15 pm

I still try to add disks and directories to my music databases. So far without success.
I tried two method:

1. Use 'mpc mount' manually.
Since 'mpc listneighbors' doesn't work in my current mpc version I tried do it mannually.
I've check and disk I want to mount is seen in my ubuntu server as:

Code: Select all

/dev/disk/by-uuid/1ea1773d-2087-498e-991d-ecda310ad57c
so don't knowing exactly syntax I tried to mount:

Code: Select all

udisks://by-uuid-1ea1773d-2087-498e-991d-ecda310ad57c
or
udisks://by-uuid/1ea1773d-2087-498e-991d-ecda310ad57c
see detais:

Code: Select all

ela@akacja:~$ mpc mount
        /mnt/harddisk2/mpd/music
ela@akacja:~$ mpc mount elaHD udisks://by-uuid-1ea1773d-2087-498e-991d-ecda310ad57c
ela@akacja:~$ mpc mount
        /mnt/harddisk2/mpd/music
elaHD   udisks://by-uuid-1ea1773d-2087-498e-991d-ecda310ad57c
ela@akacja:~$ mpc rescan -w
volume: n/a   repeat: off   random: off   single: off   consume: off

ela@akacja:~$ mpc unmount elaHD
ela@akacja:~$ mpc mount
        /mnt/harddisk2/mpd/music
ela@akacja:~$ mpc mount elaHD udisks://by-uuid/1ea1773d-2087-498e-991d-ecda310ad57c
ela@akacja:~$ mpc mount
        /mnt/harddisk2/mpd/music
elaHD   udisks://by-uuid/1ea1773d-2087-498e-991d-ecda310ad57c
ela@akacja:~$ mpc rescan -w
volume: n/a   repeat: off   random: off   single: off   consume: off
After that I see folder 'elaHD' browsing database files but no other content.
So it dosn't work for me.

2. Use symlinks
to current mpd music_directory ( pointed to 4 directories on 2 mounted disks)
After rescan:
  • On my ubuntu server I see full library details and can play music from 2 disks.
  • On my host RPI I see full library details and can play music only from one disk.
    From other disk when I try to play I see for example (the owner od the directory is user 'mpd'):

    Code: Select all

    May 05 11:06 : exception: Failed to decode smb://ela:sowa@10.10.10.1/hd3/mpd/music/Orlando Cachaito Lopez - Cachaito [2001] [FLAC]/03- Mis Dos Pequenas.flac
    May 05 11:06 : exception: nested: smbc_open() failed: Permission denied
    
What should I do to move on?

BTW I can't update/rescan database from RPI host (which is possible only from Ubuntu server). Could I set it somehow?

Post Reply