-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't start Snapserver service #643
Comments
what is logged into
|
Hello,
BTW snapclient fails to start also with the same error message... but this is for another issue I guess. |
OK - I changed SNAPSERVER_OPTS and SNAPSERVER_USER back to default. The problem is still the same. Do you think this has to do with snapserver command? I tried The reason why we have "Segmentation fault" is because I am executing snapclient in another window while snapserver is in the current window. Snapserver gets stuck to "(Avahi) Service 'Snapcast' successfully established." I created the files reported above and now the error showing is this: |
Please use triple backtick to quote logs, your's with a single backtick are hard to read: Have you had an old installation (the No matter what, the server should not segfault or get stuck. I cannot reproduce this. Can you describe how to reproduce it, maybe with debug logging enabled ( |
Hello again, |
Ok, I will anyways check if the |
I am experiencing this same problem. Fresh install of armbian (debian buster) and snapserver fails to start and gives me the same Failed to create settings directory messages. There is no /var/lib/snapserver directory. Snapserver runs successfully when starting it manually as a user but not as a service. |
Hi badaix, i think you meant |
Hello,
I configured the software are per mentionned in GitHub page. Everything goes well when compiling info in my config file:
pi@raspberrypi:~ $ snapserver
2020-06-17 14-11-35.559 [Info] (main) Adding stream: pipe:///tmp/snapfifo?name=Radio&sampleformat=48000:16:2&codec=flac
2020-06-17 14-11-35.559 [Notice] (init) Settings file: "/home/pi/.config/snapserver/server.json"
2020-06-17 14-11-35.572 [Info] (Avahi) Adding service 'Snapcast'
2020-06-17 14-11-35.580 [Info] (start) Creating TCP acceptor for address: 192.168.2.33, port: 1705
2020-06-17 14-11-35.580 [Info] (start) Creating HTTP acceptor for address: 0.0.0.0, port: 1780
2020-06-17 14-11-35.581 [Info] (PcmStream) PcmStream sampleFormat: 48000:16:2
2020-06-17 14-11-35.581 [Info] (PcmStream) metadata={
2020-06-17 14-11-35.581 [Info] (PcmStream) "STREAM": "Radio"
2020-06-17 14-11-35.581 [Info] (PcmStream) }
2020-06-17 14-11-35.581 [Info] (onMetaChanged) onMetaChanged (Radio)
2020-06-17 14-11-35.581 [Info] (PipeStream) PipeStream mode: create
2020-06-17 14-11-35.581 [Info] (start) Stream: {"fragment":"","host":"","path":"/tmp/snapfifo","query":{"chunk_ms":"20","codec":"flac","name":"Radio","sampleformat":"48000:16:2"},"raw":"pipe:////tmp/snapfifo?chunk_ms=20&codec=flac&name=Radio&sampleformat=48000:16:2","scheme":"pipe"}
2020-06-17 14-11-35.583 [Info] (start) Creating stream acceptor for address: 192.168.2.33, port: 1704
2020-06-17 14-11-35.583 [Info] (main) number of threads: 4, hw threads: 4
2020-06-17 14-11-36.431 [Info] (Avahi) Service 'Snapcast' successfully established.
Segmentation fault
But it doesn't start
input:
sudo service snapserver start
Here's the status
● snapserver.service - Snapcast server
Loaded: loaded (/lib/systemd/system/snapserver.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Wed 2020-06-17 14:13:46 EDT; 19s ago
Docs: man:snapserver(1)
Process: 2558 ExecStart=/usr/bin/snapserver --logging.sink=system --server.datadir=${HOME} $SNAPSERVER_OPTS (code=killed,
Main PID: 2558 (code=killed, signal=ABRT)
Jun 17 14:13:46 raspberrypi systemd[1]: snapserver.service: Service RestartSec=100ms expired, scheduling restart.
Jun 17 14:13:46 raspberrypi systemd[1]: snapserver.service: Scheduled restart job, restart counter is at 5.
Jun 17 14:13:46 raspberrypi systemd[1]: Stopped Snapcast server.
Jun 17 14:13:46 raspberrypi systemd[1]: snapserver.service: Start request repeated too quickly.
Jun 17 14:13:46 raspberrypi systemd[1]: snapserver.service: Failed with result 'signal'.
Jun 17 14:13:46 raspberrypi systemd[1]: Failed to start Snapcast server.
Here's what's in my default folder:
START_SNAPSERVER=true
SNAPSERVER_USER="--user snapserver:snapserver"
SNAPSERVER_OPTS="-d -s pipe:///tmp/snapfifo?name=default"
And what is in my config file:
[stream]
bind_to_address = 192.168.2.33
port = 1704
stream = pipe:///tmp/snapfifo?name=Radio&sampleformat=48000:16:2&codec=flac
#stream = pipe:///tmp/snapfifo?name=Radio&mode=read
#[http]
#enabled = true
#bind_to_address = 0.0.0.0
#port = 1780
#doc_root = /snapcast/server/page #tried to add snapweb and it didn't work either - this is for another issue...
[tcp]
enabled = true
bind_to_address = 192.168.2.33
port = 1705
Can you help me?
Thanks
The text was updated successfully, but these errors were encountered: