-
Notifications
You must be signed in to change notification settings - Fork 43
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 open PID file /run/ksmbd.lock (yet?) #195
Comments
I am on Debian 11.7 with systemd version 247 (systemd 247 (247.3-7+deb11u2). The "Error" is only shown if the service is restarted. (systemctl restart ksmbd.service - or stop and later on start it again). Everything is fine in the case of a cold start.
And the content of the service file
|
Reproduced this on Debian 11.7 as described. A high system load seems to be a prerequisite: ( while :; do :; done ) &
( while :; do :; done ) &
( while :; do :; done ) &
( while :; do :; done ) &
# repeat as needed
systemctl restart ksmbd
kill $(jobs -p) |
On systemd 254, with high system load, the PID file message seems more intermittent and is
|
If systemd cannot yet open the PID file, it will retry after a delay. If the latter, then how long is the delay between systemd failing to open the PID file and it succeeding? journalctl -o short-iso-precise -eu ksmbd Thank you for the report. This is likely a ksmbd-tools bug caused by racyness in the creation of the PID file. |
You are right. The pid file can be found at /run/ksmbd.lock and everything is working fine after a restarting of the service as I can tell. Just the message has irritated me and I want to ask here. You also wrote that a high system load is a prerequisite: I can also confirm that, my system is an embedded system with only a single core and quite a high system load. Here are the logs with precise timestamps:
So the delay is very short and not an issue at all. |
Does everyone else noticed this error message? I am using the most recent version of ksmbd-tools 3.4.9
ksmbd.service: Can't open PID file /run/ksmbd.lock (yet?) after start: Operation not permitted
I found an issue on the systemd github page: systemd/systemd#16636
But as explained there, it seems to be an application issue not a systemd problem.
The text was updated successfully, but these errors were encountered: