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

I found that the magento container stops automatically. A manual restart is required each time.

Open AngeloZou opened this issue 1 year ago • 3 comments

Description I found that the magento container stops automatically. A manual restart is required each time.

Steps To Reproduce

  1. Whenever I start it, for about a week, the magento container stops automatically.

Expected Result Stay active all the time.

Actual Result Automatically stop, the website cannot be opened.

AngeloZou avatar Aug 02 '23 08:08 AngeloZou

i have the same issue too, on Linux Ubuntu

hawksakr avatar Sep 20 '23 08:09 hawksakr

I'd need more info on this.

  1. What operating system are you running?
  2. How long does it run before the container stops?
  3. Which container stops? Use this name in next step
  4. Can you post the logs of the failing container? For example, if it is phpfpm, run docker-compose logs phpfpm and then post the final few lines. This may tell us why the container is crashing.

I'm suspecting your system is running out of memory. I haven't experienced any container crashes myself, so at the moment, I'm unable to replicate the issue given the "Steps to Reproduce" above.

markshust avatar Sep 22 '23 03:09 markshust

An idea for fixing this issue.

Add restart: always in compose.yaml

services:
  app:
    restart: always

rangerz avatar Sep 23 '23 04:09 rangerz