前提
バックエンド1年目の者です。
インフラ系の知識が浅く、どこでつまづいているかわからない状態なので教えてください。
Python, Django, AWS(EC2, SageMaker, RDS, S3, Amazon Linux)という環境で、顧客管理システムをデプロイ後、EC2インスタンスを再起動した時に起こったことです。
502 Bad Gatewayが発生したので、皆さんに対処法をご教示願いたいと思います。
実現したいこと
エラーの原因を探り、問題なくシステムを再運用できるようにすること。
発生している問題・エラーメッセージ
502 BadGateway
試したこと
これらの記事を参考に、コマンドをイジったりしてみましたが、正直エラーメッセージの意味も自分のググり力だけじゃ把握しきれていない状態です。。。
[ec2-user@ip-プライベート IP アプリ名]$ ps -ef | grep unicorn ec2-user 19589 19554 0 11:33 pts/0 00:00:00 grep --color=auto unicorn [ec2-user@ip-プライベート IP アプリ名]$ bundle exec unicorn_rails -c /var/www/rails/humanity-front-django/config/unicorn.conf.rb -D -E production bundler: command not found: unicorn_rails Install missing gem executables with `bundle install` [ec2-user@ip-プライベート IP アプリ名]$ unicorn_rails -c /var/www/rails/my-books/config/unicorn.conf.rb -D -E production -bash: unicorn_rails: command not found
https://naozuminumata.com/aws-502-bad-gateway/
https://qiita.com/N396184501/items/abc8ee63a6eec3f0263f
回答1件
あなたの回答
tips
プレビュー