I cannot view a form in Enketo and Share a form. Trying to open the form to view the form tabs it keeps loading endless until it times out. Anyone who’s faced the same challenge and would like to help?
Could you please confirm if this affects all your forms or just a particular one? Kindly also confirm if this process had worked previously and when you started encountering the problem. I believe this context will help us best understand how to support.
I’m setting up with the latest kobo-install
After setting up and logging in all other functionalities are working but access to form is the problem even after trying to build the form from the form builder the same problem persist.
I think this is similar to the same thread that I had seen you commenting on around the installation process using this server version. Could you please check and incorporate this within the same thread? As a standalone, I feel there is a lot of context lost.
Tried this solution but seems like an old fix compared to the latest version that comes with this fix
@alexgmuriithi I will keep this open to allow for other users to chime in.
@alexgmuriithi let me try to help you with my limited knowledge…
Have you done the complete installation from kobo-install? Can you run
docker ps and post a screenshot here of the containers that are running along with the image names?
Well, it looks like you’re running the correct versions. In my case it was incorrect versions which was causing the issue.
Do you have this problem with all the forms or just one form?
Basically any form I create I cannot access them using Enketo also previewing the designed form.
Tue Mar 30 08:16:26 2021] GET /alexmacharia/forms/aCezMmXN4rBvKWrpEbmhzi/preview => generated 0 bytes in 11 msecs (HTTP/1.1 302) 5 headers in 271 bytes (1 switches on core 0) Respawned uWSGI worker 2 (new pid: 198) Tue Mar 30 08:20:21 2021 - *** HARAKIRI ON WORKER 1 (pid: 194, try: 1) *** Tue Mar 30 08:20:21 2021 - HARAKIRI !!! worker 1 status !!! Tue Mar 30 08:20:21 2021 - HARAKIRI [core 0] 22.214.171.124 - GET /alexmacharia/forms/aCezMmXN4rBvKWrpEbmhzi/enter-data since 1617092300 Tue Mar 30 08:20:21 2021 - HARAKIRI !!! end of worker 1 status !!! DAMN ! worker 1 (pid: 194) died, killed by signal 9 :( trying respawn ... Respawned uWSGI worker 1 (new pid: 199) worker 2 killed successfully (pid: 198) uWSGI worker 2 cheaped.
What might be causing this issue? I think it’s related to what I’m facing. Just follow the solution from Got 502 Bad Gateway KPI Kobocat - #2 by nolive
“Harakiri” is logged by uWSGI when it terminates a Python worker process because of failure to respond to a HTTP request (in your case,
GET /alexmacharia/forms/aCezMmXN4rBvKWrpEbmhzi/enter-data) within 120 seconds. This is the default time limit, but it can be configured in kobo-install. If you want to increase the timeout, re-run
./run.py --setup and answer yes to “Do you want to tweak uWSGI settings?”. Then, input a larger number when prompted for “Maximum time (in seconds) before killing an unresponsive worker”.
However, it’s very unusual for a form to take longer than two minutes to process. Is this form particularly large or complex, or is your server low on CPU or RAM capacity?
Additionally, is there a reason why you’re using the KoBoCAT
enter-data endpoint, or was that just for testing? We’re planning to remove that endpoint very soon. You can distribute your project’s Enketo URL directly, since each deployed project has a unique and consistent Enketo URL. If you need to programmatically retrieve Enketo URLs, you can get the same URL returned by KoBoCAT’s
enter-data from KPI’s asset detail endpoint, in the
deployment_links.offline_url attribute. In your example, the asset detail endpoint would be
https://[your kpi host]/api/v2/assets/aCezMmXN4rBvKWrpEbmhzi/.
I cannot view or preview my form. Can somebody help please
Was it a recent kobo-install or it used to work before? My latest Kobo-install also has the same problem waiting to find a solution from the Kobotoolbox community