osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fineract CN demo server, Windows 10 64-bit troubleshoot


Following this link https://cwiki.apache.org/confluence/display/FINERACT/How+To+Build+Apache+Fineract+CN steps on Windows 10 64-bit, there’s some troubleshooting to go through:

(1)    For “What you will need” section, the challenge is to have the Cassandra server running. Download 64-bit v3.9.0 https://academy.datastax.com/planet-cassandra/cassandra, the installation is straight forward. Once installed, even if you can run the Cassandra server from the command prompt, ensure that the windows service DataStax_DDC_Server(DataStax DDC Server 3.9.0) is running. After changing the environment variables, change these files in config folder:

a.       cassandra-env.sh  : JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=127.0.0.1"

b.      cassandra.yaml :

                                                               i.      listen_address: 127.0.0.1

                                                             ii.      rpc_address: 127.0.0.1

                                                            iii.      cdc_raw_directory: "C:/Program Files/DataStax-DDC/data/cdc_raw"

c.       the folder cdr_raw isn’t in that path by default, create it

 

(2)    In the “Clone The Repositories” section, the script to clone Fineract CN repositories has been revised for Linux, but not for windows. In [Fineract CN Root]/integration-tests/demo-server/scripts/windows, there’s a batch “initial-setup.bat”. Find attached a revised version. The initial script just missed “fineract-cn-“ in front of every folder. You can comment “rem git remote …”, “rem git checkout …” and “rem CALL gradlew …” lines if you want first to verify if you have got the right Fineract CN folders structure. Next step, ref. Feedback note.

 

(3)    In the “Orchestrate Microservices Using The demo-server” section, the microservice data stores (A) command does not go through. The Local data stores (B) works fine, provided:

 

a.       The ActiveMQ service is stopped or at least changed the running port from 61616 to another that’s not being used by the microservices.

b.      The first run is different from subsequent runs. The first run of the microservices create local Cassandra & MySQL databases, but subsequent runs use the very databases created in the first un. If first run crashes, log into Cassandra and MySQL and drop the databases “seshat” and “playground”, and start over until the databases are created successfully.

c.       Commands:

                                                               i.      First run: java -Ddemoserver.provision=true -Ddemoserver.persistent=true -Dcustom.cassandra.contactPoints=127.0.0.1:9042 -Dcassandra.cluster.user=cassandra -Dcassandra.cluster.pwd=password -Dcustom.mariadb.host=localhost -Dcustom.mariadb.user=root -Dcustom.mariadb.password=mysql -jar demo-server-0.1.0-BUILD-SNAPSHOT.jar

 

                                                             ii.      Subsequent runs: java -Ddemoserver.persistent=true -Dcustom.cassandra.contactPoints=127.0.0.1:9042 -Dcassandra.cluster.user=cassandra -Dcassandra.cluster.pwd=password -Dcustom.mariadb.host=localhost -Dcustom.mariadb.user=root -Dcustom.mariadb.password=mysql -jar demo-server-0.1.0-BUILD-SNAPSHOT.jar

REM
REM Licensed to the Apache Software Foundation (ASF) under one
REM or more contributor license agreements.  See the NOTICE file
REM distributed with this work for additional information
REM regarding copyright ownership.  The ASF licenses this file
REM to you under the Apache License, Version 2.0 (the
REM "License"); you may not use this file except in compliance
REM with the License.  You may obtain a copy of the License at
REM
REM   http://www.apache.org/licenses/LICENSE-2.0
REM
REM Unless required by applicable law or agreed to in writing,
REM software distributed under the License is distributed on an
REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
REM KIND, either express or implied.  See the License for the
REM specific language governing permissions and limitations
REM under the License.
REM

SET githubAccount=%1

REM create core folder
mkdir core
cd core

REM initialize lang
git clone https://github.com/%githubAccount%/fineract-cn-lang.git
cd fineract-cn-lang
git remote add upstream https://github.com/apache/fineract-cn-lang.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize async
git clone https://github.com/%githubAccount%/fineract-cn-async.git
cd fineract-cn-async
git remote add upstream https://github.com/apache/fineract-cn-async.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize cassandra
git clone https://github.com/%githubAccount%/fineract-cn-cassandra.git
cd fineract-cn-cassandra
git remote add upstream https://github.com/apache/fineract-cn-cassandra.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize mariadb
git clone https://github.com/%githubAccount%/fineract-cn-mariadb.git
cd fineract-cn-mariadb
git remote add upstream https://github.com/apache/fineract-cn-mariadb.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize data-jpa
git clone https://github.com/%githubAccount%/fineract-cn-data-jpa.git
cd fineract-cn-data-jpa
git remote add upstream https://github.com/apache/fineract-cn-data-jpa.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize command
git clone https://github.com/%githubAccount%/fineract-cn-command.git
cd fineract-cn-command
git remote add upstream https://github.com/apache/fineract-cn-command.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize api
git clone https://github.com/%githubAccount%/fineract-cn-api.git
cd fineract-cn-api
git remote add upstream https://github.com/apache/fineract-cn-api.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize test
git clone https://github.com/%githubAccount%/fineract-cn-test.git
cd fineract-cn-test
git remote add upstream https://github.com/apache/fineract-cn-test.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM return to start folder
cd ..

REM create tools folder
mkdir tools
cd tools

REM initialize crypto
git clone https://github.com/%githubAccount%/fineract-cn-crypto.git
cd fineract-cn-crypto
git remote add upstream https://github.com/apache/fineract-cn-crypto.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM return to start folder
cd ..

REM initialize anubis
git clone https://github.com/%githubAccount%/fineract-cn-anubis.git
cd fineract-cn-anubis
git remote add upstream https://github.com/apache/fineract-cn-anubis.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize permitted-feign-client
git clone https://github.com/%githubAccount%/fineract-cn-permitted-feign-client.git
cd fineract-cn-permitted-feign-client
git remote add upstream https://github.com/apache/fineract-cn-permitted-feign-client.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize provisioner
git clone https://github.com/%githubAccount%/fineract-cn-provisioner.git
cd fineract-cn-provisioner
git remote add upstream https://github.com/apache/fineract-cn-provisioner.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize identity
git clone https://github.com/%githubAccount%/fineract-cn-identity.git
cd fineract-cn-identity
git remote add upstream https://github.com/apache/fineract-cn-identity.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize rhythm
git clone https://github.com/%githubAccount%/fineract-cn-rhythm.git
cd fineract-cn-rhythm
git remote add upstream https://github.com/apache/fineract-cn-rhythm.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize template
git clone https://github.com/%githubAccount%/fineract-cn-template.git
cd fineract-cn-template
git remote add upstream https://github.com/apache/fineract-cn-template.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize office
git clone https://github.com/%githubAccount%/fineract-cn-office.git
cd fineract-cn-office
git remote add upstream https://github.com/apache/fineract-cn-office.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize customer
git clone https://github.com/%githubAccount%/fineract-cn-customer.git
cd fineract-cn-customer
git remote add upstream https://github.com/apache/fineract-cn-customer.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize group
git clone https://github.com/%githubAccount%/fineract-cn-group.git
cd fineract-cn-group
git remote add upstream https://github.com/apache/fineract-cn-group.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize accounting
git clone https://github.com/%githubAccount%/fineract-cn-accounting.git
cd fineract-cn-accounting
git remote add upstream https://github.com/apache/fineract-cn-accounting.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize portfolio
git clone https://github.com/%githubAccount%/fineract-cn-portfolio.git
cd fineract-cn-portfolio
git remote add upstream https://github.com/apache/fineract-cn-portfolio.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize deposit-account-management
git clone https://github.com/%githubAccount%/fineract-cn-deposit-account-management.git
cd fineract-cn-deposit-account-management
git remote add upstream https://github.com/apache/fineract-cn-deposit-account-management.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize cheques
git clone https://github.com/%githubAccount%/fineract-cn-cheques.git
cd fineract-cn-cheques
git remote add upstream https://github.com/apache/fineract-cn-cheques.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize teller
git clone https://github.com/%githubAccount%/fineract-cn-teller.git
cd fineract-cn-teller
git remote add upstream https://github.com/apache/fineract-cn-teller.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize reporting
git clone https://github.com/%githubAccount%/fineract-cn-reporting.git
cd fineract-cn-reporting
git remote add upstream https://github.com/apache/fineract-cn-reporting.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize payroll
git clone https://github.com/%githubAccount%/fineract-cn-payroll.git
cd fineract-cn-payroll
git remote add upstream https://github.com/apache/fineract-cn-payroll.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

mkdir integration-tests
cd integration-tests

REM initialize service-starter
git clone https://github.com/%githubAccount%/fineract-cn-service-starter.git
cd fineract-cn-service-starter
git remote add upstream https://github.com/apache/fineract-cn-service-starter.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize default-setup
git clone https://github.com/%githubAccount%/fineract-cn-default-setup.git
cd fineract-cn-default-setup
git remote add upstream https://github.com/apache/fineract-cn-default-setup.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

REM initialize demo-server
git clone https://github.com/%githubAccount%/fineract-cn-demo-server.git
cd fineract-cn-demo-server
git remote add upstream https://github.com/apache/fineract-cn-demo-server.git
git checkout develop
CALL gradlew publishToMavenLocal
TIMEOUT /T 5
cd ..

cd ..

REM initialize Web App
git clone https://github.com/%githubAccount%/fineract-cn-fims-web-app.git
cd fineract-cn-fims-web-app
git remote add upstream https://github.com/apache/fineract-cn-fims-web-app.git
git checkout develop
CALL npm i
TIMEOUT /T 5
cd ..