One-process deployment of Fineract CN

2019-01-26 Thread Isaac Kamga
Happy weekend fineracters,

Hope this email finds you in good health.

In an effort to facilitate local development of Fineract CN, I picked up
the One-process deployment issue [1] which when resolved can enable
developers to run the platform in a single process.

Some research led me to the possibility of running each microservice in a
it's own ClassLoader while ensuring that the ServiceRunner uses a single
JVM to run in a single process. After having tried to adapt the method in
[2] where several Spring Boot apps are launched in the same process to our
Service-starter and demo-server, I encountered this error [3]. The code of
the workdone so far is on the *oneprocess* branch of my fork of
service-starter[4] and demo-server [5].

@Myrle Krantz   Is there a way to have the "java -jar
xyz-service-boot-0.1.0-BUILD-SNAPSHOT.jar" command run a single Thread as
opposed to running in the process assigned by ProcessBuilder() ?

@Markus Geiss  , is it possible that what could help in
this case is using an entire Pool of threads to get this executed ? Asking
as you developed the fineract-cn-async [6] library and I observed that upon
running demo-server, when the processors on my machine get exhausted, the
logs indicate that a separate thread (not main) shows up to run any
available service like Notifications and Groups.

Any help from the community would be much appreciated.

At Your Service,
Isaac Kamga.

[1] https://issues.apache.org/jira/browse/FINCN-25
[2]
https://github.com/rameez4ever/springboot-demo/tree/master/springboot-multi-service-launcher

[3] https://pastebin.com/qBDW52Y5
[4] https://github.com/Izakey/fineract-cn-service-starter/tree/oneprocess
[5] https://github.com/Izakey/fineract-cn-demo-server/tree/oneprocess
[6] https://github.com/apache/fineract-cn-async


Re: Mifos/Fineract set-up - Tomcat and MySQL issue

2019-01-26 Thread Vishwas Babu
Hi Supreeth,

Welcome to the Fineract community :).

Fineract 1.2 works with MySQL server version 5.7.x. Can you check the
version of MySQL you have installed?

The relevant error snippet from your log is

Caused by: org.drizzle.jdbc.internal.common.QueryException: Could not
connect: Client does not support authentication protocol requested by
server; consider upgrading MySQL client
at 
org.drizzle.jdbc.internal.mysql.MySQLProtocol.(MySQLProtocol.java:227)
~[drizzle-jdbc-1.3.jar:na]
at org.drizzle.jdbc.DrizzleDriver.connect(DrizzleDriver.java:89)
~[drizzle-jdbc-1.3.jar:na]


Regards,
Vishwas



On Fri, Jan 25, 2019 at 10:47 PM Supreeth Menon 
wrote:

> Hello ,
> Since i had issues with setting up Fineract locally on Ubuntu , and still
> it has not been resolved i have tried it to set up in other machine from
> scratch but got the same result as BUILD FAILED . In this mail i hereby
> attach the log file which would be helpful in finding the error and helpful
> for me to proceed further if anyone can debug the issue.I have been trying
> it for the month long and have been putting up the emails repeatedly in the
> mailing list as well, Also i have requested for the subscription in the
> developer mailing list no one has still replied to it.
> Please help me in this regard.PLEASE
> Looking forward to hear from you. Regards
>
>
> On Sat, Jan 26, 2019 at 12:11 PM Supreeth Menon 
> wrote:
>
>> Hello ,
>> Since i had issues with setting up Fineract locally on Ubuntu , and still
>> it has not been resolved i have tried it to set up in other machine from
>> scratch but got the same result as BUILD FAILED . In this mail i hereby
>> attach the log file which would be helpful in finding the error and helpful
>> for me to proceed further if anyone can debug the issue.I have been trying
>> it for the month long and have been putting up the emails repeatedly in the
>> mailing list as well, Also i have requested for the subscription in the
>> developer mailing list no one has still replied to it.
>> Please help me in this regard.PLEASE
>> Looking forward to hear from you. Regards
>> -Supreeth
>>
>> On Thu, Jan 24, 2019 at 6:29 PM Supreeth Menon 
>> wrote:
>>
>>> Hello ,
>>> I have been trying to install Fineract locally on Ubuntu , but for the
>>> past one month there were many issues with the installation and also when i
>>> executed some commands such as "./gradlew tomcatrunwar"  it shows BUILD
>>> FAILED WITH AN EXCEPTION , i have been trying to reach people to help me in
>>> this so that i can proceed further and fix few bugs before applying for
>>> GSOC 2019 ,
>>> Looking forward to hearing from you please help me in this regard.
>>> Please
>>> Thanks
>>> Supreeth
>>>
>>> On Mon, Jan 21, 2019 at 3:52 PM Supreeth Menon <
>>> supreethmeno...@gmail.com> wrote:
>>>

 Hello ,
 I am Supreeth , studying 2nd year at International Institute of
 Information and Technology , Hyderabad. Based on the provided instructions,
 I was trying to set-up Mifos/Fineract. I am getting stuck with Tomcat and
 MySQL. I tried Tomcat 7 and 8, getting similar issues.

 I request someone to help me in the set-up so that I can fix few issues
 before I apply for GSOC 2019.

 Looking forward to hearing on the support

 Regards
 Supreeth

 -- Forwarded message -

> From: Santosh Math 
> Date: Fri, Dec 21, 2018 at 3:35 PM
> Subject: Re: [Mifos-developer] New Contribution
> To: Mifos software development 
>
>
> Hi  Akash,
> Welcome to our community. We are happy to see you here.
>
> I would urge you to take a look at these links.
>
> This is to get you started as a contributor with Fineract CN: Link
> <
> https://cwiki.apache.org/confluence/display/FINERACT/Contributor%27s+Zone
> >
>
>1. Getting Started Doc
><
> https://cwiki.apache.org/confluence/display/FINERACT/Getting+Started+Docs?src=contextnavpagetreemode
> >
>2. Take Your First Steps
><
> https://cwiki.apache.org/confluence/display/FINERACT/Take+Your+First+Steps
> >
>3. Key Design Principles
><
> https://cwiki.apache.org/confluence/display/FINERACT/Key+Design+Principles
> >
>4. Coding Conventions
><
> https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions
> >
>
> These are the repositories: Apache Fineract
> 
>
> This is a link to how to import the microservices into Intellij - Link
> <
> https://cwiki.apache.org/confluence/display/FINERACT/Importing+Fineract+CN+Microservices+Into+IntelliJ
> >
>
>
> On Thu, Dec 20, 2018 at 6:25 PM Akash Srivastava 
> wrote:
>
>> Hello, I am Akash Srivastava, I am currently pursuing B.Tech -CSE. I
>> wanted to contribute to the organisation and be part the cause. I am
>> interest

Re: Fineract

2019-01-26 Thread Oguzhan Yildirim
Here is log and is it good to share log here? and i just copy error part.

Thank you very much.

LOG-

Time: 3,591.973
There was 1 failure:
1) startDevServer(org.apache.fineract.cn.dev.ServiceRunner)
feign.RetryableException: Connection refused (Connection refused) executing 
POST 
http://localhost:2020/provisioner/v1/auth/token?grant_type=password&client_id=service-runner&username=wepemnefret&password=oS%2F0IiAME%2F2unkN1momDrhAdNKOhGykYFH%2FmJN20
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.$Proxy196.authenticate(Unknown Source)
at 
org.apache.fineract.cn.dev.ServiceRunner.migrateServices(ServiceRunner.java:340)
at 
org.apache.fineract.cn.dev.ServiceRunner.startDevServer(ServiceRunner.java:292)
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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at 
org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at 
org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
at 
org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at 
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:252)
at 
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at 
org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at 
org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at 
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:27)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:77)
at org.junit.runner.JUnitCore.main(JUnitCore.java:36)
at org.apache.fineract.cn.dev.DemoServer.main(DemoServer.java:30)
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.

Re: Fineract

2019-01-26 Thread Sanyam Goel
Hi Oguzhan,

Welcome to the community!

Can you please share any error logs, while building fineract on your
platform?

Thanks,
Sanyam Goel

On Sat, Jan 26, 2019 at 7:22 PM Oguzhan Yildirim <
oguzhanyildi...@protonmail.com> wrote:

> Hello Sanyam,
>
> I am Oguzhan from Turkey.
>
> I am new at Fineract community and i am trying to build the system but i
> have 8 gb of ram so it seems impossible to build it in my computer and also
> i have an error from feign client.
>
> I want to ask you how did you figure it out and can you give me some
> advices.
>
> Nowadays i am looking and trying to understand codebase and watching some
> youtubes videos from mifos channel.
>
> And this year i will graduate before that i wanted to be part of an open
> source community and i want to project, meet new people this kind of
> things. After graduation i am not sure i will have enough time for joining
> a community and understanding projects but right now i have enough time for
> it.
>
> Any help will be apppreciated.
>
> Best Regards,
> Oguzhan Yıldırım
>


-- 
SANYAM GOEL
Profile: plu.us/sanyam96
LinkedIn: https://goo.gl/NkmHkf
Github: https://goo.gl/STw1Rq
Hackerrank: https://goo.gl/va9Npm
+91-9818060934