Kobo-install gives "502 Bad Gateway"

I’m not administrator of Linux systems. I have Ubuntu 18 virtual server with the configuration:
4 CPU
RAM 2Gb
HDD 32 Gb
I use this instruction (`kobo-install` on a fresh Ubuntu 18.04 LTS VPS) to install Kobotoolbox on my server. I’m not using https.
Installation process going smooth until
KoBoToolbox has not started yet. This is can be normal with low CPU/RAM computers.
I wait for another 40 minutes but unsuccessfully. I get 502 Bad Gateway for all 3 domains.
Please, see last strings of ./run.py --logs:

enketo_express_1 | Execution Time (2020-01-07 06:54:24 UTC-0)
enketo_express_1 | loading tasks 1.1s ? 2%
enketo_express_1 | sass:compile 1.1s ? 2%
enketo_express_1 | shell:rollup 29.2s ??? 56%
enketo_express_1 | shell:ie11polyfill 21s ??? 40%
enketo_express_1 | Total 52.5s
enketo_express_1 |
enketo_express_1 | *** /etc/my_init.d/01_setup_enketo.bash failed with status 6
enketo_express_1 |
enketo_express_1 | *** Killing all processes…
kobo-docker_enketo_express_1 exited with code 1
enketo_express_1 | *** Running /etc/my_init.d/00_regen_ssh_host_keys.sh…
enketo_express_1 | *** Running /etc/my_init.d/01_enketo_express_copy_config.bash…
enketo_express_1 | Copying the read-only configuration template into place at /srv/src/enketo_express/config/config.json.
enketo_express_1 | *** Running /etc/my_init.d/01_setup_enketo.bash…
enketo_express_1 | sha1sum: /srv/src/enketo_express/checksum/config.json.sha1: No such file or directory
enketo_express_1 | cat: /srv/src/enketo_express/checksum/last_build_commit.txt: No such file or directory
enketo_express_1 | Grunt needs to be run!
enketo_express_1 | Running “shell:clean-locales” (shell) task
enketo_express_1 |
enketo_express_1 | Running “i18next:locales” (i18next) task
enketo_express_1 |
enketo_express_1 | Running “widgets” task
enketo_express_1 | File public/js/build/widgets.js created
enketo_express_1 | File app/views/styles/component/_widgets.scss created
enketo_express_1 |
enketo_express_1 | Running “shell:clean-css” (shell) task
enketo_express_1 |
enketo_express_1 | Running “system-sass-variables:create” (system-sass-variables) task
enketo_express_1 | File app/views/styles/component/_system_variables.scss created
enketo_express_1 |
enketo_express_1 | Running “sass:compile” (sass) task
enketo_express_1 |
enketo_express_1 | Running “shell:clean-js” (shell) task
enketo_express_1 |
enketo_express_1 | Running “client-config-file:create” (client-config-file) task
enketo_express_1 | File public/js/build/client-config.js created
enketo_express_1 |
enketo_express_1 | Running “widgets” task
enketo_express_1 | File public/js/build/widgets.js created
enketo_express_1 | File app/views/styles/component/_widgets.scss created
enketo_express_1 |
enketo_express_1 | Running “shell:rollup” (shell) task
enketo_express_1 | >> node-resolve: setting options.module is deprecated, please override options.mainFields instead
enketo_express_1 | >> node-resolve: setting options.main is deprecated, please override options.mainFields instead
enketo_express_1 | >> public/js/src/enketo-webform.js > public/js/build/enketo-webform-bundle.js…
enketo_express_1 | >> (!) Circular dependency: public/js/src/module/gui.js -> node_modules/enketo-core/src/js/print.js -> public/js/src/module/gui.js
enketo_express_1 | >> created public/js/build/enketo-webform-bundle.js in 9.8s
enketo_express_1 | >> public/js/src/enketo-webform-edit.js > public/js/build/enketo-webform-edit-bundle.js…
enketo_express_1 | >> (!) Circular dependency: public/js/src/module/gui.js -> node_modules/enketo-core/src/js/print.js -> public/js/src/module/gui.js
enketo_express_1 | >> created public/js/build/enketo-webform-edit-bundle.js in 8.9s
enketo_express_1 | >> public/js/src/enketo-webform-view.js > public/js/build/enketo-webform-view-bundle.js…
kobocat_1 | 2020/01/07 06:55:42 Timeout after 40s waiting on dependencies to become available: [tcp://mongo.stat.private:27017]
kobocat_1 | *** /etc/my_init.d/01_wait_for_mongo.bash failed with status 1
kobocat_1 |
kobocat_1 | *** Killing all processes…
kobo-docker_kobocat_1 exited with code 1
kobocat_1 | *** Running /etc/my_init.d/00_regen_ssh_host_keys.sh…
kobocat_1 | *** Running /etc/my_init.d/01_wait_for_mongo.bash…
kobocat_1 | Waiting for container mongo.
kobocat_1 | 2020/01/07 06:55:44 Waiting for host: tcp://mongo.stat.private:27017
kpi_1 | 2020/01/07 06:55:44 Timeout after 40s waiting on dependencies to become available: [tcp://mongo.stat.private:27017]
kpi_1 | *** /etc/my_init.d/01_wait_for_mongo.bash failed with status 1
kpi_1 |
kpi_1 | *** Killing all processes…
kobo-docker_kpi_1 exited with code 1
kpi_1 | *** Running /etc/my_init.d/00_regen_ssh_host_keys.sh…
kpi_1 | *** Running /etc/my_init.d/01_wait_for_mongo.bash…
kpi_1 | Waiting for container mongo.
kpi_1 | 2020/01/07 06:55:45 Waiting for host: tcp://mongo.stat.private:27017
enketo_express_1 | >> (!) Circular dependency: public/js/src/module/gui.js -> node_modules/enketo-core/src/js/print.js -> public/js/src/module/gui.js
enketo_express_1 | >> created public/js/build/enketo-webform-view-bundle.js in 11.1s
enketo_express_1 | >> public/js/src/enketo-offline-fallback.js > public/js/build/enketo-offline-fallback-bundle.js…
enketo_express_1 | >> created public/js/build/enketo-offline-fallback-bundle.js in 30ms
enketo_express_1 |
enketo_express_1 | Running “shell:ie11polyfill” (shell) task
enketo_express_1 | >>
enketo_express_1 | >>
enketo_express_1 | >> % Total % Received % Xferd Average Speed Time Time Time Current
enketo_express_1 | >> Dload Upload Total Spent Left
enketo_express_1 | >> Speed
0 0 0 0 0 0 0
enketo_express_1 | >> 0 --:–:-- --:–:-- --:–:-- 0
enketo_express_1 | >> 0 0 0
enketo_express_1 | >> 0 0 0 0 0 --:–:-- 0:00:01 --:–:-- 0
enketo_express_1 | >> 0 0 0
enketo_express_1 | >> 0 0 0 0 0 --:–:-- 0:00:02 --:–:-- 0
enketo_express_1 | >> 0 0 0
enketo_express_1 | >> 0 0 0 0 0 --:–:-- 0:00:03 --:–:-- 0
enketo_express_1 | >> 0 0 0
enketo_express_1 | >> 0 0 0 0 0 --:–:-- 0:00:04 --:–:-- 0
enketo_express_1 | >> 0 0 0
enketo_express_1 | >> 0 0 0 0 0 --:–:-- 0:00:05 --:–:-- 0
enketo_express_1 | >> 0 0 0
enketo_express_1 | >> 0 0 0 0 0 --:–:-- 0:00:06 --:–:-- 0
enketo_express_1 | >> 0 0 0
enketo_express_1 | >> 0 0 0 0 0 --:–:-- 0:00:07 --:–:-- 0
enketo_express_1 | >> 0 0 0 0
enketo_express_1 | >> 0 0 0 0 --:–:-- 0:00:08 --:–:-- 0
enketo_express_1 | >> 0 0 0
enketo_express_1 | >> 0 0 0 0 0 --:–:-- 0:00:09 --:–:-- 0
enketo_express_1 | >> 0 0
enketo_express_1 | >> 0 0 0 0 0 0 --:–:-- 0:00:10 --:–:-- 0
enketo_express_1 | >> 0 0 0
enketo_express_1 | >> 0 0 0 0 0 --:–:-- 0:00:11 --:–:-- 0
enketo_express_1 | >> 0 0 0 0 0
enketo_express_1 | >> 0 0 0 --:–:-- 0:00:12 --:–:-- 0
enketo_express_1 | >> 0 0
enketo_express_1 | >> 0 0 0 0 0 0 --:–:-- 0:00:13 --:–:-- 0
enketo_express_1 | >> 0 0
enketo_express_1 | >> 0 0 0 0 0 0 --:–:-- 0:00:14 --:–:-- 0
enketo_express_1 | >> 0 0 0
enketo_express_1 | >> 0 0 0 0 0 --:–:-- 0:00:15 --:–:-- 0
enketo_express_1 | >> 0 0
enketo_express_1 | >> 0 0 0 0 0 0 --:–:-- 0:00:16 --:–:-- 0
enketo_express_1 | >> 0 0 0
enketo_express_1 | >> 0 0 0 0 0 --:–:-- 0:00:17 --:–:-- 0
enketo_express_1 | >> 0 0 0
enketo_express_1 | >> 0 0 0 0 0 --:–:-- 0:00:18 --:–:-- 0
enketo_express_1 | >> 0 0 0
enketo_express_1 | >> 0 0 0 0 0 --:–:-- 0:00:19 --:–:-- 0
enketo_express_1 | >> curl: (6) Could no
enketo_express_1 | >> t resolve host: polyfill.io
enketo_express_1 | Warning: Done, with errors: command “mkdir -p public/js/build && curl “https://polyfill.io/v3/polyfill.min.js?ua=ie%2F11.0.0&features=es2015%2Ces2016%2Ces2017%2Ces2018%2Cdefault-3.6%2Cfetch%2CNodeList.prototype.forEach” -o “public/js/build/ie11-polyfill.min.js”&&cp -f node_modules/enketo-core/src/js/obscure-ie11-polyfills.js public/js/build/obscure-ie11-polyfills.js” (target “ie11polyfill”) exited with code 6. Use --force to continue.
enketo_express_1 |
enketo_express_1 | Aborted due to warnings.
enketo_express_1 |
enketo_express_1 |
enketo_express_1 | Execution Time (2020-01-07 06:55:19 UTC-0)
enketo_express_1 | loading tasks 1.2s ? 2%
enketo_express_1 | sass:compile 1s ? 2%
enketo_express_1 | shell:rollup 30.4s ??? 57%
enketo_express_1 | shell:ie11polyfill 20.6s ??? 39%
enketo_express_1 | Total 53.3s
enketo_express_1 |
enketo_express_1 | *** /etc/my_init.d/01_setup_enketo.bash failed with status 6
enketo_express_1 |
enketo_express_1 | *** Killing all processes…
kobo-docker_enketo_express_1 exited with code 1
enketo_express_1 | *** Running /etc/my_init.d/00_regen_ssh_host_keys.sh…
enketo_express_1 | *** Running /etc/my_init.d/01_enketo_express_copy_config.bash…
enketo_express_1 | Copying the read-only configuration template into place at /srv/src/enketo_express/config/config.json.
enketo_express_1 | *** Running /etc/my_init.d/01_setup_enketo.bash…
enketo_express_1 | sha1sum: /srv/src/enketo_express/checksum/config.json.sha1: No such file or directory
enketo_express_1 | cat: /srv/src/enketo_express/checksum/last_build_commit.txt: No such file or directory
enketo_express_1 | Grunt needs to be run!
enketo_express_1 | Running “shell:clean-locales” (shell) task
enketo_express_1 |
enketo_express_1 | Running “i18next:locales” (i18next) task
enketo_express_1 |
enketo_express_1 | Running “widgets” task
enketo_express_1 | File public/js/build/widgets.js created
enketo_express_1 | File app/views/styles/component/_widgets.scss created
enketo_express_1 |
enketo_express_1 | Running “shell:clean-css” (shell) task
enketo_express_1 |
enketo_express_1 | Running “system-sass-variables:create” (system-sass-variables) task
enketo_express_1 | File app/views/styles/component/_system_variables.scss created
enketo_express_1 |
enketo_express_1 | Running “sass:compile” (sass) task
enketo_express_1 |
enketo_express_1 | Running “shell:clean-js” (shell) task
enketo_express_1 |
enketo_express_1 | Running “client-config-file:create” (client-config-file) task
enketo_express_1 | File public/js/build/client-config.js created
enketo_express_1 |
enketo_express_1 | Running “widgets” task
enketo_express_1 | File public/js/build/widgets.js created
enketo_express_1 | File app/views/styles/component/_widgets.scss created
enketo_express_1 |
enketo_express_1 | Running “shell:rollup” (shell) task
enketo_express_1 | >> node-resolve: setting options.module is deprecated, please override options.mainFields instead
enketo_express_1 | >> node-resolve: setting options.main is deprecated, please override options.mainFields instead
enketo_express_1 | >> public/js/src/enketo-webform.js > public/js/build/enketo-webform-bundle.js…
enketo_express_1 | >> (!) Circular dependency: public/js/src/module/gui.js -> node_modules/enketo-core/src/js/print.js -> public/js/src/module/gui.js
kobocat_1 | 2020/01/07 06:56:24 Timeout after 40s waiting on dependencies to become available: [tcp://mongo.stat.private:27017]
kobocat_1 | *** /etc/my_init.d/01_wait_for_mongo.bash failed with status 1
kobocat_1 |
kobocat_1 | *** Killing all processes…
kobo-docker_kobocat_1 exited with code 1
kobocat_1 | *** Running /etc/my_init.d/00_regen_ssh_host_keys.sh…
kobocat_1 | *** Running /etc/my_init.d/01_wait_for_mongo.bash…
kobocat_1 | Waiting for container mongo.
kobocat_1 | 2020/01/07 06:56:25 Waiting for host: tcp://mongo.stat.private:27017
kpi_1 | 2020/01/07 06:56:25 Timeout after 40s waiting on dependencies to become available: [tcp://mongo.stat.private:27017]
kpi_1 | *** /etc/my_init.d/01_wait_for_mongo.bash failed with status 1
kpi_1 |
kpi_1 | *** Killing all processes…
kobo-docker_kpi_1 exited with code 1
kpi_1 | *** Running /etc/my_init.d/00_regen_ssh_host_keys.sh…
kpi_1 | *** Running /etc/my_init.d/01_wait_for_mongo.bash…
kpi_1 | Waiting for container mongo.
kpi_1 | 2020/01/07 06:56:27 Waiting for host: tcp://mongo.stat.private:27017
enketo_express_1 | >> created public/js/build/enketo-webform-bundle.js in 10.2s
enketo_express_1 | >> public/js/src/enketo-webform-edit.js > public/js/build/enketo-webform-edit-bundle.js…
enketo_express_1 | >> (!) Circular dependency: public/js/src/module/gui.js -> node_modules/enketo-core/src/js/print.js -> public/js/src/module/gui.js
^Z

Hello @nbtl2cu ,

It seems that polyfill.io was not responding when you tried to install.

enketo_express_1 | >> curl: (6) Could no
enketo_express_1 | >> t resolve host: polyfill.io
enketo_express_1 | Warning: Done, with errors: command “mkdir -p public/js/build && curl “https://polyfill.io/v3/polyfill.min.js?ua=ie%2F11.0.0&features=es2015%2Ces2016%2Ces2017%2Ces2018%2Cdefault-3.6%2Cfetch%2CNodeList.prototype.forEach” -o “public/js/build/ie11-polyfill.min.js”&&cp -f node_modules/enketo-core/src/js/obscure-ie11-polyfills.js public/js/build/obscure-ie11-polyfills.js” (target “ie11polyfill”) exited with code 6. Use --force to continue

so enketo express failed to build the app.
If you retry now, does it still occur?

1 Like