Comments (8)
I just tried the latest (as of today's developer-scripts) docker-compose-nexus-redis compose file and device-virtual is failing even earlier than in the snap:
ERROR app=device-virtual source=init.go:112 msg="service dependency Data checking time out"
ERROR app=device-virtual source=init.go:112 msg="service dependency Metadata checking time out"
error: checking required dependencied services failed
INFO app=device-virtual source=httpserver.go:106 msg="Web server shutting down"
INFO app=device-virtual source=httpserver.go:108 msg="Web server shut down"
INFO app=device-virtual source=httpserver.go:97 msg="Web server stopped"
from device-virtual-go.
may I know which compose file you are using? it looks like the core services did start up or can't be reached.
from device-virtual-go.
For now the latest docker-compose-nexus-redis-no-secty works well. the secty one, I still got the following error which is similar to edgexfoundry/edgex-go#2516
Couldn't register to metadata service: 500 - Could not dial Redis: ERR invalid password
level=ERROR ts=2020-04-27T15:55:12.0265664Z app=device-virtual source=service.go:86 msg="DeviceServicForName failed: 500 - Could not dial Redis: ERR invalid password\n"
from device-virtual-go.
may I know which compose file you are using? it looks like the core services did start up or can't be reached.
docker-compose-nexus-redis today...
from device-virtual-go.
I just tried the latest (as of today's developer-scripts) docker-compose-nexus-redis compose file and device-virtual is failing even earlier than in the snap:
ERROR app=device-virtual source=init.go:112 msg="service dependency Data checking time out" ERROR app=device-virtual source=init.go:112 msg="service dependency Metadata checking time out" error: checking required dependencied services failed INFO app=device-virtual source=httpserver.go:106 msg="Web server shutting down" INFO app=device-virtual source=httpserver.go:108 msg="Web server shut down" INFO app=device-virtual source=httpserver.go:97 msg="Web server stopped"
sometimes it took longer for the device service to do the health check on coredata and core-metadata (no matter via ping api or registry), and it usually because core services are also waiting for its dependency service, for example I got following logs in coredata:
level=INFO ts=2020-04-27T16:07:17.8910683Z app=edgex-core-data source=secret.go:67 msg="Reading secret store configuration and authentication token"
level=INFO ts=2020-04-27T16:07:17.8959305Z app=edgex-core-data source=secret.go:73 msg="Attempting to create secretclient"
level=WARN ts=2020-04-27T16:07:17.9440488Z app=edgex-core-data source=secret.go:82 msg="Retryable failure while creating SecretClient: HTTP response with status code 403, message: failed to lookup token"
and it retried like 6~7 times and finally succeed, during this period the device service exceed its connectionretries limit.
I think in this case we have no choice but to manually restart device-virtual..
from device-virtual-go.
For now the latest docker-compose-nexus-redis-no-secty works well. the secty one, I still got the following error which is similar to edgexfoundry/edgex-go#2516
Couldn't register to metadata service: 500 - Could not dial Redis: ERR invalid password level=ERROR ts=2020-04-27T15:55:12.0265664Z app=device-virtual source=service.go:86 msg="DeviceServicForName failed: 500 - Could not dial Redis: ERR invalid password\n"
Looks like you may have some old images cached on your system. I'd recommend delete any cached images and start from a fresh developer-scripts. The error that your seeing indicates that you may not have all the update security bits required to use redis securely.
from device-virtual-go.
OK, my original problem is caused by the fact the binary device profile wasn't being copied to $SNAP_DATA.
from device-virtual-go.
Based on my previous comment, I'm closing this issue.
from device-virtual-go.
Related Issues (20)
- Remove retry related items and update secret path from SecretStore config
- Error retrieving array value after PUT command
- [Device Virtual] Adjust MessageBus PublishTopicPrefix to be unique to Device Services
- [Device Virtual] Enable using MessageBus as default
- Add Changelog for Ireland release
- When enable UpdateLastConnected the Set command doesn't work as expected
- Why are devices and services automatically generated ? HOT 2
- Clean up README
- Changing the frequency of messages generated by device-virtual HOT 4
- In-memory SQL seems like overkill
- Device-virtual experiences issues with autoevent error HOT 5
- device-virtual failed device validation and doesn't produce readings since edgex-go tag v2.2.0-dev.35 HOT 6
- Security: Implement CGO binary hardening
- Add "make lint" target and add to "make test" target HOT 1
- Upgrade device sdk version to include the new metrics and reading unit feature
- Got error "Failed to subscribe internal command request" while deploying device-virtual HOT 5
- Device-virtual-go getting killed because of OOM. HOT 10
- Replace the deprecated function rand.Seed HOT 4
- Change configuration and devices files format to YAML
- [Device Virtual] Consume breaking changes in device-sdk-go dev.61 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from device-virtual-go.