DEV Community

Discussion on: Serverless Static Wordpress on AWS for $0.01 a day

Collapse
 
fededalla profile image
Federico Dalla F • Edited

I'm always getting a "standard_init_linux.go:219: exec user process caused: no such file or directory" when trying to launch the ECS task.

I had to run docker push and code build manually.

Do you know how can I fix it?

Task configuration: dev-to-uploads.s3.amazonaws.com/up...

Collapse
 
petewilcock profile image
Pete Wilcock

Can you confirm the code build job completed successfully? The initial push of the docker base image and triggering the build are the two manual steps if you don't use the helper examples.

Collapse
 
fededalla profile image
Federico Dalla F

The code build job completed successfuly on the first try and generated the "wordpress_docker.zip" (3.8 MB) in the Build S3 bucket.

The command ran was:
aws codebuild start-build --project-name viajesconanto-serverless-wordpress-docker-build --profile default --region us-east-2

Thread Thread
 
petewilcock profile image
Pete Wilcock

So the wordpress_docker.zip merely contains the assets for the build job - it uses this to build the container and push it into ECR within the same region. You should see two containers there, one tagged base (which is the uncustomized docker image) and one tagged latest, which is the result of the CodeBuild job. With this present you should be able to launch the Wordpress container.

If you are still experiencing issues, please feel free to raise an issue on GitHub with some more information about your set-up and I can investigate.

Thread Thread
 
fededalla profile image
Federico Dalla F • Edited

Yeah, I'm seeing both. The base one was generated about 5 minutes before than the latest one: dev-to-uploads.s3.amazonaws.com/up...

Also I am was able to verify that the task is running the latest image (241712483418.dkr.ecr.us-east-2.amazonaws.com/viajesconanto-serverless-wordpress:latest).

So my guess is that the image is throwing the "no such file or directory" error.

I will report this problem (major one that does not allow me to continue). Also I have find minor other ones, like:

  • The aws route53domains command lacks of two spaces (typo) between each of the Name=${} definitions.
  • The password override defined for the RDS Aurora server contains the illegal "@".
  • The terraform module only can be executed in regions that support RDS Aurora Server with Serverless option provisioned. I tried to launch it in South America (Sao Pablo) wich lacks of it.
  • The docker push command when running from windows lacks of double quotes escaping so when ".terraform" path tried to be executed the cli understands is trying to run that executable.
Thread Thread
 
petewilcock profile image
Pete Wilcock

Thank you, your feedback to track as an issue would be welcomed!

Collapse
 
rkosolapov profile image
Ruslan Kosolapov

Hi Federico!

I'm researching the problems people faced with AWS and I'd like to have a short talk to you about your case (I suppose you've tried this solution because you have smth in your mind about static WP or AWS automation).

PS: I'm new here and I didn't find any personal messages, so, sorry for off-topic.

Collapse
 
fededalla profile image
Federico Dalla F

Hey Ruslan! I have added you to linkedin, let's coordinate there.

Some comments have been hidden by the post's author - find out more