Skip to content

Instantly share code, notes, and snippets.

@2mind
2mind / gist:d37a92f666157e243e9e
Created October 28, 2015 14:11 — forked from flaccid/gist:97473d0d85e2d6f4e292
Quick example of blue/green app ugprade on Rancher
$ export RANCHER_HOST=foo.bar.suf
$ export RANCHER_PORT=8080
$ export RANCHER_PROJECT_ID=1a8
$ export RANCHER_STACK_NAME=killerapp
$ ./cattle-deploy.py
output:
snapshot epoch is1437634695
created temp file /var/folders/sx/ht6gznq979v5r725sqt7_p617p38sz/T/tmpprzZsd
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private ru.tcsbank.sme.service.AstralNotificationHandler ru.tcsbank.sme.scheduler.AstralNotificationHandlerScheduler.astralNotificationHandler; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'astralNotificationHandler': Bean with name 'astralNotificationHandler' has been injected into other beans [sendTaxReturnCaseService] in its raw version as part of a circular reference, but has eventually been wrapped. This means that said other beans do not use the final version of the bean. This is often the result of over-eager type matching - consider using 'getBeanNamesOfType' with the 'allowEagerInit' flag turned off, for example.
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.repository.support.Repositories]: Factory method 'repositories' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'taxReturnOutcomeRepository': Cannot create inner bean '(inner bean)#4445149c' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property 'entityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#4445149c': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [ru/tcsbank/sme/setup/HibernateSupport.class]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Missing column
2016-06-20 13:00:15.349 ERROR 7 --- [cTaskExecutor-2] r.t.s.service.AstralNotificationHandler : Ошибка при обработке вх. документооборота: 69ed5889aa1544d68aa1c3dbde2bf7a1
org.springframework.ws.soap.client.SoapFaultClientException: UID 69ed5889aa1544d68aa1c3dbde2bf7a1 for abonent(partner) 0bc022ef-3877-48ca-aa31-78a01a2adb6f is illegall
at org.springframework.ws.soap.client.core.SoapFaultMessageResolver.resolveFault(SoapFaultMessageResolver.java:38) ~[spring-ws-core-2.2.3.RELEASE.jar!/:2.2.3.RELEASE]
at org.springframework.ws.client.core.WebServiceTemplate.handleFault(WebServiceTemplate.java:830) ~[spring-ws-core-2.2.3.RELEASE.jar!/:2.2.3.RELEASE]
at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:624) ~[spring-ws-core-2.2.3.RELEASE.jar!/:2.2.3.RELEASE]
at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:555) ~[spring-ws-core-2.2.3.RELEASE.jar!/:2.2.3.RELEASE]
at org.springfram
2016-07-26 11:49:14.099 WARN 9 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'astralNotificationHandler.SaveAstralNotificationAction': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private ru.tcsbank.sme.client.astral.AstralCachedClient ru.tcsbank.sme.service.AstralNotificationHandler$SaveAstralNotificationAction.cachedClient; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'astralCachedClient': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private ru.tcsbank.sme.client.astral.AuthorizationClient ru.tcsbank.sme.client.astral.AstralCachedClient.authorizationClient; nes
This file has been truncated, but you can view the full file.
COL_0_0_ COL_1_0_
---------- ----------
7774,55 53
1 row selected.
Elapsed: 00:00:00.04
COL_0_0_ COL_1_0_
---------- ----------
,44 2
This file has been truncated, but you can view the full file.
ИД КОМПАНИИ
--------------------------------------------------------------------------------
ID дела
----------
Шаг
--------------------------------------------------------------------------------
Способ оплаты [Доход] ID
-------------------- ----------
[Доход] Тип
This file has been truncated, but you can view the full file.
5-2ASZB2HH 385192 CLOSED OTHER 231173 ANY_INCOME 1 283975 MANUAL
5-2ASZB2HH 385192 CLOSED OTHER 231172 ANY_INCOME 2 149582 MANUAL
5-2ASZB2HH 385192 CLOSED OTHER 232101 OPERATIONS_CASH_INCOME 1 0 OPERATIONS
5-2ASZB2HH 385192 CLOSED OTHER 232102 OPERATIONS_CASH_INCOME 2 0 OPERATIONS
5-2ASZB2HH 385192 CLOSED OTHER 231249 OPERATIONS_CASH_INCOME 3 0 OPERATIONS
5-2ASZB2HH 385192 CLOSED OTHER 232104 OPERATIONS_MANUAL_INCOME 1 0 OPERATIONS
5-2ASZB2HH 385192 CLOSED OTHER 232105 OPERATIONS_MANUAL_INCOME 2 0 OPERATIONS
5-2ASZB2HH 385192 CLOSED OTHER 232103 OPERATIONS_MANUAL_INCOME 3 0 OPERATIONS
5-2ASZB2HH 385192 CLOSED OTHER 232100 OPERATIONS_TINKOFF_INCOME 1 0 OPERATIONS
5-2ASZB2HH 385192 CLOSED OTHER 232106 OPERATIONS_TINKOFF_INCOME 2 0 OPERATIONS
05.06.2017 9:11:56clock source: unix
05.06.2017 9:11:56detected number of CPU cores: 2
05.06.2017 9:11:56current working directory: /tinkoff/app
05.06.2017 9:11:56detected binary path: /usr/local/bin/uwsgi
05.06.2017 9:11:56!!! no internal routing support, rebuild with pcre support !!!
05.06.2017 9:11:56chdir() to /tinkoff/app/
05.06.2017 9:11:56your memory page size is 4096 bytes
05.06.2017 9:11:56detected max file descriptor number: 65536
05.06.2017 9:11:56lock engine: pthread robust mutexes
05.06.2017 9:11:56thunder lock: disabled (you can enable it with --thunder-lock)
version: '2'
services:
tinkoff-nginx:
image: registry.tcsbank.ru:5051/tinkoff_openresty:1.7_test
hostname: tinkoff-nginx
environment:
calculator_host: partner-test.tinkoffinsurance.ru
crm_host: partner-crm-test.tinkoffinsurance.ru
links:
- tinkoff-crm:tinkoff-crm