ravindratc
11/28/2023, 6:57 AMrahul1
11/28/2023, 9:37 PMravindratc
11/29/2023, 7:16 AMexec /usr/local/bin/node: exec format error. Upon rolling back the update, it starts working again.ravindratc
11/29/2023, 7:19 AMrahul1
11/29/2023, 7:39 AMmedplum/medplum:version docker images from DockerHub?
* What machine type are you running on in EC2? An architecture mismatch can cause this error message: https://dev.to/yusadolat/fixing-the-exec-format-error-with-docker-containers-on-aws-ecs-50nc#:~:text=The%20%22exec%20format%20error%22%20when,and%20the%20docker%20image's%20architecture.ravindratc
11/29/2023, 7:47 AMcody
11/29/2023, 4:10 PMravindratc
11/29/2023, 4:23 PMravindratc
11/29/2023, 4:43 PMrahul1
11/29/2023, 8:02 PMServiceDefinition, rather than task definition. It should be one of these: https://aws.amazon.com/ec2/instance-types/ravindratc
11/29/2023, 8:07 PMrahul1
11/29/2023, 10:40 PMravindratc
11/30/2023, 6:33 AMravindratc
11/30/2023, 6:36 AMravindratc
11/30/2023, 6:37 AMrahul1
11/30/2023, 6:38 AMexec /usr/local/bin/node: exec format error
^ this error message often indicates an incompatibility between compiled binary libraries / executables and the archiecture of the host CPU.
In Dockerhub, you'll see that we actually build the docker image for 3 different archectures:
- amd64
- arm/v7
- arm64
So it is possible that the architecture of the image you cloned didn't match the CPU architecture of your AWS fargate instances.
If you point AWS to dockerhub directly, it chooses the matching architecture automaticallyrahul1
11/30/2023, 6:40 AMravindratc
11/30/2023, 6:48 AMjson
"runtimePlatform": {
"cpuArchitecture": "X86_64",
"operatingSystemFamily": "LINUX"
}
Thanks @rahul1 , Now i understand the issue. Thanks again for your help.