HI!
I tried run again the setup script with HTTPS but without the auto-certificate, instead i use SSL on the reverse proxy option (that reverse proxy IP is 192.168.1.96) Also i select port 8080 as internal reverse proxy, and this time server did start!
but, i still cannot navigate into it with a browser with https://data.yanapak.org, because it re-directs me to the private IP adress of the kobo machine (192.168.1.151)
.
.
.
So i tried GET
https://data.yanapak.org/service_health/ and now I DO have an error!
I tried to change that file, but i do not know where! there is nothing as hostname in line 50.
Please help!!
also i paste here logs of the kobo machine, if it helps!
Attaching to kobofe_enketo_express_1, kobofe_kpi_1, kobofe_nginx_1, kobofe_kobocat_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 |
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 | 2021-04-17T19:20:09: PM2 log: Launching in no daemon mode
enketo_express_1 | 2021-04-17T19:20:10: PM2 log: [PM2] Starting /srv/src/enketo_express/app.js in fork_mode (1 instance)
enketo_express_1 | 2021-04-17T19:20:10: PM2 log: App [enketo:0] starting in -fork mode-
enketo_express_1 | 2021-04-17T19:20:10: PM2 log: App [enketo:0] online
enketo_express_1 | 2021-04-17T19:20:10: PM2 log: [PM2] Done.
enketo_express_1 | 2021-04-17T19:20:10: PM2 log: ┌─────┬───────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
enketo_express_1 | │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
enketo_express_1 | ├─────┼───────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
enketo_express_1 | │ 0 │ enketo │ default │ 2.5.6 │ fork │ 27 │ 0s │ 0 │ online │ 0% │ 30.7mb │ root │ disabled │
enketo_express_1 | └─────┴───────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
enketo_express_1 | 2021-04-17T19:20:10: PM2 log: [--no-daemon] Continue to stream logs
enketo_express_1 | 2021-04-17T19:20:10: PM2 log: [--no-daemon] Exit on target PM2 exit pid=1
enketo_express_1 | 2021-04-17T19:20:10: PM2 log: [PM2] This PM2 is not UP TO DATE
enketo_express_1 | 2021-04-17T19:20:10: PM2 log: [PM2] Upgrade to version 4.5.6
enketo_express_1 | 19:20:10 PM2 | [PM2] This PM2 is not UP TO DATE
enketo_express_1 | 19:20:10 PM2 | [PM2] Upgrade to version 4.5.6
enketo_express_1 | 19:20:12 0|enketo | Worker 1 ready for duty at port 8005! (environment: production)
enketo_express_1 | 19:20:12 0|enketo | Worker 2 ready for duty at port 8005! (environment: production)
nginx_1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx_1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
nginx_1 | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
nginx_1 | 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
nginx_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
nginx_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-init-kobo-nginx.sh
nginx_1 | Creating includes directory
nginx_1 | Overwriting default nginx configuration
nginx_1 | Clearing out any default configurations
nginx_1 | Proxying to `kpi` through uWSGI.
nginx_1 | Proxying to `kobocat` through uWSGI.
nginx_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
nginx_1 | /docker-entrypoint.sh: Configuration complete; ready for start up
kpi_1 | KoBoForm initializing...
kpi_1 | Waiting for container `mongo`.
kpi_1 | 2021/04/17 19:20:11 Waiting for: tcp://mongo.yanapak.private:27017
kpi_1 | 2021/04/17 19:20:11 Connected to tcp://mongo.yanapak.private:27017
kpi_1 | Container `mongo` up.
kpi_1 | Waiting for container `postgres`.
kpi_1 | 2021/04/17 19:20:11 Waiting for: tcp://postgres.yanapak.private:5432
kpi_1 | 2021/04/17 19:20:11 Connected to tcp://postgres.yanapak.private:5432
kpi_1 | Container `postgres` up.
kpi_1 | Waiting for Postgres service.
kpi_1 | postgres.yanapak.private:5432 - accepting connections
kpi_1 | Postgres service running; ensuring koboform database exists and has PostGIS extensions...
kpi_1 | ERROR: database "koboform" already exists
kpi_1 | You are now connected to database "koboform" as user "kobo".
kpi_1 | CREATE EXTENSION
kpi_1 | NOTICE: extension "postgis" already exists, skipping
kpi_1 | NOTICE: extension "postgis_topology" already exists, skipping
kpi_1 | CREATE EXTENSION
kpi_1 | NOTICE: extension "fuzzystrmatch" already exists, skipping
kpi_1 | CREATE EXTENSION
kpi_1 | CREATE EXTENSION
kpi_1 | NOTICE: extension "postgis_tiger_geocoder" already exists, skipping
kpi_1 | Postgres database koboform ready for use!
kpi_1 | Running migrations...
kpi_1 | Operations to perform:
kpi_1 | Apply all migrations: admin, auth, authtoken, contenttypes, database, django_celery_beat, django_digest, external_integrations, help, hook, hub, kpi, oauth2_provider, registration, reversion, sessions, taggit
kpi_1 | Running migrations:
kpi_1 | No migrations to apply.
kpi_1 | Your models have changes that are not yet reflected in a migration, and so won't be applied.
kpi_1 | Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
kpi_1 | Creating superuser...
kpi_1 | User already exists.
kpi_1 | Copying static files to nginx volume...
kpi_1 | Cleaning up Celery PIDs...
kpi_1 | KoBoForm initialization completed.
kpi_1 | Running `kpi` container with uWSGI application server.
kpi_1 | [uWSGI] getting INI configuration from /srv/src/kpi/uwsgi.ini
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 | 2021/04/17 19:20:10 Waiting for host: tcp://mongo.yanapak.private:27017
kobocat_1 | 2021/04/17 19:20:10 Connected to tcp://mongo.yanapak.private:27017
kobocat_1 | Container `mongo` up.
kobocat_1 | *** Running /etc/my_init.d/02_wait_for_postgres.bash...
kobocat_1 | Waiting for container `postgres`.
kobocat_1 | 2021/04/17 19:20:10 Waiting for host: tcp://postgres.yanapak.private:5432
kobocat_1 | 2021/04/17 19:20:10 Connected to tcp://postgres.yanapak.private:5432
kobocat_1 | Container `postgres` up.
kobocat_1 | Waiting for Postgres service.
kobocat_1 | postgres.yanapak.private:5432 - accepting connections
kobocat_1 | Postgres service running; ensuring kobocat database exists and has PostGIS extensions...
kobocat_1 | ERROR: database "kobocat" already exists
kobocat_1 | You are now connected to database "kobocat" as user "kobo".
kobocat_1 | NOTICE: extension "postgis" already exists, skipping
kobocat_1 | CREATE EXTENSION
kobocat_1 | NOTICE: extension "postgis_topology" already exists, skipping
kobocat_1 | CREATE EXTENSION
kobocat_1 | NOTICE: extension "fuzzystrmatch" already exists, skipping
kobocat_1 | CREATE EXTENSION
kobocat_1 | NOTICE: extension "postgis_tiger_geocoder" already exists, skipping
kobocat_1 | CREATE EXTENSION
kobocat_1 | Postgres database kobocat ready for use!
kobocat_1 | *** Running /etc/my_init.d/03_wait_for_kpi.bash...
kobocat_1 | Waiting for container `kpi`.
kobocat_1 | 2021/04/17 19:20:10 Waiting for host: tcp://kpi:8000
kobocat_1 | 2021/04/17 19:20:21 Connected to tcp://kpi:8000
kobocat_1 | Container `kpi` up.
kobocat_1 | Waiting for `kpi` web service.
kobocat_1 | `kpi` web service ready.
kobocat_1 | *** Running /etc/my_init.d/10_init_kobocat.bash...
kobocat_1 | KoBoCAT intializing...
kobocat_1 | Synchronizing database.
kobocat_1 | Your environment is:"onadata.settings.kc_environ"
kobocat_1 | Operations to perform:
kobocat_1 | Synchronize unmigrated apps: gis, staticfiles, admindocs, messages, django_extensions, readonly, humanize, export, django_nose, rest_framework, libs, corsheaders, survey_report, sms_support, pure_pagination
kobocat_1 | Apply all migrations: authtoken, oauth2_provider, reversion, django_celery_beat, admin, guardian, sessions, sites, auth, viewer, django_digest, contenttypes, api, taggit, registration, logger, main, restservice
kobocat_1 | Synchronizing apps without migrations:
kobocat_1 | Creating tables...
kobocat_1 | Running deferred SQL...
kobocat_1 | Installing custom SQL...
kobocat_1 | Running migrations:
kobocat_1 | No migrations to apply.
kobocat_1 | Your models have changes that are not yet reflected in a migration, and so won't be applied.
kobocat_1 | Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
kobocat_1 | Running migrations.
kobocat_1 | Your environment is:"onadata.settings.kc_environ"
kobocat_1 | Operations to perform:
kobocat_1 | Synchronize unmigrated apps: gis, staticfiles, admindocs, messages, django_extensions, readonly, humanize, export, django_nose, rest_framework, libs, corsheaders, survey_report, sms_support, pure_pagination
kobocat_1 | Apply all migrations: authtoken, oauth2_provider, reversion, django_celery_beat, admin, guardian, sessions, sites, auth, viewer, django_digest, contenttypes, api, taggit, registration, logger, main, restservice
kobocat_1 | Synchronizing apps without migrations:
kobocat_1 | Creating tables...
kobocat_1 | Running deferred SQL...
kobocat_1 | Installing custom SQL...
kobocat_1 | Running migrations:
kobocat_1 | No migrations to apply.
kobocat_1 | Your models have changes that are not yet reflected in a migration, and so won't be applied.
kobocat_1 | Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
kobocat_1 | KoBoCat tmp clean-up cron installed
kobocat_1 | KoBoCAT media automatic backups disabled.
kobocat_1 | KoBoCAT initialization complete.
kobocat_1 | *** Running /etc/my_init.d/10_syslog-ng.init...
kobocat_1 | Apr 17 19:20:38 kobocat syslog-ng[70]: syslog-ng starting up; version='3.5.6'
kobocat_1 | Apr 17 19:20:39 kobocat syslog-ng[70]: EOF on control channel, closing connection;
kobocat_1 | *** Running /etc/my_init.d/11_sync_static.bash...
kobocat_1 | Collecting static files...
kobocat_1 | Your environment is:"onadata.settings.kc_environ"
kobocat_1 | Done
kobocat_1 | Resetting ownership of media directory...
kobocat_1 | Done.
kobocat_1 | %%%%%%% NOTICE %%%%%%%
kobocat_1 | % To avoid long delays, we no longer reset ownership *recursively*
kobocat_1 | % every time this container starts. If you have trouble with
kobocat_1 | % permissions, please run the following command inside the
kobocat_1 | % `kobocat` container:
kobocat_1 | % chown -R "wsgi" "/srv/src/kobocat"
kobocat_1 | %%%%%%%%%%%%%%%%%%%%%%
kobocat_1 | Syncing to nginx folder...
kobocat_1 | Done
kobocat_1 | *** Running /etc/rc.local...
kobocat_1 | *** Booting runit daemon...
kobocat_1 | *** Runit started as PID 92
kobocat_1 | Apr 17 19:20:41 kobocat cron[99]: (CRON) INFO (pidfile fd = 3)
kobocat_1 | Apr 17 19:20:41 kobocat cron[99]: (CRON) INFO (Running @reboot jobs)
kobocat_1 | *** Starting uWSGI 2.0.18 (64bit) on [Sat Apr 17 19:20:41 2021] ***
kobocat_1 | compiled with version: 5.4.0 20160609 on 11 June 2019 18:32:31
kobocat_1 | os: Linux-4.15.0-142-generic #146-Ubuntu SMP Tue Apr 13 01:11:19 UTC 2021
kobocat_1 | nodename: kobocat
kobocat_1 | machine: x86_64
kobocat_1 | clock source: unix
kobocat_1 | pcre jit disabled
kobocat_1 | detected number of CPU cores: 2
kobocat_1 | current working directory: /etc/service/uwsgi_wrong_port_warning
kobocat_1 | detected binary path: /usr/local/bin/uwsgi
kobocat_1 | setuid() to 1000
kobocat_1 | *** WARNING: you are running uWSGI without its master process manager ***
kobocat_1 | your memory page size is 4096 bytes
kobocat_1 | detected max file descriptor number: 1048576
kobocat_1 | lock engine: pthread robust mutexes
kobocat_1 | thunder lock: disabled (you can enable it with --thunder-lock)
kobocat_1 | uwsgi socket 0 bound to TCP address :8000 fd 3
kobocat_1 | Python version: 2.7.12 (default, Nov 12 2018, 14:36:49) [GCC 5.4.0 20160609]
kobocat_1 | Running `kobocat` container with uWSGI application server.
kobocat_1 | *** Python threads support is disabled. You can enable it with --enable-threads ***
kobocat_1 | Python main interpreter initialized at 0x25cbf50
kobocat_1 | your server socket listen backlog is limited to 100 connections
kobocat_1 | your mercy for graceful operations on workers is 60 seconds
kobocat_1 | mapped 72920 bytes (71 KB) for 1 cores
kobocat_1 | *** Operational MODE: single process ***
kobocat_1 | WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x25cbf50 pid: 103 (default app)
kobocat_1 | *** uWSGI is running in multiple interpreter mode ***
kobocat_1 | spawned uWSGI worker 1 (and the only) (pid: 103, cores: 1)
kobocat_1 | [uWSGI] getting INI configuration from /srv/src/kobocat/docker/kobocat.ini