Closed alexskr closed 4 years ago
in some cases, cloud-init could interfere with firstboot.rb. For instance, cloud-init and firstboot could run at the same time so when cloud-init kicks off yum update it could restart services which firstboot needs.
we need to either fix systemd ordering or integrate firsboot into cloud-init.
updated systemd unit file for ontoportal-firstboot to ensure it runs after cloud-init run is complete by including
After=cloud-final.service
The cloud-init first run can take a considerable amount of time because it runs system package update so user will see an error if they access ontoportal web ui before cloud-init and ontoportal-firstboot runs are fully complete. For this reason we added a splash screen/maintenance page that will be in place until firstboot is complete.
fixed in v3.0.2
in some cases, 4store fails to start during the first boot of the AWS instance which causes firstboot script to fail. Firstboot script resets API keys and sets the initial password for Admin user. Web UI shows "something went wrong" error and Admin user is unable to log into Web UI.
rebooting AWS instance seem to fix this issue.