Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


mpd exception: Failed to set group 29: Operation not permitted
#1
Hi, 
I'm trying to install Moode on my BeagleBone Black (BBB) arm machine on buster 10.4. 
I went through the whole installation:
https://github.com/moode-player/moode/tr...ther/build

I see GUI however I stuck with mpd launch. 
Normally the user mpd:audio should launch mpd service:
After reboot I have:
Code:
bbb@beaglebone:~$ sudo systemctl status mpd
● mpd.service - Music Player Daemon
  Loaded: loaded (/usr/local/lib/systemd/system/mpd.service; disabled; vendor preset: enabled)
  Active: inactive (dead)
    Docs: man:mpd(1)
          man:mpd.conf(5)

when I restart the mpd service I receive:
Code:
bbb@beaglebone:~$ sudo systemctl restart mpd
Job for mpd.service failed because the control process exited with error code.
See "systemctl status mpd.service" and "journalctl -xe" for details.
bbb@beaglebone:~$ sudo systemctl status mpd
● mpd.service - Music Player Daemon
  Loaded: loaded (/usr/local/lib/systemd/system/mpd.service; disabled; vendor preset: enabled)
  Active: failed (Result: exit-code) since Sun 2020-06-07 16:53:30 UTC; 22s ago
    Docs: man:mpd(1)
          man:mpd.conf(5)
 Process: 1976 ExecStart=/usr/local/bin/mpd --no-daemon (code=exited, status=1/FAILURE)
Main PID: 1976 (code=exited, status=1/FAILURE)

Jun 07 16:53:27 beaglebone systemd[1]: Starting Music Player Daemon...
Jun 07 16:53:30 beaglebone mpd[1976]: exception: No configuration file found
Jun 07 16:53:30 beaglebone systemd[1]: mpd.service: Main process exited, code=exited, status=1/FAILURE
Jun 07 16:53:30 beaglebone systemd[1]: mpd.service: Failed with result 'exit-code'.
Jun 07 16:53:30 beaglebone systemd[1]: Failed to start Music Player Daemon.
The message 'exception: No configuration file found' is misleading since I have /etc/mpd.conf  prepared by by Moode team and file exist.
So I dug deeper. I switched to mpd user and tried to start mpd. Here's what I received:
Code:
mpd@beaglebone:/home/bbb$ mpd  /etc/mpd.conf
config_file: config parameter "gapless_mp3_playback" on line 24 is deprecated
config_file: config parameter "buffer_before_play" on line 28 is deprecated
config_file: config parameter "id3v1_encoding" on line 30 is deprecated
Jun 07 16:54 : exception: Failed to set group 29: Operation not permitted

What does 'exception: Failed to set group 29: Operation not permitted' means? Has anyone received a similar message? How could I fix it in  my installation?
I compiled and installed mpd in accordance with 'STEP 6 - Compile and install MPD 0.21.x series'. My mpd:
Code:
mpd@beaglebone:/home/bbb$ mpd -V
Music Player Daemon 0.21.22 (0.21.22)
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

Storage plugins:
local


Decoders plugins:
[mad] mp3 mp2
[mpg123] mp3
[vorbis] ogg oga
[oggflac] ogg oga
[flac] flac
[dsdiff] dff
[dsf] dsf
[hybrid_dsd] m4a
[faad] aac
[wavpack] wv
[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
[pcm]

Filters:
soxr

Tag plugins:
id3tag

Output plugins:
shout null fifo pipe alsa httpd recorder

Encoder plugins:
null vorbis lame wave flac

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

Input plugins:
file archive alsa tidal qobuz curl ffmpeg cdio_paranoia

Playlist plugins:
extm3u m3u pls soundcloud flac cue embcue

Protocols:
file:// alsa:// tidal:// qobuz:// http:// https:// gopher:// rtp:// rtsp:// rtmp:// rtmpt:// rtmps:// cdda://

Other features:
avahi epoll icu inotify systemd tcp un
Reply
#2
I'm sorry but at the risk of sounding harsh I have to be candid here. 

Everything about moOde from the moodeaudio.org landing page to the build instructions says it's built on Raspbian for a machine in the Raspberry Pi family.

On the Raspberry Pi family, the pre-built moOde image works and the build instructions used to create it work.

If you want to port moOde to a different host and OS, then you're on your own.

Regards,
Kent
Reply
#3
Thats correct. moOde is based on the Raspbian OS or as it is now referred to in the latest release from the Raspberry Pi Foundation the Raspberry Pi OS.

This OS is factored explicitly for Raspberry Pi hardware and is not compatible with other single board computers.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#4
Sorry guys. 
I didn't want to annoy you. Blush Just wanted to try to launch interesting and promising software on my favorite hardware eg Beaglebone Black (excellent I2S driver - botic fed by external audio clocks).  
I partly fixed the start of mpd (currently mpd service can starting manually). I have to add:
Code:
mkdir -p /usr/local/etc
ln -sf /etc/mpd.conf /usr/local/etc/mpd.conf

Next time I must check mpd's sysconfdir configured in Meson. 
BeagleBone Black is very similar to RPI. Even moOde see it as Pi-3B 1GB (see below). 
I will continue experimenting though I am ordinary listener of music and I have a lot of gaps in linux Wink

Code:
bbb@beaglebone:~$ moodeutl -s
Generating info...
/var/www/command/sysinfo.sh: line 353: /opt/vc/bin/tvservice: No such file or directory
grep: /sys/class/leds/led0/trigger: No such file or directory
awk: cannot open /sys/class/thermal/thermal_zone0/temp (No such file or directory)
/var/www/command/sysinfo.sh: line 639: vcgencmd: command not found
rmmod: ERROR: Module configs is builtin.
/var/www/command/sysinfo.sh: line 231: shairport-sync: command not found
/var/www/command/sysinfo.sh: line 261: squeezelite: command not found
/var/www/command/sysinfo.sh: line 262: squeezelite: command not found

S Y S T E M   P A R A M E T E R S

moOde release           = 6.5.2 2020-05-03</li>
Raspbian OS             = 10.4
Linux kernel            =
Platform                = Pi-3B 1GB
Architecture            = armv7l (32-bit)
System uptime           = up 16 minutes
Timezone                = America/Detroit
Current time            = 2020-06-08 17:15:09

Host name               = beaglebone
Ethernet address        = unassigned
Ethernet MAC            = 54:4a:16:bf:a9:7c
WLAN address            = 10.10.11.12
WLAN MAC                = 20:e0:16:01:0c:78
WLAN country            = US

SoC identifier          = am33xx
Core count              = 1
Kernel timer freq       = 250 Hz
SDCard freq             =  MHz
USB boot                = not enabled
Warranty                = OK

Root size               =
Root used               =
Root available          =
Root expand             = not expanded
Memory free             = 311 MB
Memory used             = 66 MB
SoC temperature         =

CPU governor            = performance
Onboard WiFi            = On
Onboard BT              = On
HDMI output             = On
LED state               = 1,1
Eth addr wait           = On
Max USB current         = Off
USB (UAC2) fix          = Off
Pi-3B+ eth fix          = Off
SSH term server         = Off

PHP-FPM version         = 7.3.14
NGINX version           = 1.14.2
SQLite3 version         = 3.27.2
Hostapd version         = 2.8-devel
WiringPi version        = 381:
RPi.GPIO version        =

A U D I O   P A R A M E T E R S

Audio device            = On-board audio device
Interface               = SoC
Mixer name              = PCM
Hardware volume         = Controller detected
Max ALSA volume         = 100
Max MPD volume          = 100
Volume step limit       = 10
Audio source            = Local
Output device           = Local
Resume MPD              = No
Volume knob             = 0
Volume mute             = Unmuted
Saved MPD vol           = 0
Preamp volume           = 0
ALSA version            = 1.1.8-1
SoX version             = 0.1.2-3

Bluetooth controller    = Off
Pairing agent           = Off
Airplay receiver        = Off
Spotify receiver        = Off
Squeezelite             = Off
UPnP client             = Off
DLNA server             = Off
GPIO button handler     = Off
UPnP browser            = Off

Auto-shuffle            = Off
Autoplay                = Off
Rotary encoder          = Off
Encoder params          = 100 2 3 23 24
USB volume knob         = Off
Polarity inversion      = Off
Crossfeed               = Off
Crossfade               = Off
Parametric EQ           = Off
Graphic EQ              = Off
MPD httpd               = Off

A P P E A R A N C E   S E T T I N G S

Themes and backgrounds
----------------------
Theme                   = Default
Accent color            = Emerald
Alpha blend             = 1.0
Adaptive background     = No
Background image        = No
Cover backdrop          = No
Cover blur              = 20px
Cover scale             = 1.25

Library options
----------------------
Instant play action     = Add/Play
Show tagview genres     = Yes
Show tagview covers     = Yes
Ellipsis limited text   = No
Albumview sort order    = by Artist
Tagview sort order      = by Artist
Compilation identifier  = Various Artists
Recently added          = 1 Month
Ignore articles         = a,an,the
UTF8 character filter   = No
Hi-res thumbs           = Auto
Cover search pri        = Embedded cover
Pixel ratio             = 1.57729172706604

Coverview screen saver
----------------------
CoverView auto-display  = Never
CoverView style         = Gradient (Linear)

Other options
----------------------
Font size               = Normal
Auto-shuffle filter     = None
Extra metadata          = track,disc,date,composer,encoded
Playback history        = No

M P D   S E T T I N G S

Version                 =
Volume control          = software
ALSA device             = hw:0
SoX resampling          = disabled
SoX quality             = very high
SoX multithreading      = off
DSD over PCM (DoP)      = no
Replaygain              = off
Replaygain preamp       = 0
Volume normalization    = No
Audio buffer            = 4096 (kb)
Output buffer size      = 131072 (kb)

B L U E T O O T H   S E T T I N G S

Bluetooth ver           = 5.50
Bluealsa ver            = 2.0.0
Speaker sharing         = No
Resume MPD              = No
PCM buffer time         = 500000 (\u03BCs)

A I R P L A Y   S E T T I N G S

Version                 =
Friendly name           = Moode Airplay
ALSA device             = hw:0
Interpolation           = soxr
Output bit depth        = S16
Output sample rate      = 44100
Session interruption    = no
Session timeout         = 120 (ms)
Latency offset          = 0.0 (secs)
Audio buffer            = 0.2 (secs)
Resume MPD              = No

S P O T I F Y   S E T T I N G S

Friendly name           = Moode Spotify
ALSA device             = plughw:0
Bit rate                = 160
Initial volume          = 0
Volume curve            = Logarithmic
Volume normalization    = No
Normalization pregain   = 0
Autoplay                = No
Resume MPD              = No

S Q U E E Z E L I T E   S E T T I N G S

Version                 =  "DSD/SRC disabled"
Friendly name           = Moode
ALSA device             = hw:0
ALSA params             = 80:4::1
Output buffers          = 40000:100000
Task priority           = 45
Codec list              = flac,pcm,mp3,ogg,aac,alac,dsd
Other options           = -W -D 500 -R E -S /var/local
Resume MPD              = No

L O C A L   D I S P L A Y   S E T T I N G S

Local UI display        = Off
Mouse cursor            = On
Screen blank            = 600 Secs
Wake display on play    = Off
Brightness              = 255
Pixel aspect ratio      = Default
Rotate screen           = 0 Deg

M O O D E   S T A R T U P   L O G

20200607 140444 moode.php: MPD connect failed: cmd=(loadlib)
20200607 140444 moode.php: MPD connect failed: cmd=(lsinfo)
20200607 140444 moode.php: MPD connect failed: cmd=(lsinfo)
20200607 140525 lib-config: Connection to MPD failed
Reply


Forum Jump: