While debugging kuiper in the snap, I wanted to poke at the kuiper docker deployment, so I started up the nightly build (docker-compose-nexus-redis-no-secty.yml).
When device-virtual finally starts, it logs the following errors when trying to read device profiles from core-metadata:
edgex-device-virtual | level=INFO ts=22:02:20 app=device-virtual source=service.go:80 msg="Device Service device-virtual doesn't exist, creating a new one"
edgex-core-metadata | level=ERROR ts=22:02:20 app=edgex-core-metadata source=handler.go:47 msg="Item not found"
edgex-device-virtual | level=INFO ts=22:02:20 app=device-virtual source=service.go:137 msg="Addressable device-virtual doesn't exist, creating a new one"
edgex-device-virtual | level=INFO ts=22:02:20 app=device-virtual source=autodiscovery.go:19 msg="AutoDiscovery stopped: disabled by configuration"
edgex-device-virtual | level=ERROR ts=22:02:20 app=device-virtual source=profiles.go:162 msg="Error when getting configuration from Core Metadata: 404 - 404 page not found\n "
edgex-device-virtual | level=ERROR ts=22:02:20 app=device-virtual source=profiles.go:162 msg="Error when getting configuration from Core Metadata: 404 - 404 page not found\n "
edgex-device-virtual | level=ERROR ts=22:02:20 app=device-virtual source=profiles.go:162 msg="Error when getting configuration from Core Metadata: 404 - 404 page not found\n "
edgex-device-virtual | level=ERROR ts=22:02:20 app=device-virtual source=profiles.go:162 msg="Error when getting configuration from Core Metadata: 404 - 404 page not found\n "
edgex-device-virtual | level=ERROR ts=22:02:20 app=device-virtual source=profiles.go:162 msg="Error when getting configuration from Core Metadata: 404 - 404 page not found\n "
which seemed to work, although I didn't see any results when I queried the mqtt broker like this (see the section Monitor analysis result):
edgex-device-virtual | level=INFO app=device-virtual source=device.go:52 msg="Added device 78ef4914-740e-4329-9633-5984e97b444e"
edgex-device-virtual | 2020/04/21 22:02:20 http: panic serving 172.21.0.8:60370: runtime error: invalid memory address or nil pointer dereference
edgex-device-virtual | goroutine 449 [running]:
edgex-device-virtual | net/http.(*conn).serve.func1(0xc00050c000)
edgex-device-virtual | /usr/local/go/src/net/http/server.go:1767 +0x139
edgex-device-virtual | panic(0x9aea40, 0xeb2250)
edgex-device-virtual | /usr/local/go/src/runtime/panic.go:679 +0x1b2
edgex-device-virtual | github.com/edgexfoundry/device-sdk-go/internal/autoevent.(*manager).StopForDevice(0x0, 0xc0000aa820, 0x15)
edgex-device-virtual | /go/pkg/mod/github.com/edgexfoundry/[email protected]/internal/autoevent/manager.go:94 +0x43
edgex-device-virtual | github.com/edgexfoundry/device-sdk-go/internal/autoevent.(*manager).RestartForDevice(0x0, 0xc0000aa820, 0x15)
edgex-device-virtual | /go/pkg/mod/github.com/edgexfoundry/[email protected]/internal/autoevent/manager.go:79 +0x5d
edgex-device-virtual | github.com/edgexfoundry/device-sdk-go/internal/handler/callback.handleDevice(0xc00050a040, 0x4, 0xc0000262a0, 0x24, 0x9a5940, 0xc0001f6080)
edgex-device-virtual | /go/pkg/mod/github.com/edgexfoundry/[email protected]/internal/handler/callback/device.go:69 +0x193c
edgex-device-virtual | github.com/edgexfoundry/device-sdk-go/internal/handler/callback.CallbackHandler(0xc0001e84c8, 0x6, 0xc0000262a0, 0x24, 0xc00050a040, 0x4, 0x10, 0xc0002c2878)
edgex-device-virtual | /go/pkg/mod/github.com/edgexfoundry/[email protected]/internal/handler/callback/general.go:25 +0x3af
edgex-device-virtual | github.com/edgexfoundry/device-sdk-go/internal/controller.callbackFunc(0xb39880, 0xc0000d41c0, 0xc0003e4b00)
edgex-device-virtual | /go/pkg/mod/github.com/edgexfoundry/[email protected]/internal/controller/restfuncs.go:101 +0x2cd
edgex-device-virtual | net/http.HandlerFunc.ServeHTTP(0xa858c0, 0xb39880, 0xc0000d41c0, 0xc0003e4b00)
edgex-device-virtual | /usr/local/go/src/net/http/server.go:2007 +0x44
edgex-device-virtual | github.com/edgexfoundry/device-sdk-go/internal/controller/correlation.OnRequestBegin.func1(0xb39880, 0xc0000d41c0, 0xc0003e4b00)
edgex-device-virtual | /go/pkg/mod/github.com/edgexfoundry/[email protected]/internal/controller/correlation/middleware.go:48 +0xdd
edgex-device-virtual | net/http.HandlerFunc.ServeHTTP(0xc0001f6020, 0xb39880, 0xc0000d41c0, 0xc0003e4b00)
edgex-device-virtual | /usr/local/go/src/net/http/server.go:2007 +0x44
edgex-device-virtual | github.com/edgexfoundry/device-sdk-go/internal/controller/correlation.OnResponseComplete.func1(0xb39880, 0xc0000d41c0, 0xc0003e4b00)
edgex-device-virtual | /go/pkg/mod/github.com/edgexfoundry/[email protected]/internal/controller/correlation/middleware.go:34 +0xa1
edgex-device-virtual | net/http.HandlerFunc.ServeHTTP(0xc0001f6040, 0xb39880, 0xc0000d41c0, 0xc0003e4b00)
edgex-device-virtual | /usr/local/go/src/net/http/server.go:2007 +0x44
edgex-device-virtual | github.com/edgexfoundry/device-sdk-go/internal/controller/correlation.ManageHeader.func1(0xb39880, 0xc0000d41c0, 0xc0003e4a00)
edgex-device-virtual | /go/pkg/mod/github.com/edgexfoundry/[email protected]/internal/controller/correlation/middleware.go:27 +0x1e7
edgex-device-virtual | net/http.HandlerFunc.ServeHTTP(0xc0001f6060, 0xb39880, 0xc0000d41c0, 0xc0003e4a00)
edgex-device-virtual | /usr/local/go/src/net/http/server.go:2007 +0x44
edgex-device-virtual | github.com/gorilla/mux.(*Router).ServeHTTP(0xc000142540, 0xb39880, 0xc0000d41c0, 0xc0003e4500)
edgex-device-virtual | /go/pkg/mod/github.com/gorilla/[email protected]/mux.go:212 +0xe2
edgex-device-virtual | net/http.serverHandler.ServeHTTP(0xc0000d40e0, 0xb39880, 0xc0000d41c0, 0xc0003e4500)
edgex-device-virtual | /usr/local/go/src/net/http/server.go:2802 +0xa4
edgex-device-virtual | net/http.(*conn).serve(0xc00050c000, 0xb3af80, 0xc00013a100)
edgex-device-virtual | /usr/local/go/src/net/http/server.go:1890 +0x875
edgex-device-virtual | created by net/http.(*Server).Serve
edgex-device-virtual | /usr/local/go/src/net/http/server.go:2928 +0x384