-
Notifications
You must be signed in to change notification settings - Fork 68
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
LockFile Error (Device Client is already running.) #418
Comments
Hello @nishida1023 , can you share complete logs with config passed? Just by looking at the logs you shared, it is difficult to understand what is the issue. Also what do you mean by " Start aws-iot-device-client before fleet provisioning is completed."? Can you share exact steps to reproduce the issue? |
Also it looks like there is a bug in our code. With Fleet Provisioning enabled, we are calling |
@HarshGandhi-AWS
The bug occurs only if the aws-iot-device-client-runtime.conf doesn't exist.
I noticed this bug and created an ISSUE. This bug is included in the latest main branch.
|
Hello @nishida1023 , thank you for sharing details. To unblock yourself from using device client, I would suggest disabling Fleet Provisioning feature via config and starting the device client again. If you want to use Fleet Provisioning, then unfortunately there is no workaround and you will have to wait until the bug is fixed. |
Hello @nishida1023 , this issue is been resolved in the latest commit. I will close this issue now, feel free to reopen this issue or create a new one if you still face any difficulty using Device Client. Thank you. |
@HarshGandhi-AWS |
Describe the bug
LockFile Error
To Reproduce
Start aws-iot-device-client before fleet provisioning is completed.
Expected behavior
aws-iot-device-client does not stop.
Actual behavior
aws-iot-device-client stopped with an error.
Logs
Environment (please complete the following information):
OS: Ubuntu
Version 22.04.1
Architecture: x86_64
Device Client commit: 239d10d
Additional context
If fleet provisioning has not been completed, the reason for the error is that init() is called twice.
https://github.com/awslabs/aws-iot-device-client/pull/391/files
The text was updated successfully, but these errors were encountered: