:question: General Issue
The Question
Are there initial configuration steps required to enable a successful build of the Saas Boost React Web Application?
After running sh install.sh the install process beings and runs seemingly successfully until it reaches the "Start build of AWS Saas Boost React web application with yarn...". Immediately an installation error is thrown.
I have verified that the prerequisites are installed and configured.
Here is the input provided when initiating sh install.sh
Launch Java Installer for SaaS Boost
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
Setting version to v0 as it is missing from the git properties file.
Welcome to the AWS SaaS Boost Installer
Setting version to v0 as it is missing from the git properties file.
Installer Version: 85459a1-dirty, Commit time: 2021-05-13T20:03:38-0400
Checking maven, yarn and AWS CLI...
Environment Checks for maven, yarn, and AWS CLI PASSED.
After the initial error, I ran the install script and chose the delete option to remove the installation. I then verified via the AWS CloudFormation console that all components had been removed. Just to be sure I was using the latest files, I deleted the Saas Boost folder and re-cloned the repo, and attempted to install again.
The stack trace (below) seems to be pointing to a null value for the React App environment variables. Should I use the output from CloudFormation (Cognito & API Gateway) in the client/web env file and re-run install using the update option?
Environment
- AWS SaaS Boost Version:
1.89.0 (build df7253c)
Other information
Here is the input provided when initiating sh install.sh
Launch Java Installer for SaaS Boost
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
Setting version to v0 as it is missing from the git properties file.
Welcome to the AWS SaaS Boost Installer
Setting version to v0 as it is missing from the git properties file.
Installer Version: 85459a1-dirty, Commit time: 2021-05-13T20:03:38-0400
Checking maven, yarn and AWS CLI...
Environment Checks for maven, yarn, and AWS CLI PASSED.
Would you like to continue the installation with the following options?
AWS SaaS Boost Environment Name: dev
Admin Email Address: <private_email>.io
Route 53 Domain for AWS SaaS Boost environment: portal..io
Install Metrics and Analytics: y
Amazon Quicksight user for setup of Metrics and Analytics: n/a
Setup Active Directory for FSX for Windows: n
Enter y to continue or n to cancel: y
Continuing installation of AWS SaaS Boost
Stack Trace:
Awaiting CloudFormation Stack sb-dev to complete. Sleep 5 minute(s)...
Awaiting CloudFormation Stack sb-dev to complete. Sleep 1 minute(s)...
Awaiting CloudFormation Stack sb-dev to complete. Sleep 1 minute(s)...
Awaiting CloudFormation Stack sb-dev to complete. Sleep 1 minute(s)...
Awaiting CloudFormation Stack sb-dev to complete. Sleep 1 minute(s)...
Awaiting CloudFormation Stack sb-dev to complete. Sleep 1 minute(s)...
Awaiting CloudFormation Stack sb-dev to complete. Sleep 1 minute(s)...
Awaiting CloudFormation Stack sb-dev to complete. Sleep 1 minute(s)...
Awaiting CloudFormation Stack sb-dev to complete. Sleep 1 minute(s)...
Awaiting CloudFormation Stack sb-dev to complete. Sleep 1 minute(s)...
CloudFormation Stack: sb-dev completed successfully.
Copy files to S3 web site bucket
Start build of AWS SaaS Boost React web application with yarn ...
Installation Error: null
Please see detailed log file saas-boost-install.log
java.lang.NullPointerException
at java.base/java.lang.ProcessEnvironment.validateValue(ProcessEnvironment.java:120)
at java.base/java.lang.ProcessEnvironment$Value.valueOf(ProcessEnvironment.java:203)
at java.base/java.lang.ProcessEnvironment$StringEnvironment.put(ProcessEnvironment.java:243)
at java.base/java.lang.ProcessEnvironment$StringEnvironment.put(ProcessEnvironment.java:221)
at com.amazon.aws.partners.saasfactory.saasboost.SaaSBoostInstall.buildAndCopyWebApp(SaaSBoostInstall.java:2257)
at com.amazon.aws.partners.saasfactory.saasboost.SaaSBoostInstall.installSaaSBoost(SaaSBoostInstall.java:1459)
at com.amazon.aws.partners.saasfactory.saasboost.SaaSBoostInstall.start(SaaSBoostInstall.java:977)
at com.amazon.aws.partners.saasfactory.saasboost.SaaSBoostInstall.main(SaaSBoostInstall.java:198)
When I open up the saas-boost-install.log, here are the details showing the error.
2021-05-14 16:19:23 SaaSBoostInstall.createSaaSBoostStack createSaaSBoostStack::stack id arn:aws:cloudformation:us-east-1:045258344123:stack/sb-dev/abca1e00-b4f1-11eb-83c6-0a8858a4ea55
2021-05-14 16:19:23 SaaSBoostInstall.outputMessage Awaiting CloudFormation Stack sb-dev to complete. Sleep 5 minute(s)...
2021-05-14 16:24:24 SaaSBoostInstall.outputMessage Awaiting CloudFormation Stack sb-dev to complete. Sleep 1 minute(s)...
2021-05-14 16:25:24 SaaSBoostInstall.outputMessage Awaiting CloudFormation Stack sb-dev to complete. Sleep 1 minute(s)...
2021-05-14 16:26:25 SaaSBoostInstall.outputMessage Awaiting CloudFormation Stack sb-dev to complete. Sleep 1 minute(s)...
2021-05-14 16:27:26 SaaSBoostInstall.outputMessage Awaiting CloudFormation Stack sb-dev to complete. Sleep 1 minute(s)...
2021-05-14 16:28:27 SaaSBoostInstall.outputMessage Awaiting CloudFormation Stack sb-dev to complete. Sleep 1 minute(s)...
2021-05-14 16:29:27 SaaSBoostInstall.outputMessage Awaiting CloudFormation Stack sb-dev to complete. Sleep 1 minute(s)...
2021-05-14 16:30:28 SaaSBoostInstall.outputMessage Awaiting CloudFormation Stack sb-dev to complete. Sleep 1 minute(s)...
2021-05-14 16:31:29 SaaSBoostInstall.outputMessage Awaiting CloudFormation Stack sb-dev to complete. Sleep 1 minute(s)...
2021-05-14 16:32:31 SaaSBoostInstall.outputMessage Awaiting CloudFormation Stack sb-dev to complete. Sleep 1 minute(s)...
2021-05-14 16:33:31 SaaSBoostInstall.outputMessage CloudFormation Stack: sb-dev completed successfully.
2021-05-14 16:33:31 SaaSBoostInstall.outputMessage Copy files to S3 web site bucket
2021-05-14 16:33:32 SaaSBoostInstall.outputMessage Start build of AWS SaaS Boost React web application with yarn ...
2021-05-14 16:33:32 SaaSBoostInstall.outputMessage ===========================================================
2021-05-14 16:33:32 SaaSBoostInstall.outputMessage Installation Error: null
2021-05-14 16:33:32 SaaSBoostInstall.outputMessage Please see detailed log file saas-boost-install.log
2021-05-14 16:33:32 SaaSBoostInstall.main java.lang.NullPointerException
at java.base/java.lang.ProcessEnvironment.validateValue(ProcessEnvironment.java:120)
at java.base/java.lang.ProcessEnvironment$Value.valueOf(ProcessEnvironment.java:203)
at java.base/java.lang.ProcessEnvironment$StringEnvironment.put(ProcessEnvironment.java:243)
at java.base/java.lang.ProcessEnvironment$StringEnvironment.put(ProcessEnvironment.java:221)
at com.amazon.aws.partners.saasfactory.saasboost.SaaSBoostInstall.buildAndCopyWebApp(SaaSBoostInstall.java:2257)
at com.amazon.aws.partners.saasfactory.saasboost.SaaSBoostInstall.installSaaSBoost(SaaSBoostInstall.java:1459)
at com.amazon.aws.partners.saasfactory.saasboost.SaaSBoostInstall.start(SaaSBoostInstall.java:977)
at com.amazon.aws.partners.saasfactory.saasboost.SaaSBoostInstall.main(SaaSBoostInstall.java:198)
2021-05-14 16:33:32 SaaSBoostInstall.outputMessage java.lang.NullPointerException
at java.base/java.lang.ProcessEnvironment.validateValue(ProcessEnvironment.java:120)
at java.base/java.lang.ProcessEnvironment$Value.valueOf(ProcessEnvironment.java:203)
at java.base/java.lang.ProcessEnvironment$StringEnvironment.put(ProcessEnvironment.java:243)
at java.base/java.lang.ProcessEnvironment$StringEnvironment.put(ProcessEnvironment.java:221)
at com.amazon.aws.partners.saasfactory.saasboost.SaaSBoostInstall.buildAndCopyWebApp(SaaSBoostInstall.java:2257)
at com.amazon.aws.partners.saasfactory.saasboost.SaaSBoostInstall.installSaaSBoost(SaaSBoostInstall.java:1459)
at com.amazon.aws.partners.saasfactory.saasboost.SaaSBoostInstall.start(SaaSBoostInstall.java:977)
at com.amazon.aws.partners.saasfactory.saasboost.SaaSBoostInstall.main(SaaSBoostInstall.java:198)
bug installer