linagora/hublin

i got error when i run this order(docker run ......)

Closed this issue · 4 comments

i type this command 'docker run -it linagora/hublin:latest
but i got some problems about mongodb

Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
info: Meetings Core bootstraped, configured in production mode
Webserver listening on :: port 8080 (IPv6)
Webserver listening on :: port 8443 (IPv6)
info: Initializing conference events listener
info: WebRTC: Starting EasyRTC Server (v1.1.0) on Node (v6.9.5)
error: Failed to connect to MongoDB: failed to connect to server [db:27017] on first connect
info: WebRTC: EasyRTC Server Ready For Connections (v1.1.0)
info: Linagora Meetings is now started on node v6.9.5

then i exec this order cp config/db.json.sample config/db.json inside the container,but it not work,i got the same error too.
Can somebody help me out with this problem?Thanks a log!

Hi @detectiveHLH,

As described in documentation:

The linagora/hublin container is configured to get the mongodb connection from mongodb://db:27017 URL. You can modify the config/db.json file and adapt to use your own instance, or continue to use Docker and use one of the solutions below.

That mean you need to configure the config/db.json to point to your own MongoDB connection. Once you did it, restart the container then it should work.

By the way, you can use docker-compose, I think it's easier if you just want to try: https://github.com/linagora/hublin#docker-compose

@heroandtn3
Thanks a lot,i read the README file,and i did not make it.but after these days's efforts.I install mongodb successfully,and it can run OK,but i do not have time to try the same way in docker,I will try it later
Thanks!

Hi, glad that it works. If you try it with docker-compose, you will see it's much more simpler (just type docker-compose up then take a coffee). Anyway, I guess this issue can be closed, feel free to comment if you need further help.

@heroandtn3 Sorry,i got a little busy there days,i just notice your message,thank u,i will try it immediately