Search Criteria
Package Details: snapcast 0.31.0-3
Package Actions
Git Clone URL: | https://aur.archlinux.org/snapcast.git (read-only, click to copy) |
---|---|
Package Base: | snapcast |
Description: | Synchronous multi-room audio player |
Upstream URL: | https://github.com/badaix/snapcast |
Keywords: | audio multi-room |
Licenses: | GPL |
Submitter: | mogwai |
Maintainer: | mogwai |
Last Packager: | mogwai |
Votes: | 37 |
Popularity: | 0.020646 |
First Submitted: | 2016-01-01 21:21 (UTC) |
Last Updated: | 2025-02-24 18:13 (UTC) |
Dependencies (15)
- alsa-lib
- avahi
- expat (expat-gitAUR)
- flac (flac-gitAUR)
- jackAUR (jack2-gitAUR, pipewire-full-jack-gitAUR, pipewire-jack-gitAUR, jack2, pipewire-jack)
- libpulse (pulseaudio-dummyAUR, libpulse-gitAUR)
- libsoxr
- libvorbis (libvorbis-aotuvAUR, libvorbis-aotuv-lancerAUR, libvorbis-gitAUR)
- opus (opus-gitAUR)
- alsa-utils (alsa-utils-gitAUR) (make)
- boost (boost-gitAUR) (make)
- cmake (cmake-gitAUR) (make)
- python-mpd2 (python-mpd2-gitAUR) (optional) – stream plugin script
- python-musicbrainzngs (optional) – stream plugin script
- python-websocket-client (optional) – stream plugin script
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »
mogwai commented on 2019-12-26 15:07 (UTC)
@slackline: There is only a file called /etc/snapserver.conf; there is no /etc/snapclient.conf. The configuration for the client (started through systemd) should still be put into /etc/default/snapclient, just as before with version 0.15. I think the idea is that mainly the server is run through systemd as a daemon. Usually the client is run as a regular user unless it's a headless system. So, could you try your old 0.15 setup for the client with 0.17.1 again? It should simply work as-is.
slackline commented on 2019-12-25 13:52 (UTC)
Hi,
Just upgraded from 0.15.0 to 0.17.1 and I can't seem to get snapclient working.
I've created /etc/snapclient.conf and set SNAPCLIENT_OPTS there...
cat /etc/snapclient.conf
SNAPCLIENT_USER="--user snapclient:audio"
SNAPCLIENT_OPTS="-d -h 192.168.1.21 -p 1704"
...as these are what is required when initialising with systemctl
alarmpi etc # cat /usr/lib/systemd/system/snapclient.service
[Unit]
Description=Snapcast client
Documentation=man:snapclient(1)
Wants=avahi-daemon.service
After=network.target time-sync.target sound.target avahi-daemon.service
[Service]
EnvironmentFile=-/etc/default/snapclient
ExecStart=/usr/bin/snapclient $SNAPCLIENT_OPTS
User=snapclient
Group=snapclient
very noisy on stdout
StandardOutput=null
Restart=on-failure
[Install]
WantedBy=multi-user.target
But when I try starting I get...
systemctl restart snapclient.service
systemctl status snapclient.service
● snapclient.service - Snapcast client Loaded: loaded (/usr/lib/systemd/system/snapclient.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Wed 2019-12-25 13:44:18 UTC; 1min 22s ago Docs: man:snapclient(1) Process: 4135 ExecStart=/usr/bin/snapclient $SNAPCLIENT_OPTS (code=exited, status=1/FAILURE) Main PID: 4135 (code=exited, status=1/FAILURE)
Dec 25 13:44:18 alarmpi systemd[1]: snapclient.service: Scheduled restart job, restart counter is at 5. Dec 25 13:44:18 alarmpi systemd[1]: Stopped Snapcast client. Dec 25 13:44:18 alarmpi systemd[1]: snapclient.service: Start request repeated too quickly. Dec 25 13:44:18 alarmpi systemd[1]: snapclient.service: Failed with result 'exit-code'. Dec 25 13:44:18 alarmpi systemd[1]: Failed to start Snapcast client.
And sure enough its not started...
-- The job identifier is 2750. Dec 25 13:49:32 alarmpi audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=snapclient comm="systemd" exe="/usr/lib/systemd/systemd" h Dec 25 13:49:33 alarmpi snapclient[4169]: Exception: Could not open PID lock file "/var/run/snapclient/pid" Dec 25 13:49:33 alarmpi snapclient[4169]: daemon terminated. Dec 25 13:49:33 alarmpi systemd[1]: snapclient.service: Main process exited, code=exited, status=1/FAILURE -- Subject: Unit process exited -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- An ExecStart= process belonging to unit snapclient.service has exited. -- -- The process' exit code is 'exited' and its exit status is 1. Dec 25 13:49:33 alarmpi systemd[1]: snapclient.service: Failed with result 'exit-code'. -- Subject: Unit failed -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- The unit snapclient.service has entered the 'failed' state with result 'exit-code'. Dec 25 13:49:33 alarmpi audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=snapclient comm="systemd" exe="/usr/lib/systemd/systemd" ho Dec 25 13:49:33 alarmpi systemd[1]: snapclient.service: Scheduled restart job, restart counter is at 5. -- Subject: Automatic restarting of a unit has been scheduled -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Automatic restarting of the unit snapclient.service has been scheduled, as the result for -- the configured Restart= setting for the unit. Dec 25 13:49:33 alarmpi systemd[1]: Stopped Snapcast client. -- Subject: A stop job for unit snapclient.service has finished -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- A stop job for unit snapclient.service has finished. -- -- The job identifier is 2819 and the job result is done. Dec 25 13:49:33 alarmpi audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=snapclient comm="systemd" exe="/usr/lib/systemd/systemd" h Dec 25 13:49:33 alarmpi audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=snapclient comm="systemd" exe="/usr/lib/systemd/systemd" ho Dec 25 13:49:33 alarmpi systemd[1]: snapclient.service: Start request repeated too quickly. Dec 25 13:49:33 alarmpi systemd[1]: snapclient.service: Failed with result 'exit-code'. -- Subject: Unit failed -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- The unit snapclient.service has entered the 'failed' state with result 'exit-code'. Dec 25 13:49:33 alarmpi systemd[1]: Failed to start Snapcast client. -- Subject: A start job for unit snapclient.service has failed -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- A start job for unit snapclient.service has finished with a failure. -- -- The job identifier is 2819 and the job result is failed.
There are mentiones of a missing /var/run/snapclient/pid file not being accessible and there was no such directory so I created it but it still failed (see last output above for job 2819).
Any pointers on what I should be doing are welcome.
languitar commented on 2019-03-31 11:46 (UTC)
Since some time I have troubles connecting mopidy to snapserver. The internal GStreamer pipeline always terminates immediately with a permission denied error. I just found out that there is a new kernel feature that prevents accessing fifos owned by different users, which is causing this issue: https://unix.stackexchange.com/questions/503111/group-permissions-for-root-not-working-in-tmp
crystaly commented on 2019-02-13 18:10 (UTC)
Problem is fixed now, still don't know what exactly the problem was. Thanks for fixing
mogwai commented on 2019-02-11 14:42 (UTC)
I have changed the source path for sysusers and tmpfiles, even though I was not able to reproduce the problem. Please check if this solves it.
Speranskiy commented on 2019-02-10 19:15 (UTC)
I agree with @crystaly, paths should be fixed.
mogwai commented on 2019-02-10 10:33 (UTC)
@crystaly: Can you please give more elaborate output? Or retry from a clean directory? The package is building fine on my side. I've rebuilt it on 5+ systems from scratch (x64 and armv7h) without problems.
Looking at the PKGBUILD: those relative paths should be "../.." not "../", because the package() function operates from within the src/${pkgname}-${pkgver} directory.
crystaly commented on 2019-02-10 08:59 (UTC)
Package does not build, the path for .sysusers and .tmpfiles should not be ../.. but ../ instead.
mogwai commented on 2019-02-05 09:38 (UTC)
@vknmnn: Should now be fixed. The directories (and users) are now created through sysusers.d and tmpfiles.d. Can you check?
vknmnn commented on 2019-02-03 14:20 (UTC)
Running the client in daemon mode as user snapclient fails to spawn pulseaudio, because /var/lib/snapclient is not being created by this PKGBUILD, so please include it
« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »