medialab / hyphe

Websites crawler with built-in exploration and control web interface
http://hyphe.medialab.sciences-po.fr/demo/
GNU Affero General Public License v3.0
329 stars 59 forks source link

in:install ERROR: Cannot connect to mongoDB [SOLVED] #394

Closed gbousqu closed 3 years ago

gbousqu commented 3 years ago

Hello, I'm new to docker and github and tried to install hyphe on a windows 10 pc first. I installed docker and github and then follow the required steps to install hyphe. $ docker-compose pull > Ok. But $docker-compose up > failed : image If I don't succeed I'll try on my Ubuntu 18.04 server. But first I'd like to understand. Thank you.

boogheta commented 3 years ago

Hello, It seems like MongoDB does not want to start within its Docker container for some reason which does not appear in your logs. It might be due to an evolution in the underlying containers, which we actually changed in the latest release I just published? So may I ask you to retry after pulling the containers again?

gbousqu commented 3 years ago

thank you for the quick answer. I'll retry it tomorrow, from the beginning.

gbousqu commented 3 years ago

I removed the docker container hyphe, deleted the hyphe directory, then reinstalled from the beginning : git clone (...) , docker-composer pull (ok), docker-compose up and got ... a different error log : image the config.json doesn't exits in conf directory, there is just the config.json.example file.

boogheta commented 3 years ago

Nope it's actually the same log, with just minor differences. So basically the mongodb service does not want to start on your machine. It may be related to the kernel used by Windows to emulate linux containers which would be too recent (like in issue #377) Could you try to edit docker-compose.yml and change all the way at the end the line "mongo:3.0" into "mongo:3.2" and retry?

ralphverwegen commented 3 years ago

worked for me. At first it wouldn't recognize the new file as a .yml file, but after copying and editing the file name a couple of times, everything took off. Thank you @boogheta

gbousqu commented 3 years ago

I just tried your solution @boogheta and it worked like a charm Thank you very much.

boogheta commented 3 years ago

Cool, thanks for both of your feedbacks, this confirms we shall migrate mongo version for future releases as discussed in #377, although this will break existing corpuses, so I guess this will for version 2.0.