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

Problems when running from inside a git repo #378

Open
johann-petrak opened this issue Jul 7, 2023 · 2 comments
Open

Problems when running from inside a git repo #378

johann-petrak opened this issue Jul 7, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@johann-petrak
Copy link

Apparently, running teamware from inside an unrelated git repo can cause problems. This should not happen as having scripts for doing this might well be part of some NLP-project in a git repo.

In my case, the problem was that the db password for the "gate" user was considered to be wrong. So the error is rather surprising and people may not consider being inside the git repo as the cause at all.

Also and possibly related, having certain environment variables set could cause troubles. This should also be avoided, unless the env variable starts with TEAMWARE_ or similar. All other env variabels which could cause trouble should get unset in the scripts used (or a script to do that and which should be the recommended way to do things should get created).

@johann-petrak johann-petrak added the bug Something isn't working label Jul 7, 2023
@twinkarma
Copy link
Collaborator

Thanks for reporting this @johann-petrak . Can I get more details on this?

  • Are you running the app through docker or on top of conda/virtualenv?
  • Are you trying to launch the app from outside of the repository's folder?
  • And does it still run properly when you move down into this repository's folder running it from there instead?

Also agree that we should revisit how our environment variables are named and managed. I think prefixing everything with TEAMWARE_ is a good idea.

@johann-petrak
Copy link
Author

I installed teamware using the download get-teamware.sh script on March 5th 2023 script and then followed the installation steps, starting with docker compose up. Unfortunately I cannot remember much about this any more, only that @ianroberts helped me with finding the problem and the solution back than was to move out of the git repo.
So I did it all outside, both the original generation of the yml file via get-teamware.sh and starting teamwire which worked.

With this issue I just wanted to make sure that this is not forgotten if it has not been addressed in the meantime. @ianroberts probably knows more about what might be going on?

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

No branches or pull requests

2 participants