-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Container cannot connect to Upstart #1024
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
Comments
You can workaround this by doing:
|
These are actually 2 separate issues:
On Tue, Jun 25, 2013 at 5:18 PM, Guillaume J. Charmes <
|
Alright, using the trick given by @creack solved my problem. |
Same problem here, I can confirm that the workaround from @creack worked fine, though it feels a bit hacky |
you may have a look to #2276. |
Hello, I'm having the same problem. I am running an Ubuntu 14.04 Virtual Machine, and inside that I installed Docker. I hit the issue with the start command failing to connect to upstart. I tried the above workaround from Decker console but no luck, the second command is failing (also tried to force it with -sf or -sfn flag but even though no error on console, no real effect in solving the issue): root@c396577f9f09:/# dpkg-divert --local --rename --add /sbin/initctl root@c396577f9f09:/# ln -s /bin/true /sbin/initctl Any hint? Thansk! |
@vplessi try |
@sameersbn I tried that -sf flag already, check my previous message! The command does not give an error on console, but still the issue with Upstart is there and my processes do not start. |
@vplessi Are you sure you tried ln -sf ? According to your previous comment you only tried -s (the -f tells it to overwrite the target) |
So I was able on a Ubuntu distro to run the commands above as a work around, so now my machine will provision correctly the first time. However, now I can't login and see my desktop environment on the machine. Using VirtualBox as the provider and Ubuntu as the distro. Do I need to unlink the symbolic link after successfully loading or just restore the debian package to it's previous value (not sure how to do that also, so commands would be nice, please =D )? |
OK, actually spent an hour looking into it after all, and it seem like just reinstalling the upstart service fixes not being able to see my desktop environment anymore. sudo apt-get --reinstall install upstart I had been trying this way to avoid reinstalling that package. Can anyone tell me what I"m doing wrong here? sudo dpkg-diver --local --remove /sbin/initctl
sudo rm /sbin/initctl |
Is there an equivalent of this in RHEL. I am facing a similar issue when creating Chef Server docker image but I couldn't find dpkg-diver --local --remove /sbin/initctl equivalent for RHEL that works |
I've got the exact same problem as @swatiswjain with a Chef Server inside Docker. |
@Layke
Instead? EDIT: What I did which made by server boot:
Not sure if the rename is needed.
Thanks to: https://www.nesono.com/node/368#comment-551780052 |
Avoid importing "testing" in externally-facing code
Because Docker replaces the default /sbin/init with its own, there's no way to run the Upstart init inside a Docker container. However this causes some problems: some Debian packages try to communicate with Upstart, and will fail to install if this fails. For example the "at" package.
The text was updated successfully, but these errors were encountered: