Open ashishbinu opened 3 years ago
I tried doing systemctl start mpd.service
and it gave no error. And it is working. README.md
should be updated.
The reason you get an error with --user
is becuase mpd
is trying to create a file in a location it can't.
Follow this guide to setup mpd
correctly.
https://wiki.archlinux.org/title/Music_Player_Daemon#Configure_the_location_of_files_and_directories
And clearly you can't read error messages, because it even tells you in the log you posted what happened.
I tried the command
systemctl --user start mpd.service
and it is not working for some reason.Log shown by
systemctl --user status mpd.service
```sh ❯ systemctl --user status mpd.service ● mpd.service - Music Player Daemon Loaded: loaded (/usr/lib/systemd/user/mpd.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2021-05-09 17:10:11 IST; 10min ago Docs: man:mpd(1) man:mpd.conf(5) Process: 274390 ExecStart=/usr/bin/mpd --no-daemon (code=exited, status=1/FAILURE) Main PID: 274390 (code=exited, status=1/FAILURE) May 09 17:10:11 Toshiba systemd[1238]: Starting Music Player Daemon... May 09 17:10:11 Toshiba mpd[274390]: exception: bind to '0.0.0.0:6600' failed (continuing anyway, because binding to '[::]:6600' succeeded): Failed to bind socket: Address already in use May 09 17:10:11 Toshiba mpd[274390]: exception: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg May 09 17:10:11 Toshiba mpd[274390]: exception: Failed to open '/var/lib/mpd/mpd.db': No such file or directory May 09 17:10:11 Toshiba mpd[274390]: exception: Failed to open database plugin; Can't create db file in "/var/lib/mpd": Permission denied May 09 17:10:11 Toshiba systemd[1238]: mpd.service: Main process exited, code=exited, status=1/FAILURE May 09 17:10:11 Toshiba systemd[1238]: mpd.service: Failed with result 'exit-code'. May 09 17:10:11 Toshiba systemd[1238]: Failed to start Music Player Daemon. ```
System Information
OS: Manjaro Linux x86_64
Kernel : 5.12.1-2-MANJARO