<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Docker, prevent container being stopped after an exception</title><link>https://answers.axonivy.com/questions/3802/docker-prevent-container-being-stopped-after-an-exception</link><description>&lt;p&gt;Hi Ivy team&lt;/p&gt;
&lt;p&gt;Is there a switch or something to keep the container running even if there was a (fatal) exception at boot time of Ivy ?&lt;/p&gt;
&lt;p&gt;Currently it's slightly painful to debug ...&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards
John Moser&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3802/docker-prevent-container-being-stopped-after-an-exception" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 16 May 2019 10:41:13 -0400</lastBuildDate><item><title>Answer by Alex Suter</title><link>https://answers.axonivy.com/questions/3802/docker-prevent-container-being-stopped-after-an-exception/3813</link><description>&lt;p&gt;It's better to not start the engine at all if a problem like this occur, this can lead to very unexpected behaviors. If the engine can not access the &lt;code&gt;ivy.yaml&lt;/code&gt; a lot of problems can occur. &lt;/p&gt;
&lt;p&gt;And in fact everything is said when you got the message 'Permission denied'. E.g. you can't start an apache http server if it can not access its configuration files.&lt;/p&gt;
&lt;p&gt;In your case now, please check the file permissions (chown/chmod) of your &lt;code&gt;ivy.yaml&lt;/code&gt;. I suppose that you must set the user and group to &lt;code&gt;ivy:ivy&lt;/code&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Thu, 16 May 2019 10:41:13 -0400</pubDate><guid>https://answers.axonivy.com/questions/3802/docker-prevent-container-being-stopped-after-an-exception/3813</guid></item><item><title>Comment by John Moser on John Moser's question</title><link>https://answers.axonivy.com/questions/3802/docker-prevent-container-being-stopped-after-an-exception#3808</link><description>&lt;p&gt;The problem is, you can't connect to the container anymore if something like this
... &lt;code&gt;Caused by: java.io.FileNotFoundException: /etc/axonivy-engine-7x/ivy.yaml (Permission denied)&lt;/code&gt; ...
happens. It would be nice to keep the container up and running in order to connect and investigate, what went wrong.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Moser</dc:creator><pubDate>Thu, 16 May 2019 08:32:35 -0400</pubDate><guid>https://answers.axonivy.com/questions/3802/docker-prevent-container-being-stopped-after-an-exception#3808</guid></item><item><title>Comment by Alex Suter on John Moser's question</title><link>https://answers.axonivy.com/questions/3802/docker-prevent-container-being-stopped-after-an-exception#3805</link><description>&lt;p&gt;What do you mean with a fatal exception in ivy. A fatal exception is something like OutOfMemory and there is no way out. This is not specific to ivy.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Thu, 16 May 2019 02:35:42 -0400</pubDate><guid>https://answers.axonivy.com/questions/3802/docker-prevent-container-being-stopped-after-an-exception#3805</guid></item></channel></rss>