systemd service smp-server.service cannot start
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- debian, haskell, linux
- Lĩnh vực
- devops, infrastructure, operating-systems
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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?
- Ngôn ngữ chính
- Haskell
- Star
- 865
- Fork
- 125
- Merge trung bình
- 1 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 64
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của simplex-chat/simplexmq
-
xftp CLI: Generated web link is missing the /file pathCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
simplex-chat/simplexmq#1853 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
simplex-chat/simplexmq#1781 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
simplex-chat/simplexmq#2074 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
simplex-chat/simplexmq#2017 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
resolver: resolve .simplex names, on smp7 and then on the preset routersCó thể đã có người làm @shumvgolove đã nhận 18 ngày trước. Đang mở
simplex-chat/simplexmq#2011 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của simplex-chat/simplexmq
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
alunduil/siren-json.hs#322 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Dead link in readmeĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
commercialhaskell/rio#287 ·
-
wide-word-0.2Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
commercialhaskell/stackage#8181 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug desktop
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
simplex-chat/simplex-chat#8291 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: C# programs with top-level statements fail to compileCó thể đã có người làm @AsyncNigam đã nhận 1 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
compiler-explorer/compiler-explorer#9625 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày