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

Command execution, device not found #117

Closed
fdrobnic opened this issue Sep 26, 2023 · 6 comments
Closed

Command execution, device not found #117

fdrobnic opened this issue Sep 26, 2023 · 6 comments

Comments

@fdrobnic
Copy link

I'm testing the command execution on the example docker setup and the NGSI-LD mode. The device is autoprovisioned and can be listed both on the Agent side and the Orion side. However, when I try to send a command to Orion, the error 500 is returned and the following appears in the log:

iot-agent-opcua-iotagent-opcua-1  | time=2023-09-26T13:32:27.149Z | lvl=DEBUG | corr=n/a | trans=n/a | op=IoTAgentNGSI.ContextServer-LD | from=n/a | srv=n/a | subsrv=n/a | msg=There was an error handling the update action: DeviceNotFound {
iot-agent-opcua-iotagent-opcua-1  |   name: 'DEVICE_NOT_FOUND',
iot-agent-opcua-iotagent-opcua-1  |   message: 'No device was found with id:urn:ngsi-ld:Device:age01_Car',
iot-agent-opcua-iotagent-opcua-1  |   code: 404
iot-agent-opcua-iotagent-opcua-1  | }. | comp=IoTAgent

The ids in the databases are indeed different. In the Agent database, it is "age01_Car" and in the Orion database, it is "urn:ngsi-ld:Device:age01_Car".

@manfredipist
Copy link
Collaborator

Hi @fdrobnic
Could you please provide the config.js and docker-compose.yaml files you use to run the test?
Thanks

@fdrobnic
Copy link
Author

Hi, both files attached.
conf.zip

@walterwootz
Copy link
Collaborator

Hello @fdrobnic , could you also provide docker-compose or docker run command you are using to run Orion LD?

@fdrobnic
Copy link
Author

Hi, here it is, together with the corresponding env file. Thank you.

conf_orion.zip

@walterwootz
Copy link
Collaborator

Hello @fdrobnic unfortunately this feature is not supported at the moment due to a missing feature on Orion LD (query forwarding). As you can see here this feature is planned for version 3.0.0 of Orion LD. We have already pushed this issue to the maintainer of Orion LD.

@fdrobnic
Copy link
Author

Thank you very much for your effort. We hope that the author will find some time to implement it as soon as possible.

@fdrobnic fdrobnic mentioned this issue Oct 13, 2023
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

3 participants