edgexfoundry / device-sdk-go

Owner: Device WG

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to find device in cache

ajcasagrande opened this issue Β· comments

🐞 Bug Report

Affected Services [REQUIRED]

The issue is located in:

most/all device services

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

Yes, the issue first appears in #1451

Description and Minimal Reproduction [REQUIRED]

Unable to update or remove a device due to lookup errors in cache:

Could not update device status for device unknown_unknown_3fa1fe68-b915-4053-a3e1-cc32e5000688: failed to find Device device-onvif-camera in cache
failed to find Device device-onvif-camera in cache

It is using the service name to do the lookup instead of the device name.

πŸ”₯ Exception or Error


level=INFO ts=2023-05-10T16:44:44.295379613Z app=device-onvif-camera source=credentials.go:120 msg="Secret updated callback called for secretName 'creds1'"
level=WARN ts=2023-05-10T16:44:44.295387193Z app=device-onvif-camera source=credentials.go:105 msg="Device unknown_unknown_3fa1fe68-b915-4053-a3e1-cc32e5000688 is missing MAC Address, using default secret name"
level=INFO ts=2023-05-10T16:44:44.321522676Z app=device-onvif-camera source=config.go:595 msg="Updated custom configuration 'AppCustom' has been received from the Configuration Provider"
level=ERROR ts=2023-05-10T16:44:44.466948207Z app=device-onvif-camera source=manageddevices.go:57 msg="failed to find Device device-onvif-camera in cache"
level=WARN ts=2023-05-10T16:44:44.466975293Z app=device-onvif-camera source=checkstatuses.go:64 msg="Could not update device status for device unknown_unknown_3fa1fe68-b915-4053-a3e1-cc32e5000688: failed to find Device device-onvif-camera in cache"
level=INFO ts=2023-05-10T16:44:51.86233837Z app=device-onvif-camera source=config.go:595 msg="Updated custom configuration 'AppCustom' has been received from the Configuration Provider"
level=ERROR ts=2023-05-10T16:44:52.027129404Z app=device-onvif-camera source=manageddevices.go:57 msg="failed to find Device device-onvif-camera in cache"
level=WARN ts=2023-05-10T16:44:52.0271533Z app=device-onvif-camera source=checkstatuses.go:64 msg="Could not update device status for device unknown_unknown_3fa1fe68-b915-4053-a3e1-cc32e5000688: failed to find Device device-onvif-camera in cache"
level=ERROR ts=2023-05-10T16:44:54.256460516Z app=device-onvif-camera source=manageddevices.go:57 msg="failed to find Device device-onvif-camera in cache"
level=WARN ts=2023-05-10T16:44:54.256488266Z app=device-onvif-camera source=checkstatuses.go:64 msg="Could not update device status for device unknown_unknown_3fa1fe68-b915-4053-a3e1-cc32e5000688: failed to find Device device-onvif-camera in cache"

🌍 Your Environment

Deployment Environment:
docker

EdgeX Version [REQUIRED]:
main, latest

Anything else relevant?