Skip to content

Deployed to AWS - 502 Bad Gateway #445

Closed Answered by AndryHTC
AndryHTC asked this question in Q&A
Discussion options

You must be logged in to vote

The problem was that we required in pubspec.yaml a different Dart SDK, and both aws/terraform/init-script.sh and the .github/workflows/deployment-aws.yml install a fixed SDK, and it does not take the same you define in the pubspec.yaml.

We actually had the entire infrastructure already installed, so @AmoonPod solved the issue by upgrading the Dart SDK manually in the EC2 instance through the Session Manager console

EDIT:
The permanent solution is to get the minimum version you choose from the pubspec.yaml and to put it in the other scripts aws/terraform/init-script.sh and .github/workflows/deployment-aws.yml. Then re-run the Terraform commands to avoid the regression of the problem in cas…

Replies: 9 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@yahu1031
Comment options

@AndryHTC
Comment options

@yahu1031
Comment options

@layerzzzio
Comment options

Answer selected by vlidholt
Comment options

You must be logged in to vote
3 replies
@dongri727
Comment options

@AndryHTC
Comment options

@jblankenship5
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants
Converted from issue

This discussion was converted from issue #423 on December 07, 2022 13:36.