Giter Club home page Giter Club logo

Comments (13)

ardan-bkennedy avatar ardan-bkennedy commented on August 10, 2024 1

I will run the project again shortly. Maybe I broke something in the past 24 hours.

from service.

ardan-bkennedy avatar ardan-bkennedy commented on August 10, 2024 1

You don't need value. Use my in-memory keystore.

from service.

ardan-bkennedy avatar ardan-bkennedy commented on August 10, 2024

Vault is very complicated. You have to start Vault, but it won't work until it's unsealed and inititalized. We decided to have the Sales-Api service do this in the initContainer. So, until the initContainer runs, Vault is useless. I believe we are using cluster level persisted storage for what we need to do to init the system and I would have expected that to help in the situation you are experiencing.

Beyond this information, I'm not sure.

from service.

nhaancs avatar nhaancs commented on August 10, 2024

Thanks. Are you experiencing the same situation? I'm not sure if this is a known issue of the project, or if have I done something wrong with my code.

from service.

ardan-bkennedy avatar ardan-bkennedy commented on August 10, 2024

The code is working. I did push changes if you want to run the latest.

from service.

nhaancs avatar nhaancs commented on August 10, 2024

Hi @ardan-bkennedy,

I pulled your latest code and started the cluster, everything was ok. But after I restarted my Docker Desktop, the dev-status command resulted as below:
Screenshot 2023-10-31 at 10 33 24

from service.

ardan-bkennedy avatar ardan-bkennedy commented on August 10, 2024

Having sleeping on it I think the problem might be the order docker is restarting the containers. It's critical that vault is started before sales and there is time between the two. I made some changes to the apply to test things out. I just start the observability services without waiting first, then I start the vault, database, wait, sales.

I always bring down the cluster every night, but even when I just put my machine to sleep I don't have issues. I am curious why you are restarting docker?

from service.

ardan-bkennedy avatar ardan-bkennedy commented on August 10, 2024

Having slept on it I think the problem might be the order docker is restarting the containers. It's critical that vault is started before sales and there is time between the two. I made some changes to the apply to test things out. I just start the observability services without waiting first, then I start the vault, database, wait, sales.

I always bring down the cluster every night, but even when I just put my machine to sleep I don't have issues. I am curious why you are restarting docker?

from service.

ardan-bkennedy avatar ardan-bkennedy commented on August 10, 2024

Having sleeping on it I think the problem might be the order docker is restarting the containers. It's critical that vault is started before sales and there is time between the two. I made some changes to the apply to test things out. I just start the observability services without waiting first, then I start the vault, database, wait, sales.

I always bring down the cluster every night, but even when I just put my machine to sleep I don't have issues. I am curious why you are restarting docker?

from service.

nhaancs avatar nhaancs commented on August 10, 2024

I don't think putting the machine to sleep will cause the issue. I only ran into this situation when I shut down my computer and then started it again to continue my work. In other words, this issue happens as my Docker gets restarted.
I clone the repository and develop my own project. So I don't want to start and delete the cluster too often because it takes time and I don't want old data in the database being reset.

from service.

ardan-bkennedy avatar ardan-bkennedy commented on August 10, 2024

Look at the changes to apply, this has sped up the time it takes to bring up the cluster.

I NEVER shut my machine down. Have you tried just putting your machine to sleep instead of shutting it down all the time?

I have a solution for the DB. You can run the database outside the cluster and keep the volume around.

Read the dev-database-external.yaml file.

from service.

nhaancs avatar nhaancs commented on August 10, 2024

Yes, I think an external database will work. Just wonder if is there anything that we can do with Vault instead.

from service.

nhaancs avatar nhaancs commented on August 10, 2024

Yes,thanks

from service.

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.