Closed pongthepm closed 1 year ago
I confirm receipt of this issue @pongthepm and will ask @p-netm to take a look at it.
@pongthepm what's the ansible-playbook command that was used to deploy this. I would like to confirm that the react
tag was not skipped.
Mix will send you the command.
command: ansible-playbook -i ../Reveal-Thailand/ansible/inventories/bioppreview/opensrp-stack/ reveal-web.yml --vault-password=~/.vaultpass -e ansible_user=ubuntu -e ansible_ssh_user=ubuntu
vars.yml: vars.yml.zip
ref: https://github.com/onaio/Reveal-Thailand/blob/main/docs/preview-infrastructure.md
@gumixjung thoughtful of you to share the extra details. The details you shared look okay. @AngelaKabari I think we can have a pairing session to look into this. We can do so in the next reveal-web session or create one before then, depending on the urgency of this
I think in playbooks/roles/react is empty folder I download and run err: TASK [react : Install Javascript requirements locally] ** fatal: [application-server]: FAILED! => {"changed": false, "msg": "Failed to find required executable yarn in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"}
@pongthepm and @gumixjung I believe this can wait the 2 working days until the next Reveal Web session on Tuesday 7th February, no? But please let me know if you would prefer to have the pairing session earlier?
OK, Angela. We can wait. In the meantime, @p-netm if you want us to check another point or anything else. We can do for you. Thank you for your support, Pongthep
I think in playbooks/roles/react is empty folder
you can check if there are files in the playbooks/roles/react
and confirm if its empty. I however do not think its empty since this task fails, which means it must exist.
*** fatal: [application-server]: FAILED! => {"changed": false, "msg": "Failed to find required executable yarn in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"}
This is very helpful, seems like you do not have yarn installed locally You can do so in 2 ways.
npm install -g yarn
You probably know this but to backfill The reveal_react_remote_js_build inventory variable is set to false, this means the react application build will happen locally on the machine that is executing the ansible-playbook command. As such you need to have node and yarn installed locally, I will add to the reveal-web google doc.
Hi @p-netm Let Mix take a look and do as per your recommendation. Thank you for your support, Pongthep
Hi @p-netm Mix has followed your recommendation. Now, we are approaching more. We can open the URL: https://bioppreview-mhealth.ddc-malaria.org/fe/login with out any error on the page. However, the page is blank. Please see the attached image, I am not sure if it is the cause or not. We got some errors about "Incomplete chunk"
Could you please advise? Thank you, Pongthep
@pongthepm Any errors in the nginx error log file?
Hi @p-netm and @AngelaKabari
Mix has deployed the reveal web successfully.
Thank you for your support,
Pongthep
This is excellent news! Kudos on succeeding with this.
I'm now closing this issue out. Please feel free to re-open it if anything else comes up down the line.
Hi, I am not sure if we have deployed the reveal web successfully or not, but we got no error in the deployment status. However, we noticed that when compared between your preview and my bioppreview, there is no directory react and the link react on my file system. Please see the attached images.
Could you please advise? Thank you, Pongthep