Hopefully these symptoms look familiar to someone in the group. I'm at a loss as to how to correct the problem that is preventing the deployment of forms on a local Docker Kobo Toolbox instance. The synopsis follows below:
When I try to deploy a simple one question test form created by the local Form Builder the result is:
===
unable to deploy
your form cannot be deployed because it contains errors:
HTTPConnectionPool(host='192.168.1.104', port=8001): Max retries exceeded with url: /api/v1/forms (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 110] Connection timed out',))
===
In an effort to troubleshoot, a simple form was created on the official Kobo Toolbox site and was uploaded on the docker implementation for deployment. When I try to deploy that form I get:
===
unable to deploy, server error 500, if this problem persists, contact
sup...@kobotoolbox.org ===
Additionally, I cannot preview forms. The end result of attempts is:
===
Loading Error
Gateway Timeout
===
However, when I go to KoBoCAT (port=8001) I can upload a draft test form downloaded from KPI but cannot "Enter Web Form." After a lengthy delay a "502 Bad Gateway," response is given. The logs show trouble for kobocat:
===
kobocat_1 | Sun Oct 23 20:42:58 2016 - *** HARAKIRI ON WORKER 1 (pid: 146, try: 1) ***
kobocat_1 | Sun Oct 23 20:42:58 2016 - HARAKIRI !!! worker 1 status !!!
kobocat_1 | Sun Oct 23 20:42:58 2016 - HARAKIRI [core 0] 192.168.1.154 - GET /kobo/forms/a8b79dWjg5suLK3d5WW6rJ/enter-data since 1477269657
kobocat_1 | Sun Oct 23 20:42:58 2016 - HARAKIRI !!! end of worker 1 status !!!
postgres_1 | 2016-10-24 00:42:58 GMT LOG: unexpected EOF on client connection with an open transaction
kobocat_1 | DAMN ! worker 1 (pid: 146) died, killed by signal 9 :( trying respawn ...
kobocat_1 | Respawned uWSGI worker 1 (new pid: 148)
kobocat_1 | Sun Oct 23 20:44:59 2016 - *** HARAKIRI ON WORKER 2 (pid: 147, try: 1) ***
kobocat_1 | Sun Oct 23 20:44:59 2016 - HARAKIRI !!! worker 2 status !!!
kobocat_1 | Sun Oct 23 20:44:59 2016 - HARAKIRI [core 0] 192.168.1.154 - GET /kobo/forms/a8b79dWjg5suLK3d5WW6rJ/enter-data since 1477269778
kobocat_1 | Sun Oct 23 20:44:59 2016 - HARAKIRI !!! end of worker 2 status !!!
postgres_1 | 2016-10-24 00:44:59 GMT LOG: unexpected EOF on client connection with an open transaction
kobocat_1 | [pid: 148|app: 0|req: 7/10] 192.168.1.154 () {38 vars in 774 bytes} [Sun Oct 23 20:45:00 2016] GET /favicon.ico => generated 0 bytes in 644 msecs (HTTP/1.1 301) 4 headers in 190 bytes (1 switches on core 0)
kobocat_1 | DAMN ! worker 2 (pid: 147) died, killed by signal 9 :( trying respawn ...
kobocat_1 | Respawned uWSGI worker 2 (new pid: 149)
===
The startup logs had a few squawks but I don't know whether or not the discrepancies are relevant.
===
#1 Preview form at koboCAT=8000
Loading Error
Gateway Time-out
#2 redis_cache_1 redis_main_1
WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
#3
postgres_1 | WARNING: enabling "trust" authentication for local connections
postgres_1 | 2016-10-23 20:57:06 GMT LOG: unexpected EOF on client connection with an open transaction
postgres_1 | 2016-10-23 18:25:43 GMT LOG: incomplete startup packet
#4
enketo_express_1 | >> Local Npm module "grunt-concurrent" not found. Is it installed?
enketo_express_1 | >> Local Npm module "grunt-contrib-jshint" not found. Is it installed?
enketo_express_1 | >> Local Npm module "grunt-contrib-watch" not found. Is it installed?
enketo_express_1 | >> Local Npm module "grunt-jsbeautifier" not found. Is it installed?
enketo_express_1 | >> Local Npm module "grunt-karma" not found. Is it installed?
enketo_express_1 | >> Local Npm module "grunt-mocha-test" not found. Is it installed?
enketo_express_1 | >> Local Npm module "grunt-nodemon" not found. Is it installed?
enketo_express_1 | >> Local Npm module "grunt-shell" not found. Is it installed?
#5
kobocat_1 | *** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
===
I have a feeling I have a wrong setting somewhere but don't have enough experience to know what it might be based on the above symptoms. Diagnostic help would be appreciated.
Regards,
Jake