Thought I had attached it but hopefully you see it this time

Rohit

From: Courage Angeh <couragean...@gmail.com>
Sent: Wednesday, December 18, 2019 4:12 PM
To: Dev <dev@fineract.apache.org>
Subject: Re: help jump starting?

I don't know If it's just me but I didn't find a file attached to the email you 
just forwarded Juhan.
Please, can you check again?

On Wed, Dec 18, 2019 at 4:41 AM Juhan Aasaru 
<aas...@gmail.com<mailto:aas...@gmail.com>> wrote:
H!

Rohit only sent the log file to me.
I will forward it to the list now.

Juhan

Kontakt Rohit Jain (<rohit.j...@esgyn.com<mailto:rohit.j...@esgyn.com>>) 
kirjutas kuupäeval T, 17. detsember 2019 kell 04:13:
Juhan,

Thanks for that!  I realized I had made a very foolish mistake in cutting and 
pasting from your instructions into the application-common.properties file.  
Since it said “Open newly generated … file .. and add to the end of the file:” 
I did not pay attention to what the rest said since it all looked alike and 
copied and pasted the whole thing including the section “#Keep the values you 
created” before the “#add following values”.  I would suggest putting the keep 
the values you created section before that sentence, saying that the Generate 
RSA keys step will create the following in the file.  And then follow that with 
the “Open newly generated …file …” and “#add following values”.

However, while I got beyond the RSA errors I encountered new ones ☹.  See 
attached.

Rohit

From: Juhan Aasaru <aas...@gmail.com<mailto:aas...@gmail.com>>
Sent: Sunday, December 15, 2019 11:59 AM
To: Rohit Jain <rohit.j...@esgyn.com<mailto:rohit.j...@esgyn.com>>
Subject: Re: help jump starting?

External
Hi Rohit!

If you open the class SystemRsaKeyProvider
(in Intellij choose Navigate -> Class -> type in "SystemRsaKeyProvider")
and look into what the class is doing then you see that init method
tries to convert two strings into BigInteger-s:

systemPublicKeyMod which is read in from "system.publicKey.modulus"
and
systemPublicKeyExp which is read in from "system.publicKey.exponent"

Since you get NumberFormatException then one of these values
is not a number. Open
application-common.properties
where these values are defined
and make sure that you don't have any problems with linefeeds or non-numbers 
there.

You can also set a a breakpoint to init method and instead of clicking Run you 
could click Debug
in IntelliJ. And then you should be able to examine the values before the error 
arises.

If you don't find any problems email me your file application-common.properties,
maybe I could spot it.

Good luck!
Juhan










Kontakt Rohit Jain (<rohit.j...@esgyn.com<mailto:rohit.j...@esgyn.com>>) 
kirjutas kuupäeval R, 13. detsember 2019 kell 23:51:
Juhan,

I followed the instructions and made good progress until I tried to Run the 
ProvisionerApplication. I am running on Windows 10.  I usually use Eclipse but 
I installed IntelliJ so that I can follow your instructions.  But in the final 
Run instruction where I am supposed to get success, I get the following error: 
“Error running ‘ProvisionerApplication’: Command line too long.  Shorten 
command line for ProvisionerApplication or also for Application default 
configuration.

I used the shorten command line option to choose JAR manifest and other options 
and it was more successful.  The Provisioner seemed to start up but then 
encounters the error that you see in the log attached:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 
'org.apache.fineract.cn.anubis.config.AnubisSecurityConfigurerAdapter': 
Unsatisfied dependency expressed through method 'configureGlobal' parameter 1; 
nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 
'org.apache.fineract.cn.anubis.security.IsisAuthenticatedAuthenticationProvider':
 Unsatisfied dependency expressed through constructor parameter 0; nested 
exception is org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 
'org.apache.fineract.cn.anubis.provider.SystemRsaKeyProvider': Invocation of 
init method failed; nested exception is java.lang.NumberFormatException: For 
input string: "654279..."

Rohit

From: Rohit Jain
Sent: Thursday, December 12, 2019 1:08 PM
To: dev@fineract.apache.org<mailto:dev@fineract.apache.org>
Cc: Ebenezer Graham <egraha...@alustudent.com<mailto:egraha...@alustudent.com>>
Subject: RE: help jump starting?

Awesome Juhan!  Will try that.

From: Juhan Aasaru <aas...@gmail.com<mailto:aas...@gmail.com>>
Sent: Thursday, December 12, 2019 1:57 AM
To: Dev <dev@fineract.apache.org<mailto:dev@fineract.apache.org>>
Cc: Ebenezer Graham <egraha...@alustudent.com<mailto:egraha...@alustudent.com>>
Subject: Re: help jump starting?

Hi!

I cannot help you with the error you got but instead I will propose a better 
solution.
Right now you have been trying to set up Fineract-CN using demo server which is 
more
suitable to demonstrate the solution. This doesn't help you much with getting 
started with developmentent
as you cannot run individual micro services directly from your IDE.

Instead I wrote a new tutorial how to set up bare minimum of Fineract-CN:
https://cwiki.apache.org/confluence/display/FINERACT/Bare+minimum+to+run+Fineract-CN+locally
This only sets up Provisioner and Identity micro services
but you should get them running with your IDE (I use IntelliJ) so you can jump 
into development
and maybe compose a proof-of-concept with only these two micro services.

It is possible to add other micro services step-by-step afterwards but my 
instructions don't cover that.
In the end of the tutorial I also propose starting up Fims Web App (UI of 
fineract-cn) but
currently I didn't manage to do complete it myself.

Anyway I propose to test my instructions as you should get up to speed quickly.
Anyone else is welcome to give feedback as well (or fix directly in Confluence).

Kind regards
Juhan


Kontakt Rohit Jain (<rohit.j...@esgyn.com<mailto:rohit.j...@esgyn.com>>) 
kirjutas kuupäeval K, 11. detsember 2019 kell 19:31:
Hi guys,

I am stuck.  Any pointers?  Advice on a different approach?

Rohit

From: Rohit Jain
Sent: Monday, December 9, 2019 1:11 PM
To: dev@fineract.apache.org<mailto:dev@fineract.apache.org>
Cc: Ebenezer Graham <egraha...@alustudent.com<mailto:egraha...@alustudent.com>>
Subject: RE: help jump starting?


That is what I thought.  I think it was the size of the log: ezmlm-reject: 
fatal: Sorry, I don't accept messages larger than 1000000 bytes (#5.2.3)

I have attached a zipped version.

From: Awasum Yannick <awa...@apache.org<mailto:awa...@apache.org>>
Sent: Monday, December 9, 2019 1:03 PM
To: Dev <dev@fineract.apache.org<mailto:dev@fineract.apache.org>>
Cc: Ebenezer Graham <egraha...@alustudent.com<mailto:egraha...@alustudent.com>>
Subject: Re: help jump starting?


On Mon, Dec 9, 2019 at 6:32 PM Rohit Jain 
<rohit.j...@esgyn.com<mailto:rohit.j...@esgyn.com>> wrote:
This message got rejected because I had an attached log file.  I am resending 
it without the log file.  If there is a way to share the log file, let me know. 
…


This list supports attachments. I dont know why you are having problems. Just 
paste the Logs in the body of the email.

Hi guys,

I appreciate your guidance.  However, let me share some considerations and 
perhaps you can guide me better:

  *   My focus is to see if we can demonstrate Fineract working with Apache 
Trafodion instead of PostgreSQL + Cassandra.  Initially the focus will be to 
switch PostgreSQL with Trafodion using the EclipseLink/JPA infrastructure that 
has been put in place.
  *   To that end I am not interested in exploring all the intricate details of 
the components or tools used by Fineract, since that would take me a lot of 
time and effort with little value, when you experts are already taking care of 
that part.  That is, I have no idea what npm does or why.  I am just following 
the directions on the build web page so I can get it running with PostgreSQL + 
Cassandra, then see how I can switch Fineract to use Trafodion, and then run 
the same with Trafodion to hopefully get the same results.
  *   I am doing this on a Windows 10 Pro OS x64 PC Intel i7-6500U 2.50 GHz 
CPU, 2592 MHz, 2 Core(s), 4 Logical Processor(s) with 16 GB of physical memory 
and total virtual memory of 35 GB with around 22.5 GB available.  If I need to 
start the process again on some other system/OS I can, but from what I have 
been told so far, it should work on this laptop.
  *   I ignored putting the fineract-cn-fims-web-app directory in a 
integration-tests directory since in the past the host directory path has been 
irrelevant for most purposes.  But I guess I was wrong in this case.  So, I 
changed that and built Fineract CN again successfully, i.e. completed Step 2 
recommended option 1.  But when I ran Step 3 Option B – with persistence 
Command I, I am still getting errors.  I don’t have the log from the beginning 
(my bad) but have most of the relevant parts of the log attached, if that gives 
any pointers as to what the issue may be.
  *   If I should follow a different recipe to do what I need to do in order to 
move forward, I am more than willing.  I don’t know if a docker build is what 
will work for what I want to do, since my intent is not to just demo / use the 
product, but rather to get it running with tests as it currently stands and 
then switch to Trafodion with whatever effort that requires (potentially source 
or configuration changes), and then run the tests again to prove that it all 
works just the same.  Later I would like to run some performance tests at scale 
to demonstrate where Trafodion can really make a difference for Fineract 
customers needing high-scalability.  But I need to get it all working first.

So, any guidance would greatly be appreciated.  Thanks for your patience and 
all your help!
Rohit

From: Awasum Yannick <awa...@apache.org<mailto:awa...@apache.org>>
Sent: Friday, December 6, 2019 2:18 AM
To: Dev <dev@fineract.apache.org<mailto:dev@fineract.apache.org>>
Cc: Rohit Jain <rohit.j...@esgyn.com<mailto:rohit.j...@esgyn.com>>; Ebenezer 
Graham <egraha...@alustudent.com<mailto:egraha...@alustudent.com>>
Subject: Re: help jump starting?

Hi Juhan,

I think you are right and it is time to rewrite the build instructions for 
Fineract CN to adopt the Docker approach. Anyone interested in doing this work?

On Fri, Dec 6, 2019 at 7:50 AM Juhan Aasaru 
<aas...@gmail.com<mailto:aas...@gmail.com>> wrote:
Hi!

The problem with npm is caused by the fact that you have not cd into correct 
directory.
The instructions under step #4 have this: cd into 
‘integration-tests/fineract-cn-fims-web-app'

Anyway, we can all agree that the build instructions of Fineract-CN are almost 
impossible to properly follow.
And actually there is no need to use demo server. Demo server sets up the 
system but
its quite untransparent and difficult to understand for a newcomer. Don't get 
me wrong, it
is a great resource afterwards when learning how to call micro services from 
code and
how to use listeners.

To set up the system for the first time I recommend to use Docker-Compose with 
Postman instead:
https://github.com/apache/fineract-cn-docker-compose#2-deploy-fineract-manually-using-postman
This is all tested several times and should work like a charm.

The following is an idea of mine that is not anywhere documented yet due to 
lack of time.
Based on Docker-Compose process we could also create instructions where micro 
services are not
started within Docker but they are started directly (run from IDE or java -jar 
...).

Docker-Compose instructions include creating .env file with common properties 
(and RSA keys).
To run micro services directly basically a similar file should be created, 
let's call it applciation-locally.yml
and then when starting apps this file should be passed as flag:
--spring.config.location=../application-locally.yml

Provisioning is be done with Postman (see instructions at 
fineract-cn-docker-compose)
 - this way one understands better what steps are taking place during 
provisioning.

Kind regards
Juhan







Kontakt Awasum Yannick 
(<yannickawa...@gmail.com<mailto:yannickawa...@gmail.com>>) kirjutas kuupäeval 
R, 6. detsember 2019 kell 04:35:
Why are you running npm (x) on a non node, non js repo (demo-server) ?

The timeout might be showing a lack of memory problem. What is the capacity of 
your machine?

On Thu, Dec 5, 2019 at 9:40 PM Rohit Jain 
<rohit.j...@esgyn.com<mailto:rohit.j...@esgyn.com>> wrote:
Thanks guys!

I think I got off the track right at the beginning of Step 3: Orchestrate 
Microservices Using The Demo-server.  It said “… consider manually 
orchestrating …”.  I thought I needed to go to 
https://github.com/vishwasbabu/ProvisioningFineractCN.  That is where it says 
start ActiveMQ.  Which is why I did.  I abandoned that effort when I realized 
that “consider” meant optional, and I did not really need to do that, since 
that whole key generation was getting a bit complicated on Windows 10.  But 
then ActiveMQ was still running when I proceeded with the rest of the 
instructions to build.  My bad!
Because I had started ActiveMQ, initially demo-server immediately complained 
about not being able to use port 61616.  In fact, the instructions say that 
this port should not be in use before starting demo-server.  I guess I did not 
pay attention to that part until I got that error.  I then stopped ActiveMQ, 
changed the port 61616 it was using, to 61615, and restarted it (doh!).  
Demo-server then ran for a long time.  But then it gave me a slew of connection 
refused errors for port 61616, even though ActiveMQ was not using it, and not 
that the port was being used.

Regardless, I stopped ActiveMQ and this time ran with Command II in the 
documentation.  I did not run into the connection refused error!
This time I got some  [DicoverClient-n] errors that 
c.n.discovery.TimedSupervisorTask – task supervisor timed out

But demo-server kept going after those timeouts and has now been running for 3 
hours with no message "INFO  o.e.jetty.server.AbstractConnector - 
StoppedServerConnector@1bdb0376{HTTP/1.1,[http/1.1]}<mailto:StoppedServerConnector@1bdb0376%7bHTTP/1.1,%5bhttp/1.1%5d%7d>"
 written to any of the logs as yet.  I guess I should have direct standard out 
to a log since it does not seem to be capturing everything in the logs and I 
might have just missed that message.

I decided to proceed to step 4 but I get the following when I run npm i …
c:\Apps\fineract-cn-demo-server>npm i
npm WARN saveError ENOENT: no such file or directory, open 
'c:\Apps\fineract-cn-demo-server\package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 
'c:\Apps\fineract-cn-demo-server\package.json'
npm WARN fineract-cn-demo-server No description
npm WARN fineract-cn-demo-server No repository field.
npm WARN fineract-cn-demo-server No README data
npm WARN fineract-cn-demo-server No license field.

up to date in 0.843s
found 0 vulnerabilities

c:\Apps\fineract-cn-demo-server>npm run dev
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path c:\Apps\fineract-cn-demo-server\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 
'c:\Apps\fineract-cn-demo-server\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

There us a package-lock.json but no package.json.

From: Ebenezer Graham 
<ebenezergraha...@gmail.com<mailto:ebenezergraha...@gmail.com>>
Sent: Thursday, December 5, 2019 7:39 AM
To: Awasum Yannick <yannickawa...@gmail.com<mailto:yannickawa...@gmail.com>>
Cc: dev@fineract.apache.org<mailto:dev@fineract.apache.org>; Ebenezer Graham 
<egraha...@alustudent.com<mailto:egraha...@alustudent.com>>
Subject: Re: help jump starting?

Thanks Awasum for the response. I think that's the issue too

@Rohit, it's not necessary to configure a standalone ActiveMQ when running the 
demo-server. This library (https://github.com/apache/fineract-cn-command) helps 
to set up an embedded broker.

Also, what is the state of this issue 
https://github.com/flyway/flyway/issues/2103

Warm regards.

On Thu, Dec 5, 2019 at 11:07 AM Awasum Yannick 
<yannickawa...@gmail.com<mailto:yannickawa...@gmail.com>> wrote:
Hi

Demo server at times runs with an embedded activemq and other data stores. So 
if you already have an activemq installed on your host, then thats what is 
causing the port in use exception.

Hope this helps.

On Wed, Dec 4, 2019, 23:06 Rohit Jain 
<rohit.j...@esgyn.com<mailto:rohit.j...@esgyn.com>> wrote:
Hi Ebenezer,

A thread by the same subject line was initiated by my colleague, Eric Owhadi, 
on 06 Jun, 20:51.  He ran into an issue:
Could not connect to broker URL: tcp://localhost:61616. Reason: 
java.net.ConnectException: Connection refused

It so happens that 4 months later I have run into the exact same issue.  Except 
that I am running everything on my Windows 10 laptop.  Also, I installed and 
ran ActiveMQ on my laptop.  In fact, the demo server got an error initially 
since it found that port 61616 was being used.  So, I modified the activemq.xml 
file to change that port to avoid the conflict.  Then the demo server started 
all the application services, and then at the end ran into the error above.

You responded to Eric and said that you would provide a resolution to this 
problem.  Don’t know if you have a resolution that I can use to move forward.  
The Demo server created the appropriate databases and keyspaces in PostgreSQL 
and Cassandra respectively.

Rohit




--

Best Regards,

Ebenezer Graham

BSc (Hons) Computing



[https://lh5.googleusercontent.com/UZy71H9Bdvv5lD_xcn789yjoyptPhMW7HAv6d9yBGNmLb0sQFFFN3QrS96LhXwlmbS8rJD8RJwUbNTF9TClOo52RqMcf14vkSuiJ6rejMJbYGPE6YBIpTLu8ockuBAYqGfeWRTOX]


GitHub<https://ebenezergraham.me> | 
LinkedIn<https://www.linkedin.com/in/ebenezer-graham/> | Personal 
Website<https://ebenezergraham.me>
skype:
ebenezer.graham
| Phone:
+230 5840 9206<tel:+230%205840%209206>


“Talk is cheap, show me the Code” - Linus Torvalds

Reply via email to