docker-zabbix icon indicating copy to clipboard operation
docker-zabbix copied to clipboard

After a while container will not start anymore

Open Franselbaer opened this issue 10 years ago • 13 comments

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 avatar Feb 17 '15 13:02 Franselbaer

Seems to be an ubuntu networkmananger issue

Franselbaer avatar Feb 26 '15 18:02 Franselbaer

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 avatar Mar 03 '15 09:03 Franselbaer

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

Franselbaer avatar Mar 03 '15 09:03 Franselbaer

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?

berngp avatar Mar 06 '15 06:03 berngp

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.

Franselbaer avatar Mar 06 '15 06:03 Franselbaer

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 avatar Mar 06 '15 19:03 berngp

@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 avatar Mar 09 '15 08:03 berngp

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

berngp avatar Mar 18 '15 22:03 berngp

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.

meltonpineda avatar Jun 18 '15 01:06 meltonpineda

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

berngp avatar Jun 19 '15 07:06 berngp

@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.

berngp avatar Aug 06 '15 18:08 berngp

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

azurewraith avatar Aug 10 '15 18:08 azurewraith

@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.

berngp avatar Aug 13 '15 04:08 berngp