onaio / Reveal-Thailand

Repository to raise & track issues, share code and documentation, and manage the Reveal Thailand Handover and Support Project (2022-2023)
0 stars 0 forks source link

[Technical Support Request] Reveal web deployment problem #20

Closed pongthepm closed 1 year ago

pongthepm commented 1 year ago

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

compare-preview-Vs-bioppreview reveal-web-deploy-success web-error

AngelaKabari commented 1 year ago

I confirm receipt of this issue @pongthepm and will ask @p-netm to take a look at it.

peterMuriuki commented 1 year ago

@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.

pongthepm commented 1 year ago

Mix will send you the command.

gumixjung commented 1 year ago

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

peterMuriuki commented 1 year ago

@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

gumixjung commented 1 year ago

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"}

AngelaKabari commented 1 year ago

@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?

pongthepm commented 1 year ago

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

peterMuriuki commented 1 year ago

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.

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.

pongthepm commented 1 year ago

Hi @p-netm Let Mix take a look and do as per your recommendation. Thank you for your support, Pongthep

pongthepm commented 1 year ago

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

fe-login-incomplete-chunk-error

peterMuriuki commented 1 year ago

@pongthepm Any errors in the nginx error log file?

pongthepm commented 1 year ago

Hi @p-netm and @AngelaKabari Mix has deployed the reveal web successfully. Thank you for your support, Pongthep fe-login-OK@07Feb2023

AngelaKabari commented 1 year ago

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.