MusicPlayerDaemon / MPD

Music Player Daemon
https://www.musicpd.org/
GNU General Public License v2.0
2.16k stars 346 forks source link

exception: OutputThread could not get realtime scheduling, continuing anyway: sched setscheduler failed: Ope ration not permitted #1566

Closed simistef closed 2 years ago

simistef commented 2 years ago

Bug report

Not sure if a bug or misconfiguration, but i get this error every time i run MPD on my Synology NAS DS 218+ with DSM 7.0

Describe the bug

Everything seems to be running fine but i cannot hear any audio via any client (Persephone, Icecast2, etc)

Expected Behavior

Expected to hear the music

Actual Behavior

Mp3 file plays fine but no sound on any client

Version

admin@Diskstation:~$ /volume1/@appstore/mpd/bin/mpd --version
Music Player Daemon 0.20.23 (2ee11768)

Copyright (C) 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright 2008-2017 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

Storage plugins:
 local

Decoders plugins:
 [mad] mp3 mp2
 [vorbis] ogg oga
 [oggflac] ogg oga
 [flac] flac
 [audiofile] wav au aiff aif
 [dsdiff] dff
 [dsf] dsf
 [pcm]

Filters:
 soxr

Tag plugins:
 id3tag

Output plugins:
 shout null fifo alsa oss httpd recorder

Encoder plugins:
 null vorbis lame wave flac

Archive plugins:
 [bz2] bz2

Input plugins:
 file alsa archive curl

Playlist plugins:
 extm3u m3u pls flac cue embcue

Protocols:
 file:// http:// https:// alsa://

Other features:
 epoll iconv inotify ipv6 tcp un-->

## Configuration
<!-- music_directory        "/volume1/music"
playlist_directory      "/var/packages/mpd/var/playlists"
db_file         "/var/packages/mpd/var/database"
log_file            "/var/packages/mpd/var/mpd.log"
pid_file            "/var/packages/mpd/var/mpd.pid"
state_file          "/var/packages/mpd/var/state"
sticker_file            "/var/packages/mpd/var/sticker.sql"
user                "sc-mpd"
bind_to_address     "192.168.68.100"
port                "6600"
log_level           "default"
auto_update "yes"
decoder {
        plugin "ffmpeg"
#        #enabled "yes"
}

input {
        plugin "curl"
#       proxy "proxy.isp.com:8080"
#       proxy_user "user"
#       proxy_password "password"
}

audio_output {
    type        "shout"
#   encoder     "vorbis"        # optional
    name        "My Shout Stream"
    host        "localhost"
    port        "8123"
    mount       "/mpd"
    password    "hackme"
#   quality     "5.0"
    bitrate     "128"
    format      "44100:16:1"
    protocol    "icecast2"      # optional
    user        "source"        # optional
    description "My Stream Description" # optional
##  url     "http://example.com"    # optional
##  genre       "jazz"          # optional
    public      "no"            # optional
##  timeout     "2"         # optional
##  mixer_type      "software"      # optional
}
audio_output {
    type        "httpd"
    name        "NAS HTTP Stream"
    encoder     "vorbis"        # optional, vorbis or lame
    port        "6680"
    bind_to_address "0.0.0.0"       # optional, IPv4 or IPv6
#   quality     "5.0"           # do not define if bitrate is defined
    bitrate     "128"           # do not define if quality is defined
    format      "44100:16:1"
    max_clients "0"         # optional 0=no limit
}

Log

 Sun Jul 10 18:48:48 EST 2022
Starting mpd command /volume1/@appstore/mpd/bin/mpd /volume1/@appdata/mpd/mpd.comf
Jul 10 18:48 : soxr: soxr converter
"high'
Jul 10 18:48 : vorbis: Xiph.Org libVorbis 1.3.7
Jul 10 18:48
simple db: reading DB
Jul 10 18:48 : curl: version 7.82.0
Jul 10 18:48 : curl: with OpenSSL/1.1.10
Jul 10 18:48 : state file: Loading state file /var/packages/mpd/var/state
Jul 10 18:48
:notify: initializing inotify
Jul 10 18:48 : notify: watching music directory
Jul 10 18:48 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched setscheduler failed: Ope
ration not permitted
Jul 10 18:48 : client: [0] opened from 192.168.68.78:49404
Jul 10 18:48
:client: [0] process command "status"
Jul 10 18:48 : client: [01 command returned @
Jul 10 18:48
: client: [0] process command
"playlistinfo"
Jul 10 18:48 : client: [01 command returned 0
Jul 10 18:48
client: [01 process command "search Track "1"'
Jul 10 18:48 : client: [0] command returned 0
Jul 10 18:48 : client: [0] process command
"albumart
"Compilations/Ferry.Corsten-Blueprint/Blueprint Remixed Extended/01-fe
rry_corsten-blueprint_(ciaran_mcauley_extended_remix)-afo.mp3"
"gul
Jul 10 18:48 : client: [01 command returned 2
MaxKellermann commented 2 years ago

Your MPD version is very very old and unsupported.