Project

General

Profile

Mongo DB Support in Tigase server version 7.1.3

Nirmal Kumar Raveendranath
Added 9 months ago

please find my below configuration of init.properties.

--comp-class-1 = tigase.muc.MUCComponent
--virt-hosts = nownce.com
--user-db-uri = mongodb://****:****@localhost/nowncedb
--user-db=tigase.mongodb.MongoRepository
--auth-db=tigase.mongodb.MongoRepository
--admins = admin@nownce.com
--comp-name-4 = message-archive
--comp-name-3 = proxy
config-type = --gen-config-def
--comp-name-2 = pubsub
--comp-name-1 = muc
--cluster-mode = true
--sm-plugins = +message-archive-xep-0136
--debug = server
--comp-class-4 = tigase.archive.MessageArchiveComponent
--comp-class-3 = tigase.socks5.Socks5ProxyComponent
--comp-class-2 = tigase.pubsub.PubSubComponent
--comp-name-5=http
--comp-class-5=tigase.http.HttpMessageReceiver
http/http/ports[i]=8088,8096
http/2222/socket = ssl
http/4096/domain = nownce.com
http/server-class = tigase.http.jetty.JettyStandaloneHttpServer
http/setup/admin-credentials=admin:password

Do I need to have separate DB for admin authentication? Also does mongo db have javascript procedure inbuilt after tigase is installed?
like 'TigAddUserPlainPw' in Mysql ?

Currently, I am not able to login to admin page http://www.nownce.com:8096/ui/
with admin credentials
am I missing something here ?


Replies (4)

Added by Nirmal Kumar Raveendranath 9 months ago

why there is no support for mongodb in schemaloader ?
public class DBSchemaLoader
extends SchemaLoader
Simple utility class allowing various Database operations, including executing simple queries, loading specific schema files or performing complete load of all Tigase schema required to run the server.
Following set of Properties is accepted:
dbType - type of the database, possible values are: mysql, postgresql, derby, sqlserver;

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam 9 months ago

Do I need to have separate DB for admin authentication?

No.

Also does mongo db have javascript procedure inbuilt after tigase is installed? like 'TigAddUserPlainPw' in Mysql ?

No. MongoDB does not have support for stored procedures, so we decided to do all logic within our Tigase MongoDB package (in java code).

Currently, I am not able to login to admin page http://www.nownce.com:8096/ui/ with admin credentials. am I missing something here ?

If you are taking about
http/setup/admin-credentials=admin:password
then those credentials are used only for logging during Tigase XMPP Server setup which is not started if ready to use init.properties file is found by Tigase XMPP Server.

Most likely, you already have ready to use server, but. you need to register an account on it using XEP-0077: In-Band Registration which is supported by most of the XMPP clients. You need to register with JID which you passed for the admin and set your password and this new account will became and admin account for Tigase XMPP Server.

why there is no support for mongodb in schemaloader ?

In 7.1.3 it is not needed as implementation of repositories are checking if changes need to be applied on each server startup and are making changes when needed.

In 8.0.0-SNAPSHOT, there is a SchemaManager which is going to replace SchemaLoader and will bring support for MongoDB.

Added by Nirmal Kumar Raveendranath 9 months ago

Thanks for the answer. I am trying to register

Added by Nirmal Kumar Raveendranath 9 months ago

I am able to register successfully :) thanks

    (1-4/4)