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

Dockerfile Compilation Error on MongoDB Module Ubuntu 14.04 #228

Open
thesaadmemon opened this issue Jun 7, 2018 · 7 comments
Open

Dockerfile Compilation Error on MongoDB Module Ubuntu 14.04 #228

thesaadmemon opened this issue Jun 7, 2018 · 7 comments

Comments

@thesaadmemon
Copy link

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
Copy link
Author

@KamalGalrani Can you advise something?

@KamalGalrani
Copy link
Contributor

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
Copy link
Author

@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
Copy link
Contributor

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
Copy link
Author

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

@KamalGalrani Thanks for your help.

@thesaadmemon
Copy link
Author

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

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

@gorayni
Copy link

gorayni commented Jul 17, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants