A couple of days back, I have installed ODK Central on a Digital Ocean server following with (apparent) success the (great ) guide in the docs section.
The server runs these versions:
versions:
647569c54f6bbf26ea356eca0d14f7e5d1a89c6b
cddb691e40e84aabff87b9d427e22a50282d6f99 client (v1.1.2)
a33bc6fb3c34fe38894b0e9d0bb404f81da325e6 server (v1.1.1)
The ODK Central dashboard runs great but forms can't be rendered with Enketo.
Thanks for the details, @Olivier_a and for the troubleshooting, @danbjoseph. @Olivier_a what are your server specs? Do you have more than 1GB of RAM? If not, have you added swap?
If you log into your server backend and type htop (or top if you don't have htop), then try to access an Enketo form, does either your RAM or CPU max out?
I have tried with another form. Opening it with Firefox, the error message is like yours (JSON); with Safari, it's still The string did not match the expected pattern. error.
Ubuntu Docker 19.03.12 on Ubuntu 20.04
1 vCPUs
1GB / 25GB Disk
I haven't added swap.
The CPU briefly jump to 45% and the RAM can jump to 15%.
I am going to try to reinstall the server again from scratch tomorrow. I will keep you posted.
A suggestion: it would be nice to link in the docs an XLS template that can be used for testing purposes.
That's very strange indeed! Did you add swap this time by any chance? I'm surprised htop didn't show higher resource usage. I verified that with the form you linked to, the JavaScript console showed a 504 Gateway Timeout which we've seen in other contexts where the Enketo transformation doesn't complete quickly. Keep an eye on it and do let us know if you get any other unexpected behavior.
I didn't add swap this time but will keep that possibility in mind once we reach the production stage. I will keep you informed if anything goes funky. So far so good!