./soca_installer.sh crashed (2.7.2)
Closed this issue · 8 comments
Describe the bug
The soca installer crashed (around line 100) when installind Node & NPM via nvm
To Reproduce
Run the installer.
Screen output just before crash:
Downloading and installing node v18.0.0...
Downloading https://nodejs.org/dist/v18.0.0/node-v18.0.0-linux-x64.tar.xz...
###################################################################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v18.0.0 (npm v)
Creating default alias: default -> node (-> v18.0.0)
node: /lib64/libm.so.6: version GLIBC_2.27' not found (required by node) node: /lib64/libc.so.6: version
GLIBC_2.28' not found (required by node)
Please complete the following information about the solution:
- 2.7.2
- Region: eu-central-1
- N/A (configuration file changed from "Public" to "Private", but the script crashed before the CDK was launched)
- N/A
- N/A
- N/A
Screenshots
See pasted screen output above
Thanks,
Tammy
Hello Tammy,
Thank you for reporting this. It seems that the installer was launched on an instance running Linux (maybe AL2 or similar). The latest commit should address this issue. Please pull the latest changes and try again.
--
Regards,
Ahmed
Hello,
Were you able to verify that the latest 2.7.2 addresses this issue?
Hi,
I also got this error when installing soca with the same error message as @tammy-ruby-cherry
I followed the instructions to run cdk bootstarp and it worked fine.
I think maybe the problem is the node version?
SOCA version: 2.7.2
====== Running CDK Bootstrap ======
/home/ec2-user/environment/scale-out-computing-on-aws/installer/resources/src/envs/.nvm/versions/node/v8.7.0/lib/node_modules/aws-cdk/lib/index.js:4935
} catch {
^
SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:588:28)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/ec2-user/environment/scale-out-computing-on-aws/installer/resources/src/envs/.nvm/versions/node/v8.7.0/lib/node_modules/aws-cdk/bin/cdk.js:3:15)
Error! Unable to bootstrap environment. Please run cdk bootstrap
I have successfully installed after following steps,
- rm -rf $INSTALLER_DIRECTORY/resources/src/envs/.nvm
- change line 104
nvm install v8.7.0
tonvm install --lts
in soca_installer.sh
The lts node version is v16.15.0
Thanks @tingyao-chang. I pushed a fix to use v16.15.0 instead of v8.7.0 in soca_installer.sh