Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (cchq) ccc@monolith:~/commcare-cloud$ commcare-cloud monolith deploy formplayer
- Preparing to deploy Formplayer to: monolith
- The property py3_include_venv is deprecated and has no effect.
- Feel free to remove it from your fab-settings.yml.
- The property py3_run_deploy is deprecated and has no effect.
- Feel free to remove it from your fab-settings.yml.
- >> Compiling deploy summary
- Error getting current formplayer version: HTTPConnectionPool(host='197.x.x.x', port=8081): Max retries exceeded with url: /info (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82a891c358>: Failed to establish a new connection: [Errno 111] Connection refused',))
- New version details:
- Release Name : 2021-05-03_10.29
- Commit : 9948ee0139f93db2e66a54b6878c2b1ec26f6962
- Commit message : updating files: scripts/staging.yaml
- Commit date : 3 days ago (2021-04-30T05:04:12+0000)
- Build time : 8 hours ago (2021-05-03T02:17:28.285Z)
- Continue with deploy? [y/N]y
- >> Sending email: ccc has initiated a Formplayer deploy to monolith
- Ubuntu 18.04.5 LTS
- /home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
- """)
- Traceback (most recent call last):
- File "manage.py", line 195, in <module>
- main()
- File "manage.py", line 41, in main
- execute_from_command_line(sys.argv)
- File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
- utility.execute()
- File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/__init__.py", line 308, in execute
- settings.INSTALLED_APPS
- File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/conf/__init__.py", line 56, in __getattr__
- self._setup(name)
- File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/conf/__init__.py", line 41, in _setup
- self._wrapped = Settings(settings_module)
- File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/conf/__init__.py", line 110, in __init__
- mod = importlib.import_module(self.SETTINGS_MODULE)
- File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/importlib/__init__.py", line 126, in import_module
- return _bootstrap._gcd_import(name[level:], package, level)
- File "<frozen importlib._bootstrap>", line 994, in _gcd_import
- File "<frozen importlib._bootstrap>", line 971, in _find_and_load
- File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
- File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
- File "<frozen importlib._bootstrap_external>", line 678, in exec_module
- File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
- File "/home/cchq/www/monolith/releases/2020-01-13_09.37/settings.py", line 1437, in <module>
- SHARED_BLOB_DIR_NAME
- File "/home/cchq/www/monolith/releases/2020-01-13_09.37/settingshelper.py", line 28, in __init__
- self.blob_dir = self._init_dir(blob_dir)
- File "/home/cchq/www/monolith/releases/2020-01-13_09.37/settingshelper.py", line 37, in _init_dir
- os.mkdir(path)
- FileExistsError: [Errno 17] File exists: '/opt/shared_monolith/blobdb'
- Connection to 197.x.x.x closed.
- ansible-playbook /home/ccc/commcare-cloud/src/commcare_cloud/ansible/deploy_stack.yml -i /home/ccc/environments/monolith/inventory.ini -e @/home/ccc/environments/monolith/public.yml -e @/home/ccc/environments/monolith/.generated.yml --diff --limit formplayer --tags=formplayer_deploy -u ansible -e @/home/ccc/environments/monolith/vault.yml --vault-password-file=/home/ccc/commcare-cloud/src/commcare_cloud/ansible/echo_vault_password.sh '--ssh-common-args=-o UserKnownHostsFile=/home/ccc/environments/monolith/known_hosts'
- Vault Password for 'monolith':
- [WARNING]: Could not match supplied host pattern, ignoring: cas_proxy
- [WARNING]: Could not match supplied host pattern, ignoring: pna_proxy
- [WARNING]: Could not match supplied host pattern, ignoring: reach_proxy
- [WARNING]: Could not match supplied host pattern, ignoring: plproxy
- [WARNING]: Could not match supplied host pattern, ignoring: citusdb
- [WARNING]: Could not match supplied host pattern, ignoring: commcarehq
- [WARNING]: Could not match supplied host pattern, ignoring: airflow_scheduler
- [WARNING]: Could not match supplied host pattern, ignoring: shared_efs_client_host
- [WARNING]: Could not match supplied host pattern, ignoring: logproxy
- PLAY [update apt cache] *******************************************************************************************************************************************************************
- PLAY [Create host group aliases] **********************************************************************************************************************************************************
- TASK [Create all_commcarehq group alias] **************************************************************************************************************************************************
- ok: [197.x.x.x] => (item=197.x.x.x)
- TASK [Create commcarehq group alias] ******************************************************************************************************************************************************
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- PLAY [Bootstrap Machine] ******************************************************************************************************************************************************************
- PLAY [Common] *****************************************************************************************************************************************************************************
- PLAY [ufw (firewall)] *********************************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [ufw (proxy firewall)] ***************************************************************************************************************************************************************
- PLAY [ufw off (firewall)] *****************************************************************************************************************************************************************
- PLAY [Datadog agent] **********************************************************************************************************************************************************************
- TASK [add datadog integration configs] ****************************************************************************************************************************************************
- skipping: [197.x.x.x] => (item={'name': 'airflow', 'enabled': False})
- skipping: [197.x.x.x] => (item={'name': 'elastic', 'enabled': True})
- skipping: [197.x.x.x] => (item={'name': 'gunicorn', 'enabled': True})
- skipping: [197.x.x.x] => (item={'name': 'kafka', 'enabled': True})
- skipping: [197.x.x.x] => (item={'name': 'kafka_consumer', 'enabled': True})
- skipping: [197.x.x.x] => (item={'name': 'nginx', 'enabled': True})
- skipping: [197.x.x.x] => (item={'name': 'pgbouncer', 'enabled': True})
- skipping: [197.x.x.x] => (item={'name': 'pgbouncer_custom', 'enabled': False})
- skipping: [197.x.x.x] => (item={'name': 'postgres', 'enabled': True})
- skipping: [197.x.x.x] => (item={'name': 'process', 'enabled': False})
- skipping: [197.x.x.x] => (item={'name': 'rabbitmq', 'enabled': False})
- skipping: [197.x.x.x] => (item={'name': 'redisdb', 'enabled': True})
- skipping: [197.x.x.x] => (item={'name': 'zk', 'enabled': True})
- skipping: [197.x.x.x] => (item={'name': 'jmx', 'enabled': True})
- skipping: [197.x.x.x] => (item={'name': 'celery', 'enabled': True})
- skipping: [197.x.x.x] => (item={'name': 'couch', 'enabled': True})
- skipping: [197.x.x.x] => (item={'name': 'couch_custom', 'enabled': True})
- skipping: [197.x.x.x] => (item={'name': 'shell', 'enabled': False})
- skipping: [197.x.x.x] => (item={'name': 'http_check', 'enabled': True})
- skipping: [197.x.x.x] => (item={'name': 'haproxy', 'enabled': True})
- skipping: [197.x.x.x] => (item={'name': 'tcp_check', 'enabled': False})
- skipping: [197.x.x.x] => (item={'name': 'disk', 'enabled': True})
- skipping: [197.x.x.x] => (item={'name': 'swift', 'enabled': []})
- PLAY [Configure monit] ********************************************************************************************************************************************************************
- PLAY [Configure static routes] ************************************************************************************************************************************************************
- PLAY [DNS configuration] ******************************************************************************************************************************************************************
- PLAY [Deploy lpar2rrd agent and server] ***************************************************************************************************************************************************
- PLAY [Create ebsnvme mapping] *************************************************************************************************************************************************************
- [WARNING]: Could not match supplied host pattern, ignoring: lvm
- PLAY [LVM] ********************************************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [Common Database Machine Setup] ******************************************************************************************************************************************************
- PLAY [Create host group aliases] **********************************************************************************************************************************************************
- TASK [Create all_commcarehq group alias] **************************************************************************************************************************************************
- ok: [197.x.x.x] => (item=197.x.x.x)
- TASK [Create commcarehq group alias] ******************************************************************************************************************************************************
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- PLAY [PostgreSQL Machine Setup] ***********************************************************************************************************************************************************
- PLAY [Encrypt WAL Drive] ******************************************************************************************************************************************************************
- PLAY [PostgreSQL] *************************************************************************************************************************************************************************
- TASK [postgresql : Setup plproxy] *********************************************************************************************************************************************************
- skipping: [197.x.x.x] => (item={'create': True, 'django_alias': 'proxy_standby', 'django_migrate': True, 'host': None, 'name': 'commcarehq_proxy_standby', 'options': {}, 'password': None, 'pg_config': [], 'pgbouncer_endpoint': None, 'pgbouncer_hosts': [], 'port': None, 'query_stats': False, 'user': None})
- included: /home/ccc/commcare-cloud/src/commcare_cloud/ansible/roles/postgresql/tasks/plproxy.yml for 197.x.x.x
- [WARNING]: Could not match supplied host pattern, ignoring: pgbouncer
- PLAY [pgbouncer] **************************************************************************************************************************************************************************
- PLAY [Remote PostgreSQL (e.g. Amazon RDS)] ************************************************************************************************************************************************
- PLAY [PostgreSQL Backup] ******************************************************************************************************************************************************************
- TASK [pg_backup : include_tasks] **********************************************************************************************************************************************************
- included: /home/ccc/commcare-cloud/src/commcare_cloud/ansible/roles/pg_backup/tasks/backup_plain.yml for 197.x.x.x
- PLAY [Setup auth for standby] *************************************************************************************************************************************************************
- PLAY [Disable THP] ************************************************************************************************************************************************************************
- PLAY [Install and configure pg_repack] ****************************************************************************************************************************************************
- PLAY [Create host group aliases] **********************************************************************************************************************************************************
- TASK [Create all_commcarehq group alias] **************************************************************************************************************************************************
- ok: [197.x.x.x] => (item=197.x.x.x)
- TASK [Create commcarehq group alias] ******************************************************************************************************************************************************
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- PLAY [CitusDB Machine Setup] **************************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [Encrypt WAL Drive] ******************************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [CitusDB] ****************************************************************************************************************************************************************************
- skipping: no hosts matched
- [WARNING]: Could not match supplied host pattern, ignoring: citusdb_master
- PLAY [pgbouncer] **************************************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [Setup auth for standby] *************************************************************************************************************************************************************
- skipping: no hosts matched
- [WARNING]: Could not match supplied host pattern, ignoring: citusdb_worker
- PLAY [pgbouncer] **************************************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [Disable THP] ************************************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [Common Database Machine Setup] ******************************************************************************************************************************************************
- PLAY [Couchdb 2.0] ************************************************************************************************************************************************************************
- PLAY [Couchdb2 log rolling configurations] ************************************************************************************************************************************************
- PLAY [Couchdb2 proxy] *********************************************************************************************************************************************************************
- PLAY [deploy keepalived] ******************************************************************************************************************************************************************
- PLAY [Redis] ******************************************************************************************************************************************************************************
- [WARNING]: flush_handlers task does not support when conditional
- [WARNING]: Could not match supplied host pattern, ignoring: redis_master
- PLAY [configure the master redis server] **************************************************************************************************************************************************
- skipping: no hosts matched
- [WARNING]: Could not match supplied host pattern, ignoring: redis_slave
- PLAY [configure redis slaves] *************************************************************************************************************************************************************
- skipping: no hosts matched
- [WARNING]: Could not match supplied host pattern, ignoring: redis_sentinel
- PLAY [configure redis sentinel nodes] *****************************************************************************************************************************************************
- skipping: no hosts matched
- [WARNING]: Could not match supplied host pattern, ignoring: keepalived_redis
- PLAY [deploy keepalived] ******************************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [Redis Monitoring] *******************************************************************************************************************************************************************
- PLAY [Elasticsearch] **********************************************************************************************************************************************************************
- PLAY [Common Database Machine Setup] ******************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [RabbitMQ] ***************************************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [RabbitMQ log rolling configurations] ************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [Common Database Machine Setup] ******************************************************************************************************************************************************
- PLAY [Zookeeper] **************************************************************************************************************************************************************************
- PLAY [Kafka] ******************************************************************************************************************************************************************************
- PLAY [Disable THP] ************************************************************************************************************************************************************************
- PLAY [cleanup] ****************************************************************************************************************************************************************************
- PLAY [Java] *******************************************************************************************************************************************************************************
- PLAY [Disable THP] ************************************************************************************************************************************************************************
- PLAY [Create host group aliases] **********************************************************************************************************************************************************
- TASK [Create all_commcarehq group alias] **************************************************************************************************************************************************
- ok: [197.x.x.x] => (item=197.x.x.x)
- TASK [Create commcarehq group alias] ******************************************************************************************************************************************************
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- PLAY [CommcareHQ] *************************************************************************************************************************************************************************
- PLAY [Celery cron jobs for HQ] ************************************************************************************************************************************************************
- PLAY [Temporary task to remove old service directory] *************************************************************************************************************************************
- PLAY [Celery Supervisor Config] ***********************************************************************************************************************************************************
- PLAY [Pillowtop Supervisor Config] ********************************************************************************************************************************************************
- PLAY [Proxy Websockets Supervisor Config] *************************************************************************************************************************************************
- PLAY [Webworker Supervisor Config] ********************************************************************************************************************************************************
- PLAY [Formplayer Supervisor Config] *******************************************************************************************************************************************************
- TASK [commcarehq : set_fact] **************************************************************************************************************************************************************
- ok: [197.x.x.x]
- TASK [commcarehq : set_fact] **************************************************************************************************************************************************************
- ok: [197.x.x.x]
- TASK [commcarehq : create services home] **************************************************************************************************************************************************
- ok: [197.x.x.x]
- TASK [commcarehq : define formplayer spring services] *************************************************************************************************************************************
- --- before: /home/cchq/www/monolith/services/monolith_supervisor_formplayer_spring.conf
- +++ after: /home/ccc/.ansible/tmp/ansible-local-7089ol0lq6yw/tmp1vykynng/supervisor_formplayer_spring.conf.j2
- @@ -1,11 +1,11 @@
- [program:commcare-hq-monolith-formsplayer-spring]
- environment=TMPDIR="/opt/tmp",
- -command=java -jar -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=9998 -Xmx1024m -XX:MaxPermSize=128m -XX:-OmitStackTraceInFastThrow -Xss1024k /home/cchq/www/monolith/current/formplayer_build/formplayer.jar
- +command=java -Xms1024m -Xmx1024m -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+ParallelRefProcEnabled -XX:G1HeapRegionSize=2m -XX:MaxMetaspaceSize=512m -XX:-OmitStackTraceInFastThrow -Xss1024k -jar /home/cchq/www/monolith/formplayer_build/current/formplayer.jar
- user=cchq
- autostart=true
- autorestart=true
- stdout_logfile=/home/cchq/www/monolith/log/formplayer-spring.log
- redirect_stderr=true
- stderr_logfile=/home/cchq/www/monolith/log/formplayer-spring.error.log
- -directory=/home/cchq/www/monolith/current/formplayer_build
- +directory=/home/cchq/www/monolith/formplayer_build/current
- startsecs=10
- changed: [197.x.x.x] => (item={'env_vars': {'http_proxy': '', 'https_proxy': '', 'no_proxy': '', 'TMPDIR': '/opt/tmp'}})
- PLAY [Airflow Supervisor Config] **********************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [Management Command Supervisor Config] ***********************************************************************************************************************************************
- PLAY [Prometheus Supervisor Config] *******************************************************************************************************************************************************
- PLAY [Prometheus Django runner] ***********************************************************************************************************************************************************
- PLAY [Remove old supervisor files] ********************************************************************************************************************************************************
- PLAY [Celery tasks cleanup Cron job] ******************************************************************************************************************************************************
- PLAY [setup nginx] ************************************************************************************************************************************************************************
- PLAY [Proxy] ******************************************************************************************************************************************************************************
- PLAY [Reach Proxy] ************************************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [CAS Proxy] **************************************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [PNA Proxy] **************************************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [Nginx log rolling configurations] ***************************************************************************************************************************************************
- PLAY [proxy] ******************************************************************************************************************************************************************************
- PLAY [EFS Mount Target] *******************************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [SharedDirHost] **********************************************************************************************************************************************************************
- PLAY [SharedDirClient] ********************************************************************************************************************************************************************
- PLAY [Keystore] ***************************************************************************************************************************************************************************
- PLAY [Webworkers] *************************************************************************************************************************************************************************
- PLAY [Formplayer EFS] *********************************************************************************************************************************************************************
- PLAY [Formplayer] *************************************************************************************************************************************************************************
- TASK [formplayer : Formplayer build dir] **************************************************************************************************************************************************
- ok: [197.x.x.x] => (item=/home/cchq/www/monolith/formplayer_build)
- --- before
- +++ after
- @@ -1,6 +1,6 @@
- {
- - "group": 0,
- - "owner": 0,
- + "group": 1003,
- + "owner": 1002,
- "path": "/home/cchq/www/monolith/formplayer_build/releases/2021-05-03_10.29",
- - "state": "absent"
- + "state": "directory"
- }
- changed: [197.x.x.x] => (item=/home/cchq/www/monolith/formplayer_build/releases/2021-05-03_10.29)
- ok: [197.x.x.x] => (item=/opt/data/formplayer)
- TASK [Download formplayer release] ********************************************************************************************************************************************************
- changed: [197.x.x.x]
- TASK [formplayer : Check if the "current" directory exists] *******************************************************************************************************************************
- ok: [197.x.x.x]
- TASK [Copy formplayer config files from current release] **********************************************************************************************************************************
- skipping: [197.x.x.x] => (item={'filename': 'application.properties'})
- skipping: [197.x.x.x] => (item={'filename': 'logback-spring.xml'})
- TASK [Update formplayer config files] *****************************************************************************************************************************************************
- --- before
- +++ after: /home/ccc/.ansible/tmp/ansible-local-7089ol0lq6yw/tmp8a1z405u/application.properties.j2
- @@ -0,0 +1,41 @@
- +commcarehq.host=https://zdip.itech-zimbabwe.org
- +commcarehq.formplayerAuthKey=__This_IS_Formplayer!!_
- +server.port=8181
- +user.suffix=commcarehq.org
- +logging.config=logback-spring.xml
- +sqlite.dataDir=/opt/data/formplayer/
- +
- +// Takes the format of https://<key>@sentry.io/<project>
- +// More info on the DSN can be found here: https://docs.sentry.io/quickstart/#configure-the-dsn
- +sentry.dsn=
- +sentry.environment=monolith
- +sentry.tags.HQHost=https://zdip.itech-zimbabwe.org
- +
- +spring.datasource.driver-class-name=org.postgresql.Driver
- +spring.datasource.url=jdbc:postgresql://197.x.x.x:6432/formplayer?prepareThreshold=0
- +spring.datasource.username=commcare
- +spring.datasource.password=PGSQL_passwords_are_hard
- +
- +# separate DS for flyway which bypasses pgbouncer to avoid session locking issues
- +spring.flyway.driver-class-name=org.postgresql.Driver
- +spring.flyway.url=jdbc:postgresql://197.x.x.x:5432/formplayer?prepareThreshold=0
- +spring.flyway.username=commcare
- +spring.flyway.password=PGSQL_passwords_are_hard
- +
- +spring.jpa.hibernate.ddl-auto
- +
- +smtp.host=smtp.socketlabs.com
- +smtp.port=587
- +smtp.username=server28445
- +smtp.password=Qe63Bmi5ZSs72Azy4C
- +
- +smtp.from.address=commcarehq-noreply+197@dimagi.com
- +smtp.to.address=commcarehq-ops+formplayer@dimagi.com
- +
- +// Redis for locking
- +redis.hostname=localhost
- +
- +
- +
- +
- +
- changed: [197.x.x.x] => (item={'template': 'application.properties.j2', 'filename': 'application.properties'})
- --- before
- +++ after: /home/ccc/.ansible/tmp/ansible-local-7089ol0lq6yw/tmpe5qj_l1k/logback-spring.xml.j2
- @@ -0,0 +1,21 @@
- +<configuration>
- + <include resource="org/springframework/boot/logging/logback/defaults.xml"/>
- +
- + <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
- + <encoder>
- + <pattern>%d{yyyy-MM-dd HH:mm:ss.SS} [%thread] %-5level %logger{36} - %msg%n</pattern>
- + </encoder>
- + </appender>
- +
- +
- + <root level="INFO">
- + <appender-ref ref="STDOUT" />
- + </root>
- +
- + <logger name="org.springframework.web.filter.CommonsRequestLoggingFilter">
- + <level value="INFO" />
- + <appender-ref ref="STDOUT" />
- + </logger>
- +
- + <logger name="org.commcare.formplayer.application.RequestResponseLoggingFilter" level="OFF" />
- +</configuration>
- changed: [197.x.x.x] => (item={'template': 'logback-spring.xml.j2', 'filename': 'logback-spring.xml'})
- TASK [Link formplayer jar] ****************************************************************************************************************************************************************
- --- before
- +++ after
- @@ -1,4 +1,4 @@
- {
- "path": "/home/cchq/www/monolith/formplayer_build/current",
- - "state": "absent"
- + "state": "link"
- }
- changed: [197.x.x.x]
- PLAY [Create host group aliases] **********************************************************************************************************************************************************
- TASK [Create all_commcarehq group alias] **************************************************************************************************************************************************
- ok: [197.x.x.x] => (item=197.x.x.x)
- TASK [Create commcarehq group alias] ******************************************************************************************************************************************************
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- PLAY [Install postfix] ********************************************************************************************************************************************************************
- [WARNING]: Could not match supplied host pattern, ignoring: mailrelay
- PLAY [mail relay deploy] ******************************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [mail relay clients deploy] **********************************************************************************************************************************************************
- PLAY [Create host group aliases] **********************************************************************************************************************************************************
- TASK [Create all_commcarehq group alias] **************************************************************************************************************************************************
- ok: [197.x.x.x] => (item=197.x.x.x)
- TASK [Create commcarehq group alias] ******************************************************************************************************************************************************
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- PLAY [Deploys tmpreaper - removes files which haven't been accessed for a period of time] *************************************************************************************************
- PLAY [Create host group aliases] **********************************************************************************************************************************************************
- TASK [Create all_commcarehq group alias] **************************************************************************************************************************************************
- ok: [197.x.x.x] => (item=197.x.x.x)
- TASK [Create commcarehq group alias] ******************************************************************************************************************************************************
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- ok: [197.x.x.x] => (item=197.x.x.x)
- PLAY [Put /etc under version control using etckeeper] *************************************************************************************************************************************
- PLAY [airflow_scheduler] ******************************************************************************************************************************************************************
- skipping: no hosts matched
- [WARNING]: Could not match supplied host pattern, ignoring: airflow
- PLAY [Airflow] ****************************************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [Migrate DB] *************************************************************************************************************************************************************************
- PLAY [HTTP proxy for external calls] ******************************************************************************************************************************************************
- PLAY [Logstash] ***************************************************************************************************************************************************************************
- skipping: no hosts matched
- PLAY [FileBeat] ***************************************************************************************************************************************************************************
- PLAY [OS logs] ****************************************************************************************************************************************************************************
- PLAY RECAP ********************************************************************************************************************************************************************************
- 197.x.x.x : ok=25 changed=5 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0
- ✓ Apply completed with status code 0
- commcare-cloud monolith run-shell-command formplayer 'supervisorctl reread; supervisorctl update commcare-hq-monolith-formsplayer-spring; supervisorctl restart commcare-hq-monolith-formsplayer-spring' -b
- ansible formplayer -m shell -i /home/ccc/environments/monolith/inventory.ini -a 'supervisorctl reread; supervisorctl update commcare-hq-monolith-formsplayer-spring; supervisorctl restart commcare-hq-monolith-formsplayer-spring' --diff -u ansible --become -e @/home/ccc/environments/monolith/public.yml -e @/home/ccc/environments/monolith/.generated.yml -e @/home/ccc/environments/monolith/vault.yml --vault-password-file=/home/ccc/commcare-cloud/src/commcare_cloud/ansible/echo_vault_password.sh '--ssh-common-args=-o UserKnownHostsFile=/home/ccc/environments/monolith/known_hosts'
- 197.x.x.x | CHANGED | rc=0 >>
- commcare-hq-monolith-formsplayer-spring: changed
- commcare-hq-monolith-formsplayer-spring: stopped
- commcare-hq-monolith-formsplayer-spring: updated process group
- commcare-hq-monolith-formsplayer-spring: stopped
- commcare-hq-monolith-formsplayer-spring: started
- ✓ Apply completed with status code 0
- Traceback (most recent call last):
- File "/home/ccc/.virtualenvs/cchq/bin/commcare-cloud", line 33, in <module>
- sys.exit(load_entry_point('commcare-cloud', 'console_scripts', 'commcare-cloud')())
- File "/home/ccc/commcare-cloud/src/commcare_cloud/commcare_cloud.py", line 206, in main
- exit_code = call_commcare_cloud()
- File "/home/ccc/commcare-cloud/src/commcare_cloud/commcare_cloud.py", line 197, in call_commcare_cloud
- exit_code = commands[args.command].run(args, unknown_args)
- File "/home/ccc/commcare-cloud/src/commcare_cloud/commands/deploy/command.py", line 103, in run
- return deploy_formplayer(environment, args)
- File "/home/ccc/commcare-cloud/src/commcare_cloud/commands/deploy/formplayer.py", line 85, in deploy_formplayer
- record_deploy_success(environment, repo, diff, start)
- File "/home/ccc/commcare-cloud/src/commcare_cloud/commands/deploy/formplayer.py", line 93, in record_deploy_success
- update_sentry_post_deploy(environment, "formplayer", repo, diff, start, end)
- File "/home/ccc/commcare-cloud/src/commcare_cloud/commands/deploy/sentry.py", line 18, in update_sentry_post_deploy
- environment.get_secret('SENTRY_API_KEY'),
- File "/home/ccc/commcare-cloud/src/commcare_cloud/environment/main.py", line 100, in get_secret
- return self.secrets_backend.get_secret(var)
- File "/home/ccc/commcare-cloud/src/commcare_cloud/environment/secrets/backends/abstract_backend.py", line 62, in get_secret
- value = self._get_secret(var_name)
- File "/home/ccc/commcare-cloud/src/commcare_cloud/environment/secrets/backends/ansible_vault/main.py", line 134, in _get_secret
- return context[var_name]
- KeyError: 'SENTRY_API_KEY'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement