Document the cause & resolution of the connect: connection refused error that would occur while performing the database schema migrations.
It occurs if the configuration file is not exported before executing the commands to perform the database schema migrations.
To resolve this issue, users can either do export TTN_LW_CONFIG=/tti/lorawan-stack/config.yml or for each command pass the configuration file as -c /tti/lorawan-stack/config.yml. Please see the commands below.
Add a note point to convey to the users that, any changes to AMI deployments must be made by editing the Cloud Formation template parameters only. If any change is made outside the CF template, this would result in the Drift which causes issues when the EC2 instance is restarted.
Redirect the users to download the new version of the CloudFormation template from the AWS Markerplace.
AMI users can perform database schema migrations by calling TTS as /tti/lorawan-stack/tti-lw-stack. Also, the configuration file should be exported before executing the commands.
For example, below are the steps to be performed to do IS DB migration
Add description for the parameters Amazon ElastiCache KMS Key ID & Amazon ElastiCache Password, that a change on these fields requires manual migration of the databases.
cc: @michalborkowski96
How do you propose to document this?
...
Can you do this yourself and submit a Pull Request?
Summary
Improve The Things Stack AWS Marketplace AMI documentation.
Why do we need this ?
To assist users in understanding the upgrading process and troubleshooting the issues.
What is already there? What do you see now?
Instructions for AWS Market Place AMI deployment, post-deployment configuration, updating, and troubleshooting guides.
What is missing? What do you want to see?
Troubleshooting AWS AMI Deployment:
Document the cause & resolution of the
connect: connection refused
error that would occur while performing the database schema migrations.export TTN_LW_CONFIG=/tti/lorawan-stack/config.yml
or for each command pass the configuration file as-c /tti/lorawan-stack/config.yml
. Please see the commands below.Updating the CloudFormation Stack:
Add a note point to convey to the users that, any changes to AMI deployments must be made by editing the Cloud Formation template parameters only. If any change is made outside the CF template, this would result in the Drift which causes issues when the EC2 instance is restarted.
Redirect the users to download the new version of the CloudFormation template from the AWS Markerplace.
Usage
--->View CloudFormation Template
--->Download CloudFormation Template
.In Manual Upgrade of Databases (Amazon RDS and ElastiCache) using snapshots section, to restore the Redis Database from a snapshot, it is documented as:
The parameter should be
Amazon ElastiCache Redis Snapshot
.Redirect the users to the Troubleshooting AWS AMI Deployment section in case of any issues observed while performing the Database Schema Migrations
Database Migrations:
Database Schema Migrations
AMI users can perform database schema migrations by calling TTS as
/tti/lorawan-stack/tti-lw-stack
. Also, the configuration file should be exported before executing the commands.For example, below are the steps to be performed to do IS DB migration
Resource Settings:
Amazon ElastiCache KMS Key ID
&Amazon ElastiCache Password
, that a change on these fields requires manual migration of the databases.cc: @michalborkowski96
How do you propose to document this?
...
Can you do this yourself and submit a Pull Request?
No