I believe that there is an issue with the default Docker build integration with Mongo.
After using the Docker instructions found at https://openusp.org/docs/manual/installation/, the images and containers appear to build cleanly and start as expected.
However, when I run "cli" for the first time, I see the error
$ cli
2025/01/13 23:19:37 Cli Config params: {apiServerAddr:http://openusp-apiserver:8081 stompAddr: agentId:os::012345-000000000000 histFile:history connTimeout:10000000000 logSetting:all authName:cli authPasswd:admin}
OpenUsp: 2025/01/13 23:19:37 rest.go:298: Sending GET to: http://openusp-apiserver:8081/get/params/os::012345-000000000000/Device.DeviceInfo.
OpenUsp: 2025/01/13 23:19:37 rest.go:322: HTTP Status: 500 Internal Server Error
OpenUsp: 2025/01/13 23:19:37 rest.go:325: HTTP Error Msg: mongo: no documents in result
OpenUsp: 2025/01/13 23:19:37 rest.go:128: Error in RESt Read, err mongo: no documents in result
OpenUsp: 2025/01/13 23:19:37 agent.go:230: RestErr: mongo: no documents in result
OpenUsp: 2025/01/13 23:19:37 cli.go:92: Could not set agent information: mongo: no documents in result
OpenUsp: 2025/01/13 23:19:37 cli.go:94: CLI version: 1.0.2023-12-01.18:27:28
**************************************************************
OpenUsp Cli
**************************************************************
OpenUsp-Cli>>
I then tried
OpenUsp-Cli>> show agent all_ids
OpenUsp: 2025/01/13 23:22:53 utils.go:64: args: [all_ids]
OpenUsp: 2025/01/13 23:22:53 utils.go:65: ArgLen: 1
OpenUsp: 2025/01/13 23:22:53 utils.go:96: args: all_ids
OpenUsp: 2025/01/13 23:22:53 utils.go:151: RegexPath: Device\.LocalAgent\., DmPath: Device.LocalAgent. InstPath: Device.LocalAgent.
OpenUsp: 2025/01/13 23:22:53 utils.go:152: RootPath: Device.LocalAgent., level: 1 Cmd:
OpenUsp: 2025/01/13 23:22:53 utils.go:153: Params: map[]
OpenUsp: 2025/01/13 23:22:53 utils.go:331: RegexPath: Device\.LocalAgent\., DmPath: Device.LocalAgent. InstPath: Device.LocalAgent.
OpenUsp: 2025/01/13 23:22:53 rest.go:298: Sending GET to: http://openusp-apiserver:8081/get/params/os::012345-000000000000/Device.LocalAgent.
OpenUsp: 2025/01/13 23:22:53 rest.go:322: HTTP Status: 500 Internal Server Error
OpenUsp: 2025/01/13 23:22:53 rest.go:325: HTTP Error Msg: mongo: no documents in result
OpenUsp: 2025/01/13 23:22:53 rest.go:128: Error in RESt Read, err mongo: no documents in result
OpenUsp: 2025/01/13 23:22:53 utils.go:334: Err: mongo: no documents in result
mongo: no documents in result
OpenUsp-Cli>>
And then I tried
OpenUsp-Cli>> set agent cli-id os::012345-02420A050007
Agent EndpointId set to: os::012345-02420A050007
OpenUsp: 2025/01/13 23:25:52 rest.go:298: Sending GET to: http://openusp-apiserver:8081/get/params/os::012345-02420A050007/Device.DeviceInfo.
OpenUsp: 2025/01/13 23:25:52 rest.go:322: HTTP Status: 500 Internal Server Error
OpenUsp: 2025/01/13 23:25:52 rest.go:325: HTTP Error Msg: mongo: no documents in result
OpenUsp: 2025/01/13 23:25:52 rest.go:128: Error in RESt Read, err mongo: no documents in result
OpenUsp: 2025/01/13 23:25:52 agent.go:230: RestErr: mongo: no documents in result
OpenUsp-Cli>>
where os::012345-02420A050007 is the ID of the openusp-agent container (which appears to be running correctly).
I believe that there is an issue with the default Docker build integration with Mongo.
After using the Docker instructions found at https://openusp.org/docs/manual/installation/, the images and containers appear to build cleanly and start as expected.
However, when I run "cli" for the first time, I see the error
I then tried
And then I tried
where os::012345-02420A050007 is the ID of the openusp-agent container (which appears to be running correctly).