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

Error in sudo ./docker.sh build #179

Closed
pratyakshs opened this issue Jun 18, 2015 · 13 comments
Closed

Error in sudo ./docker.sh build #179

pratyakshs opened this issue Jun 18, 2015 · 13 comments

Comments

@pratyakshs
Copy link
Contributor

It fails in with the following:
Setting up zookeeper (3.4.5+dfsg-1) ...
chfn: PAM: System error
adduser: /usr/bin/chfn -f ZooKeeper zookeeper' returned error code 1. Exiting.
dpkg: error processing package zookeeper (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of zookeeperd:
zookeeperd depends on zookeeper (= 3.4.5+dfsg-1); however:
Package zookeeper is not configured yet.

dpkg: error processing package zookeeperd (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
zookeeper
zookeeperd
E: Sub-process /usr/bin/dpkg returned an error code (1)

Here is the full output: https://gist.github.com/pratyakshs/f498206cf6454bd5a07a

Host OS:

$ uname -a
Linux pratyaksh 3.16.0-38-generic # 52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty

Docker version:

$ docker --version
Docker version 1.0.1, build 990021a

@kormat
Copy link
Contributor

kormat commented Jun 18, 2015

It would be useful to have the whole output for debugging

@kormat
Copy link
Contributor

kormat commented Jun 18, 2015

Also to know the environment you're running this in - host os/release, docker version, etc.

@pratyakshs
Copy link
Contributor Author

@kormat Edited the original post

@kormat
Copy link
Contributor

kormat commented Jun 18, 2015

Ok, this is weird. Try this - run the docker image that the error happened in:
sudo docker run -i -t --rm --privileged ee6546e8baca

And do apt-get install zookeeperd, and see what happens.

@kormat
Copy link
Contributor

kormat commented Jun 18, 2015

Hmm. You have a different (newer) ubuntu 14.04 base image. I've pulled it down here, and rebuilding.

@kormat
Copy link
Contributor

kormat commented Jun 18, 2015

Damn, still can't reproduce it here

@pratyakshs
Copy link
Contributor Author

sudo docker run -i -t --rm --privileged ee6546e8baca gives me:

Unable to find image 'ee6546e8baca' locally
Pulling repository ee6546e8baca
2015/06/18 14:45:26 HTTP code: 404

However, using 9a8e643d5473 works (from Step 12). And even ./scion.sh deps pkgs works too!

@mskd12
Copy link
Contributor

mskd12 commented Jun 18, 2015

Even I am getting this error
Host OS:

uname -a
Linux mskd96-ThinkCentre-M91p 3.16.0-41-generic # 55~14.04.1-Ubuntu SMP
Sun Jun 14 18:43:36 UTC 2015
x86_64 x86_64 x86_64 GNU/Linux

Docker version is same

@kormat
Copy link
Contributor

kormat commented Jun 18, 2015

Huh, ok. What about if you run step 13 manually in the image from step 12?

@pszal
Copy link
Contributor

pszal commented Jun 18, 2015

Just FYI, works fine for me...

@pratyakshs
Copy link
Contributor Author

@kormat Yes, that works

@pratyakshs
Copy link
Contributor Author

This is most likely due to a bug in later versions of the kernel. It is discussed here: moby/moby#6345 switched to linux-image-3.13.0-55-generic and everything works fine!
Closing this issue.

@kormat
Copy link
Contributor

kormat commented Jun 19, 2015

Oh wow. Good find!

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

4 participants