mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 06:55:52 +03:00
[GH-ISSUE #1210] Existing /rmm/daphne.sock causes daphne.service fail to start #2691
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#2691
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NiceGuyIT on GitHub (Jul 17, 2022).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1210
Server Info (please complete the following information):
Installation Method:
Agent Info (please complete the following information):
Describe the bug
See below.
To Reproduce
Steps to reproduce the behavior:
Note: Killing the process with SIGSEGV will cause the socket to remain behind but daphne is able to cleanup the leftovers and start the service.
Expected behavior
I expect Daphne to start after a power failure.
Screenshots
See below.
Additional context
My dev server experienced a power outage which caused
/rmm/daphne.sockto remain.The process no longer exists.
This in turn caused daphne.service to fail upon startup. Notice the restart counter at 15k.
Here's the correspondig error in the
/rmm/api/tacticalrmm/tacticalrmm/private/log/*.log. Note: This is a dev box not on the internet; theaccess_tokendoesn't matter.Adding
ExecStartPreto remove the socket and lock file makes the service start correctly.systemctl status daphne.service@ninjamonkey198206 commented on GitHub (Jul 18, 2022):
I'll get that added into the service definition in my script.
@ninjamonkey198206 commented on GitHub (Jul 20, 2022):
Done. If they approve my PR or just scavenge it for parts, including default files, it'll be in there.
@wh1te909 commented on GitHub (Oct 7, 2022):
thank you, added
ExecStartPre