[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mifos-developer
Subject:    Re: [Mifos-developer] fineract-cn-containers issue when starting
From:       Victor Manuel Romero Rodriguez <vic_romero () hotmail ! com>
Date:       2019-04-30 5:19:39
Message-ID: AM0PR01MB564963C9A49A5CA1EFC144E3E43A0 () AM0PR01MB5649 ! eurprd01 ! prod ! exchangelabs ! com
[Download RAW message or body]

[Attachment #2 (text/plain)]

Hi Courage,

That is the right direction!

Well...I  just missed to fork/clone your repository.

https://github.com/Anh3h/fineract-cn-provisioner/

I have used the apache's repositories. Why not to send a PR to the apache's main \
repository?

Regards

Victor


El 29/04/19 a las 23:59, Courage Angeh escribió:
Hi Victor and Juhan

My provisioner microservice is different. It generates the RSA keys and distributes \
them to the other services. Yours doesn't do that so that is why you get the error. \
Babajide solution quite similar to mine does not scale. So now, I want to create a \
new microservice that will amongst other things generate and distribute the RSA keys. \
If anyone comes up with a better idea to manage the RSA keys in a scalable way please \
share :-D. For now, I will just do that.

Here are the changes I made to my version of provisioner: \
https://github.com/apache/fineract-cn-provisioner/compare/develop...Anh3h:develop

Feel free to check it out. If you need any extra help let me know.

P.S: Sorry for the delayed reply. My computer got broken over the weekend.

Regards,
Courage.

On Mon, Apr 29, 2019 at 2:54 AM VIctor Romero \
<victor.romero@fintecheando.mx<mailto:victor.romero@fintecheando.mx>> wrote: Thank \
you Babajide,

It was very clear!

Regards

Victor.

Obtener BlueMail para Android<http://www.bluemail.me/r?b=14726>
En 29 abr 2019, en 1:04 a. m., Babajide Apata \
<apatababajide@gmail.com<mailto:apatababajide@gmail.com>> escribió: Yes,
In your application.properties file, those variable does not exist. That's why you \
are having those exception thrown.

Solution is to set those variables.
From  your IDE,  go to this package org.apache.fineract.cn.provisioner, there inside \
the service, go to test there is a test called  GenerateRsaKeyPair run the test and \
console the key pairs and the modulus copy it and add the following variables to your \
application.yml file


system.publicKey:
  modulus: 274969975180276027406790385889573607881663881117457232268450518878129917390 \
12227723332546243105385734111368736932032932620432772472716515003684527125446557010447 \
73558071197880663236086513859289344677592913200875268875675482484863238187422402857625 \
82466496022693666730055123100646408254186478803092567553069935324154404720701581975723 \
23027777474711257863763916264413397812817318423942185465458554343738802161836089905865 \
85056231568102167413565733655989967359920089576137380318498663824977853258535368897001 \
6894869511370841246964409764310721813601840292548267423866614022874317712701218971621669991087235101713626702109
  exponent: 65537
  timestamp: 1553705925
system.privateKey:
  modulus: 274969975180276027406790385889573607881663881117457232268450518878129917390 \
12227723332546243105385734111368736932032932620432772472716515003684527125446557010447 \
73558071197880663236086513859289344677592913200875268875675482484863238187422402857625 \
82466496022693666730055123100646408254186478803092567553069935324154404720701581975723 \
23027777474711257863763916264413397812817318423942185465458554343738802161836089905865 \
85056231568102167413565733655989967359920089576137380318498663824977853258535368897001 \
6894869511370841246964409764310721813601840292548267423866614022874317712701218971621669991087235101713626702109
  exponent: 56179684264825915238367994675700605910180193908216005311115132639244390098 \
01695671382925586999421929288054494217311151987237664577409312844642504512103535382606 \
69819225374057739608636318729509808584966799025889495250702575804085001744504416959329 \
99362594896682304614422968679031011589232905857354005821682505904724172347511813258045 \
36493087911988072748305750860394455558844565257779994804434211787088137160834328698630 \
53509277270956564037565527275973433021758135147494178230404572716471363941780229141916 \
667576368904894867190517214053799120318348323425955090304041838551270452216693653535478473873254807774112781013



use the generated ones to replace the sample above.




You might also need to set this




system:
  initialclientid: sillyRabbit

Have a code-full day :)

Regards

On Mon, 29 Apr 2019, 01:12 Victor Manuel Romero Rodriguez, < \
vic_romero@hotmail.com<mailto:vic_romero@hotmail.com>> wrote:

Hello,


I have just pulled the repository from

https://github.com/openMF/fineract-cn-containers

Then I execute the commands

1. Run bash migration_script.sh

2. Run bash start-up.sh

But then it gives error messages:

Generating RSA keys...
grep: logs/provisioner.log: No such file or directory
Error response from daemon: Container \
18d9260749f1dc309acda9f11533773040ed8ace0060097a6e6721280171ae8d is not running

Full log: https://pastebin.com/ixw4GihX


Looking at the docker logs of provisioner container I found this messages:

***************************,
APPLICATION FAILED TO START,
***************************,
,
Description:,
,
Binding to target org.apache.fineract.cn.provisioner.config.SystemProperties@4078695f \
failed:, ,
    Property: system.publicKey.timestamp,
    Value: null,
    Reason: may not be empty,
,
    Property: system.privateKey.exponent,
    Value: null,
    Reason: may not be null,
,
    Property: system.publicKey.modulus,
    Value: null,
    Reason: may not be null,
,
    Property: system.privateKey.modulus,
    Value: null,
    Reason: may not be null,
,
    Property: system.publicKey.exponent,
    Value: null,
    Reason: may not be null,
,
,
Action:,
,
Update your application's configuration,


Full log: https://pastebin.com/AgDmSfNE

Any clue?

Regards

Victor


[Attachment #3 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Courage,</p>
<p>That is the right direction!</p>
<p>Well...I&nbsp; just missed to fork/clone your repository. <br>
</p>
<p><a href="https://github.com/Anh3h/fineract-cn-provisioner/">https://github.com/Anh3h/fineract-cn-provisioner/</a></p>
 <p>I have used the apache's repositories. Why not to send a PR to the apache's main \
repository?</p> <p>Regards</p>
<p>Victor<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">El 29/04/19 a las 23:59, Courage Angeh escribió:<br>
</div>
<blockquote type="cite" \
cite="mid:CAM2t5duuSbBzsktbnbyeHX800u2GTOshLPDABVZ9mCKcS1HrJw@mail.gmail.com"> <div \
dir="ltr">Hi Victor and Juhan <div><br>
</div>
<div>My provisioner microservice is different. It generates the RSA keys and \
distributes them to the other services. Yours doesn't do that so that is why you get \
the error. Babajide solution quite similar to mine does not scale. So now, I want to \
create a new  microservice that will amongst other things generate and distribute the \
RSA keys. If anyone comes up with a better idea to manage the RSA keys in a scalable \
way please share :-D. For now, I will just do that.</div> <div><br>
</div>
<div>Here are the changes I made to my version of provisioner:&nbsp;<a \
href="https://github.com/apache/fineract-cn-provisioner/compare/develop...Anh3h:develop" \
moz-do-not-send="true">https://github.com/apache/fineract-cn-provisioner/compare/develop...Anh3h:develop</a></div>
 <div><br>
</div>
<div>Feel free to check it out. If you need any extra help let me know.</div>
<div><br>
</div>
<div>P.S: Sorry for the delayed reply. My computer got broken over the weekend.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Courage.</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Apr 29, 2019 at 2:54 AM VIctor Romero \
&lt;<a href="mailto:victor.romero@fintecheando.mx" \
moz-do-not-send="true">victor.romero@fintecheando.mx</a>&gt; wrote:<br> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="auto">Thank you Babajide, <br>
<br>
</div>
<div dir="auto">It was very clear!<br>
<br>
</div>
<div dir="auto">Regards<br>
<br>
</div>
<div dir="auto">Victor. <br>
<br>
</div>
<div dir="auto">Obtener <a href="http://www.bluemail.me/r?b=14726" target="_blank" \
moz-do-not-send="true"> BlueMail para Android</a> </div>
<div class="gmail_quote">En 29 abr 2019, en 1:04 a. m., Babajide Apata &lt;<a \
href="mailto:apatababajide@gmail.com" target="_blank" \
moz-do-not-send="true">apatababajide@gmail.com</a>&gt; escribió: <blockquote \
class="gmail_quote" style="margin:0pt 0pt 0pt  0.8ex;border-left:1px solid
                rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>Yes,&nbsp; </div>
<div dir="auto">In your application.properties file, those variable does not exist. \
That's why you are having those exception thrown. <div dir="auto"><br>
</div>
<div dir="auto">Solution is to set those variables. </div>
<div dir="auto">From&nbsp; your IDE,&nbsp; go to this package \
org.apache.fineract.cn.provisioner, there inside the service, go to test there is a \
test called&nbsp; <span \
style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:Menlo;font-size:9pt">
 GenerateRsaKeyPair</span> </div>
<div><span style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:Menlo;font-size:9pt">run \
the test and console the key pairs and the modulus copy it and add the following \
variables to your application.yml file</span> </div>
<div><span style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:Menlo;font-size:9pt"><br>
 </span></div>
<div>
<pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:Menlo;font-size:9pt"><span \
style="color:rgb(204,120,50);font-weight:bold">system.publicKey</span>:  <span \
style="color:rgb(204,120,50);font-weight:bold">modulus</span>: \
27496997518027602740679038588957360788166388111745723226845051887812991739012227723332 \
54624310538573411136873693203293262043277247271651500368452712544655701044773558071197 \
88066323608651385928934467759291320087526887567548248486323818742240285762582466496022 \
69366673005512310064640825418647880309256755306993532415440472070158197572323027777474 \
71125786376391626441339781281731842394218546545855434373880216183608990586585056231568 \
10216741356573365598996735992008957613738031849866382497785325853536889700168948695113 \
70841246964409764310721813601840292548267423866614022874317712701218971621669991087235101713626702109
  <span style="color:rgb(204,120,50);font-weight:bold">exponent</span>: 65537
  <span style="color:rgb(204,120,50);font-weight:bold">timestamp</span>: 1553705925
<span style="color:rgb(204,120,50);font-weight:bold">system.privateKey</span>:
  <span style="color:rgb(204,120,50);font-weight:bold">modulus</span>: \
27496997518027602740679038588957360788166388111745723226845051887812991739012227723332 \
54624310538573411136873693203293262043277247271651500368452712544655701044773558071197 \
88066323608651385928934467759291320087526887567548248486323818742240285762582466496022 \
69366673005512310064640825418647880309256755306993532415440472070158197572323027777474 \
71125786376391626441339781281731842394218546545855434373880216183608990586585056231568 \
10216741356573365598996735992008957613738031849866382497785325853536889700168948695113 \
70841246964409764310721813601840292548267423866614022874317712701218971621669991087235101713626702109
  <span style="color:rgb(204,120,50);font-weight:bold">exponent</span>: \
56179684264825915238367994675700605910180193908216005311115132639244390098016956713829 \
25586999421929288054494217311151987237664577409312844642504512103535382606698192253740 \
57739608636318729509808584966799025889495250702575804085001744504416959329993625948966 \
82304614422968679031011589232905857354005821682505904724172347511813258045364930879119 \
88072748305750860394455558844565257779994804434211787088137160834328698630535092772709 \
56564037565527275973433021758135147494178230404572716471363941780229141916667576368904 \
894867190517214053799120318348323425955090304041838551270452216693653535478473873254807774112781013
 </pre>
<pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:Menlo;font-size:9pt">use \
the generated ones to replace the sample above.</pre> <pre \
style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:Menlo;font-size:9pt">
 </pre>
<pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:Menlo;font-size:9pt">You \
might also need to set this </pre> <pre \
style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:Menlo;font-size:9pt">
 </pre>
<pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:Menlo;font-size:9pt"><pre \
style="font-family:Menlo;font-size:9pt"><span \
style="color:rgb(204,120,50);font-weight:bold">system</span>:  <span \
style="color:rgb(204,120,50);font-weight:bold">initialclientid</span>: \
sillyRabbit</pre><pre style="font-family:Menlo;font-size:9pt">Have a code-full day :) \
</pre></pre> </div>
<div>Regards&nbsp; </div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, 29 Apr 2019, 01:12 Victor Manuel Romero \
Rodriguez, &lt; <a href="mailto:vic_romero@hotmail.com" target="_blank" \
moz-do-not-send="true">vic_romero@hotmail.com</a>&gt; wrote: <br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px
                    0px 0.8ex;border-left:1px solid
                    rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p><b>Hello,</b></p>
<p><b><br>
</b></p>
<p><b>I have just pulled the repository from </b><br>
</p>
<p><a href="https://github.com/openMF/fineract-cn-containers" rel="noreferrer" \
target="_blank" moz-do-not-send="true">https://github.com/openMF/fineract-cn-containers</a></p>
 <p><b>Then I execute the commands</b><br>
</p>
<p>1. Run <b>bash migration_script.sh</b><br>
<br>
2. Run <b>bash start-up.sh</b><br>
</p>
<p><b>But then it gives error messages:</b></p>
<p>Generating RSA keys...<br>
grep: logs/provisioner.log: No such file or directory<br>
Error response from daemon: Container \
18d9260749f1dc309acda9f11533773040ed8ace0060097a6e6721280171ae8d is not running</p> \
<p>Full log:<a href="https://pastebin.com/ixw4GihX" rel="noreferrer" target="_blank" \
moz-do-not-send="true"> https://pastebin.com/ixw4GihX</a><br> </p>
<br>
<p><b>Looking at the docker logs of provisioner container I found this \
messages:</b><br> </p>
<p>***************************,<br>
APPLICATION FAILED TO START,<br>
***************************,<br>
, <br>
Description:,<br>
,<br>
Binding to target org.apache.fineract.cn.provisioner.config.SystemProperties@4078695f \
failed:,<br> ,<br>
&nbsp;&nbsp;&nbsp; Property: system.publicKey.timestamp,<br>
&nbsp;&nbsp;&nbsp; Value: null,<br>
&nbsp;&nbsp;&nbsp; Reason: may not be empty,<br>
,<br>
&nbsp;&nbsp;&nbsp; Property: system.privateKey.exponent,<br>
&nbsp;&nbsp;&nbsp; Value: null,<br>
&nbsp;&nbsp;&nbsp; Reason: may not be null,<br>
,<br>
&nbsp;&nbsp;&nbsp; Property: system.publicKey.modulus,<br>
&nbsp;&nbsp;&nbsp; Value: null,<br>
&nbsp;&nbsp;&nbsp; Reason: may not be null,<br>
,<br>
&nbsp;&nbsp;&nbsp; Property: system.privateKey.modulus,<br>
&nbsp;&nbsp;&nbsp; Value: null,<br>
&nbsp;&nbsp;&nbsp; Reason: may not be null,<br>
,<br>
&nbsp;&nbsp;&nbsp; Property: system.publicKey.exponent,<br>
&nbsp;&nbsp;&nbsp; Value: null,<br>
&nbsp;&nbsp;&nbsp; Reason: may not be null,<br>
,<br>
,<br>
Action:,<br>
,<br>
Update your application's configuration,</p>
<p><br>
</p>
<p>Full log: <a href="https://pastebin.com/AgDmSfNE" rel="noreferrer" target="_blank" \
moz-do-not-send="true"> https://pastebin.com/AgDmSfNE</a></p>
<p>Any clue?</p>
<p>Regards</p>
<p>Victor<br>
</p>
<p><br>
</p>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</blockquote>
</body>
</html>


[Attachment #4 (--===============0006135990704284128==)]


Mifos-developer mailing list
mifos-developer@lists.sourceforge.net
Unsubscribe or change settings at:
https://lists.sourceforge.net/lists/listinfo/mifos-developer

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic