Rails - Elastick Beanstalk nginx/error.log

血红的双手。 提交于 2019-12-01 13:26:43

Your problem is very clear from the Nginx log:

connect() to unix:///var/run/puma/my_app.sock failed (2: No such file or directory) while connecting to upstream

It reads:

No such file or directory

This means that your socket doesn't not exist at this path:

/var/run/puma/my_app.sock

  1. You need to setup the path to be the same as in your Rails/Puma upstream(i.e. configuration)

  2. When you will do that don't forget to make sure that Nginx user can access that socket it will need RW access.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!