-
Notifications
You must be signed in to change notification settings - Fork 8
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
Timed out error uploading small test dataset #44
Comments
Looks like the webapp is unable to see the MongoDB server. How did you start the Docker containers? Did you use the provided docker-compose.yml? |
Yes, I used the provided docker-compose.yml with out changing anything. |
Are you starting it using the command line suggested at the top of that file? |
I did. I made some changes to the original docker-compose.yml based on a coworker's suggestions and we were able to get it to work. See the attached .yml and environment files. I added the .txt and removed the "." from the env file, which would normally be hidden so github would let me upload. The main thing we changed was adding the hostname and links instead of exposing the mango port on the host. I added bind mounts to a local index.jsp and images, but that was just to change some aesthetics. |
Thanks for sharing your solution. Using the .env file is indeed useful in the sense that it avoids having the MongoDB credentials in two places, with the drawback of needing to carry an extra file along. I find your other changes (using links) interesting because they allow to get rid of the docker0 workaround. From my understanding of the documentation you could just go with However, I still don't understand why you were having the issue in the first place. A problem that is likely to occur is when people launch the containers with some credentials, then later change those, and start again. What happens then is that since the MongoDB container creates its root user the first time it's launched, then it's there forever and changing those credentials in the config only affects the client (Tomcat) side which then is not in sync with the other container anymore... |
@GuilhemSempere and @ch728, when I tried the original compose file, I think the In addition, for any future readers, commenting out the Now that I think about it, maybe not exposing the mongodb port is why the |
I set up a local instance of Gigwa v2.5 using the docker option. I get the following error when I try to create a new database by uploading some data:
The text was updated successfully, but these errors were encountered: