claritylab / lucida

Speech and Vision Based Intelligent Personal Assistant
Other
4.81k stars 881 forks source link

Dockerfile Compilation Error on MongoDB Module Ubuntu 14.04 #228

Open thesaadmemon opened 6 years ago

thesaadmemon commented 6 years ago

Hi,

I am compiling new Docker image of Lucida at Ubuntu 14.04. It gets stuck at the last step of ./install-mongodb.sh

Log: - Install file: "src/mongo/util/time_support.h" as "/usr/local/include/mongo/util/time_support.h" Chmod("/usr/local/include/mongo/util/time_support.h", 0644) Creating 'build/linux2/c++11_on/ssl/mongo/version.h' Install file: "build/linux2/c++11_on/ssl/mongo/version.h" as "/usr/local/include/mongo/version.h" Chmod("/usr/local/include/mongo/version.h", 0644) scons: done building targets. terminate called after throwing an instance of 'mongo::SocketException' what(): socket exception [FAILED_STATE] for localhost:27017 (127.0.0.1) failed Failed to install MongoDB and C++ driver The command '/bin/sh -c /bin/bash install_mongodb.sh' returned a non-zero code: 1

thesaadmemon commented 6 years ago

@KamalGalrani Can you advise something?

KamalGalrani commented 6 years ago

The docker version isn't maintained. Try the local build. Though the local build hasn't been maintained in a long time either but it should work

thesaadmemon commented 6 years ago

@KamalGalrani Local build works fine for me, but I'm trying to deploy the docker image in Kubernetes cluster. I think this is almost the last stage for docker compilation. Any valuable suggestion would be appreciated. Thank You.

KamalGalrani commented 6 years ago

In that case I would suggest you create a docker image from scratch. There had been many major changes to lucida after docker image was last updated. Finding those changes and updating dockerfile accordingly will be difficult.

@saijel can you have a look

thesaadmemon commented 6 years ago

I already tried to update the current Dockerfile from Scratch. I guess MongoDB is only causing problem.

@KamalGalrani Thanks for your help.

thesaadmemon commented 6 years ago

However, if I compile the particular file (./install_mongodb.sh) it succeeds.

Log: - ./install_mongodb.sh MongoDB and C++ driver installed

gorayni commented 6 years ago

I found that it is not a compilation problem, because the installCheck function inside install_mongodb.sh just checks that the MongoDB server is running. So you shoud add this line after line 26:

apt-get install -y mongodb-server

Additionally, you should replace

service mongod start

with

service mongodb start