Closed AngelaKabari closed 1 year ago
Investigations carried out thus far are as follows:
1. Check that the error is not from the server
Checked the request fails with a 403 error
response.
It may be an issue on the server, possibly has to do with CORS misconfiguration.
The requests do return data when done from the browser or a client like insomnia
2. Check that the web URL is added to whitelisted URLs on the Keycloak realm Added the web and server domains to the web origins section on keycloak but are still getting the same error.
The Ona hosted preview environment is also now throwing the The system is down. Sorry for the inconvenience.
error message:
Though there are the following differences:
We replicated the issue using the bvbd_mhealth
account.
The following logs were inspected during the investigation
tail -fn 100 /home/opensrp/tomcat-opensrp/logs/catalina.out
tail -fn 100 /var/log/nginx/servermhealth.ddc.moph.go.th-https-access.log
. We did not view any logs pertaining to the POST
request containing the plan payload on either of the logs. This was tested both on the web UI as well as using Postman.
The 2023 SSL certificates were manually re-installed on 19th January 2023, and DVBD, CHAI and Biophics informed via LINE. The installation of the SSL certificates resolved issue #15, as once https://mhealth.ddc.moph.go.th/ had an up to date SSL certificate, the server stopped giving 403 errors therefore plans could be generated once again.
Ona subsequently carried out a retrospective to try to establish what happened and found the following:
The steps we have taken to ensure that the above issue does not occur again are:
We have created issue #29 Implement proper attribution on the Reveal System to track the implementation of the first two recommendations above.
Originally posted by @AngelaKabari in https://github.com/onaio/infrastructure/issues/6286#issuecomment-1454801093
Describe the issue
How is this expected to work?
The user should be able to generate a plan
Screenshots
Please share other relevant information about the issue
N/A