eventhub icon indicating copy to clipboard operation
eventhub copied to clipboard

Running the EventHub.DbMigrator project did not create and seed the database

Open justinfraz opened this issue 2 years ago • 5 comments

justinfraz avatar Aug 23 '23 23:08 justinfraz

Did you follow the How to run? section in the README.md file? Before running the db migrator, you should run the docker images.

If you did the steps as stated in the documentation, please provide some details about your problem.

EngincanV avatar Aug 25 '23 07:08 EngincanV

Yes, I have performed these steps before running the db migrator project:

Execute dotnet build /graphBuild command in the root folder of the solution. Execute etc/docker/up.ps1 to run the depending services.

justinfraz avatar Aug 25 '23 07:08 justinfraz

I tried just before running the DbMigrator project and it ran as expected:

image

You can check your configurations, ensure docker containers are up and running, and also ensure Redis or Postgresql are not running on your PC locally.

EngincanV avatar Aug 25 '23 08:08 EngincanV

But when I run this command in the up.ps1 file:

docker-compose -f docker-compose.infrastructure.yml -f docker-compose.infrastructure.override.yml up -d --remove-orphans

It starts the docker containers but it also starts Redis or Postgresql:

up ps1 output

justinfraz avatar Aug 25 '23 08:08 justinfraz

Here are some new error messages from the output window when I run the db migrator project:

db migrator output1

db migrator output2

justinfraz avatar Aug 25 '23 08:08 justinfraz