simplex-chat / simplex-chat/simplexmq
systemd service smp-server.service cannot start
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 847
- Forks
- 111
- Avg merge
- 3d 11h
- Merged PRs (30d)
- 9
Description
My smp-server does not start at boot.
systemctl status smp-server.service gives this output:
Nov 06 22:59:09 simplex smp-server[1367]: Fingerprint: ***********************************
Nov 06 22:59:09 simplex smp-server[1367]: Server address: smp://******************************************
Nov 06 22:59:09 simplex smp-server[1367]: Store log: /var/opt/simplex/smp-server-store.log
Nov 06 22:59:09 simplex smp-server[1367]: Listening on port 5223 (TLS)...
Nov 06 22:59:09 simplex smp-server[1367]: expiring messages after 21 days
Nov 06 22:59:09 simplex smp-server[1367]: not expiring inactive clients
Nov 06 22:59:09 simplex smp-server[1367]: creating new queues requires password
Nov 06 22:59:09 simplex smp-server[1367]: smp-server: /var/opt/simplex/smp-server-store.log: openFile: permission denied (Permission denied)
Nov 06 22:59:09 simplex systemd[1]: smp-server.service: Main process exited, code=exited, status=1/FAILURE
Nov 06 22:59:09 simplex systemd[1]: smp-server.service: Failed with result 'exit-code'.
I useed the installation script on Debian 12.
It seems like user permission problem for the smp user
Here is the systemd script:
[Unit]
Description=SMP server
[Service]
User=smp
Group=smp
Type=simple
ExecStart=/usr/local/bin/smp-server start
ExecStopPost=/usr/local/bin/simplex-servers-stopscript smp-server
LimitNOFILE=65535
KillSignal=SIGINT
TimeoutStopSec=infinity
[Install]
WantedBy=multi-user.target
How can I get around this?
I recently ran the update script, didnt help.
If I run smp-server start as root then the server starts fine.
Also if I comment out the user and group lines in the servic file, the server runs fine.
But I do not want to run it as root, so how do I fix the permissions?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the shown systemd unit and checking ownership and write permissions for /var/opt/simplex/smp-server-store.log when the service runs as the smp user. Reproduce with systemctl status smp-server.service and confirm the service can start at boot without running as root.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- debian, haskell, linux
- Domain
- devops, infrastructure, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100