cancel
Showing results for 
Search instead for 
Did you mean: 

AAAR_Etract.sh is failing due to connection

manirangasamy
Champ in-the-making
Champ in-the-making

Hi Francesco ,

I am facing problem while executing the AAAR_Extract.sh.

I am using mysql and I used AAAR_Manual_Installation.pdf

Pentaho Combined Server 7.0.0.0-25 Distribution

mysql  Ver 14.12 Distrib 5.0.95, for redhat-linux-gnu (x86_64) using readline 5.1

Pentaho and Alfresco are not same servers.

Below is the repositories.xml

]# cat /oracle/app/pentaho/data-integration/repositories.xml
<?xml version="1.0" encoding="UTF-8"?>
<repositories>
  <connection>
    <name>AAAR_Kettle</name>
    <type>MYSQL</type>
    <access>JNDI</access>
    <database>AAAR_Kettle</database>
  </connection>
  <repository>
    <id>KettleDatabaseRepository</id>
    <name>AAAR_Kettle</name>
    <description>AAAR_Kettle</description>
    <connection>AAAR_Kettle</connection>
  </repository>
</repositories>

and

<?xml version="1.0" encoding="UTF-8"?>
<AAAR>
 <parameter name="AAARGetAudit" value="true"> </parameter>
 <parameter name="AAARGetNodes" value="true"> </parameter>
 <parameter name="AAARGetWorkflows" value="true"> </parameter>
 <parameter name="alfrescoAuditLimit" value="50000"> </parameter>
 <parameter name="alfrescoFtpPath" value="alfresco"> </parameter>
 <parameter name="alfrescoFtpPort" value="121"> </parameter>
 <parameter name="alfrescoHost" value="http://x.x.x.x"> </parameter>
 <parameter name="alfrescoLogin" value="admin"> </parameter>
 <parameter name="alfrescoNodeLimit" value="50000"> </parameter>
 <parameter name="alfrescoPassword" value="welcome1"> </parameter>
 <parameter name="alfrescoProtocol" value="http"> </parameter>
 <parameter name="alfrescoPort" value="8080"> </parameter>
 <parameter name="alfrescoType" value="Alfresco_5_1"> </parameter>
 <parameter name="databaseBin" value="/usr/bin"> </parameter>
 <parameter name="databaseType" value="mySql"> </parameter>
 <parameter name="databaseHost" value="localhost"> </parameter>
 <parameter name="databaseLogin" value="root"> </parameter>
 <parameter name="databasePassword" value="xxxxx"> </parameter>
 <parameter name="databasePort" value="3303"> </parameter>
 <parameter name="databaseSchemaAAAR" value="AAAR_DataMart"> </parameter>
 <parameter name="databaseSchemaKettle" value="AAAR_Kettle"> </parameter>
 <parameter name="databaseSchemaMain" value="root"> </parameter>
 <parameter name="kettlePath" value="/opt/data-integration"> </parameter>
 <parameter name="kettleVersion" value="6"> </parameter>
 <parameter name="pentahoAAARPath" value="/public/AAAR"> </parameter>
</AAAR>

I am getting below error while executing AAAR_Extract.sh and log file says "dummy". I am not sure what is wrong with connection. Please guide me in troubleshooting.

 sh AAAR_Extract.sh

A.A.A.R. - Alfresco Audit Analysis and Reporting
Import procedure version 4.2.
Author: Francesco Corti (all rights reserved)
Date: 21 February 2016
Documentation and tips: http://fcorti.com.

Disclaimer:
We can't be responsible for any damage done to your system,
which hopefully will not happen.

You are going to execute this command:
./kitchen.sh /rep:AAAR_Kettle /job:"Get all" /dir:/Alfresco /user:admin /pass:admin /param:get_audit=true /param:get_nodes=true /param:get_workflows=true /log="/oracle/app/pentaho/pentaho-server/pentaho-solutions/system/AAAR/endpoints/kettle/script/../logs/AAAR.log" /levelSmiley Very Happyebug

Press <enter> to start import.

#######################################################################
WARNING:  no libwebkitgtk-1.0 detected, some features will be unavailable
    Consider installing the package with apt-get or yum.
    e.g. 'sudo apt-get install libwebkitgtk-1.0-0'
#######################################################################
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
14:51:21,421 INFO  [KarafBoot] Checking to see if org.pentaho.clean.karaf.cache is enabled
14:51:21,528 INFO  [KarafInstance]
*******************************************************************************
*** Karaf Instance Number: 1 at /oracle/app/pentaho/data-integration/./syst ***
***   em/karaf/caches/kitchen/data-1                                        ***
*** Karaf Port:8802                                                         ***
*** OSGI Service Port:9051                                                  ***
*******************************************************************************
May 15, 2017 2:51:22 PM org.apache.karaf.main.Main$KarafLockCallback lockAquired
INFO: Lock acquired. Setting startlevel to 100
2017/05/15 14:51:22 - Kitchen - Logging is at level : Debug
2017/05/15 14:51:22 - Kitchen - Repository and username supplied
2017/05/15 14:51:22 - Kitchen - Start of run.
2017/05/15 14:51:22 - Kitchen - Allocate new job.
2017/05/15 14:51:22 - Kitchen - Parsing command line options.
2017/05/15 14:51:22 - Kitchen - Loading available repositories.
2017/05/15 14:51:22 - RepositoriesMeta - Reading repositories XML file: /oracle/app/pentaho/data-integration/repositories.xml
2017/05/15 14:51:22 - RepositoriesMeta - We have 1 connections...
2017/05/15 14:51:22 - RepositoriesMeta - Looking at connection #0
2017/05/15 14:51:22 - RepositoriesMeta - Read at connection: AAAR_Kettle
2017/05/15 14:51:22 - RepositoriesMeta - We have 1 repositories...
2017/05/15 14:51:22 - RepositoriesMeta - Looking at repository #0
2017/05/15 14:51:22 - RepositoriesMeta - Read at repository: AAAR_Kettle
2017/05/15 14:51:22 - Kitchen - Finding repository [AAAR_Kettle]
2017/05/15 14:51:22 - Kitchen - Allocate & connect to repository.
Processing stopped because of an error:
Error connecting to the repository!
Error occurred while trying to connect to the database
Access denied for user 'root'@'xxxxxx.com.xxx' (using password: YES)
ERROR: Kitchen can't continue because the job couldn't be loaded.

Extraction complete!

Log file has been generated in the file below:
/oracle/app/pentaho/pentaho-server/pentaho-solutions/system/AAAR/endpoints/kettle/script/../logs/AAAR.log

16 REPLIES 16

fcorti
Elite Collaborator
Elite Collaborator

Hi,

It seems you don't have AAAR_Kettle database installed or it is not reachable from the Kettle instance.

Please try to run spoon and have access to the AAAR repository.

You should experience the same issue and it should be faster to solve.

I hope this will help you.

manirangasamy
Champ in-the-making
Champ in-the-making

Database is created.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| AAAR_DataMart      |
| AAAR_Kettle        |
| hibernate          |
| jackrabbit         |
| mysql              |
| quartz             |
| test               |
+--------------------+
8 rows in set (0.00 sec)

Ran the ./spoon.sh -rep=KettleDatabaseRepository -user=admin -pass=admin. As you said, it is not connecting to database.

and I got below error. I am not sure where to configure the database and how to troubleshoot. I am using MySQL server and updated the relevant drivers in the respective directories.

This is the

cat repositories.xml
<?xml version="1.0" encoding="UTF-8"?>
<repositories>
  <connection>
    <name>AAAR_Kettle</name>
    <type>MYSQL</type>
    <access>JNDI</access>
    <database>AAAR_Kettle</database>
  </connection>
  <repository>
    <id>KettleDatabaseRepository</id>
    <name>AAAR_Kettle</name>
    <description>AAAR_Kettle</description>
    <connection>AAAR_Kettle</connection>
  </repository>
</repositories>
 

SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
2017/05/16 16:39:24 - RepositoriesMeta - Reading repositories XML file: /oracle/app/pentaho/data-integration/repositories.xml
2017/05/16 16:39:26 - RepositoriesMeta - Reading repositories XML file: /oracle/app/pentaho/data-integration/repositories.xml
2017/05/16 16:39:27 - Spoon - ERROR (version 7.0.0.0-25, build 1 from 2016-11-05 15.35.36 by buildguy) : Sorry, we didn't recognize those connection details. Please check the user name and password and try again.
2017/05/16 16:39:38 - Spoon - ERROR (version 7.0.0.0-25, build 1 from 2016-11-05 15.35.36 by buildguy) : No repositories defined on this system.

Ok, good.
Probably it is corrupted or not correctly imported.
Once imported, you should be able to connect to it using Spoon.

Login and password for the repository are admin/admin.

I hope this help you.

manirangasamy
Champ in-the-making
Champ in-the-making

I am missing something.

"Once imported, you should be able to connect to it using Spoon."

Is it "imported" means, import data from Alfresco to AAAR_Kettle database using AAAR_Extract.sh?

If yes, this is not working because of connecting to mySQL database and same reason spoon also not loading.

I might be missed some configuration related to connection, it will be great to help me troubleshoot the connection issues to my MySql server

Regards

Mani