Music Directories
root@botic:~# ls -ld /data/remote/MUSIC*
dr-xr-xr-x 2 root root 0 May 10 18:52 /data/remote/MUSIC_Library_DUBS
dr-xr-xr-x 2 root root 0 May 12 22:08 /data/remote/MUSIC_MY_CDS_DUBBED
root@botic:~# ls -ld /data/remote
drwxr-xr-x 2 root root 4096 May 12 22:08 /data/remote
root@botic:~# ls -ld /data
drwxr-xr-x 3 root root 4096 May 14 22:13 /data
root@botic:~# ls -ld /
drwxr-xr-x 24 root root 4096 May 14 22:03 /
root@botic:~# root@botic:~#
root@botic:~# ls -ld /data/remote/MUSIC*
dr-xr-xr-x 2 root root 0 May 10 18:52 /data/remote/MUSIC_Library_DUBS
dr-xr-xr-x 2 root root 0 May 12 22:08 /data/remote/MUSIC_MY_CDS_DUBBED
root@botic:~# ls -ld /data/remote
drwxr-xr-x 2 root root 4096 May 12 22:08 /data/remote
root@botic:~# ls -ld /data
drwxr-xr-x 3 root root 4096 May 14 22:13 /data
root@botic:~# ls -ld /
drwxr-xr-x 24 root root 4096 May 14 22:03 /
root@botic:~# root@botic:~#
Well................
did it all over again from zero to bot-v5, and still have the "play FAIL sox:" error!? 😱😕😡🙄
I believe your system is okay. Check again the owner of the source files. If the owner is still root, change to mpd by chown as I wrote before. My apologies in advance if this does not work.
drwxr-xr-x 2 root root 4096 May 12 22:08 /data/remote
It should be expected to be like this:
drwxr-xr-x 2 mpd root 4096 May 12 22:08
Also check your /etc/mpd.conf whether or not the /data was defined as music_directory. By defining it, the owner of dirs and files below /data becomes mpd.
twluke: the play command has no connection to mpd, so it neither uses mpd configuration files nor it runs as mpd user. he is executing it as root command, so it should have all access and there is no need to adjust permissions or ownership.
twluke: the play command has no connection to mpd, so it neither uses mpd configuration files nor it runs as mpd user. he is executing it as root command, so it should have all access and there is no need to adjust permissions or ownership.
But it matters if mpd is going to be used. Even with the owner mpd, play command by root does work.
Also check your /etc/mpd.conf whether or not the /data was defined as music_directory. By defining it, the owner of dirs and files below /data becomes mpd.
root@botic:~#
root@botic:~# ls -ld /etc/mpd.conf
-rw-r----- 1 mpd audio 14378 Feb 18 18:23 /etc/mpd.conf
root@botic:~# root@botic:~#
ichiban: I have no idea .... please try the v3 and do not upgrade ... Index of /botic3
That's what I'll do for now........going outside to trim the dead branches off the winter damaged rose hedge and mow the lawn. Wheeeeeeeeeeeee!😛
ichiban: another idea what to check
apt-get install strace
strace play PATH_TO_ANY_WAV_FILE | grep -v munmap | tail -50
apt-get install strace
strace play PATH_TO_ANY_WAV_FILE | grep -v munmap | tail -50
twluke: no, play does not work well ... errors are reported
In:0.00% 00:00:00.00 [00:04:59.07] Out:0 [ | ] Clip:0 play WARN alsa: Input/output error
play FAIL sox: `default' Device or resource busy: Operation not permitted
Done.
In:0.00% 00:00:00.00 [00:04:59.07] Out:0 [ | ] Clip:0 play WARN alsa: Input/output error
play FAIL sox: `default' Device or resource busy: Operation not permitted
Done.
ichiban: another idea what to check
apt-get install strace
strace play PATH_TO_ANY_WAV_FILE | grep -v munmap | tail -50
Doesn't look like the tail -50 worked, scads of lines flew by!???
twluke: no, play does not work well ... errors are reported
In:0.00% 00:00:00.00 [00:04:59.07] Out:0 [ | ] Clip:0 play WARN alsa: Input/output error
play FAIL sox: `default' Device or resource busy: Operation not permitted
Done.
copied putty to clipboard then into Notepad++ and did find on munmap
======================================================
select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
gettimeofday({1431646990, 328937}, NULL) = 0
ioctl(5, 0x400c4150, 0xbea858d4) = -1 EIO (Input/output error)
write(2, "play WARN alsa: ", 16play WARN alsa: ) = 16
write(2, "Input/output error", 18Input/output error) = 18
write(2, "\n", 1
) = 1
ioctl(5, 0x4140, 0xb6c93000) = -1 EBUSY (Device or resource busy)
write(2, "play FAIL sox: ", 15play FAIL sox: ) = 15
write(2, "`default' Device or resource bus"..., 58`default' Device or resource busy: Operation not permitted) = 58
write(2, "\n", 1
) = 1
write(2, "Done.\n", 6Done.
) = 6
close(3) = 0
munmap(0xb6f57000, 4096) = 0
ioctl(5, 0x4144, 0xb6c93000) = -1 EIO (Input/output error)
ioctl(5, 0x4143, 0xb6c93000) = 0
ioctl(5, 0x4112, 0x6b67aa00) = 0
close(5) = 0
munmap(0xb64aa000, 135168) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
munmap(0xb64cb000, 45408) = 0
munmap(0xb64fb000, 45328) = 0
munmap(0xb64d7000, 143600) = 0
munmap(0xb6507000, 45408) = 0
munmap(0xb6513000, 45348) = 0
munmap(0xb651f000, 45348) = 0
munmap(0xb652b000, 45408) = 0
munmap(0xb6537000, 45408) = 0
munmap(0xb6803000, 36936) = 0
munmap(0xb680d000, 45408) = 0
munmap(0xb6819000, 36936) = 0
munmap(0xb68ec000, 58292) = 0
munmap(0xb68d1000, 109348) = 0
munmap(0xb68ba000, 91872) = 0
munmap(0xb6849000, 462628) = 0
munmap(0xb6823000, 153032) = 0
munmap(0xb68fb000, 45408) = 0
munmap(0xb6907000, 45408) = 0
munmap(0xb6913000, 37004) = 0
munmap(0xb691d000, 37000) = 0
munmap(0xb6936000, 45284) = 0
munmap(0xb6927000, 57700) = 0
munmap(0xb6942000, 45408) = 0
munmap(0xb6b80000, 45408) = 0
munmap(0xb6b99000, 36964) = 0
munmap(0xb6b8c000, 53196) = 0
munmap(0xb6bba000, 37060) = 0
munmap(0xb6ba3000, 90396) = 0
munmap(0xb6be8000, 41208) = 0
munmap(0xb6bc4000, 143644) = 0
munmap(0xb6c94000, 45260) = 0
exit_group(0) = ?
root@botic:~#
root@botic:~# ##strace play /tmp/MUSIC1/Track01.wav | grep -v munmap | tail -50
Hi, thanks for this result. I'll try and check this on my Botic5 BBB later tonight.twluke: no, play does not work well ... errors are reported
In:0.00% 00:00:00.00 [00:04:59.07] Out:0 [ | ] Clip:0 play WARN alsa: Input/output error
play FAIL sox: `default' Device or resource busy: Operation not permitted
Done.
I have to say.......
why, even tho /data/remote has my music files mounted, ympd does not show the remote files in the database browser? I suppose it's due to the fact that I mounted the files after bootup and mpd sets up file associations during boot?
Are you kidding, I got out of ympd and tried to umount the music files, & got
umount: /data/remote: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
,went back into ymp, and lo and behold remote db was there ?????
...and tried playing something, did not work, went back to browse data base in ympd and remote was gone now!!??
why, even tho /data/remote has my music files mounted, ympd does not show the remote files in the database browser? I suppose it's due to the fact that I mounted the files after bootup and mpd sets up file associations during boot?
Are you kidding, I got out of ympd and tried to umount the music files, & got
umount: /data/remote: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
,went back into ymp, and lo and behold remote db was there ?????
...and tried playing something, did not work, went back to browse data base in ympd and remote was gone now!!??
Last edited:
I have to say.......
why, even tho /data/remote has my music files mounted, ympd does not show the remote files in the database browser? I suppose it's due to the fact that I mounted the files after bootup and mpd sets up file associations during boot?
ympd (y is a traditional abbreviation of 'another yet') is a GUI interface of mpd and the application actually running is mpd. So, even with ympd, your are going to have a owner problem of the music directory, though miero won't accept this assumption ;-).
Anyway did you try chown -R mpd.root /data/remote/* ? chown -R mpd.audio /data/remote/* may be another try.
ympd (y is a traditional abbreviation of 'another yet') is a GUI interface of mpd and the application actually running is mpd. So, even with ympd, your are going to have a owner problem of the music directory, though miero won't accept this assumption ;-).
Anyway did you try chown -R mpd.root /data/remote/* ? chown -R mpd.audio /data/remote/* may be another try.
tried both and get Permission denied on both ..........🙁
Is it possible to run squeezelite and ympd in the same Bbb but only one working at a given time?
Shut down and restarted BBB. Got the remote to mount via rc.local on boot up.
So, got a different result it seems, from play.
=====================================================
play /tmp/MUSIC1/Track01.wav
play FAIL formats: can't open output file `default': snd_pcm_open error: Device or resource busy
root@botic:/#
=======================================================
So, got a different result it seems, from play.
=====================================================
play /tmp/MUSIC1/Track01.wav
play FAIL formats: can't open output file `default': snd_pcm_open error: Device or resource busy
root@botic:/#
=======================================================
OK, I reproduced your results with play:Shut down and restarted BBB. Got the remote to mount via rc.local on boot up.
So, got a different result it seems, from play.
=====================================================
play /tmp/MUSIC1/Track01.wav
play FAIL formats: can't open output file `default': snd_pcm_open error: Device or resource busy
root@botic:/#
=======================================================
Code:
kramer@beaglebone:~$ play /mnt/music/mp3/Metallica\ -\ Nothing\ Else\ Matters.mp3
/mnt/music/mp3/Metallica - Nothing Else Matters.mp3:
File Size: 16.3M Bit Rate: 320k
Encoding: MPEG audio Info: 1999
Channels: 2 @ 16-bit Track: 1
Samplerate: 44100Hz Album: S&M (Disk 2)
Replaygain: off Artist: Metallica
Duration: 00:06:47.30 Title: Nothing Else Matters
In:0.00% 00:00:00.00 [00:06:47.30] Out:0 [ | ] Clip:0 play WARN alsa: Input/output error
play FAIL sox: `default' Device or resource busy: Operation not permitted
Done.
Code:
kramer@beaglebone:~$ play /mnt/music/mp3/Metallica\ -\ Nothing\ Else\ Matters.mp3
/mnt/music/mp3/Metallica - Nothing Else Matters.mp3:
File Size: 16.3M Bit Rate: 320k
Encoding: MPEG audio Info: 1999
Channels: 2 @ 16-bit Track: 1
Samplerate: 44100Hz Album: S&M (Disk 2)
Replaygain: off Artist: Metallica
Duration: 00:06:47.30 Title: Nothing Else Matters
In:3.51% 00:00:14.30 [00:06:32.99] Out:631k [ =|=- ] Clip:0
I think your issue point to hw issues...
- Home
- More Vendors...
- Twisted Pear
- Support for Botic Linux driver