mahkoh / spotblock

A minimal spotify ad blocker
GNU General Public License v3.0
35 stars 1 forks source link

Pulse Audio Issue #6

Open mova opened 6 years ago

mova commented 6 years ago

I followed the regular instillation instructions. After that, systemctl --user start spotblock Gives A dependency job for spotblock.service failed. See 'journalctl -xe' for details.

journalctl -xe

Nov 08 21:12:29 hostname systemd[1019]: Starting Sound Service...
-- Subject: Unit UNIT has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit UNIT has begun starting up.
Nov 08 21:12:29 hostname rtkit-daemon[877]: Successfully made thread 22969 of process 22969 (n/a) owned by '1000' high priority at nice level -11.
Nov 08 21:12:29 hostname rtkit-daemon[877]: Supervising 4 threads of 2 processes of 1 users.
Nov 08 21:12:29 hostname pulseaudio[22969]: E: [pulseaudio] pid.c: Daemon already running.
Nov 08 21:12:29 hostname pulseaudio[22969]: E: [pulseaudio] main.c: pa_pid_file_create() failed.
Nov 08 21:12:29 hostname systemd[1019]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Nov 08 21:12:29 hostname systemd[1019]: pulseaudio.service: Failed with result 'exit-code'.
Nov 08 21:12:29 hostname systemd[1019]: Failed to start Sound Service.
-- Subject: Unit UNIT has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit UNIT has failed.
-- 
-- The result is RESULT.
Nov 08 21:12:29 hostname systemd[1019]: Dependency failed for spotblock spotify ad blocker.
-- Subject: Unit UNIT has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit UNIT has failed.
-- 
-- The result is RESULT.
Nov 08 21:12:29 hostname systemd[1019]: spotblock.service: Job spotblock.service/start failed with result 'dependency'.
Nov 08 21:12:30 hostname systemd[1019]: pulseaudio.service: Service hold-off time over, scheduling restart.
Nov 08 21:12:30 hostname systemd[1019]: pulseaudio.service: Scheduled restart job, restart counter is at 1.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Automatic restarting of the unit UNIT has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Nov 08 21:12:30 hostname systemd[1019]: Stopped Sound Service.
-- Subject: Unit UNIT has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit UNIT has finished shutting down.
Nov 08 21:12:30 hostname systemd[1019]: Starting Sound Service...
-- Subject: Unit UNIT has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit UNIT has begun starting up.
Nov 08 21:12:30 hostname rtkit-daemon[877]: Successfully made thread 22970 of process 22970 (n/a) owned by '1000' high priority at nice level -11.
Nov 08 21:12:30 hostname rtkit-daemon[877]: Supervising 4 threads of 2 processes of 1 users.
Nov 08 21:12:30 hostname pulseaudio[22970]: E: [pulseaudio] pid.c: Daemon already running.
Nov 08 21:12:30 hostname pulseaudio[22970]: E: [pulseaudio] main.c: pa_pid_file_create() failed.
Nov 08 21:12:30 hostname systemd[1019]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Nov 08 21:12:30 hostname systemd[1019]: pulseaudio.service: Failed with result 'exit-code'.
Nov 08 21:12:30 hostname systemd[1019]: Failed to start Sound Service.
-- Subject: Unit UNIT has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit UNIT has failed.
-- 
-- The result is RESULT.
Nov 08 21:12:30 hostname systemd[1019]: pulseaudio.service: Service hold-off time over, scheduling restart.
Nov 08 21:12:30 hostname systemd[1019]: pulseaudio.service: Scheduled restart job, restart counter is at 2.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://www.debian.org/support
mahkoh commented 6 years ago

Nov 08 21:12:29 hostname pulseaudio[22969]: E: [pulseaudio] pid.c: Daemon already running.

It seems that pulseaudio is already running but not as a systemd service. You either have to run pulseaudio as a systemd service or you have to remove the pulseaudio.service references from /usr/lib/systemd/user/spotblock.service.