Closed makarenkojDe closed 3 years ago
We plan to execute this late this week or early next, after db cleanup is complete.
Changes made tonight, and recorded in Ops Log. Note that it was necessary to uninstall sails with the same node version/setup (snap) used to install it. The systemd service file also needed modifications.
1. What is the goal of these changes? The goal of these changes is to update the servers (NPM, Node, Sails) to the latest version for smoother performance
2. List the machine(s) and file(s)/setting(s) to be changed production server. no specific file changes; see next step
3. Give exact commands or use marked screenshots to show GUI-based changes
There are apparently many ways to upgrade Node and npm. In the past, we have used the
snap
package manager on production server to install Node. But a different approach would be preferred, because we usesnap
for nothing else. We will try an approach that uses thenvm
tool (Node version manager); it allows the installation of multiple Node versions, and switching which is active. (This page is the source for the nvm,node,npm commands, and includes other approaches, too.4. What production services will be affected by the changes?
The entire NLC production app will be offline for at least part of the process. Cloud database is unaffected.
5. What files or other data should be backed up before making these changes?
Need to verify that scheduled Acronis backup is current and available for restore.
6. Approximately how long will it take to make the changes?
Perhaps less than an hour if all goes smoothly.
7. List steps for testing that the goal is met, and nothing was broken
node -v
npm --version
8. List steps for safely backing out of these changes in case of difficulties
nvm
may allow us to reinstall/reactivate the old version9. Summarize the messages to be sent to customers and/or staff before, during (if needed), and after these changes
This should be transparent to users. We will send an advance notice in case there is a time window that should be avoided. We will follow up with a summary of the outcome.