GithubHelp home page GithubHelp logo

Comments (8)

tonyespy avatar tonyespy commented on August 28, 2024

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.

cloudxxx8 avatar cloudxxx8 commented on August 28, 2024

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.

chr1shung avatar chr1shung commented on August 28, 2024

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.

tonyespy avatar tonyespy commented on August 28, 2024

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.

chr1shung avatar chr1shung commented on August 28, 2024

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.

tonyespy avatar tonyespy commented on August 28, 2024

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.

tonyespy avatar tonyespy commented on August 28, 2024

OK, my original problem is caused by the fact the binary device profile wasn't being copied to $SNAP_DATA.

from device-virtual-go.

tonyespy avatar tonyespy commented on August 28, 2024

Based on my previous comment, I'm closing this issue.

from device-virtual-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.