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

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

Open
find-think-solve opened this issue May 10, 2024 · 9 comments
Labels
question Further information is requested

Comments

@find-think-solve
Copy link

🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑
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.

@find-think-solve find-think-solve added the question Further information is requested label May 10, 2024
@jiekechoo
Copy link

@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
Copy link
Author

@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
Copy link
Author

service
docker

@jiekechoo
Copy link

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

service docker

@find-think-solve
Copy link
Author

find-think-solve commented May 13, 2024

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
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

@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

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

No branches or pull requests

2 participants