Skip to content

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

Open

Description

@justinfraz
No description provided.

Activity

  1. EngincanV commented on Aug 25, 2023

    @EngincanV
    Member

    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.

  2. justinfraz commented on Aug 25, 2023

    @justinfraz
    Author

    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.

  3. EngincanV commented on Aug 25, 2023

    @EngincanV
    Member

    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.

  4. justinfraz commented on Aug 25, 2023

    @justinfraz
    Author

    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

  5. justinfraz commented on Aug 25, 2023

    @justinfraz
    Author

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

    db migrator output1

    db migrator output2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions