You are not logged in.

#1 2014-01-08 11:27:21

MrPotato
Member
Registered: 2014-01-05
Posts: 21

mpd error - fatal_error: Failed to set group 45: Operation not permitt

For the life of me, I can't seem to get mpd+ncmpcpp to work. I've setup everything as per arch wiki now it won't load in systemd even when I run systemctl start mpd. service. I've rebooted god knows how many times nothing fixing anything. Please help. TQ

mpd error

~ ❯❯❯ mpd
fatal_error: Failed to set group 45: Operation not permitted

ncmpcpp error

~ ❯❯❯ ncmpcpp                                                                                                                                   ⏎
Couldn't connect to MPD (host = 127.0.0.1, port = 6600): Connection refused

mpd config
http://pastebin.com/iDbV3X5j


ncmpcpp config
http://pastebin.com/WCjgdyxm


mpd systemctl status

~ ❯❯❯ systemctl status mpd.service                                                                                                              ⏎
mpd.service - Music Player Daemon
   Loaded: loaded (/usr/lib/systemd/system/mpd.service; enabled)
   Active: failed (Result: exit-code) since Wed 2014-01-08 19:11:44 MYT; 11min ago
  Process: 713 ExecStart=/usr/bin/mpd --no-daemon (code=exited, status=1/FAILURE)
 Main PID: 713 (code=exited, status=1/FAILURE)
   CGroup: /system.slice/mpd.service

Last edited by MrPotato (2014-01-08 14:04:50)

Offline

#2 2014-01-08 11:45:43

Duka
Member
From: R'lyeh
Registered: 2010-04-16
Posts: 34

Re: mpd error - fatal_error: Failed to set group 45: Operation not permitt

Hello, can you paste here output from

mpd --no-daemon --stdout --verbose

Also, check /etc/passwd and /etc/group for mpd user/group and their ID. Default should be 45. From first error, it looks like there is some permissions problem.


Cthulhu Fhtagn!

Offline

#3 2014-01-08 14:03:00

MrPotato
Member
Registered: 2014-01-05
Posts: 21

Re: mpd error - fatal_error: Failed to set group 45: Operation not permitt

~ ❯❯❯ mpd --no-daemon --stdout --verbose
config_file: loading file /etc/mpd.conf
fatal_error: Failed to set group 45: Operation not permitted
~ ❯❯❯ cat /etc/passwd                                                                                                                           ⏎
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
mail:x:8:12:mail:/var/spool/mail:/bin/false
ftp:x:14:11:ftp:/srv/ftp:/bin/false
http:x:33:33:http:/srv/http:/bin/false
uuidd:x:68:68:uuidd:/:/sbin/nologin
dbus:x:81:81:dbus:/:/sbin/nologin
nobody:x:99:99:nobody:/:/bin/false
don:x:1000:100::/home/don:/bin/zsh
avahi:x:84:84:avahi:/:/bin/false
polkitd:x:102:102:Policy Kit Daemon:/:/bin/false
deluge:x:125:125:Deluge user:/srv/deluge:/bin/false
usbmux:x:140:140:usbmux user:/:/sbin/nologin
git:x:999:999:git daemon user:/:/bin/bash
mpd:x:45:45::/var/lib/mpd:/bin/false
~ ❯❯❯ cat /etc/group                                                                                                                            ⏎
root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin
adm:x:4:root,daemon
tty:x:5:
disk:x:6:root
lp:x:7:daemon
mem:x:8:
kmem:x:9:
wheel:x:10:root,don
ftp:x:11:
mail:x:12:
uucp:x:14:
log:x:19:root
utmp:x:20:
locate:x:21:
rfkill:x:24:
smmsp:x:25:
http:x:33:
games:x:50:
lock:x:54:
uuidd:x:68:
dbus:x:81:
network:x:90:
video:x:91:
audio:x:92:mpd
optical:x:93:
floppy:x:94:
storage:x:95:don
scanner:x:96:
power:x:98:don
nobody:x:99:
users:x:100:
systemd-journal:x:190:
avahi:x:84:
polkitd:x:102:
deluge:x:125:
usbmux:x:140:
git:x:999:
vboxusers:x:108:
mpd:x:45:

Last edited by MrPotato (2014-01-08 14:09:20)

Offline

#4 2014-01-09 09:23:00

Duka
Member
From: R'lyeh
Registered: 2010-04-16
Posts: 34

Re: mpd error - fatal_error: Failed to set group 45: Operation not permitt

Hi, I managed to reproduce this problem when running MPD as non-root user.
When running as root, everyting works fine. You should read wiki article for per user MPD configuration. That will solve your problem.


Cthulhu Fhtagn!

Offline

Board footer

Powered by FluxBB