openmf / fineract-cn-containers Goto Github PK
View Code? Open in Web Editor NEWRepository to house the Docker and Kubernetes scripts for containerization.
Repository to house the Docker and Kubernetes scripts for containerization.
Using docker compose startup script to get the ball rolling, the provisioner hangs when defined ports are in use e.g 3306 for (local MySQL server)
How to reproduce?
Run the bash startup script for docker-compose with port 3306 in use on your localhost by a local mysql server.
Outcome: Deployment hangs on Cassandra is unavailable - sleeping
I think we can handle port availability differently than just allowing the process to hang.
Proposal:
This repo, unlike the other Mifos repositories, defines no style and contribution guidelines for submitting patches and additions.
Would love to submit a draft doc :)
this is the issue and error log:
`Started set of micro services. Now waiting for them to start up
Start provisioning the system with Postman scripts.
newman
Fineract-CN-Initial-Requests_PART1
→ 00.1 Verify eureka is up
GET http://eureka:8761/ [errored]
socket hang up
2. Status code is 200
→ 01. Log in root user
POST http://provisioner-ms:2020/provisioner/v1/auth/token?grant_type=password&client_id=service-runner&username=wepemnefret&password=oS/0IiAME/2unkN1momDrhAdNKOhGykYFH/mJN20 [errored]
connect ECONNREFUSED 127.0.0.1:2020
4. Status code is 200
5⠄ JSONError in test-script
→ NB! ONLY CREATE apps you have started
OPTIONS http://provisioner-ms:2020/provisioner/v1/auth/token [errored]
connect ECONNREFUSED 127.0.0.1:2020
→ 02.01 Create identity-v1 application
POST http://provisioner-ms:2020/provisioner/v1/applications [errored]
connect ECONNREFUSED 127.0.0.1:2020
8. Status code is 202
→ 02.02 Create rhythm-v1 application
POST http://provisioner-ms:2020/provisioner/v1/applications [errored]
connect ECONNREFUSED 127.0.0.1:2020
10. Status code is 202
→ 02.03 Create office-v1 application
POST http://provisioner-ms:2020/provisioner/v1/applications [errored]
connect ECONNREFUSED 127.0.0.1:2020
12. Status code is 202
→ 02.04 Create customer-v1 application
POST http://provisioner-ms:2020/provisioner/v1/applications [errored]
connect ECONNREFUSED 127.0.0.1:2020
14. Status code is 202
→ 02.05 Create accounting-v1 application
POST http://provisioner-ms:2020/provisioner/v1/applications [errored]
connect ECONNREFUSED 127.0.0.1:2020
16. Status code is 202
→ 02.06 Create portfolio-v1 application
POST http://provisioner-ms:2020/provisioner/v1/applications [errored]
connect ECONNREFUSED 127.0.0.1:2020
18. Status code is 202
→ 02.07 Create deposit-v1 application
POST http://provisioner-ms:2020/provisioner/v1/applications [errored]
connect ECONNREFUSED 127.0.0.1:2020
20. Status code is 202
→ 02.08 Create teller-v1 application
POST http://provisioner-ms:2020/provisioner/v1/applications [errored]
connect ECONNREFUSED 127.0.0.1:2020
22. Status code is 202
→ 03.1 Create first tenant 'playground'
POST http://provisioner-ms:2020/provisioner/v1/tenants [errored]
connect ECONNREFUSED 127.0.0.1:2020
24. Status code is 202
→ 03.2 Assign identity-v1 for Tenant and obtain Tenant Admin (user antony) Password
POST http://provisioner-ms:2020/provisioner/v1/tenants/playground/identityservice [errored]
connect ECONNREFUSED 127.0.0.1:2020
26. Status code is 200
27⠄ JSONError in test-script
→ 03.3 Login Antony (tenant superadmin) with obtained password
POST http://identity-ms:2021/identity/v1/token?grant_type=password&username=antony&password=YW50b255VXNlclBhc3N3b3Jk [errored]
socket hang up
29. Status code is 200
30⠄ JSONError in test-script
→ 03.4 Change Antony Password to 'antonyPassword'
┌
│ 'antonyUserPassword as BASE64: YW50b255VXNlclBhc3N3b3Jk'
└
PUT http://identity-ms:2021/identity/v1/users/antony/password [errored]
socket hang up
32. Status code is 202
→ 03.5 LOGIN ANTONY (tenant SuperAdmin) with pwd 'antonyPassword'
POST http://identity-ms:2021/identity/v1/token?grant_type=password&username=antony&password=YW50b255VXNlclBhc3N3b3Jk [errored]
socket hang up
34. Status code is 200
35⠄ JSONError in test-script
→ 04.01 Assign rhythm-v1 for Tenant
PUT http://provisioner-ms:2020/provisioner/v1/tenants/playground/applications [errored]
connect ECONNREFUSED 127.0.0.1:2020
37. Status code is 202
→ 04.02 Assign office-v1 for Tenant
PUT http://provisioner-ms:2020/provisioner/v1/tenants/playground/applications [errored]
connect ECONNREFUSED 127.0.0.1:2020
39. Status code is 202
→ 04.03 Assign customer-v1 for Tenant
PUT http://provisioner-ms:2020/provisioner/v1/tenants/playground/applications [errored]
connect ECONNREFUSED 127.0.0.1:2020
41. Status code is 202
→ 05.1 Create administrator role for tenant "playground"
POST http://identity-ms:2021/identity/v1/roles [errored]
socket hang up
43. Status code is 202
→ 05.2 Create Admin User operator with password 'initialPassword'
┌
│ 'operatorPassword in BASE64: aW5pdGlhbFBhc3N3b3Jk'
└
POST http://identity-ms:2021/identity/v1/users [errored]
socket hang up
45. Status code is 202
→ 05.3 Log in with initial password
POST http://identity-ms:2021/identity/v1/token?grant_type=password&username=operator&password=aW5pdGlhbFBhc3N3b3Jk [errored]
socket hang up
47. Status code is 200
48⠄ JSONError in test-script
→ 05.4 Change user 'operator' password to 'operatorPassword'
┌
│ 'operatorPassword in BASE64: b3BlcmF0b3JQYXNzd29yZA=='
└
PUT http://identity-ms:2021/identity/v1/users/operator/password [errored]
socket hang up
50. Status code is 202
→ 05.5 LOG IN TENANT ADMIN (operator)
POST http://identity-ms:2021/identity/v1/token?grant_type=password&username=operator&password=b3BlcmF0b3JQYXNzd29yZA== [errored]
socket hang up
52. Status code is 200
53⠄ JSONError in test-script
→ 05.6 Pull operator permissions
┌
│ 'operatorPassword in BASE64: b3BlcmF0b3JQYXNzd29yZA=='
└
GET http://identity-ms:2021/identity/v1/users/operator/permissions [errored]
socket hang up
55. Status code is 200
→ 06.1 Create Scheduler role for tenant playground
POST http://identity-ms:2021/identity/v1/roles [errored]
socket hang up
57. Status code is 202
→ 06.2 Create Scheduler user imhotep with password 'initialImhotepPassword'
┌
│ 'imhotepPassword in BASE64: aW5pdGlhbEltaG90ZXBQYXNzd29yZA=='
└
POST http://identity-ms:2021/identity/v1/users [errored]
socket hang up
59. Status code is 202
→ 06.3 Login Scheduler user imhotep
POST http://identity-ms:2021/identity/v1/token?grant_type=password&username=imhotep&password=aW5pdGlhbEltaG90ZXBQYXNzd29yZA== [errored]
socket hang up
61⠄ JSONError in test-script
→ 06.4 Change imhotep user password to 'imhotepPassword'
┌
│ 'imhotepPassword in BASE64: aW1ob3RlcFBhc3N3b3Jk'
└
PUT http://identity-ms:2021/identity/v1/users/imhotep/password [errored]
socket hang up
63. Status code is 202
→ 06.5 Login user imhotep (who has scheduler role)
POST http://identity-ms:2021/identity/v1/token?grant_type=password&username=imhotep&password=aW1ob3RlcFBhc3N3b3Jk [errored]
socket hang up
65. Status code is 200
66⠄ JSONError in test-script
→ 06.6 enable permission identity__v1__app_self for imhotep
PUT http://identity-ms:2021/identity/v1/applications/rhythm-v1/permissions/identity__v1__app_self/users/imhotep/enabled [errored]
socket hang up
68. Status code is 202
→ 07.01 Assign accounting-v1 for Tenant
PUT http://provisioner-ms:2020/provisioner/v1/tenants/playground/applications [errored]
connect ECONNREFUSED 127.0.0.1:2020
70. Status code is 202
→ 07.020 Assign portfolio-v1 for Tenant
PUT http://provisioner-ms:2020/provisioner/v1/tenants/playground/applications [errored]
connect ECONNREFUSED 127.0.0.1:2020
72. Status code is 202
→ 07.022 enable permission portfolio__v1__khepri for user imhotep
PUT http://identity-ms:2021/identity/v1/applications/rhythm-v1/permissions/portfolio__v1__khepri/users/imhotep/enabled [errored]
socket hang up
74. Status code is 202
→ 07.03 Assign deposits for Tenant
PUT http://provisioner-ms:2020/provisioner/v1/tenants/playground/applications [errored]
connect ECONNREFUSED 127.0.0.1:2020
76. Status code is 202
→ 07.04 Assign teller-v1 for Tenant
PUT http://provisioner-ms:2020/provisioner/v1/tenants/playground/applications [errored]
connect ECONNREFUSED 127.0.0.1:2020
78. Status code is 202
→ 08.1 Create REVENUE ledgers
POST http://accounting-ms:2025/accounting/v1/ledgers [errored]
socket hang up
80. Status code is 202
→ 08.2 Create EXPENSE Ledgers
POST http://accounting-ms:2025/accounting/v1/ledgers [errored]
socket hang up
82. Status code is 202
→ 08.3 Create ASSETS ledgers
POST http://accounting-ms:2025/accounting/v1/ledgers [errored]
socket hang up
84. Status code is 202
→ 08.4 Create LIABILITY ledgers
POST http://accounting-ms:2025/accounting/v1/ledgers [errored]
socket hang up
86. Status code is 202
→ 08.5 Create EQUITY ledgers
POST http://accounting-ms:2025/accounting/v1/ledgers [errored]
socket hang up
88. Status code is 202
→ 08.6 Assert ledgers created
GET http://accounting-ms:2025/accounting/v1/ledgers [errored]
socket hang up
90. Status code is 200
91⠄ JSONError in test-script
┌─────────────────────────┬──────────┬──────────┐
│ │ executed │ failed │
├─────────────────────────┼──────────┼──────────┤
│ iterations │ 1 │ 0 │
├─────────────────────────┼──────────┼──────────┤
│ requests │ 42 │ 42 │
├─────────────────────────┼──────────┼──────────┤
│ test-scripts │ 83 │ 9 │
├─────────────────────────┼──────────┼──────────┤
│ prerequest-scripts │ 51 │ 0 │
├─────────────────────────┼──────────┼──────────┤
│ assertions │ 40 │ 40 │
├─────────────────────────┴──────────┴──────────┤
│ total run duration: 7m 7.2s │
├───────────────────────────────────────────────┤
│ total data received: 0B (approx) │
└───────────────────────────────────────────────┘
Error socket hang up
at request
inside "00.1 Verify eureka is up"
AssertionErr… Status code is 200
expected false to be truthy
at assertion:0 in test-script
inside "00.1 Verify eureka is up"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "01. Log in root user"
AssertionErr… Status code is 200
expected false to be truthy
at assertion:0 in test-script
inside "01. Log in root user"
JSONError "undefined" is not valid JSON
at test-script
inside "01. Log in root user"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "NB! ONLY CREATE apps you have started"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "02.01 Create identity-v1 application"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "02.01 Create identity-v1 application"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "02.02 Create rhythm-v1 application"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "02.02 Create rhythm-v1 application"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "02.03 Create office-v1 application"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "02.03 Create office-v1 application"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "02.04 Create customer-v1 application"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "02.04 Create customer-v1 application"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "02.05 Create accounting-v1 application"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "02.05 Create accounting-v1 application"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "02.06 Create portfolio-v1 application"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "02.06 Create portfolio-v1 application"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "02.07 Create deposit-v1 application"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "02.07 Create deposit-v1 application"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "02.08 Create teller-v1 application"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "02.08 Create teller-v1 application"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "03.1 Create first tenant 'playground'"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "03.1 Create first tenant 'playground'"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "03.2 Assign identity-v1 for Tenant and obtain
Tenant Admin (user antony) Password"
AssertionErr… Status code is 200
expected false to be truthy
at assertion:0 in test-script
inside "03.2 Assign identity-v1 for Tenant and obtain
Tenant Admin (user antony) Password"
JSONError "undefined" is not valid JSON
at test-script
inside "03.2 Assign identity-v1 for Tenant and obtain
Tenant Admin (user antony) Password"
Error socket hang up
at request
inside "03.3 Login Antony (tenant superadmin) with
obtained password"
AssertionErr… Status code is 200
expected false to be truthy
at assertion:0 in test-script
inside "03.3 Login Antony (tenant superadmin) with
obtained password"
JSONError "undefined" is not valid JSON
at test-script
inside "03.3 Login Antony (tenant superadmin) with
obtained password"
Error socket hang up
at request
inside "03.4 Change Antony Password to
'antonyPassword'"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "03.4 Change Antony Password to
'antonyPassword'"
Error socket hang up
at request
inside "03.5 LOGIN ANTONY (tenant SuperAdmin) with
pwd 'antonyPassword'"
AssertionErr… Status code is 200
expected false to be truthy
at assertion:0 in test-script
inside "03.5 LOGIN ANTONY (tenant SuperAdmin) with
pwd 'antonyPassword'"
JSONError "undefined" is not valid JSON
at test-script
inside "03.5 LOGIN ANTONY (tenant SuperAdmin) with
pwd 'antonyPassword'"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "04.01 Assign rhythm-v1 for Tenant"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "04.01 Assign rhythm-v1 for Tenant"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "04.02 Assign office-v1 for Tenant"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "04.02 Assign office-v1 for Tenant"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "04.03 Assign customer-v1 for Tenant"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "04.03 Assign customer-v1 for Tenant"
Error socket hang up
at request
inside "05.1 Create administrator role for tenant
"playground""
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "05.1 Create administrator role for tenant
"playground""
Error socket hang up
at request
inside "05.2 Create Admin User operator with password
'initialPassword'"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "05.2 Create Admin User operator with password
'initialPassword'"
Error socket hang up
at request
inside "05.3 Log in with initial password"
AssertionErr… Status code is 200
expected false to be truthy
at assertion:0 in test-script
inside "05.3 Log in with initial password"
JSONError "undefined" is not valid JSON
at test-script
inside "05.3 Log in with initial password"
Error socket hang up
at request
inside "05.4 Change user 'operator' password to
'operatorPassword'"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "05.4 Change user 'operator' password to
'operatorPassword'"
Error socket hang up
at request
inside "05.5 LOG IN TENANT ADMIN (operator)"
AssertionErr… Status code is 200
expected false to be truthy
at assertion:0 in test-script
inside "05.5 LOG IN TENANT ADMIN (operator)"
JSONError "undefined" is not valid JSON
at test-script
inside "05.5 LOG IN TENANT ADMIN (operator)"
Error socket hang up
at request
inside "05.6 Pull operator permissions"
AssertionErr… Status code is 200
expected false to be truthy
at assertion:0 in test-script
inside "05.6 Pull operator permissions"
Error socket hang up
at request
inside "06.1 Create Scheduler role for tenant
playground"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "06.1 Create Scheduler role for tenant
playground"
Error socket hang up
at request
inside "06.2 Create Scheduler user imhotep with
password 'initialImhotepPassword'"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "06.2 Create Scheduler user imhotep with
password 'initialImhotepPassword'"
Error socket hang up
at request
inside "06.3 Login Scheduler user imhotep"
JSONError "undefined" is not valid JSON
at test-script
inside "06.3 Login Scheduler user imhotep"
Error socket hang up
at request
inside "06.4 Change imhotep user password to
'imhotepPassword'"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "06.4 Change imhotep user password to
'imhotepPassword'"
Error socket hang up
at request
inside "06.5 Login user imhotep (who has scheduler
role)"
AssertionErr… Status code is 200
expected false to be truthy
at assertion:0 in test-script
inside "06.5 Login user imhotep (who has scheduler
role)"
JSONError "undefined" is not valid JSON
at test-script
inside "06.5 Login user imhotep (who has scheduler
role)"
Error socket hang up
at request
inside "06.6 enable permission identity__v1__app_self
for imhotep"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "06.6 enable permission identity__v1__app_self
for imhotep"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "07.01 Assign accounting-v1 for Tenant"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "07.01 Assign accounting-v1 for Tenant"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "07.020 Assign portfolio-v1 for Tenant"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "07.020 Assign portfolio-v1 for Tenant"
Error socket hang up
at request
inside "07.022 enable permission
portfolio__v1__khepri for user imhotep"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "07.022 enable permission
portfolio__v1__khepri for user imhotep"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "07.03 Assign deposits for Tenant"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "07.03 Assign deposits for Tenant"
Error connect ECONNREFUSED 127.0.0.1:2020
at request
inside "07.04 Assign teller-v1 for Tenant"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "07.04 Assign teller-v1 for Tenant"
Error socket hang up
at request
inside "08.1 Create REVENUE ledgers"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "08.1 Create REVENUE ledgers"
Error socket hang up
at request
inside "08.2 Create EXPENSE Ledgers"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "08.2 Create EXPENSE Ledgers"
Error socket hang up
at request
inside "08.3 Create ASSETS ledgers"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "08.3 Create ASSETS ledgers"
Error socket hang up
at request
inside "08.4 Create LIABILITY ledgers"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "08.4 Create LIABILITY ledgers"
Error socket hang up
at request
inside "08.5 Create EQUITY ledgers"
AssertionErr… Status code is 202
expected false to be truthy
at assertion:0 in test-script
inside "08.5 Create EQUITY ledgers"
Error socket hang up
at request
inside "08.6 Assert ledgers created"
AssertionErr… Status code is 200
expected false to be truthy
at assertion:0 in test-script
inside "08.6 Assert ledgers created"
JSONError "undefined" is not valid JSON
at test-script
inside "08.6 Assert ledgers created"
Finished.`
Hi ,
We are facing issue when we call office from teller service getting below exception.
Caused by: feign.RetryableException: http executing GET http://office-v1/office/v1/offices/Virtusa_Hyd
at feign.FeignException.errorExecuting(FeignException.java:67)
at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:104)
at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:76)
at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103)
at com.sun.proxy.$Proxy154.findOfficeByIdentifier(Unknown Source)
at org.apache.fineract.cn.teller.service.internal.service.helper.OrganizationService.officeExists(OrganizationService.java:47)
at org.apache.fineract.cn.teller.service.rest.TellerManagementRestController.verifyOffice(TellerManagementRestController.java:333)
at org.apache.fineract.cn.teller.service.rest.TellerManagementRestController.fetch(TellerManagementRestController.java:137)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
... 87 common frames omitted
Caused by: java.net.UnknownHostException: http
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
Please suggest.
After following the procedures for building all the artifacts for fineract-cn (using this guide, for OSX) and running the migration script (migration_script.sh) I am encountering issues related to the provisioner-ms container using the recipe for Docker-compose.
.....
Cassandra is up - executing command.
Creating provisioner-ms ... done
Generating RSA keys...
grep: logs/provisioner.log: No such file or directory
grep: logs/provisioner.log: No such file or directory
grep: logs/provisioner.log: No such file or directory
grep: logs/provisioner.log: No such file or directory
grep: logs/provisioner.log: No such file or directory
OCI runtime exec failed: exec failed: cannot exec a container that has stopped: unknown
Error response from daemon: Container bbc1e0070144d4454efcb8c7afd68a5bf4915d8ececcccfb9c48a7a566ebf216 is not running
Error response from daemon: Container bbc1e0070144d4454efcb8c7afd68a5bf4915d8ececcccfb9c48a7a566ebf216 is not running
Error response from daemon: Container bbc1e0070144d4454efcb8c7afd68a5bf4915d8ececcccfb9c48a7a566ebf216 is not running
Error response from daemon: Container bbc1e0070144d4454efcb8c7afd68a5bf4915d8ececcccfb9c48a7a566ebf216 is not running
Error response from daemon: Container bbc1e0070144d4454efcb8c7afd68a5bf4915d8ececcccfb9c48a7a566ebf216 is not running
^C
This is the last output generated by provisioner-ms:
18:20:18.512 [main] INFO org.eclipse.jetty.server.Server - Started @48886ms
18:20:18.964 [main] ERROR o.s.b.b.PropertiesConfigurationFactory - Properties configuration failed validation
18:20:18.966 [main] ERROR o.s.b.b.PropertiesConfigurationFactory - Error in object 'system': codes [KeysValid.system,KeysValid]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [system.,]; arguments []; default message []]; default message [Public and private keys must be valid and matching.]
18:20:18.968 [main] ERROR o.s.b.b.PropertiesConfigurationFactory - Field error in object 'system' on field 'privateKey.modulus': rejected value [null]; codes [NotNull.system.privateKey.modulus,NotNull.privateKey.modulus,NotNull.modulus,NotNull.java.math.BigInteger,NotNull]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [system.privateKey.modulus,privateKey.modulus]; arguments []; default message [privateKey.modulus]]; default message [may not be null]
18:20:18.971 [main] ERROR o.s.b.b.PropertiesConfigurationFactory - Field error in object 'system' on field 'privateKey.exponent': rejected value [null]; codes [NotNull.system.privateKey.exponent,NotNull.privateKey.exponent,NotNull.exponent,NotNull.java.math.BigInteger,NotNull]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [system.privateKey.exponent,privateKey.exponent]; arguments []; default message [privateKey.exponent]]; default message [may not be null]
18:20:18.978 [main] WARN o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authenticationService' defined in URL [jar:file:/tmp/provisioner-service-boot-0.1.0-BUILD-SNAPSHOT.jar!/BOOT-INF/classes!/org/apache/fineract/cn/provisioner/internal/service/AuthenticationService.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tokenProvider' defined in org.apache.fineract.cn.provisioner.config.ProvisionerServiceConfig: Unsatisfied dependency expressed through method 'tokenProvider' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'system-org.apache.fineract.cn.provisioner.config.SystemProperties': Could not bind properties to SystemProperties (prefix=system, ignoreInvalidFields=false, ignoreUnknownFields=true, ignoreNestedProperties=false); nested exception is org.springframework.validation.BindException: org.springframework.boot.bind.RelaxedDataBinder$RelaxedBeanPropertyBindingResult: 3 errors
Error in object 'system': codes [KeysValid.system,KeysValid]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [system.,]; arguments []; default message []]; default message [Public and private keys must be valid and matching.]
Field error in object 'system' on field 'privateKey.modulus': rejected value [null]; codes [NotNull.system.privateKey.modulus,NotNull.privateKey.modulus,NotNull.modulus,NotNull.java.math.BigInteger,NotNull]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [system.privateKey.modulus,privateKey.modulus]; arguments []; default message [privateKey.modulus]]; default message [may not be null]
Field error in object 'system' on field 'privateKey.exponent': rejected value [null]; codes [NotNull.system.privateKey.exponent,NotNull.privateKey.exponent,NotNull.exponent,NotNull.java.math.BigInteger,NotNull]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [system.privateKey.exponent,privateKey.exponent]; arguments []; default message [privateKey.exponent]]; default message [may not be null]
18:20:18.982 [main] INFO o.s.o.j.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'metaPU'
18:20:21.673 [main] INFO o.e.j.server.handler.ContextHandler - Stopped o.s.b.c.e.j.JettyEmbeddedWebAppContext@4391a2d8{/provisioner-v1,file:///tmp/jetty-docbase.9058670146523631085.2020/,UNAVAILABLE}
18:20:21.720 [main] INFO o.s.b.a.l.AutoConfigurationReportLoggingInitializer -
2019-04-30T18:20:21.720875100Z
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
18:20:21.732 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -
2019-04-30T18:20:21.738318000Z
***************************
APPLICATION FAILED TO START
***************************
2019-04-30T18:20:21.738454200Z
Description:
2019-04-30T18:20:21.738525400Z
Binding to target org.apache.fineract.cn.provisioner.config.SystemProperties@186d8a71 failed:
2019-04-30T18:20:21.738596600Z
Property: system.privateKey.modulus
Value: null
Reason: may not be null
2019-04-30T18:20:21.738787700Z
Property: system.privateKey.exponent
Value: null
Reason: may not be null
2019-04-30T18:20:21.738926400Z
2019-04-30T18:20:21.738959500Z
Action:
2019-04-30T18:20:21.739025500Z
Update your application's configuration
2019-04-30T18:20:21.739103700Z
Seems that the JAR application is not loading the definitions at fineract-cn-provisioner/service/src/main/java/org/apache/fineract/cn/provisioner/config/SystemProperties.java
to register this information with the Eureka service and create the RSA Keys.
I have manually verified the internal communication of containers inside the network externaltools_app_net and packets are being transferred normally.
Should I post this in the developers' list at Mifos?
I am running the following stack in OSX Mojave 10.14.4 (18E226):
✗ java -version
java version "1.8.0_172"
Java(TM) SE Runtime Environment (build 1.8.0_172-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)
✗ mvn --version
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-04T13:00:29-06:00)
Maven home: /usr/local/Cellar/maven/3.6.1/libexec
Java version: 1.8.0_172, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/jre
Default locale: en_MX, platform encoding: UTF-8
OS name: "mac os x", version: "10.14.4", arch: "x86_64", family: "mac"
✗ gradle --version
Welcome to Gradle 5.4.1!
Here are the highlights of this release:
- Run builds with JDK12
- New API for Incremental Tasks
- Updates to native projects, including Swift 5 support
For more details see https://docs.gradle.org/5.4.1/release-notes.html
------------------------------------------------------------
Gradle 5.4.1
------------------------------------------------------------
Build time: 2019-04-26 08:14:42 UTC
Revision: 261d171646b36a6a28d5a19a69676cd098a4c19d
Kotlin: 1.3.21
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM: 1.8.0_172 (Oracle Corporation 25.172-b11)
OS: Mac OS X 10.14.4 x86_64
✗ node --version
v11.12.0
✗ npm --version
6.7.0
✗ docker --version
Docker version 18.09.2, build 6247962
✗ docker-compose --version
docker-compose version 1.23.2, build 1110ad01
✗ uname -a
18.5.0 Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.