Advertisement
Guest User

ccc deploy formplayer

a guest
May 3rd, 2021
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.01 KB | None | 0 0
  1. (cchq) ccc@monolith:~/commcare-cloud$ commcare-cloud monolith deploy formplayer
  2.  
  3. Preparing to deploy Formplayer to: monolith
  4.  
  5. The property py3_include_venv is deprecated and has no effect.
  6. Feel free to remove it from your fab-settings.yml.
  7. The property py3_run_deploy is deprecated and has no effect.
  8. Feel free to remove it from your fab-settings.yml.
  9. >> Compiling deploy summary
  10. 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',))
  11. New version details:
  12. Release Name : 2021-05-03_10.29
  13. Commit : 9948ee0139f93db2e66a54b6878c2b1ec26f6962
  14. Commit message : updating files: scripts/staging.yaml
  15. Commit date : 3 days ago (2021-04-30T05:04:12+0000)
  16. Build time : 8 hours ago (2021-05-03T02:17:28.285Z)
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. Continue with deploy? [y/N]y
  24. >> Sending email: ccc has initiated a Formplayer deploy to monolith
  25. Ubuntu 18.04.5 LTS
  26. /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>.
  27. """)
  28. Traceback (most recent call last):
  29. File "manage.py", line 195, in <module>
  30. main()
  31. File "manage.py", line 41, in main
  32. execute_from_command_line(sys.argv)
  33. 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
  34. utility.execute()
  35. 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
  36. settings.INSTALLED_APPS
  37. 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__
  38. self._setup(name)
  39. 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
  40. self._wrapped = Settings(settings_module)
  41. 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__
  42. mod = importlib.import_module(self.SETTINGS_MODULE)
  43. 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
  44. return _bootstrap._gcd_import(name[level:], package, level)
  45. File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  46. File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  47. File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  48. File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  49. File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  50. File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  51. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/settings.py", line 1437, in <module>
  52. SHARED_BLOB_DIR_NAME
  53. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/settingshelper.py", line 28, in __init__
  54. self.blob_dir = self._init_dir(blob_dir)
  55. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/settingshelper.py", line 37, in _init_dir
  56. os.mkdir(path)
  57. FileExistsError: [Errno 17] File exists: '/opt/shared_monolith/blobdb'
  58. Connection to 197.x.x.x closed.
  59. 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'
  60. Vault Password for 'monolith':
  61. [WARNING]: Could not match supplied host pattern, ignoring: cas_proxy
  62. [WARNING]: Could not match supplied host pattern, ignoring: pna_proxy
  63. [WARNING]: Could not match supplied host pattern, ignoring: reach_proxy
  64. [WARNING]: Could not match supplied host pattern, ignoring: plproxy
  65. [WARNING]: Could not match supplied host pattern, ignoring: citusdb
  66. [WARNING]: Could not match supplied host pattern, ignoring: commcarehq
  67. [WARNING]: Could not match supplied host pattern, ignoring: airflow_scheduler
  68. [WARNING]: Could not match supplied host pattern, ignoring: shared_efs_client_host
  69. [WARNING]: Could not match supplied host pattern, ignoring: logproxy
  70.  
  71. PLAY [update apt cache] *******************************************************************************************************************************************************************
  72.  
  73. PLAY [Create host group aliases] **********************************************************************************************************************************************************
  74.  
  75. TASK [Create all_commcarehq group alias] **************************************************************************************************************************************************
  76. ok: [197.x.x.x] => (item=197.x.x.x)
  77.  
  78. TASK [Create commcarehq group alias] ******************************************************************************************************************************************************
  79. ok: [197.x.x.x] => (item=197.x.x.x)
  80. ok: [197.x.x.x] => (item=197.x.x.x)
  81. ok: [197.x.x.x] => (item=197.x.x.x)
  82. ok: [197.x.x.x] => (item=197.x.x.x)
  83. ok: [197.x.x.x] => (item=197.x.x.x)
  84.  
  85. PLAY [Bootstrap Machine] ******************************************************************************************************************************************************************
  86.  
  87. PLAY [Common] *****************************************************************************************************************************************************************************
  88.  
  89. PLAY [ufw (firewall)] *********************************************************************************************************************************************************************
  90. skipping: no hosts matched
  91.  
  92. PLAY [ufw (proxy firewall)] ***************************************************************************************************************************************************************
  93.  
  94. PLAY [ufw off (firewall)] *****************************************************************************************************************************************************************
  95.  
  96. PLAY [Datadog agent] **********************************************************************************************************************************************************************
  97.  
  98. TASK [add datadog integration configs] ****************************************************************************************************************************************************
  99. skipping: [197.x.x.x] => (item={'name': 'airflow', 'enabled': False})
  100. skipping: [197.x.x.x] => (item={'name': 'elastic', 'enabled': True})
  101. skipping: [197.x.x.x] => (item={'name': 'gunicorn', 'enabled': True})
  102. skipping: [197.x.x.x] => (item={'name': 'kafka', 'enabled': True})
  103. skipping: [197.x.x.x] => (item={'name': 'kafka_consumer', 'enabled': True})
  104. skipping: [197.x.x.x] => (item={'name': 'nginx', 'enabled': True})
  105. skipping: [197.x.x.x] => (item={'name': 'pgbouncer', 'enabled': True})
  106. skipping: [197.x.x.x] => (item={'name': 'pgbouncer_custom', 'enabled': False})
  107. skipping: [197.x.x.x] => (item={'name': 'postgres', 'enabled': True})
  108. skipping: [197.x.x.x] => (item={'name': 'process', 'enabled': False})
  109. skipping: [197.x.x.x] => (item={'name': 'rabbitmq', 'enabled': False})
  110. skipping: [197.x.x.x] => (item={'name': 'redisdb', 'enabled': True})
  111. skipping: [197.x.x.x] => (item={'name': 'zk', 'enabled': True})
  112. skipping: [197.x.x.x] => (item={'name': 'jmx', 'enabled': True})
  113. skipping: [197.x.x.x] => (item={'name': 'celery', 'enabled': True})
  114. skipping: [197.x.x.x] => (item={'name': 'couch', 'enabled': True})
  115. skipping: [197.x.x.x] => (item={'name': 'couch_custom', 'enabled': True})
  116. skipping: [197.x.x.x] => (item={'name': 'shell', 'enabled': False})
  117. skipping: [197.x.x.x] => (item={'name': 'http_check', 'enabled': True})
  118. skipping: [197.x.x.x] => (item={'name': 'haproxy', 'enabled': True})
  119. skipping: [197.x.x.x] => (item={'name': 'tcp_check', 'enabled': False})
  120. skipping: [197.x.x.x] => (item={'name': 'disk', 'enabled': True})
  121. skipping: [197.x.x.x] => (item={'name': 'swift', 'enabled': []})
  122.  
  123. PLAY [Configure monit] ********************************************************************************************************************************************************************
  124.  
  125. PLAY [Configure static routes] ************************************************************************************************************************************************************
  126.  
  127. PLAY [DNS configuration] ******************************************************************************************************************************************************************
  128.  
  129. PLAY [Deploy lpar2rrd agent and server] ***************************************************************************************************************************************************
  130.  
  131. PLAY [Create ebsnvme mapping] *************************************************************************************************************************************************************
  132. [WARNING]: Could not match supplied host pattern, ignoring: lvm
  133.  
  134. PLAY [LVM] ********************************************************************************************************************************************************************************
  135. skipping: no hosts matched
  136.  
  137. PLAY [Common Database Machine Setup] ******************************************************************************************************************************************************
  138.  
  139. PLAY [Create host group aliases] **********************************************************************************************************************************************************
  140.  
  141. TASK [Create all_commcarehq group alias] **************************************************************************************************************************************************
  142. ok: [197.x.x.x] => (item=197.x.x.x)
  143.  
  144. TASK [Create commcarehq group alias] ******************************************************************************************************************************************************
  145. ok: [197.x.x.x] => (item=197.x.x.x)
  146. ok: [197.x.x.x] => (item=197.x.x.x)
  147. ok: [197.x.x.x] => (item=197.x.x.x)
  148. ok: [197.x.x.x] => (item=197.x.x.x)
  149. ok: [197.x.x.x] => (item=197.x.x.x)
  150.  
  151. PLAY [PostgreSQL Machine Setup] ***********************************************************************************************************************************************************
  152.  
  153. PLAY [Encrypt WAL Drive] ******************************************************************************************************************************************************************
  154.  
  155. PLAY [PostgreSQL] *************************************************************************************************************************************************************************
  156.  
  157. TASK [postgresql : Setup plproxy] *********************************************************************************************************************************************************
  158. 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})
  159. included: /home/ccc/commcare-cloud/src/commcare_cloud/ansible/roles/postgresql/tasks/plproxy.yml for 197.x.x.x
  160. [WARNING]: Could not match supplied host pattern, ignoring: pgbouncer
  161.  
  162. PLAY [pgbouncer] **************************************************************************************************************************************************************************
  163.  
  164. PLAY [Remote PostgreSQL (e.g. Amazon RDS)] ************************************************************************************************************************************************
  165.  
  166. PLAY [PostgreSQL Backup] ******************************************************************************************************************************************************************
  167.  
  168. TASK [pg_backup : include_tasks] **********************************************************************************************************************************************************
  169. included: /home/ccc/commcare-cloud/src/commcare_cloud/ansible/roles/pg_backup/tasks/backup_plain.yml for 197.x.x.x
  170.  
  171. PLAY [Setup auth for standby] *************************************************************************************************************************************************************
  172.  
  173. PLAY [Disable THP] ************************************************************************************************************************************************************************
  174.  
  175. PLAY [Install and configure pg_repack] ****************************************************************************************************************************************************
  176.  
  177. PLAY [Create host group aliases] **********************************************************************************************************************************************************
  178.  
  179. TASK [Create all_commcarehq group alias] **************************************************************************************************************************************************
  180. ok: [197.x.x.x] => (item=197.x.x.x)
  181.  
  182. TASK [Create commcarehq group alias] ******************************************************************************************************************************************************
  183. ok: [197.x.x.x] => (item=197.x.x.x)
  184. ok: [197.x.x.x] => (item=197.x.x.x)
  185. ok: [197.x.x.x] => (item=197.x.x.x)
  186. ok: [197.x.x.x] => (item=197.x.x.x)
  187. ok: [197.x.x.x] => (item=197.x.x.x)
  188.  
  189. PLAY [CitusDB Machine Setup] **************************************************************************************************************************************************************
  190. skipping: no hosts matched
  191.  
  192. PLAY [Encrypt WAL Drive] ******************************************************************************************************************************************************************
  193. skipping: no hosts matched
  194.  
  195. PLAY [CitusDB] ****************************************************************************************************************************************************************************
  196. skipping: no hosts matched
  197. [WARNING]: Could not match supplied host pattern, ignoring: citusdb_master
  198.  
  199. PLAY [pgbouncer] **************************************************************************************************************************************************************************
  200. skipping: no hosts matched
  201.  
  202. PLAY [Setup auth for standby] *************************************************************************************************************************************************************
  203. skipping: no hosts matched
  204. [WARNING]: Could not match supplied host pattern, ignoring: citusdb_worker
  205.  
  206. PLAY [pgbouncer] **************************************************************************************************************************************************************************
  207. skipping: no hosts matched
  208.  
  209. PLAY [Disable THP] ************************************************************************************************************************************************************************
  210. skipping: no hosts matched
  211.  
  212. PLAY [Common Database Machine Setup] ******************************************************************************************************************************************************
  213.  
  214. PLAY [Couchdb 2.0] ************************************************************************************************************************************************************************
  215.  
  216. PLAY [Couchdb2 log rolling configurations] ************************************************************************************************************************************************
  217.  
  218. PLAY [Couchdb2 proxy] *********************************************************************************************************************************************************************
  219.  
  220. PLAY [deploy keepalived] ******************************************************************************************************************************************************************
  221.  
  222. PLAY [Redis] ******************************************************************************************************************************************************************************
  223. [WARNING]: flush_handlers task does not support when conditional
  224. [WARNING]: Could not match supplied host pattern, ignoring: redis_master
  225.  
  226. PLAY [configure the master redis server] **************************************************************************************************************************************************
  227. skipping: no hosts matched
  228. [WARNING]: Could not match supplied host pattern, ignoring: redis_slave
  229.  
  230. PLAY [configure redis slaves] *************************************************************************************************************************************************************
  231. skipping: no hosts matched
  232. [WARNING]: Could not match supplied host pattern, ignoring: redis_sentinel
  233.  
  234. PLAY [configure redis sentinel nodes] *****************************************************************************************************************************************************
  235. skipping: no hosts matched
  236. [WARNING]: Could not match supplied host pattern, ignoring: keepalived_redis
  237.  
  238. PLAY [deploy keepalived] ******************************************************************************************************************************************************************
  239. skipping: no hosts matched
  240.  
  241. PLAY [Redis Monitoring] *******************************************************************************************************************************************************************
  242.  
  243. PLAY [Elasticsearch] **********************************************************************************************************************************************************************
  244.  
  245. PLAY [Common Database Machine Setup] ******************************************************************************************************************************************************
  246. skipping: no hosts matched
  247.  
  248. PLAY [RabbitMQ] ***************************************************************************************************************************************************************************
  249. skipping: no hosts matched
  250.  
  251. PLAY [RabbitMQ log rolling configurations] ************************************************************************************************************************************************
  252. skipping: no hosts matched
  253.  
  254. PLAY [Common Database Machine Setup] ******************************************************************************************************************************************************
  255.  
  256. PLAY [Zookeeper] **************************************************************************************************************************************************************************
  257.  
  258. PLAY [Kafka] ******************************************************************************************************************************************************************************
  259.  
  260. PLAY [Disable THP] ************************************************************************************************************************************************************************
  261.  
  262. PLAY [cleanup] ****************************************************************************************************************************************************************************
  263.  
  264. PLAY [Java] *******************************************************************************************************************************************************************************
  265.  
  266. PLAY [Disable THP] ************************************************************************************************************************************************************************
  267.  
  268. PLAY [Create host group aliases] **********************************************************************************************************************************************************
  269.  
  270. TASK [Create all_commcarehq group alias] **************************************************************************************************************************************************
  271. ok: [197.x.x.x] => (item=197.x.x.x)
  272.  
  273. TASK [Create commcarehq group alias] ******************************************************************************************************************************************************
  274. ok: [197.x.x.x] => (item=197.x.x.x)
  275. ok: [197.x.x.x] => (item=197.x.x.x)
  276. ok: [197.x.x.x] => (item=197.x.x.x)
  277. ok: [197.x.x.x] => (item=197.x.x.x)
  278. ok: [197.x.x.x] => (item=197.x.x.x)
  279.  
  280. PLAY [CommcareHQ] *************************************************************************************************************************************************************************
  281.  
  282. PLAY [Celery cron jobs for HQ] ************************************************************************************************************************************************************
  283.  
  284. PLAY [Temporary task to remove old service directory] *************************************************************************************************************************************
  285.  
  286. PLAY [Celery Supervisor Config] ***********************************************************************************************************************************************************
  287.  
  288. PLAY [Pillowtop Supervisor Config] ********************************************************************************************************************************************************
  289.  
  290. PLAY [Proxy Websockets Supervisor Config] *************************************************************************************************************************************************
  291.  
  292. PLAY [Webworker Supervisor Config] ********************************************************************************************************************************************************
  293.  
  294. PLAY [Formplayer Supervisor Config] *******************************************************************************************************************************************************
  295.  
  296. TASK [commcarehq : set_fact] **************************************************************************************************************************************************************
  297. ok: [197.x.x.x]
  298.  
  299. TASK [commcarehq : set_fact] **************************************************************************************************************************************************************
  300. ok: [197.x.x.x]
  301.  
  302. TASK [commcarehq : create services home] **************************************************************************************************************************************************
  303. ok: [197.x.x.x]
  304.  
  305. TASK [commcarehq : define formplayer spring services] *************************************************************************************************************************************
  306. --- before: /home/cchq/www/monolith/services/monolith_supervisor_formplayer_spring.conf
  307. +++ after: /home/ccc/.ansible/tmp/ansible-local-7089ol0lq6yw/tmp1vykynng/supervisor_formplayer_spring.conf.j2
  308. @@ -1,11 +1,11 @@
  309. [program:commcare-hq-monolith-formsplayer-spring]
  310. environment=TMPDIR="/opt/tmp",
  311. -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
  312. +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
  313. user=cchq
  314. autostart=true
  315. autorestart=true
  316. stdout_logfile=/home/cchq/www/monolith/log/formplayer-spring.log
  317. redirect_stderr=true
  318. stderr_logfile=/home/cchq/www/monolith/log/formplayer-spring.error.log
  319. -directory=/home/cchq/www/monolith/current/formplayer_build
  320. +directory=/home/cchq/www/monolith/formplayer_build/current
  321. startsecs=10
  322.  
  323. changed: [197.x.x.x] => (item={'env_vars': {'http_proxy': '', 'https_proxy': '', 'no_proxy': '', 'TMPDIR': '/opt/tmp'}})
  324.  
  325. PLAY [Airflow Supervisor Config] **********************************************************************************************************************************************************
  326. skipping: no hosts matched
  327.  
  328. PLAY [Management Command Supervisor Config] ***********************************************************************************************************************************************
  329.  
  330. PLAY [Prometheus Supervisor Config] *******************************************************************************************************************************************************
  331.  
  332. PLAY [Prometheus Django runner] ***********************************************************************************************************************************************************
  333.  
  334. PLAY [Remove old supervisor files] ********************************************************************************************************************************************************
  335.  
  336. PLAY [Celery tasks cleanup Cron job] ******************************************************************************************************************************************************
  337.  
  338. PLAY [setup nginx] ************************************************************************************************************************************************************************
  339.  
  340. PLAY [Proxy] ******************************************************************************************************************************************************************************
  341.  
  342. PLAY [Reach Proxy] ************************************************************************************************************************************************************************
  343. skipping: no hosts matched
  344.  
  345. PLAY [CAS Proxy] **************************************************************************************************************************************************************************
  346. skipping: no hosts matched
  347.  
  348. PLAY [PNA Proxy] **************************************************************************************************************************************************************************
  349. skipping: no hosts matched
  350.  
  351. PLAY [Nginx log rolling configurations] ***************************************************************************************************************************************************
  352.  
  353. PLAY [proxy] ******************************************************************************************************************************************************************************
  354.  
  355. PLAY [EFS Mount Target] *******************************************************************************************************************************************************************
  356. skipping: no hosts matched
  357.  
  358. PLAY [SharedDirHost] **********************************************************************************************************************************************************************
  359.  
  360. PLAY [SharedDirClient] ********************************************************************************************************************************************************************
  361.  
  362. PLAY [Keystore] ***************************************************************************************************************************************************************************
  363.  
  364. PLAY [Webworkers] *************************************************************************************************************************************************************************
  365.  
  366. PLAY [Formplayer EFS] *********************************************************************************************************************************************************************
  367.  
  368. PLAY [Formplayer] *************************************************************************************************************************************************************************
  369.  
  370. TASK [formplayer : Formplayer build dir] **************************************************************************************************************************************************
  371. ok: [197.x.x.x] => (item=/home/cchq/www/monolith/formplayer_build)
  372. --- before
  373. +++ after
  374. @@ -1,6 +1,6 @@
  375. {
  376. - "group": 0,
  377. - "owner": 0,
  378. + "group": 1003,
  379. + "owner": 1002,
  380. "path": "/home/cchq/www/monolith/formplayer_build/releases/2021-05-03_10.29",
  381. - "state": "absent"
  382. + "state": "directory"
  383. }
  384.  
  385. changed: [197.x.x.x] => (item=/home/cchq/www/monolith/formplayer_build/releases/2021-05-03_10.29)
  386. ok: [197.x.x.x] => (item=/opt/data/formplayer)
  387.  
  388. TASK [Download formplayer release] ********************************************************************************************************************************************************
  389. changed: [197.x.x.x]
  390.  
  391. TASK [formplayer : Check if the "current" directory exists] *******************************************************************************************************************************
  392. ok: [197.x.x.x]
  393.  
  394. TASK [Copy formplayer config files from current release] **********************************************************************************************************************************
  395. skipping: [197.x.x.x] => (item={'filename': 'application.properties'})
  396. skipping: [197.x.x.x] => (item={'filename': 'logback-spring.xml'})
  397.  
  398. TASK [Update formplayer config files] *****************************************************************************************************************************************************
  399. --- before
  400. +++ after: /home/ccc/.ansible/tmp/ansible-local-7089ol0lq6yw/tmp8a1z405u/application.properties.j2
  401. @@ -0,0 +1,41 @@
  402. +commcarehq.host=https://zdip.itech-zimbabwe.org
  403. +commcarehq.formplayerAuthKey=__This_IS_Formplayer!!_
  404. +server.port=8181
  405. +user.suffix=commcarehq.org
  406. +logging.config=logback-spring.xml
  407. +sqlite.dataDir=/opt/data/formplayer/
  408. +
  409. +// Takes the format of https://<key>@sentry.io/<project>
  410. +// More info on the DSN can be found here: https://docs.sentry.io/quickstart/#configure-the-dsn
  411. +sentry.dsn=
  412. +sentry.environment=monolith
  413. +sentry.tags.HQHost=https://zdip.itech-zimbabwe.org
  414. +
  415. +spring.datasource.driver-class-name=org.postgresql.Driver
  416. +spring.datasource.url=jdbc:postgresql://197.x.x.x:6432/formplayer?prepareThreshold=0
  417. +spring.datasource.username=commcare
  418. +spring.datasource.password=PGSQL_passwords_are_hard
  419. +
  420. +# separate DS for flyway which bypasses pgbouncer to avoid session locking issues
  421. +spring.flyway.driver-class-name=org.postgresql.Driver
  422. +spring.flyway.url=jdbc:postgresql://197.x.x.x:5432/formplayer?prepareThreshold=0
  423. +spring.flyway.username=commcare
  424. +spring.flyway.password=PGSQL_passwords_are_hard
  425. +
  426. +spring.jpa.hibernate.ddl-auto
  427. +
  428. +smtp.host=smtp.socketlabs.com
  429. +smtp.port=587
  430. +smtp.username=server28445
  431. +smtp.password=Qe63Bmi5ZSs72Azy4C
  432. +
  433. +smtp.from.address=commcarehq-noreply+197@dimagi.com
  434. +smtp.to.address=commcarehq-ops+formplayer@dimagi.com
  435. +
  436. +// Redis for locking
  437. +redis.hostname=localhost
  438. +
  439. +
  440. +
  441. +
  442. +
  443.  
  444. changed: [197.x.x.x] => (item={'template': 'application.properties.j2', 'filename': 'application.properties'})
  445. --- before
  446. +++ after: /home/ccc/.ansible/tmp/ansible-local-7089ol0lq6yw/tmpe5qj_l1k/logback-spring.xml.j2
  447. @@ -0,0 +1,21 @@
  448. +<configuration>
  449. + <include resource="org/springframework/boot/logging/logback/defaults.xml"/>
  450. +
  451. + <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
  452. + <encoder>
  453. + <pattern>%d{yyyy-MM-dd HH:mm:ss.SS} [%thread] %-5level %logger{36} - %msg%n</pattern>
  454. + </encoder>
  455. + </appender>
  456. +
  457. +
  458. + <root level="INFO">
  459. + <appender-ref ref="STDOUT" />
  460. + </root>
  461. +
  462. + <logger name="org.springframework.web.filter.CommonsRequestLoggingFilter">
  463. + <level value="INFO" />
  464. + <appender-ref ref="STDOUT" />
  465. + </logger>
  466. +
  467. + <logger name="org.commcare.formplayer.application.RequestResponseLoggingFilter" level="OFF" />
  468. +</configuration>
  469.  
  470. changed: [197.x.x.x] => (item={'template': 'logback-spring.xml.j2', 'filename': 'logback-spring.xml'})
  471.  
  472. TASK [Link formplayer jar] ****************************************************************************************************************************************************************
  473. --- before
  474. +++ after
  475. @@ -1,4 +1,4 @@
  476. {
  477. "path": "/home/cchq/www/monolith/formplayer_build/current",
  478. - "state": "absent"
  479. + "state": "link"
  480. }
  481.  
  482. changed: [197.x.x.x]
  483.  
  484. PLAY [Create host group aliases] **********************************************************************************************************************************************************
  485.  
  486. TASK [Create all_commcarehq group alias] **************************************************************************************************************************************************
  487. ok: [197.x.x.x] => (item=197.x.x.x)
  488.  
  489. TASK [Create commcarehq group alias] ******************************************************************************************************************************************************
  490. ok: [197.x.x.x] => (item=197.x.x.x)
  491. ok: [197.x.x.x] => (item=197.x.x.x)
  492. ok: [197.x.x.x] => (item=197.x.x.x)
  493. ok: [197.x.x.x] => (item=197.x.x.x)
  494. ok: [197.x.x.x] => (item=197.x.x.x)
  495.  
  496. PLAY [Install postfix] ********************************************************************************************************************************************************************
  497. [WARNING]: Could not match supplied host pattern, ignoring: mailrelay
  498.  
  499. PLAY [mail relay deploy] ******************************************************************************************************************************************************************
  500. skipping: no hosts matched
  501.  
  502. PLAY [mail relay clients deploy] **********************************************************************************************************************************************************
  503.  
  504. PLAY [Create host group aliases] **********************************************************************************************************************************************************
  505.  
  506. TASK [Create all_commcarehq group alias] **************************************************************************************************************************************************
  507. ok: [197.x.x.x] => (item=197.x.x.x)
  508.  
  509. TASK [Create commcarehq group alias] ******************************************************************************************************************************************************
  510. ok: [197.x.x.x] => (item=197.x.x.x)
  511. ok: [197.x.x.x] => (item=197.x.x.x)
  512. ok: [197.x.x.x] => (item=197.x.x.x)
  513. ok: [197.x.x.x] => (item=197.x.x.x)
  514. ok: [197.x.x.x] => (item=197.x.x.x)
  515.  
  516. PLAY [Deploys tmpreaper - removes files which haven't been accessed for a period of time] *************************************************************************************************
  517.  
  518. PLAY [Create host group aliases] **********************************************************************************************************************************************************
  519.  
  520. TASK [Create all_commcarehq group alias] **************************************************************************************************************************************************
  521. ok: [197.x.x.x] => (item=197.x.x.x)
  522.  
  523. TASK [Create commcarehq group alias] ******************************************************************************************************************************************************
  524. ok: [197.x.x.x] => (item=197.x.x.x)
  525. ok: [197.x.x.x] => (item=197.x.x.x)
  526. ok: [197.x.x.x] => (item=197.x.x.x)
  527. ok: [197.x.x.x] => (item=197.x.x.x)
  528. ok: [197.x.x.x] => (item=197.x.x.x)
  529.  
  530. PLAY [Put /etc under version control using etckeeper] *************************************************************************************************************************************
  531.  
  532. PLAY [airflow_scheduler] ******************************************************************************************************************************************************************
  533. skipping: no hosts matched
  534. [WARNING]: Could not match supplied host pattern, ignoring: airflow
  535.  
  536. PLAY [Airflow] ****************************************************************************************************************************************************************************
  537. skipping: no hosts matched
  538.  
  539. PLAY [Migrate DB] *************************************************************************************************************************************************************************
  540.  
  541. PLAY [HTTP proxy for external calls] ******************************************************************************************************************************************************
  542.  
  543. PLAY [Logstash] ***************************************************************************************************************************************************************************
  544. skipping: no hosts matched
  545.  
  546. PLAY [FileBeat] ***************************************************************************************************************************************************************************
  547.  
  548. PLAY [OS logs] ****************************************************************************************************************************************************************************
  549.  
  550. PLAY RECAP ********************************************************************************************************************************************************************************
  551. 197.x.x.x : ok=25 changed=5 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0
  552.  
  553. ✓ Apply completed with status code 0
  554. commcare-cloud monolith run-shell-command formplayer 'supervisorctl reread; supervisorctl update commcare-hq-monolith-formsplayer-spring; supervisorctl restart commcare-hq-monolith-formsplayer-spring' -b
  555. 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'
  556. 197.x.x.x | CHANGED | rc=0 >>
  557. commcare-hq-monolith-formsplayer-spring: changed
  558. commcare-hq-monolith-formsplayer-spring: stopped
  559. commcare-hq-monolith-formsplayer-spring: updated process group
  560. commcare-hq-monolith-formsplayer-spring: stopped
  561. commcare-hq-monolith-formsplayer-spring: started
  562. ✓ Apply completed with status code 0
  563. Traceback (most recent call last):
  564. File "/home/ccc/.virtualenvs/cchq/bin/commcare-cloud", line 33, in <module>
  565. sys.exit(load_entry_point('commcare-cloud', 'console_scripts', 'commcare-cloud')())
  566. File "/home/ccc/commcare-cloud/src/commcare_cloud/commcare_cloud.py", line 206, in main
  567. exit_code = call_commcare_cloud()
  568. File "/home/ccc/commcare-cloud/src/commcare_cloud/commcare_cloud.py", line 197, in call_commcare_cloud
  569. exit_code = commands[args.command].run(args, unknown_args)
  570. File "/home/ccc/commcare-cloud/src/commcare_cloud/commands/deploy/command.py", line 103, in run
  571. return deploy_formplayer(environment, args)
  572. File "/home/ccc/commcare-cloud/src/commcare_cloud/commands/deploy/formplayer.py", line 85, in deploy_formplayer
  573. record_deploy_success(environment, repo, diff, start)
  574. File "/home/ccc/commcare-cloud/src/commcare_cloud/commands/deploy/formplayer.py", line 93, in record_deploy_success
  575. update_sentry_post_deploy(environment, "formplayer", repo, diff, start, end)
  576. File "/home/ccc/commcare-cloud/src/commcare_cloud/commands/deploy/sentry.py", line 18, in update_sentry_post_deploy
  577. environment.get_secret('SENTRY_API_KEY'),
  578. File "/home/ccc/commcare-cloud/src/commcare_cloud/environment/main.py", line 100, in get_secret
  579. return self.secrets_backend.get_secret(var)
  580. File "/home/ccc/commcare-cloud/src/commcare_cloud/environment/secrets/backends/abstract_backend.py", line 62, in get_secret
  581. value = self._get_secret(var_name)
  582. File "/home/ccc/commcare-cloud/src/commcare_cloud/environment/secrets/backends/ansible_vault/main.py", line 134, in _get_secret
  583. return context[var_name]
  584. KeyError: 'SENTRY_API_KEY'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement