AI Bridge v1.7.2 won't register

I’m new with AI Bridge and I downloaded all the stuff from NGC portal. I want to use it with Docker compose and I set the register parameter for a self-registration scenario as following:

File register.graphql

{

url: “192.168.10.26”

username: “xxxx”

password: “*****”

}

Xprotect has a basic user xxxx with pwd ****.

After I had pulled the resources and run docker-compose up -d command, all the containers started but the aibridge-init-1 never stops, as expected, loggin an error:

“Applying registration using input from ‘/root/bin/config/register.graphql’ failed (will retry in 5 seconds) : Unexpected error.”

I also tried using the api/bridge/graphql service following the doc examples.

mutation{

register(input: {

url: “http://192.168.10.26

username: “xxxx”

password: “******”

apps: [ {

id: “27a6bc9a-0833-46c6-958e-19da4ee6d9e5”

name: “Traffic Analysis”

description: “Analyze traffic detect cars that are speeding”

version: “1.0.0”

manufacturer : {

id: "1291c2a7-0c92-4733-a555-2867952cbaa7"

name: "Milestone Systems A/S"

}

eventTopics: [ {

name: "speeding"

description: "Speeding detection"

eventFormat: ANALYTICS\_EVENT

} ],

metadataTopics: [ {

name: "vehicles"

description: "Detected and tracked cars"

metadataFormat: ONVIF\_ANALYTICS

} ]

} ]

}) {

id

}

}

but also in this case I get a generic error :

{

“errors”: [

{

“message”: “Unexpected error.”,

“locations”: [

{

 "line": 2,

 "column": 3

}

],

“path”: [

"register"

]

}

],

“data”: {

“register”: null

}

}

Could anyone give me some hint?

Thank you

Gianluca

Hello Gianluca,

At first sight I’d say you need to provide an actual URL instead of an IP address in the register.graphql file, but, as you mentioned that it fails as well using the mutation, where you are using an actual URL, it makes me think that the problem is something different.

To guide you a little bit more, I’d like to ask you a few questions:

  • What version of XProtect are you connecting to?
  • Can you share the logs of these containers while trying to either register by the init container or the GrahpQL mutation?
    • connector
    • webservice
    • init

With this information we may be able to help tou you a bit more.

Regards,

Fer

Hello Fernando,

thank you for answering me. In attachment you can find the three log files generated in a self-registration scenario with the following register.graphql file

{

url: “http://192.168.10.26

username: “xxxx”

password: “*****”

}

I’m using Xprotect 2024 R2 v24.2b build 13454

Best regards

Gianluca

Hi Gianluca!

Thanks for sharing this new info.

In the connector container logs, I can see there’s a line that writes, among other details:

“Error adding endpoint: 500 Internal Server Error - VMO61008: You do not have sufficient permissions to complete the operation.”

The only scenario I can see that connector throws that error is when the user provided has no admin privileges. Can you please confirm and ensure the XProtect user “xxxx” has these permissions? It needs to be added as an admin role.

I’ll be waiting for your confirmation. Happy new year!

Kind regards,

Fer

Hi Fernando,

your hypothesis was correct. I created a basic user dedicated to the AI Bridge connection but I missed adding it to the administrators role. Actually I’m quite new to XProcted.

Thank you for your support!

Best refgards

Gianluca

Ciao Gianluca,

Glad to read this was the issue and that now is solved.

Nothing to be sorry. Do not hesitate reaching out again if you need it.

Salutti,

Fer