Skip to content
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

I am running a program on Windows. I am getting an error with the following details: level=ERROR ts=2024-12-06T07:00:06.0816296Z app=device-mqtt source=bootstrap.go:50 msg="failed to create SecretProvider: unable to create SecretClient: open /tmp/edgex/secrets/device-mqtt/secrets-token.json: The system cannot find the path specified." #713

Open
2105424002 opened this issue Dec 6, 2024 · 4 comments

Comments

@2105424002
Copy link

level=WARN ts=2024-12-06T07:00:04.0813047Z app=device-mqtt source=secret.go:130 msg="Retryable failure while creating SecretClient: open /tmp/edgex/secrets/device-mqtt/secrets-token.json: The system cannot find the path specified."
level=INFO ts=2024-12-06T07:00:05.0815559Z app=device-mqtt source=secret.go:77 msg="Reading secret store configuration and authentication token"
level=INFO ts=2024-12-06T07:00:05.0815559Z app=device-mqtt source=secret.go:214 msg="load token from file"
level=WARN ts=2024-12-06T07:00:05.0815559Z app=device-mqtt source=secret.go:130 msg="Retryable failure while creating SecretClient: open /tmp/edgex/secrets/device-mqtt/secrets-token.json: The system cannot find the path specified."
level=ERROR ts=2024-12-06T07:00:06.0816296Z app=device-mqtt source=bootstrap.go:50 msg="failed to create SecretProvider: unable to create SecretClient: open /tmp/edgex/secrets/device-mqtt/secrets-token.json: The system cannot find the path specified."
image

@cloudxxx8
Copy link
Member

It doesn't support Windows natively, because the file path format is different
EdgeX currently support docker deployment on Linux officially
However, you can make your customization build to support the Windows environment

@2105424002
Copy link
Author

Why would my newly created device-mqtt-service overwrite device-mqtt? I want them to coexist. What requirements are needed?

@2105424002
Copy link
Author

It doesn't support Windows natively, because the file path format is different EdgeX currently support docker deployment on Linux officially However, you can make your customization build to support the Windows environment

Why would my newly created device-mqtt-service overwrite device-mqtt? I want them to coexist. What requirements are needed?

@cloudxxx8
Copy link
Member

you need to use different service key and port number.
for the security mode, you also need to add the known secret
https://docs.edgexfoundry.org/3.1/security/Ch-Configuring-Add-On-Services/#optional-configure-known-secrets-for-add-on-services
here is the design:
https://docs.edgexfoundry.org/3.1/design/adr/014-Secret-Provider-For-All/#known-and-unknown-services

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants