-
Notifications
You must be signed in to change notification settings - Fork 480
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
Clearing metadata cache and redis database while running EdgeX with security #4360
Comments
could you upload your profile and describe the steps to reproduce this issue? |
Hi @cloudxxx8 When I switch from testing the device-virtual for i2c-uart-gpio-usb ips to usb ip, I get the error. |
What do you actually do when you mention to switch from testing the device-virtual for i2c-uart-gpio-usb ips to usb ip |
I have written seperate device-virtual-go for usb and other ips. So, while testing I run the respective device-virtual-go file. All the services would be running, which is same for usb and other ips. |
Did you create different devices and device profiles for the two device services, or did you just update the original devices? |
Yes. I created different devices and profiles for the two device services. |
According to your original error |
As you can see in the first screenshot which i shared, for USB IP, I have not mentioned LIGHT_1 in devices and profiles file. |
What is the source name you defined in the AutoEvent in the Device? |
Those AutoEven sources are not defined in your usb device profile, only in the virtual device profile. |
Could you please elaborate? |
they are defined in device.virtual.int.yaml for usb IP (your first profile), but not in device.virtual.int.yaml for the four ips (your second profile).
|
Please upload all the device, profile, and error log in text files, or we are not able to see all the information. |
The error happens in this line It means the device resource AutoEvent is reading not defined in the Device Profile |
Yes. It's because I am running the device-virtual-go file for just USB ip. AutoEvent is reading the source name which I have not defined in the Device Profile. AutoEvent should just read for CAMERA_1,CAMERA_2 and PEN_DRIVE. Yet I do not know why it is reading the LIGHT_1 source name. |
it requires the checking of your devices and device profiles |
close due to no activity |
Hi all,
I am testing USB image capturing using EdgeX (jakarta) with security.
In devices and profiles files I have just added the USB sourceName and resourceName. While running the device-virtual-go for USB, getting the below error
level=ERROR ts=2023-02-13T06:18:55.089793534Z app=device-virtual source=transform.go:58 msg="failed to find DeviceResource in Device Edgex-stress-test for CommandValue (DeviceResource: , : <nil>)" level=ERROR ts=2023-02-13T06:18:55.090504567Z app=device-virtual source=executor.go:55 msg="AutoEvent - error occurs when reading resource LIGHT_2: failed to convert CommandValue to Event -> failed to find DeviceResource in Device Edgex-stress-test for CommandValue (DeviceResource: , : <nil>)"
I have added the error screenshot below.
Any suggestion on how to flush the Redis database and metadata cache while running EdgeX with security.
Thanks in advance
The text was updated successfully, but these errors were encountered: