-
We have followed every single step of the procedure but at the end of the day... Testing the deployment as suggested https://docs.serverpod.dev/deployments/deploying-to-aws#test-your-deployment we get a 502 Bad Gateway for all the endpoints. Same problem with native AWS URL instead of DNS Domains... The connection to the database works, even with the subdomain database.[domain].[*] |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 7 replies
-
Also Check this video https://youtu.be/zx2eh3t_98Q |
Beta Was this translation helpful? Give feedback.
-
We have made the exact same steps |
Beta Was this translation helpful? Give feedback.
-
Maybe you have missed something buddy. My API works fine. |
Beta Was this translation helpful? Give feedback.
-
Which OS are you currently using? Amazon Linux 2? Ubuntu? |
Beta Was this translation helpful? Give feedback.
-
@AndryHTC Okie So the bad gateway I got too but when I change the config file and deploy. Can I know What are you trying to access from the url? Like |
Beta Was this translation helpful? Give feedback.
-
Ubuntu is the default I guess. I don't specify anything. |
Beta Was this translation helpful? Give feedback.
-
The problem was that we required in 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: |
Beta Was this translation helpful? Give feedback.
-
Converted this to a question so that more people potentially can get help from it. |
Beta Was this translation helpful? Give feedback.
-
I usually do a |
Beta Was this translation helpful? Give feedback.
The problem was that we required in
pubspec.yaml
a different Dart SDK, and bothaws/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 thepubspec.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 scriptsaws/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…