Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Couldn't find mongodb url" Error when importing sample data using setup.ts in docker installation #1436

Closed
vasujain275 opened this issue Nov 30, 2023 · 5 comments · Fixed by #1439
Assignees
Labels
bug Something isn't working

Comments

@vasujain275
Copy link
Contributor

Describe the bug
When we follow the docker installation method to set talawa API locally, we first run "npm run setup" if we choose docker installation then the 6th option that is Import Sample Data Show Erorr - "Couldn't find mongodb url"

To Reproduce
Steps to reproduce the behavior:

  1. Clone Talawa API Repo.
  2. cd to repo dir and run "npm run setup"
  3. Select Yes to Docker Installation Option
  4. Select Yes to Import Sample Data Option

Expected behavior
If setup.ts detects docker installation it should skip the Import sample data option and it can be imported by used manually after running the docker container of MongoDB

Actual behavior
Shows error - "Couldn't find mongodb url" when Do you want to import sample data? Is selected to Yes

Screenshots
image

Additional details
No Additional Details

@vasujain275 vasujain275 added the bug Something isn't working label Nov 30, 2023
Copy link

Congratulations on making your first Issue! 🎊 If you haven't already, check out our Contributing Guidelines and Issue Reporting Guidelines to ensure that you are following our guidelines for contributing and making issues.

@github-actions github-actions bot added the unapproved Unapproved for Pull Request label Nov 30, 2023
@palisadoes palisadoes removed the unapproved Unapproved for Pull Request label Nov 30, 2023
@palisadoes
Copy link
Contributor

Do you want to work on this?

@vasujain275
Copy link
Contributor Author

Do you want to work on this?

Yes

@vasujain275
Copy link
Contributor Author

I think the best solution would be to skip the importing data step in setup.ts if the docker installation is detected because the mongo container is supposed to run after the setup.ts is completed, developer can manually import sample data after he runs the docker containers. I will add that to the installation documentation explicitly to manually import sample data after running docker-compose.

@palisadoes
Copy link
Contributor

Go ahead. It's assigned to you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants