Question:
Dear OpenMRS people,
We have set up an OpenMRS 3 instance to be utilized in two clinics in Afghanistan, enabling medical staff to consult with doctors globally and coordinate operations with visiting surgeons from Germany who come several times a year. To facilitate this, we are attempting to create an anamnesis form with the form builder. However, whenever we try to save the form, we encounter the error message: “Error loading schema, Server responded with 500 () for url /openmrs/…” along with “Schema not found. The schema originally associated with this form could not be found.”
This issue persists even when we download a schema from an existing form and upload it to create a new one.
I also tried to check if this works in the reference application, but I am unable to log sind the credentials (admin/Admin123) don’t work any more. The same problem arose when we installed the latest release candidate (3.2.0-rc.5), to see whether the problem with the forms was solved there.
Yes, after the local installation it produced the same error as the demo:
Error: Invalid username or password
Error: Failed to fetch new session information: Error: Server responded with 500 () for url /openmrs/ws/rest/v1/session. Check err.responseBody or network tab in dev tools for more inf
Yeah I see that now, while not recommended, purely for testing purposes only, you could try setting it up with the docker tag “nightly” which would give you a setup that is same as our dev instance - OpenMRS. Again, using this version for production use is highly discouraged.
I understand, but the only reason we installed this version was to test whether the problem with the forms would still be the same. This is our main issue. Any ideas how we could solve the “schema not found” problem described above? That would be highly appreciated!
Right, sorry I misunderstood. Can you try restarting the instance with docker compose down && TAG=3.2.0-rc.5 docker compose build && TAG=3.2.0-rc.5 docker compose up -d. This command should retain your data while restarting. I’ll try to see if I can recreate this issue too. Sorry about the delayed response, this completely slipped my radar!
No worries, @nethmi, we are very grateful for your support. Unfortunately, the solution you described produced the same error, i. e. “invalid username or password” for admin/Admin123.
However, the real issue we are trying to resolve is getting past “Schema not found” when building forms in O3, so that we can provide proper anamnesis forms for the doctors. Is there anything we missed so far? As mentioned, we even get this error when we uploaded the “Structured SOAP note”-Schema and tried to save it (see image). Many thanks!
@nethmi maybe this is unhelpful, especially considering it seems like they are correctly using the O3 RefApp (which should come with the React Form Engine built in as default, right?) but: is there a way we can triple-check somewhere that their distro is indeed using React Form Engine?
Hi @grace Thanks for joining the conversation. And you are right, we wanted to check in the reference app and the latest built whether the forms work there, so we could be certain that something is wrong with our installation. Unfortunately, since yesterday the demo doesn’t seem to work at all anymore. I don’t even get an error message but only a white space as the login page: OpenMRS
Any hints how we could check the we are correctly using the React Form Engine would be most welcome.
@maribobe where I’ve seen this error, its because the form doesn’t get saved to the database properly. Could you try reverting to a previous version and rebuild the image from scratch (unfortunately this would mean you would lose the data you have saved in the database). I highly doubt its an issue the distro not using the React Form Engine, but if you have a repository public, I would be more than glad to look at the setup.
Hi @nethmi I tried the forms on test3 and they work fine. So the problem is definitely on our side. I would be really great if you could have a look at it. Is there any way I can send you a private message with the access data?