Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing docker error while creating environment in beanstalk #324

Open
dummyuser-123 opened this issue Mar 22, 2024 · 1 comment
Open

Facing docker error while creating environment in beanstalk #324

dummyuser-123 opened this issue Mar 22, 2024 · 1 comment

Comments

@dummyuser-123
Copy link

Hi,

Actually, I am deploying an ML model using Docker in Beanstalk. Firstly, I uploaded my Docker image (which contains my ML model) to Docker Hub. Then, I deployed it into Beanstalk using docker-compose.yml. In Beanstalk, I am using Docker as a platform, and my model requires GPU support. For that, I have used the Deep Learning AMI GPU CUDA 11.5.2 (Amazon Linux 2) 20230104, which is built with NVIDIA CUDA, cuDNN, NCCL, GPU Driver, Docker, NVIDIA-Docker, and EFA support. However, when I am building the environment using this configuration, I encounter the following error:

[ERROR] An error occurred during execution of command [app-deploy] - [Track pids in healthd]. Stop running the command. Error: update processes [docker eb-docker-compose-events eb-docker-compose-log eb-docker-events cfn-hup healthd] pid symlinks failed with error read pid source file /var/pids/docker.pid failed with error:open /var/pids/docker.pid: no such file or directory.

Means my environment is building but it is giving the error message like: Env build successfully but with some errors. I found this error message in the eb.engine.log. Additionally, when I checked the EC2 instance through SSH, it showed that NVIDIA drivers, NVIDIA CUDA, and Docker are already installed (verified using these commands: nvidia-smi, docker -v). I have tried multiple different deep learning AMIs, but I encounter the same issue with all of them. Also, I noticed a strange thing while trying out different AMIs: if I build the environment with default settings like Docker platform with the default Docker AMI, it builds successfully without any error. However, when I pass a different AMI ID in the configuration, it is not able to build the environment properly.

I am new to AWS Elastic Beanstalk, but I have thoroughly read the official Beanstalk documentation. Despite this, I believe I may be missing something during environment creation. Does anyone know how to solve this error?

@dsapab
Copy link

dsapab commented Oct 28, 2024

Hello @dummyuser-123, thanks for reaching out!

It looks like there might be an issue when starting the Docker container. Without seeing the exact logs, it would be hard to know but I would like to try and reproduce the issue. Could you please provide me:

  1. Exact Beanstalk platform you are using.
  2. AMI ID and AWS Region where you tried
  3. Is there any public/sample Docker image that I can use to test? You may also share a Docker compose and any Dockerfiles.

note Please remove any sensitive information or anything your consider internal/confidential.

I would like to try and reproduce the behaviour. I suspect there might a driver/component missing that your Docker image requires.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants