edgexfoundry / edgex-examples

Apache License 2.0
51 stars 52 forks source link

feat: Migrate Camera Management example to V3 #214

Closed lenny-goodell closed 1 year ago

lenny-goodell commented 1 year ago

closes #194

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-examples/blob/main/.github/Contributing.md

PR Checklist

Please check if your PR fulfills the following requirements:

Testing Instructions

run non-secure EdgeX stack run make build run ./app-camera-management -cp -d -o Verify service starts without error.

ajcasagrande commented 1 year ago

We have a helper command in the makefile that is failing. Probably needs to be updated.

make run-app                                                                                                2 ✘ 
EDGEX_SECURITY_SECRET_STORE=false ./app-camera-management
level=INFO ts=2023-05-17T22:14:37.510039985Z app=app-camera-management source=service.go:490 msg="Starting app-camera-management 0.0.0 "
level=INFO ts=2023-05-17T22:14:37.510110514Z app=app-camera-management source=config.go:640 msg="Loading configuration file from res/configuration.yaml"
level=INFO ts=2023-05-17T22:14:37.510323194Z app=app-camera-management source=config.go:226 msg="Private configuration loaded from file with 0 overrides applied"
level=ERROR ts=2023-05-17T22:14:37.510677004Z app=app-camera-management source=messaging.go:45 msg="MessageBus configuration not set or missing from service's GetBootstrap() implementation"
level=ERROR ts=2023-05-17T22:14:37.510690416Z app=app-camera-management source=factory.go:43 msg="App Service initialization failed: boostrapping failed"
error: unable to create new app service app-camera-management!
make: *** [Makefile:29: run-app] Error 255
ajcasagrande commented 1 year ago

Error with the config of evam url, or parsing:

level=ERROR ts=2023-05-17T22:18:26.229103635Z app=app-camera-management source=app.go:56 msg="Unable to query EVAM pipeline statuses. Is EVAM running? GET request to query EVAM pipeline statuses failed: fail to parse baseUrl -> parse \"http://localhost:8080pipelines/status\": invalid port \":8080pipelines\" after host"
level=ERROR ts=2023-05-17T22:18:26.233954785Z app=app-camera-management source=app.go:61 msg="no devices found: no devices registered yet for the device services device-onvif-camera or device-usb-camera"
ajcasagrande commented 1 year ago

image

/home/anthony/go/pkg/mod/github.com/edgexfoundry/go-mod-core-contracts/v3@v3.0.0-dev.41/clients/http/utils/common.go

https://github.com/edgexfoundry/go-mod-core-contracts/commit/1450102767c7ab9eabaf8a65ea6eab7879850063#diff-0140c618055f750aa9a4d186041e16ad2316f1d47bf2ee16f0810a0489a3c5faR78

Appears to have been broken via https://github.com/edgexfoundry/go-mod-core-contracts/pull/806

lenny-goodell commented 1 year ago

We have a helper command in the makefile that is failing. Probably needs to be updated.

Yep, needed the -cp -d flags. Added

lenny-goodell commented 1 year ago

Error with the config of evam url, or parsing:

I think the config value now need a trailing slash. Added it.

vyshali-chitikeshi commented 1 year ago

Not able to run edge-analytics and saample app successfully, attached log edge_analytics_run_error.txt sample_app_run_error.txt

ajcasagrande commented 1 year ago

@lenny-intel looks like readme links and examples needs to be updated from toml to yaml

lenny-goodell commented 1 year ago

looks like readme links and examples needs to be updated from toml to yaml

Yep, dang embedded TOML. On it.