Project

General

Profile

Setup On Local Machine

Star Mobileoid2
Added over 1 year ago

Hi,

we followed the instruction on the website and installed the latest version of Tigase server on a linux machine.

  • We weren't given any IP option to set our IP address in the server.

  • Also, we are unable to get to the web login page of our server, i.e, localhost:8080/setup/

Any help would be appreciated.

We are basically trying to setup a server for test on local machine , and run the Tigase messenger(Android and IOS) on our local server.


Replies (7)

Added by Star Mobileoid2 over 1 year ago

Also, here are the init files:

--comp-class-1 = tigase.muc.MUCComponent

--virt-hosts = localhost

--user-db-uri = jdbc:mysql://localhost/tigasedb?user=XXXXXXX&password=XXXXXXXXX

--user-db = mysql

--admins = admin@localhost

--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

And the config file :

#osgiEnabled=(true|false)

#osgiEnabled=false

OSGI=false

ENC="-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8"

DRV="-Djdbc.drivers=com.mysql.jdbc.Driver:org.postgresql.Driver:org.apache.derby.jdbc.EmbeddedDriver"

#GC="-XX:+UseBiasedLocking -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:NewRatio=2 -XX:+CMSIncrementalMode -XX:ParallelCMSThreads=2 -XX:-ReduceInitialCardMarks -XX:CMSInitiatingOccupancyFraction=70 -XX:+UseCMSInitiatingOccupancyOnly"

#EX="-XX:+OptimizeStringConcat -XX:+DoEscapeAnalysis -XX:+UseNUMA"

#GC_DEBUG=" -XX:+PrintTenuringDistribution -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -Xloggc:logs/jvm.log -verbose:gc "

#JMX_REMOTE_IP="-Djava.rmi.server.hostname=0.0.0.0"

#DNS_RESOLVER=" -Dresolver-class=tigase.util.DNSResolverDefault "

#INTERNAL_IP=" -Dtigase-primary-address=hostname.local "

#EXTERNAL_IP=" -Dtigase-secondary-address=hostname "

JAVA_HOME="/usr/lib/jvm/jdk1.8.0_144"

CLASSPATH=""

#PRODUCTION_HEAP_SETTINGS=" -Xms5G -Xmx5G " # heap memory settings must be adjusted on per deployment-base!

JAVA_OPTIONS="${GC} ${GC_DEBUG} ${EX} ${ENC} ${DRV} ${JMX_REMOTE_IP} -server ${PRODUCTION_HEAP_SETTINGS} ${DNS_RESOLVER} ${INTERNAL_IP} ${EXTERNAL_IP} -XX:MaxDirectMemorySize=128m "

TIGASE_OPTIONS=" --property-file etc/init.properties "

If we try to access localhost:5280/admin , localhost:5280/ui or localhost:5280/setup ,it sits there revolving and doing nothing...

Added by Star Mobileoid2 over 1 year ago

The lines which gets added in log file when i hit the setup or admin on chrome :

2017-09-04 16:52:57.104 [ConnectionOpenThread] SocketThread.() WARNING: 17 socketReadThreads started.

2017-09-04 16:52:57.111 [ConnectionOpenThread] SocketThread.() WARNING: 17 socketWriteThreads started.

and that's it... nothing happens after this.

Added by Daniel Wisnewski IoT 1 Cloud over 1 year ago

Just to get some background on your setup process, did you edit the init.properties file before you started setting up the server?

I assume you are using v7.1.1 from the configuration file, yes?

As far as an IP setup, XMPP does not use IP addresses for connections typically. If you setup a server at localhost, and the device is working in a local network, you may specify the IP address of the linux machine within the client (under hostname). For extended testing outside the LAN, you may want to look at this guide http://docs.tigase.org/tigase-server/stable-snapshot/Administration_Guide/html/#setupTigaseServer to setting up the proper DNS and SRV records.

Added by Star Mobileoid2 over 1 year ago

No, we didnt edit it, although we have tried installing the server several times. but this time, the host or IP column is missing in the file. same steps were taken every time.

We have installed tigase-server-7.1.0-b4379.

======================================================================================================

tried installing again : below are the final steps :

Your XMPP (Jabber) domains [employee-star]

localhost

Server administrators [admin@employee-star]

admin@localhost

Admin password [tigase]

tigase

0 [x] Derby (built-in database)

1 [ ] MySQL

2 [ ] PostgreSQL

3 [ ] SQLServer

4 [ ] Other...

input selection:

1


Advanced configuration options

[on, off]

off

press 1 to continue, 2 to quit, 3 to redisplay

1

* Database configuration:

You have selected MySQL database. This database needs additional configuration parameters. Please enter all required information.


MySQL super user account will be used only to create and configure database for the Tigase server. It will not be used by the Tigase server later on.

Super user account name: [root]

root

WARNING: password will be visible while entering

Super user password: password

WARNING: password will be visible while entering

Retype password: password


MySQL database details. It will be created automatically if it does not exist.

Database account: [tigase]

tigase

Account password: [tigase12]

tigase12

Database name: [tigasedb]

tigasedb

Database host or IP: [localhost]

Additional database parameters: []

press 1 to continue, 2 to quit, 3 to redisplay

1

and then it got installed after performing necessary checks.

================================================================================================

The new init file :

--comp-class-1 = tigase.muc.MUCComponent

--virt-hosts = localhost

--user-db-uri = jdbc:mysql://localhost/tigasedb?user=tigase&password=tigase12

--user-db = mysql

--admins = admin@localhost

--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

======================================================================================================

the tigase.config file :

#osgiEnabled=(true|false)

#osgiEnabled=false

OSGI=false

ENC="-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8"

DRV="-Djdbc.drivers=com.mysql.jdbc.Driver:org.postgresql.Driver:org.apache.derby.jdbc.EmbeddedDriver"

#GC="-XX:+UseBiasedLocking -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:NewRatio=2 -XX:+CMSIncrementalMode -XX:ParallelCMSThreads=2 -XX:-ReduceInitialCardMarks -XX:CMSInitiatingOccupancyFraction=70 -XX:+UseCMSInitiatingOccupancyOnly"

#EX="-XX:+OptimizeStringConcat -XX:+DoEscapeAnalysis -XX:+UseNUMA"

#GC_DEBUG=" -XX:+PrintTenuringDistribution -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -Xloggc:logs/jvm.log -verbose:gc "

#JMX_REMOTE_IP="-Djava.rmi.server.hostname=0.0.0.0"

#DNS_RESOLVER=" -Dresolver-class=tigase.util.DNSResolverDefault "

#INTERNAL_IP=" -Dtigase-primary-address=hostname.local "

#EXTERNAL_IP=" -Dtigase-secondary-address=hostname "

JAVA_HOME="/usr/lib/jvm/jdk1.8.0_144"

CLASSPATH=""

#PRODUCTION_HEAP_SETTINGS=" -Xms5G -Xmx5G " # heap memory settings must be adjusted on per deployment-base!

JAVA_OPTIONS="${GC} ${GC_DEBUG} ${EX} ${ENC} ${DRV} ${JMX_REMOTE_IP} -server ${PRODUCTION_HEAP_SETTINGS} ${DNS_RESOLVER} ${INTERNAL_IP} ${EXTERNAL_IP} -XX:MaxDirectMemorySize=128m "

TIGASE_OPTIONS=" --property-file etc/init.properties "

===================================================================================================

question : when i try to open chat channel on Tigase messenger , what is the configuration i need to provide ? which domain to select ? because , by default they have tigase.me and others....and we want to chat on local network using localhost server.

Added by Daniel Wisnewski IoT 1 Cloud over 1 year ago

I would recommend testing using the latest version of Tigase v7.1.1 for testing, it has a number of bug fixes.

http://build.xmpp-test.net/nightlies/dists/2017-09-05/tigase-server-7.1.1-SNAPSHOT-b4458.jar

However, the installer requires that you install the HTTP API component which is selected as number 12 under installation Packs.

You may edit your init.properties file and add the following lines which should start up the HTTP server

--comp-name-5 = http
--comp-class-5 = tigase.http.HttpMessageReceiver

This should allow you to connect to the server as dependencies should be included in the .jar file.

(You may want to use this on your current installation to avoid changing versions.)

Note, the jar installer you are using is setup a little differently.

Dist-max/http install is our recommended setup and installation method, where you run a basic server out of the box and configure using the /setup address.

Let me know if you have any more issues.

-Dan

Added by Star Mobileoid2 over 1 year ago

Hi Dan,

that was perfect, the server is running up and fine.

We are able to enter console.

However there is this error related to repository.

2017-09-06 13:27:26.555 [http-server-pool-3] AuthRepositoryMDImpl.plainAuth() WARNING: Couldn't obtain user repository for domain: localhost, not even default one!

2017-09-06 13:27:29.162 [cluster-nodes] ConfigRepository$1.run() SEVERE: exception during reload of config repository items

java.lang.NullPointerException

at tigase.cluster.repo.ClConSQLRepository.storeItem(ClConSQLRepository.java:219)

at tigase.cluster.repo.ClConConfigRepository.reload(ClConConfigRepository.java:154)

at tigase.cluster.repo.ClConSQLRepository.reload(ClConSQLRepository.java:268)

at tigase.db.comp.ConfigRepository$1.run(ConfigRepository.java:74)

at java.util.TimerThread.mainLoop(Timer.java:555)

at java.util.TimerThread.run(Timer.java:505)

We tried reinstalling the sql database, also followed a thread related to AutomaticAuthRepository.. but we are unable to login in the /admin due to this error.

Added by Daniel Wisnewski IoT 1 Cloud over 1 year ago

It appears that the sql database has not been setup. You can either re-run the setup program and choose mysql during that period, or you can manually create the database following this guide:

http://docs.tigase.org/tigase-server/stable-snapshot/Administration_Guide/html/#prepareMysql

I'd probably recommend using the setup program for easier setup.

v7.1.x can run without a user database, but will result in that error where it will run, but can't authenticate or allow user access.

    (1-7/7)