Connecting net drive Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
tenoritiger
Posts: 8
Joined: Sat Mar 09, 2019 8:24 am

Re: Connecting net drive

Post by tenoritiger » Fri Mar 15, 2019 10:17 pm

Hello again MichaIng
I've just updated to 6.22. Allo.com Web GUI isn't working now... It looks like this after entering Username = [email protected]
Password = allo
error.JPG
I can't open O!MPD interface too. It says "Login failed
netjukebox requires cookies to login.
Enable cookies in your browser and try again."
And then I am not sure if MPD itself has limited access to the music dir assigned in /etc/mpd.conf so O!MPD cannot access to outside of this.
In case you need to adjust /etc/mpd.conf to have:
music_directory "/mnt"
playlist_directory "/mnt"
I've already done it before posting here my question. Not working for me...

tenoritiger
Posts: 8
Joined: Sat Mar 09, 2019 8:24 am

Re: Connecting net drive

Post by tenoritiger » Sat Mar 16, 2019 5:53 pm

I've just successfully updated to 6.22.
Everything seems to work fine except my net drive... No luck with it still.
In /etc/mpd.conf
music_directory "/mnt" - done
playlist_directory "/mnt" - done
In O!MPD settings:
$cfg['media_dir'] = '/mnt/'; - done
Can You suggest anything else?

User avatar
MichaIng
Legend
Posts: 1014
Joined: Sat Nov 18, 2017 5:21 pm

Re: Connecting net drive

Post by MichaIng » Sat Mar 16, 2019 9:03 pm

So the above issue when opening the web UIs is solved? Perhaps was some browser cache issue or something.

Can you please try to edit /etc/fstab and change in the network drive line:
file_mode=0770 to file_mode=0775 and
dir_mode=0770 to dir_mode=0775 as well?
Then remount the network drive:
umount /mnt/XiaoMi-usb0; mount /mnt/XiaoMi-usb0

Perhaps it's not MPD that lacks permissions/fails to access, but O!MPD with the www-data user :?. I though that it does not attempt to access anything directly but only through MPD, but perhaps this is not the case.

I will also run some tests here tomorrow.

tenoritiger
Posts: 8
Joined: Sat Mar 09, 2019 8:24 am

Re: Connecting net drive

Post by tenoritiger » Sun Mar 17, 2019 8:42 am

file_mode=0770 to file_mode=0775 and
dir_mode=0770 to dir_mode=0775
Yep. That is the case! Now everything is working. And I'm almost happy :) I think it should de added in future updates.
Thanks a lot for Your help. I appreciate it.
There're the few things I want to ask You:
1) I can't find support for *.dff files (only *.dsf). Is it possible to add this format in future builds?
2) I'm using Luxman DA-06 as a DAC. It seems to have native DSD playback option but my Linux knowledge is too bad to understand info on GitLab. Now i must switch DOP from "no" to "yes" in etc/mpd.conf to listen DSD. In othe case my DAC is not shoving DSD playback.
I've found this:
https://gitlab.denx.de/Xenomai/ipipe/co ... 30d576636c
https://lore.kernel.org/patchwork/patch/899686/
Is it realizable on DietPi? I'll be happy to test native DSD playback if You can help me with all this.
3)On early DietPi builds and Volumio I've used M.A.L.P to control MPD from my phone. Settings are still the same as before but it shows me "failed to connect" massage.
M.A.L.P settings:
Hostname or ip: my DietPi ip
port: 6600
These options are incorrect? Is there ani "conf" file where I can check it?
Anyway You've done a lot for solving my trouble. Thanks a lot again.

User avatar
MichaIng
Legend
Posts: 1014
Joined: Sat Nov 18, 2017 5:21 pm

Re: Connecting net drive

Post by MichaIng » Sun Mar 17, 2019 3:17 pm

Okay will add the 755 permissions. Global read permissions are default anyway, no idea why we were so strict.

For DFF there exist a decoder plugin: https://www.musicpd.org/doc/html/plugins.html#dsdiff
Please try to add the following to your /etc/mpd.conf

Code: Select all

decoder {
    plugin "dsdiff"
}
About native DSD support, we do no kernel development, so we depend on the Kernel tree that Allo/Sparky provides which is stuck at 3.10.38: https://github.com/sparkysbc/Linux
Since this patch can be added to the 3.10.38 kernel as well, we could address the request to the Sparky devs.
EDIT: I just opened a pull request to allow native DSD for your device by the Sparky SBC kernel: https://github.com/sparkysbc/Linux/pull/7

About remote MPD access, port 6600 should be fine (default) but we by default block remote control and limit access to MPD clients/frontends on the same machine only. To allow remote access from local network, edit your /etc/mpd.conf and remove (or comment) bind_to_address "localhost".

Post Reply