Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

After a while container will not start anymore #12

Open
Franselbaer opened this issue Feb 17, 2015 · 13 comments
Open

After a while container will not start anymore #12

Franselbaer opened this issue Feb 17, 2015 · 13 comments

Comments

@Franselbaer
Copy link

After I did some stops and starts it'll exit immediately after starting the conainer. Had this multiple times on multiple plattforms.

I use this container often for testing purposes, or onetime tests but if i stop/start too often i can only throw away...

Best regards

@Franselbaer
Copy link
Author

Seems to be an ubuntu networkmananger issue

@Franselbaer
Copy link
Author

Nope. I started a new instance on a fresh ubuntu and let it run for 21 hours. The next day i stopped it and couldn't start it anymore.

@Franselbaer
Copy link
Author

Reproduced: started a new instance, set up a cron to stop/start it every 5 minutes and after a half an hour it doesn't start anymore

@berngp
Copy link
Owner

berngp commented Mar 6, 2015

Thanks @Franselbaer I am currently running it on a CentOS. Could you please share with me which version of Ubuntu and Docker you are using?

@Franselbaer
Copy link
Author

Hey @berngp. Thanks for the response. I tested with ubuntu 14.10 and debian 7 with docker taken from repository (I think 1.2). Unfortunately you cannot get inside if it doesn't start anymore therefore I couldn't investigate more yet. If I find the time the next days I'll try to let the container write logs to an outside location.

@berngp
Copy link
Owner

berngp commented Mar 6, 2015

Thank you @Franselbaer, I do my due diligence to replicate the issue. We can have mounts where the logs would be written to, I was planning on doing this anyway for MySQL too.

@berngp
Copy link
Owner

berngp commented Mar 9, 2015

@Franselbaer the monit & AppArmor issue referenced in #13 was causing the syslogs to grow very quickly and might be related. Could you please run the container with the following flags.

--cap-add SYS_PTRACE  --security-opt apparmor:unconfined

@berngp
Copy link
Owner

berngp commented Mar 18, 2015

@Franselbaer let me know if the changes above helped you out.

@meltonpineda
Copy link

Hi @berngp , I'm having the same problem. I already add the flags that you suggested but the problem still occurs. I'm running it on Centos 6.6.

@berngp
Copy link
Owner

berngp commented Jun 19, 2015

@meltonpineda we need to move out of monit, is already causing several stability issues.
As reference #22

@berngp
Copy link
Owner

berngp commented Aug 6, 2015

@azurewraith I am migrating to supervisord but haven't yet finished. I'll push a labeled image that we can test out and see if supervisord helps out on stabilizing the container.

@azurewraith
Copy link

@berngp Thanks, that would be helpful. I'm assuming there is a supervisord branch as well?

@berngp
Copy link
Owner

berngp commented Aug 13, 2015

@azurewraith sorry for the late reply. I have the feature/22-supervisord to address the migration from monit to supervisor. It still not working but will keep track to such effort through that branch.

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

No branches or pull requests

4 participants