ACI is still restart and terminate

Wayu(Windy) Ragwongsiri 1 Reputation point
2023-01-07T11:37:11.637+00:00

I have problem with my Web App. I test in local machine and run container group. It's work fine and can see each container. whe i deploy to ACI . Web App has a problem. It cant run. still restarting.

JSON view

{  
    "properties": {  
        "sku": "Standard",  
        "provisioningState": "Succeeded",  
        "containers": [  
            {  
                "name": "me-db-mysql",  
                "properties": {  
                    "image": "mysql:latest",  
                    "ports": [  
                        {  
                            "protocol": "TCP",  
                            "port": 3306  
                        }  
                    ],  
                    "environmentVariables": [  
                        {  
                            "name": "MYSQL_ROOT_PASSWORD",  
                            "value": "SYxbQlgZtoCs"  
                        }  
                    ],  
                    "instanceView": {  
                        "restartCount": 0,  
                        "currentState": {  
                            "state": "Running",  
                            "startTime": "2023-01-07T11:09:58.839Z",  
                            "detailStatus": ""  
                        },  
                        "events": []  
                    },  
                    "resources": {  
                        "requests": {  
                            "memoryInGB": 1,  
                            "cpu": 1  
                        }  
                    },  
                    "volumeMounts": [  
                        {  
                            "name": "me-db-volume",  
                            "mountPath": "/var/lib/mysql"  
                        }  
                    ]  
                }  
            },  
            {  
                "name": "me-db-adminer",  
                "properties": {  
                    "image": "adminer:latest",  
                    "ports": [  
                        {  
                            "protocol": "TCP",  
                            "port": 8080  
                        }  
                    ],  
                    "environmentVariables": [],  
                    "instanceView": {  
                        "restartCount": 0,  
                        "currentState": {  
                            "state": "Running",  
                            "startTime": "2023-01-07T11:09:59.406Z",  
                            "detailStatus": ""  
                        },  
                        "events": []  
                    },  
                    "resources": {  
                        "requests": {  
                            "memoryInGB": 1,  
                            "cpu": 1  
                        }  
                    }  
                }  
            },  
            {  
                "name": "me-db-viz-app",  
                "properties": {  
                    "image": "conregmedb.azurecr.io/me-db-viz:v1.1",  
                    "ports": [  
                        {  
                            "protocol": "TCP",  
                            "port": 8050  
                        }  
                    ],  
                    "environmentVariables": [],  
                    "instanceView": {  
                        "restartCount": 13,  
                        "currentState": {  
                            "state": "Waiting",  
                            "detailStatus": "CrashLoopBackOff: Back-off restarting failed"  
                        },  
                        "previousState": {  
                            "state": "Terminated",  
                            "startTime": "2023-01-07T11:31:05.089Z",  
                            "exitCode": 1,  
                            "finishTime": "2023-01-07T11:31:08.478Z",  
                            "detailStatus": "Error"  
                        },  
                        "events": []  
                    },  
                    "resources": {  
                        "requests": {  
                            "memoryInGB": 1,  
                            "cpu": 1  
                        }  
                    }  
                }  
            }  
        ],  
        "initContainers": [],  
        "imageRegistryCredentials": [  
            {  
                "server": "conregmedb.azurecr.io",  
                "username": "conregmedb"  
            }  
        ],  
        "restartPolicy": "Always",  
        "ipAddress": {  
            "ports": [  
                {  
                    "protocol": "TCP",  
                    "port": 3306  
                },  
                {  
                    "protocol": "TCP",  
                    "port": 8080  
                },  
                {  
                    "protocol": "TCP",  
                    "port": 8050  
                }  
            ],  
            "ip": "20.198.196.181",  
            "type": "Public"  
        },  
        "osType": "Linux",  
        "volumes": [  
            {  
                "name": "me-db-volume",  
                "azureFile": {  
                    "shareName": "mysqlmedb",  
                    "storageAccountName": "stmedb001"  
                }  
            }  
        ],  
        "instanceView": {  
            "events": [  
                {  
                    "count": 1,  
                    "firstTimestamp": "2023-01-07T10:40:36.209Z",  
                    "lastTimestamp": "2023-01-07T10:40:36.209Z",  
                    "name": "SuccessfulMountAzureFileVolume",  
                    "message": "Successfully mounted Azure File Volume.",  
                    "type": "Normal"  
                },  
                {  
                    "count": 1,  
                    "firstTimestamp": "2023-01-07T11:09:57.898Z",  
                    "lastTimestamp": "2023-01-07T11:09:57.898Z",  
                    "name": "SuccessfulMountAzureFileVolume",  
                    "message": "Successfully mounted Azure File Volume.",  
                    "type": "Normal"  
                }  
            ],  
            "state": "Running"  
        }  
    },  
    "id": "/subscriptions/2dbdac59-307b-48e0-8a36-fda923816927/resourceGroups/rg-it-proj-me-db-001/providers/Microsoft.ContainerInstance/containerGroups/me-db-mysql-adminer-vizapp",  
    "name": "me-db-mysql-adminer-vizapp",  
    "type": "Microsoft.ContainerInstance/containerGroups",  
    "location": "southeastasia",  
    "tags": {}  
}  
Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
718 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Wayu(Windy) Ragwongsiri 1 Reputation point
    2023-01-08T16:10:34.157+00:00

    I found problem. It's about CPU architechture. I use Macbook air M2. So, It have conflict about CPU arch.

    Ref: https://stackoverflow.com/questions/42494853/standard-init-linux-go178-exec-user-process-caused-exec-format-error


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.