-Restcomm with Maria DB...but Administrator login fails - restcomm

We have installed RESTCOMM on UBUNTU and then changed the default password for administrator#company.com.
But later we have configured RESTCOMM with MARIA DB by following the steps https://docs.telestax.com/restcomm-install-and-configure-restcomm-to-use-mariadb/
Finally we restarted RESTCOMM.
But now when we try to login using administrator#compnay.com and with our changed passowrd. It is not going through.
But we thought that may be the Administrator password got reset to default as w have changed the DB from default hqlDB to Maria DB. So we tried to login with default "RestComm" but that is not working either.
Can i request you to pls. help us out if we are missing any thing ? How can we login as Administrator again?
thanks in advance
Ias

You can manually reset the password.
First check the "restcomm_accounts" table for the record of the user "administrator#company.com". The "status" field should be "active".
Then you can update the record to change the "auth_token" field to "77f8c12cc7b8f8423e5c38b035249166" which is the default "RestComm" password.

We followed this article (https://docs.telestax.com/restcomm-install-and-configure-restcomm-to-use-mariadb/) to configure RESTCOMM to work with MariaDB, but we were facing some JBOSS AS level issues as the it is not able to properly locate and connect to the MariaDB Data source.
But we referred to com.h2database.h2 and compared with relevant config file of HSQL DB that comes with Restcomm . Based on our comparison, we had to make following tweaks to make it work. So, I would like to share here as It may be useful to the forum.
1. In step-3, as per the article it should be as follows..
<resource-root path="<strong>mariadb-java-client-1.2.0.jar</strong>
Here we have removed the<strong>from the path attribute. So it is like this
<resource-root path="mariadb-java-client-1.2.0.jar"/>
Also we added <module name="javax.servlet.api" optional="true"/> as an additional module in dependencies element. So it is like this…
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
<module name="javax.servlet.api" optional="true
2 In step-4, we have used the command mysql -u root -pyourpassoword < init.sql instead of mysql -u root < init.sql
Also when we executed this init.sql we got the below error
"ERROR 1406 (22001) at line 298: Data too long for column 'friendly_name' at row 1".
So to fix this error we have hanged the column friendly_name VARCHAR(64) NOT NULL to friendly_name VARCHAR(255) NOT NULL in restcomm_incoming_phone_numbers table
3 In Step-5, in restcomm.xml,
We have changed the existing xml element from <strong><sql-files>${restcomm:home}/WEB-INF/scripts/mariadb/sql</sql-files></strong>
To <sql-files>${restcomm:home}/WEB-INF/scripts/mariadb/sql</sql-files>
So, after the above 3 changes we are able to successfully connect MariaDB and get it up and running.
Hope the above changes are legitimate and most importantly I hope our above listed changes will not have any impact on RESTCOMM

Related

How to fix the issue: "The specified database user/password combination is rejected" using Intellij IDEA?

I'm using Spring application and stack is like: Java 11, Spring Boot 2.2.1.RELEASE.
(technology versions may vary here)
When I try to connect to the database via Data Source using Intellij IDEA, I get always the issue like:
The specified database user/password combination is rejected:
[28P01] FATAL: password authentication failded for user 'postgres'
How can I fix it?
To be noticed: this answer is similar, but not related to:
Unable to connect from Intellij to mySql running in docker container - "specified database user/password combination is rejected"
To fix it:
you need to check your application.properties file and change the value of user password on line:
spring.datasource.password=your_password
The cause of issue is:
your value of the property spring.datasource.password in application.properties
does not match the user password what was selected by default during installing your database system.
E.g. more specifically on the step "Enter the password for the database superuser (postgres)":
To clarify: provided example is for PostgreSQL, but it can be another database system.
Edit: this assumes you run Linux
if the other answer provided by invzbl3 doesn't work, check out this solution, it worked for me. Make sure to restart afterwards.
https://docs.fedoraproject.org/en-US/quick-docs/postgresql/#_initial_configuration
If you’re getting ident errors from your app you’ll probably need to perform the accepted solution described at https://serverfault.com/questions/406606/postgres-error-message-fatal-ident-authentication-failed-for-user?newreg=a4fdc3e21349449985cc65b82399c5b4
(if you don't have nano, just use any other text editor)
sudo nano /var/lib/pgsql/data/pg_hba.conf
and edit host all all 127.0.0.1/32 ident to host all all 127.0.0.1/32 md5.
This should allow most applications to connect with username/password.

User/Role List could not be obtained pentaho

I am installing pentaho 8.1 CE on ubuntu 16.04
have made change of bd from HSQLDB to Mysql, tables have been created, jackrabbit, hibernate and hibernate.
When starting the server, not login, I imagine that the users are missing or not created. ??
the error that throws me in
catalina.out
ERROR [CompositeUserRoleListService] User / Role List could not be obtained.
java.lang.IllegalStateException: Target of Bean was never resolved: org.springframework.security.core.userdetails.UserDetailsService
atorg.pentaho.platform.engine.core.system.objfac.spring.BeanBuilder$1.invoke(BeanBuilder.java:159)
at com.sun.proxy.$Proxy84.loadUserByUsername(Unknown Source)
..
..
Database Jackrabbit no created tables..
any idea?
When changing the back-end database, there's a few things you need to make sure you check.
repository.xml
quartz.properties
hibernate-settings.xml
[your-database].hibernate.cfg.xml
context.xml (in WEB-INF)
You'll need to confirm the settings for the connection to the new database has been properly configured in all of these different config files. Some additional details on how to config these files for MySQL specifically can be found in the documentation here: https://help.pentaho.com/Documentation/8.1/Setup/Installation/Archive/MySQL_Repository
Past that, make sure that you delete the "repository" directory inside of /pentaho-solutions/system/jackrabbit as this is an index of the repository. If you change your database back-end, then this index needs to be rebuilt. The index is rebuilt automatically if the server sees that "repository" directory doesn't exist at startup.
I've found the same issue on Windows Server 2016 and MySQL8.0, with Pentaho 8.0.2.
Starting Pentaho server from the start-pentaho.bat command, everything was fine.
The problem arise when I was using Tomcat.
The solution was to be sure that Tomcat service was running with the LOCAL SYSTEM account.
If the Tomcat service runs with lower privileges, maybe it can't access to the pentaho-solutions directory and it cannot load the required java beans.
if everything as per the document is configured correctly, then You might be missing the connection change in applicationContext-spring-security-hibernate.properties, please check that.

Error in Connection Testing in Mule Database connector

I am trying to connect mysql database with mulesoft database connector, but it is giving error while I do test Connection. I am not able to figure out what is wrong I am doing. Could you please put me in right direction?
Please ask for more information you need from me.
The problem you are facing is not because of Mule component.There may be several other reasons at MySQL side.
As you can see that your credentials are processed by MySQL however denied.This suggests that the problem may not be directly
related with credentials because if credentials were wrong the error would have been different then denied.
When credentials are denied, the problem is mostly related with:
Permission issue - Solution >> Grant permission to use "db_name" from "Localhost"
Your connection string looks fine but sometimes string encoding result this error
Some installed components are interfering with MySql -> Check the components installation
Also
LOCALHOST and "machine name" aren't the same to MySQL.
I'd check from the command line that you can connect to localhost:
mysql --user=<user_name> --password db_name
Enter password: your_password
If it fails, connect and run this with the appropriate permissions:
create user db_name#localhost identified by 'db_name';
grant select on <user_name>.* to db_name#localhost;
Never mind :) I found the solution although did not find what the problem was only suspecting that the root was not having any schema privileges ( as shown by MySQL Workbench GUI).
Earlier I was using command line with which I am not well versed; after struggling a little I downloaded MySQL workbench and added one more user with all administrative and schema privileges and used that to connect with Database connector and God Damn!! it's working.

Configuring Openfire server

While setting up the openfire server, I am facing issues in connecting to the database. Also the admin account is not getting created.
I followed the steps given here:
"https://www.igniterealtime.org/builds/openfire/docs/latest/documentation/database.html"
Have tried almost everything. Please if someone could help me with this.
Try deleting the schema. Create a new schema and no tables in it.
Please make sure your server and database in same system. If your database is in different system please check whether remote access is enabled in mysql.
First create an empty database with name openFire in database and then use
jdbc:jtds:sqlserver://[SERVERNAME]/[DATABASE];appName=jive;instance=[NAMEDINSTAN EC]
in my case the string was
jdbc:jtds:sqlserver://TelUpd01/openFire;appName=jive;instance=SQLEXPRESS
Use this configuration string while installation.

Pentaho bi server and administration-console communications

I was deploy pentaho bi server on my running tomcat server ref from here.
Now I want to create JNDI bases datasource so I login through pentaho administration console but in that web page nothing to shows users lists, user role. After googling some times I was found that change console.xml then I was changed my console.xml file as below
<?xml version="1.0" encoding="UTF-8"?>
<console>
<solution-path>/home/pc-name/pentaho-solutions</solution-path>
<war-path>/home/pc-name/apache-tomcat-7.0.47/webapps/pentaho</war-path>
<platform-username>joe</platform-username>
<biserver-status-check-period-millis>30000</biserver-status-check-period-millis>
<homepage-url>http://www.pentaho.com/console_home</homepage-url>
<homepage-timeout-millis>15000</homepage-timeout-millis>
<!-- comma separated list of roles (no spaces) -->
<default-roles>Authenticated</default-roles>
<default-server-dir>biserver-ce</default-server-dir>
</console>
then I was stopped administration console and then again start but still it not shows me any user lists, role lists. After that I hard coded start-pac.sh as below
DIR_REL=`dirname $0`
cd $DIR_REL
DIR=`/home/pc-name/apache-tomcat-7.0.47`
cd -
. "$DIR/set-pentaho-env.sh"
setPentahoEnv "$DIR/../biserver-ce/jre"
but running at start-pac.sh it shows set-pentaho-env.sh not found but in my first steps deploying pentaho bi server on existing tomcat it not mentioned anything about set-pentaho-env.sh where to copy or set. Can any one knows how to solve this problem?
Short answer: Pentaho 5.0 doesn't have an admin console because both user roles and database connections are easily configured in the user console. It seems you just started to deploy your biserver so I suggest you upgrade to the new version and leave admin console behind. Trust me. You will like it.
Long answer: If you still wish to stay with 4.8 for some strange reason:
Don't change anything in Pac-start.bat, revert to the original version before your changes. If you need to change the default URL or port, then
find biserver-ce\tomcat\conf\server.xml
the default for pentaho user console is 8080, and the default admin console port is 8443. Change those to your preference. Once done,
find biserver-ce\tomcat\webapps\pentaho\WEB-INF\web.xml
change here:
<context-param>
<param-name>fully-qualified-server-url</param-name>
<param-value>http://localhost:8080/pentaho/</param-value>
</context-param>
then find the list of trusted Ip's and add additional trusted IP's here (this is somewhere around line 133)
<param-name>TrustedIpAddrs</param-name>
<param-value>127.0.0.1,0\:0\:0\:0\:0\:0\:0\:1(%.+)*$</param-value>
<description>Comma separated list of IP addresses of a trusted hosts.</description>
(Also covered in this article: http://wiki.pentaho.com/display/ServerDoc2x/Setting+up+trust+between+Administration+Console+and+BI+Server)
Make sure when you start the admin console, pentaho biserver is running already. Admin console will not work if the biserver is not running.
Make sure you use the correct JDK, because a wrong java configuration, or wrong java_home_path can also cause admin console to not stand up.
Really, just go with Pentaho 5.0.1.