Closed mdestaubin closed 5 years ago
Reproducible locally (note "themesSupported":[]
in the built client-config.js
):
john@scrappy:~/Documents/kobo/dockdev/1db/kobo-install$ ./run.py -cf ps Name Command State Ports ------------------------------ john@scrappy:~/Documents/kobo/dockdev/1db/kobo-install$ sudo rm -fr ../kobo-docker/.vols/enketo_express/ [sudo] password for john: john@scrappy:~/Documents/kobo/dockdev/1db/kobo-install$ ./run.py -cf up enketo_express & [1] 21031 john@scrappy:~/Documents/kobo/dockdev/1db/kobo-install$ WARNING: Found orphan containers (1db_redis_main_1, 1db_redis_cache_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. Creating 1db_enketo_express_1 ... done Attaching to 1db_enketo_express_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 9s 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 8s enketo_express_1 | >> public/js/src/enketo-webform-view.js → public/js/build/enketo-webform-view-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-view-bundle.js in 10.5s 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 40ms enketo_express_1 | enketo_express_1 | Running "shell:ie11polyfill" (shell) task enketo_express_1 | >> % Total % Received % Xferd enketo_express_1 | >> Average Speed Time Time Time Current enketo_express_1 | >> Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 enketo_express_1 | >> 100 93157 1 enketo_express_1 | >> 00 93157 0 0 183k 0 --:--:-- --:--:-- --:--:-- 183k enketo_express_1 | enketo_express_1 | Running "shell:babel" (shell) task enketo_express_1 | enketo_express_1 | WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. enketo_express_1 | enketo_express_1 | You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: enketo_express_1 | enketo_express_1 | npm install --save core-js@2 npm install --save core-js@3 enketo_express_1 | yarn add core-js@2 yarn add core-js@3 enketo_express_1 | enketo_express_1 | >> [BABEL] Note: The code generator has deoptimised the styling of /srv/src/enketo_express/public/js/build/enketo-webform-bundle.js as it exceeds the max of 500KB. enketo_express_1 | enketo_express_1 | WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. enketo_express_1 | enketo_express_1 | You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: enketo_express_1 | enketo_express_1 | npm install --save core-js@2 npm install --save core-js@3 enketo_express_1 | yarn add core-js@2 yarn add core-js@3 enketo_express_1 | enketo_express_1 | >> [BABEL] Note: The code generator has deoptimised the styling of /srv/src/enketo_express/public/js/build/enketo-webform-edit-bundle.js as it exceeds the max of 500KB. enketo_express_1 | enketo_express_1 | WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. enketo_express_1 | enketo_express_1 | You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: enketo_express_1 | enketo_express_1 | npm install --save core-js@2 npm install --save core-js@3 enketo_express_1 | yarn add core-js@2 yarn add core-js@3 enketo_express_1 | enketo_express_1 | >> [BABEL] Note: The code generator has deoptimised the styling of /srv/src/enketo_express/public/js/build/enketo-webform-view-bundle.js as it exceeds the max of 500KB. enketo_express_1 | enketo_express_1 | WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. enketo_express_1 | enketo_express_1 | You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: enketo_express_1 | enketo_express_1 | npm install --save core-js@2 npm install --save core-js@3 enketo_express_1 | yarn add core-js@2 yarn add core-js@3 enketo_express_1 | enketo_express_1 | enketo_express_1 | Running "shell:browserify" (shell) task enketo_express_1 | >> npx: installed 140 in 8.014s enketo_express_1 | >> npx: installed 140 in 3.332s enketo_express_1 | >> npx: installed 140 in 3.349s enketo_express_1 | >> npx: installed 140 in 3.322s enketo_express_1 | enketo_express_1 | Running "terser:all" (terser) task enketo_express_1 | File "public/js/build/enketo-webform-bundle.min.js" created. enketo_express_1 | File "public/js/build/enketo-webform-edit-bundle.min.js" created. enketo_express_1 | File "public/js/build/enketo-webform-view-bundle.min.js" created. enketo_express_1 | File "public/js/build/enketo-offline-fallback-bundle.min.js" created. enketo_express_1 | File "public/js/build/enketo-webform-ie11-bundle.min.js" created. enketo_express_1 | File "public/js/build/enketo-webform-edit-ie11-bundle.min.js" created. enketo_express_1 | File "public/js/build/enketo-webform-view-ie11-bundle.min.js" created. enketo_express_1 | File "public/js/build/enketo-offline-fallback-ie11-bundle.min.js" created. enketo_express_1 | enketo_express_1 | Done. enketo_express_1 | enketo_express_1 | enketo_express_1 | Execution Time (2019-06-19 22:30:10 UTC-0) enketo_express_1 | shell:rollup 28.1s ▇▇▇▇▇ 11% enketo_express_1 | shell:babel 57s ▇▇▇▇▇▇▇▇▇▇ 22% enketo_express_1 | shell:browserify 30.1s ▇▇▇▇▇▇ 11% enketo_express_1 | terser:all 2m 24s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 55% enketo_express_1 | Total 4m 22s enketo_express_1 | enketo_express_1 | Saving current commit... enketo_express_1 | Saving config hash... enketo_express_1 | Creating .not-empty files enketo_express_1 | *** Running /etc/my_init.d/10_syslog-ng.init... enketo_express_1 | Jun 19 22:34:32 a86b26b7bfe7 syslog-ng[277]: syslog-ng starting up; version='3.5.6' enketo_express_1 | Jun 19 22:34:33 a86b26b7bfe7 syslog-ng[277]: EOF on control channel, closing connection; enketo_express_1 | *** Running /etc/rc.local... enketo_express_1 | *** Booting runit daemon... enketo_express_1 | *** Runit started as PID 283 enketo_express_1 | Jun 19 22:34:33 a86b26b7bfe7 cron[288]: (CRON) INFO (pidfile fd = 3) enketo_express_1 | Jun 19 22:34:33 a86b26b7bfe7 cron[288]: (CRON) INFO (Running @reboot jobs) enketo_express_1 | [PM2][Initialization] Environment variable HOME (Linux) or HOMEPATH (Windows) are not set! enketo_express_1 | [PM2][Initialization] Defaulting to /etc/.pm2 enketo_express_1 | enketo_express_1 | ------------- enketo_express_1 | enketo_express_1 | __/\\\\\\\\\\\\\____/\\\\____________/\\\\____/\\\\\\\\\_____ enketo_express_1 | _\/\\\/////////\\\_\/\\\\\\________/\\\\\\__/\\\///////\\\___ enketo_express_1 | _\/\\\_______\/\\\_\/\\\//\\\____/\\\//\\\_\///______\//\\\__ enketo_express_1 | _\/\\\\\\\\\\\\\/__\/\\\\///\\\/\\\/_\/\\\___________/\\\/___ enketo_express_1 | _\/\\\/////////____\/\\\__\///\\\/___\/\\\________/\\\//_____ enketo_express_1 | _\/\\\_____________\/\\\____\///_____\/\\\_____/\\\//________ enketo_express_1 | _\/\\\_____________\/\\\_____________\/\\\___/\\\/___________ enketo_express_1 | _\/\\\_____________\/\\\_____________\/\\\__/\\\\\\\\\\\\\\\_ enketo_express_1 | _\///______________\///______________\///__\///////////////__ enketo_express_1 | enketo_express_1 | enketo_express_1 | Runtime Edition enketo_express_1 | enketo_express_1 | PM2 is a Production Process Manager for Node.js applications enketo_express_1 | with a built-in Load Balancer. enketo_express_1 | enketo_express_1 | Start and Daemonize any application: enketo_express_1 | $ pm2 start app.js enketo_express_1 | enketo_express_1 | Load Balance 4 instances of api.js: enketo_express_1 | $ pm2 start api.js -i 4 enketo_express_1 | enketo_express_1 | Monitor in production: enketo_express_1 | $ pm2 monitor enketo_express_1 | enketo_express_1 | Make pm2 auto-boot at server restart: enketo_express_1 | $ pm2 startup enketo_express_1 | enketo_express_1 | To go further checkout: enketo_express_1 | http://pm2.io/ enketo_express_1 | enketo_express_1 | enketo_express_1 | ------------- enketo_express_1 | enketo_express_1 | pm2 launched in no-daemon mode (you can add DEBUG="*" env variable to get more messages) enketo_express_1 | 2019-06-19T22:34:34: PM2 log: Launching in no daemon mode enketo_express_1 | 2019-06-19T22:34:34: PM2 log: [PM2] Starting /srv/src/enketo_express/app.js in fork_mode (1 instance) enketo_express_1 | 2019-06-19T22:34:34: PM2 log: App [enketo:0] starting in -fork mode- enketo_express_1 | 2019-06-19T22:34:34: PM2 log: App [enketo:0] online enketo_express_1 | 2019-06-19T22:34:34: PM2 log: [PM2] Done. enketo_express_1 | 2019-06-19T22:34:34: PM2 log: ┌──────────┬────┬─────────┬──────┬─────┬────────┬─────────┬────────┬─────┬───────────┬──────┬──────────┐ enketo_express_1 | │ App name │ id │ version │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │ enketo_express_1 | ├──────────┼────┼─────────┼──────┼─────┼────────┼─────────┼────────┼─────┼───────────┼──────┼──────────┤ enketo_express_1 | │ enketo │ 0 │ 1.77.0 │ fork │ 298 │ online │ 0 │ 0s │ 0% │ 28.6 MB │ root │ disabled │ enketo_express_1 | └──────────┴────┴─────────┴──────┴─────┴────────┴─────────┴────────┴─────┴───────────┴──────┴──────────┘ enketo_express_1 | 2019-06-19T22:34:34: PM2 log: Use `pm2 show <id|name>` to get more details about an app enketo_express_1 | 2019-06-19T22:34:34: PM2 log: [--no-daemon] Continue to stream logs enketo_express_1 | 2019-06-19T22:34:34: PM2 log: [--no-daemon] Exit on target PM2 exit pid=287 enketo_express_1 | 22:34:36 0|enketo | Worker 4 ready for duty at port 8005! (environment: production) enketo_express_1 | 22:34:36 0|enketo | Worker 2 ready for duty at port 8005! (environment: production) enketo_express_1 | 22:34:36 0|enketo | Worker 3 ready for duty at port 8005! (environment: production) enketo_express_1 | 22:34:36 0|enketo | Worker 1 ready for duty at port 8005! (environment: production) john@scrappy:~/Documents/kobo/dockdev/1db/kobo-install$ cat ../kobo-docker/.vols/enketo_express/build/js/client-config.js ; echo export default {"googleApiKey":"","maps":[{"name":"streets","tiles":["https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"],"attribution":"© <a href=\"http://openstreetmap.org\">OpenStreetMap</a> | <a href=\"www.openstreetmap.org/copyright\">Terms</a>"}],"modernBrowsersURL":"modern-browsers","supportEmail":"support@kobotoolbox.org","themesSupported":[],"defaultTheme":"kobo","languagesSupported":["ar","cs","de","el","en","es","fa","fi","fr","hi","it","lo","nl","no","pl","pt","ro","ru","sk","sv","sw","vi","zh"],"timeout":300000,"submissionParameter":{"name":""},"basePath":"","repeatOrdinals":false,"validateContinuously":false,"validatePage":true,"textMaxChars":2000}; john@scrappy:~/Documents/kobo/dockdev/1db/kobo-install$
Closing in favor of https://github.com/kobotoolbox/enketo-express/issues/477, which I've moved manually to https://github.com/enketo/enketo/issues/1170.
Description
On OCHA server, when selecting the Grid theme as the form style in the formbuilder it only shows as the default - single page theme.
Steps to Reproduce
Expected behavior
The form should be in the grid theme style
Actual behavior
It is formatted as the default - single page view instead
Additional details
Forum Post here