edgexfoundry / device-onvif-camera

Owner: Device WG
Apache License 2.0
29 stars 37 forks source link

Failed to Get profiles of Camera Device that have been successfully deployed on EdgexFoudary ! 404 Error! #434

Open find-think-solve opened 4 months ago

find-think-solve commented 4 months ago

πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘ curl -s http://0.0.0.0:59882/api/v3/device/name/Pangu/MediaProfiles | jq -r '"profileToken: " + '.event.readings[].objectValue.Profiles[].Token'' jq: error (at :1): Cannot iterate over null (null) πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘ I have successfully deployed the Pangu device, and tried the core command in the UI as follows:

onvif-command However, when i try to get the profiles of Pangu, it turned to be an error. And i discard the requirement of token, i returned with an 404 error.
| curl -s http://0.0.0.0:59882/api/v3/device/name/Pangu/MediaProfiles | jq . { "apiVersion": "v3", "message": "request failed, status code: 404, err: {\"apiVersion\":\"v3\",\"message\":\"fail to query device by name Pangu\",\"statusCode\":404}\n", "statusCode": 404 } I have tried to restart docker and reconfig internet, but get no result. This issue has been bothering me for a long time,help and support are expected. I express my sincere gratitude for any possible solutions.

jiekechoo commented 4 months ago

@find-think-solve Trying this url get all devices:

curl -s curl -s http://0.0.0.0:59882/api/v3/device/all | json_pp 

and, can you find the device named Pangu ?

find-think-solve commented 4 months ago

@find-think-solve Trying this url get all devices:

curl -s curl -s http://0.0.0.0:59882/api/v3/device/all | json_pp 

and, can you find the device named Pangu ?

Thank you for your attention, you are so kind😊. Before that I reinstalled the virtual machine system and the problem no longer occurredπŸ˜…. My guess is that I accidentally changed the network configuration of the VM or docker. Now I meet a new problem. It seems that the app-edge-camera-management docker image is lost and i did not find the image in docker hub. lockofdockerimage

find-think-solve commented 4 months ago

service docker

jiekechoo commented 4 months ago

You should build the docker image app-camera-management:0.0.0-dev by yourself.

service docker

find-think-solve commented 4 months ago

You should build the docker image app-camera-management:0.0.0-dev by yourself.

service docker

Thank you for your suggestion sincerely 09484774 . I want to give it a try according to your suggestion. But the picture is invalid, could you re-upload the reference picture? I can’t see the picture here. 0943DB8E . I want to give it a try according to your suggestion. Could you re-upload the reference picture? I can’t see the picture here. !(https://github.com/edgexfoundry/device-onvif-camera/assets/57736570/99f8ce21-e823-4f7e-aea9-5c356a5dd12e)

jiekechoo commented 4 months ago

It's your picture that I just quote it. The application service named app-camera-management, you should build it to docker image app-camera-management:0.0.0-dev in your host environment. https://docs.edgexfoundry.org/3.1/examples/app-service-examples/camera-management/Ch-CameraManagement/#2-start-edge-video-analytics-microservice-running-for-inference

find-think-solve commented 4 months ago

It's your picture that I just quote it. The application service named app-camera-management, you should build it to docker image app-camera-management:0.0.0-dev in your host environment. https://docs.edgexfoundry.org/3.1/examples/app-service-examples/camera-management/Ch-CameraManagement/#2-start-edge-video-analytics-microservice-running-for-inference

Okay, I'll study the tutorial carefully. If there is any latest progress, I will give a feedback as soon as possible.

find-think-solve commented 4 months ago

It's your picture that I just quote it. The application service named app-camera-management, you should build it to docker image app-camera-management:0.0.0-dev in your host environment. https://docs.edgexfoundry.org/3.1/examples/app-service-examples/camera-management/Ch-CameraManagement/#2-start-edge-video-analytics-microservice-running-for-inference

Exciting news : I have successfully established the app according to your suggestion, and started the relevant container.😊 However, I visit localhost : 59750, it returned with ' message not found '. localhost:4000 is normal and "get" command of my Camera001 in the ui is valid.
containers ui get profiles not found

find-think-solve commented 4 months ago

@jiekechoo the situation of building app is shown in the picture, could you help me find the cause of Not Found. Thank you for your many guidance sincerely☺. build app