AWS Elastic Beanstalk: nginx reload failed


I have provided to my Elastic Beanstalk environment nginx configuration according to this article. My application sits in a Docker container. The problem is that the environment fails to reload nginx.

Here’s my config file:

And that results in failure (after /var/log/eb-activity.log):

When I remove section:

Deployment goes smooth.

Any ideas? How can I get information on what precisely goes wrong with the command? If I ssh to my instance, I can execute command without a problem.


The elastic beanstalk deployment process will do the nginx reload for you, so you can remove it from your script permanently and avoid the error. Figuring out why exactly the command failed will just be academic

Leave a Reply