Tigase Forums

Installation and maintenance: RE: Administration Guide Documentation issue (Install Error)

Tigase XMPP Server Board - Fri, 10/13/2017 - 08:54

Now Here is where I am stuck. was I supposed to pre install MySQL? If I wasn't supposed to then I'm very stuck as to why this didn't work.

It's explained in the "Installing Using Console Installer
":http://docs.tigase.org/tigase-server/7.1.0/Administration_Guide/html_chunk/consoleinstall.html

Important notice: Tigase installer doesn’t contain the actual databases, only drivers allowing db access. One exception is Derby database, which is included in JDK. It is automatically configured by installer, in case of other databases you will need to configure them by yourself.

Also saying the install was successful when it wasn't is a bit misleading.

Yes, this is a bug in the installer logic. As explained in #6213 we won't fix this issue as we are switching to and recommending using WebInstaller.

Any pointers on this would be great!

I would recommend our documentation, especially Quick Start Guide section, which covers steps how to quickly get up and running with the Tigase. What's more, currently we are phasing out IzPack installer in favour of WebInstaller described in Installation Using Web Installer chapter.

Categories: Tigase Forums

Installation and maintenance: RE: Switching from Derby to MongoDB?

Tigase XMPP Server Board - Fri, 10/13/2017 - 02:51

We already have updated MongoDB driver to version supporting MongoDB v3.0 and higher in master branch of Tigase XMPP Server which is going to be released soon as version 8.0.0 of Tigase XMPP Server. Right now you can download SNAPSHOT builds of this version from http://build.tigase.org/nightlies/dists/

As for version 7.1.1 which if I'm correct you are using, it is a maintenance release of version 7.1.0 of Tigase XMPP Server which originally was released with MongoDB driver in version 2.14 and due to API changes in MongoDB driver it was not possible to release a maintenance release without major rewrite of support for MongoDB in Tigase XMPP Server. Due to that support for newer versions of MongoDB was added in version 8.0.0 which will be released soon.

Categories: Tigase Forums

Installation and maintenance: RE: Switching from Derby to MongoDB?

Tigase XMPP Server Board - Thu, 10/12/2017 - 16:56

Andrzej, could you comment on this?

Categories: Tigase Forums

Installation and maintenance: RE: Switching from Derby to MongoDB?

Tigase XMPP Server Board - Thu, 10/12/2017 - 16:54

Well that was easy to figure out. Tigase Server does not have drivers that support MongoDB v 3.0 or higher. I'm using Mongo 3.4.9

Are there any plans to support MongoDB v 3.0 or higher?

Categories: Tigase Forums

Installation and maintenance: RE: Switching from Derby to MongoDB?

Tigase XMPP Server Board - Thu, 10/12/2017 - 15:10

Simple change in the init.property file is usually just enough.

For databases, usually you also need to install the DB server, initialize the database - load the DB schema, and depending on the installation package that you used, you may need to add DB driver JAR to the Tigase installation. But if you used dist-max package, all the required JAR libraries should be already there.

Categories: Tigase Forums

Installation and maintenance: Switching from Derby to MongoDB?

Tigase XMPP Server Board - Thu, 10/12/2017 - 13:49

I just got Tigase Server working two days ago, so I have a default installation right now. It uses Derby as a database. I would like to use MongoDB. Is there a way to change from Derby to Mongo, or do I have to uninstall Tigase Server and start over again?

I thought it might be as simple as changing my init.properties file, but that doesn't seem to have worked.

Categories: Tigase Forums

Installation and maintenance: RE: Administration Guide Documentation issue (Install Error)

Tigase XMPP Server Board - Thu, 10/12/2017 - 13:07

Hi,

Thank you for very detailed description. A few comments:

  1. Even though, the documentation says JDK8 or later, unfortunately, we just discovered a few days ago JDK9 won't work. We are working on fixing this but the fix will most likely be available in Tigase 8.0.0 only. (planed to be released in a few weeks). So I suggest to use JDK8 for now.
  2. Yes, you need installed database: MySQL, PostgreSQL, SQL Server. This is how Tigase normally works, it connects to the existing database server. Our installer does not include DB server installation. However, if this is for testing purposes only installation, you can select Derby database, which is built-in database, so you do not need to install any real DB server. Derby is not suitable for a real production system or for any kind of high load or clustered system but it is good enough for testing, experimenting and development of custom components.
  3. Yes, you are correct, the final message is misleading. Thank you for reporting. We will work on correcting our installer, filed bug report: #6213.
Categories: Tigase Forums

Installation and maintenance: Administration Guide Documentation issue (Install Error)

Tigase XMPP Server Board - Thu, 10/12/2017 - 12:27

Hello,
This is my first time using your product. I read your site and after comparing it to several XMPP servers I decided to try yours as it is so open source (We are a big open source shop) I downloaded Tigase XMPP server version 7. 1.2 per your documentation. I built a brand new install CentOS 7 server and also installed Oracle Java JDK 9. You documentation states JDK 8 or greater so I did greater. I defined the JDK 9 as $JAVA_HOME. All that seems to be in good order. I then proceeded to do the Web Installer as it's the first option on your Doc. I downloaded and un tar'd the file per your doc and that was is good, However when I run scripts/tigase.sh start per your doc I get nothing. I see the following.

[admin@jabber tigase-server-7.1.2-b4471]$ scripts/tigase.sh start
No params-file.conf given. Using: ''
Starting Tigase:
nohup: redirecting stderr to stdout
Tigase running pid=25607

Running to next step in your documentation:

[admin@jabber tigase-server-7.1.2-b4471]$ lsof -i -P

I get nothing.

Doing a bit or research on your forums I found an old reference to 5.x version of code that had a similar issue.
the fix was to define

scripts/tigase.sh start etc/tigase.conf

running the command like that I got the:
JAVA_HOME is not set.
Please set it to correct value before starting the sever.

I went ahead and edit the conf file but still got the exact same result.

[admin@jabber tigase-server-7.1.2-b4471]$ scripts/tigase.sh start etc/tigase.conf
Starting Tigase:
nohup: redirecting stderr to stdout
Tigase running pid=26110

SO next I decided to run the console installation further down your document section 9.4

I downloaded the jar file for 7.1.2 and ran the install in console mode. This was better as I can see what's actually happening. I made it through the entire installer right up to the database part:

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]

WARNING: password will be visible while entering
Super user password: ***
WARNING: password will be visible while entering
Retype password: *
**

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

Database account: [tigase]

Account password: [tigase12]

Database name: [tigasedb]

Database host or IP: [localhost]

Additional database parameters: []

press 1 to continue, 2 to quit, 3 to redisplay
1
Performing DB tasks

Checking connection to the database
Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
Checking if the database exists
Connection not validated
Checking the database schema
Connection not validated
Checking whether the database needs conversion
Connection not validated
Adding XMPP admin accounts
Connection not validated
Loading socks5 component schema
Connection not validated
Loading PubSub component schema
Connection not validated
Post installation actions
Connection not validated

Install was successeful
application installed on /home/admin/tigase-server
[ Console installation done ]

Now Here is where I am stuck. was I supposed to pre install MySQL? If I wasn't supposed to then I'm very stuck as to why this didn't work.

Also saying the install was successful when it wasn't is a bit misleading.

Any pointers on this would be great!

Categories: Tigase Forums

Installation and maintenance: RE: APP server maintenance 7.10

Tigase XMPP Server Board - Thu, 10/12/2017 - 11:18

We do not recommend reboots unless this is really necessary. We have customers who run Tigase without restart for 3 years or so. We encourage our customers to upgrade to new version when it is available, so this usually means restarting the service.

As for the logs. Again, there is no need for pruning logs if... there is no need. I mean if you do not run out of disk space and logs are not excessively large. tigase-console.log is not rotated so it can get large. But this is usually a sign that something wrong is going on on the server. So it is worth keeping eye on it.

Categories: Tigase Forums

Installation and maintenance: APP server maintenance 7.10

Tigase XMPP Server Board - Thu, 10/12/2017 - 07:56

Hi,
Do you recommend any semi or annual maintenance like reboots or pruning logs.
Thanks
Steve

Categories: Tigase Forums

Installation and maintenance: RE: HTTP API help and broken link in the documentation

Tigase XMPP Server Board - Tue, 10/10/2017 - 16:19

I wiped the install and started fresh. Totally default install. I haven't changed anything except including the HTTP API during the installation process.

This is the problem...

When I start/stop Tigase Server from the desktop shortcuts that were created during the installation process, it does nothing. My tigase-console.log contains only things like:
STARTED Tigase Tue Oct 10 19:12:42 EDT 2017
STOPPED Tue Oct 10 19:13:03 EDT 2017

If I start/stop Tigase Server from the command line (using the exact same command the desktop shortcut uses), it looks like it's working properly. I actually get output to my logs, like:
...(removed for brevity)...
ws2s/adhoc-command/del-script last minute[L] = 0
ws2s/adhoc-command/del-script last second[L] = 0
ws2s/adhoc-command/del-script/Average processing time[L] = 0
ws2s/adhoc-command/list-commands last hour[L] = 0
ws2s/adhoc-command/list-commands last minute[L] = 0
ws2s/adhoc-command/list-commands last second[L] = 0
ws2s/adhoc-command/list-commands/Average processing time[L] = 0
ws2s/adhoc-command/add-script last hour[L] = 0
ws2s/adhoc-command/add-script last minute[L] = 0
ws2s/adhoc-command/add-script last second[L] = 0
ws2s/adhoc-command/add-script/Average processing time[L] = 0
ws2s/Open connections[I] = 0
ws2s/Waiting to send[I] = 0
ws2s/Bytes sent[L] = 0
ws2s/Bytes received[L] = 0
ws2s/Socket overflow[L] = 0
ws2s/Watchdog runs[L] = 0
ws2s/Watchdog tests[L] = 0
ws2s/Watchdog stopped[L] = 0
total/Total queues wait[I] = 0
total/Total queues overflow[L] = 0

Total number of threads: 215
No locked threads.

Save thread-dump to file: logs/thread-dump.log, size: 94347
ShutdownThread finished...
STOPPED Tue Oct 10 18:45:41 EDT 2017

That appears to be working correctly, but the desktop shortcuts don't work. That caused quite a bit of trouble to figure out.

I was able to connect to the server with an XMPP client using the local IP address of the server.

I have not tried to use the HTTP API yet.

Should I start a different thread about the desktop shortcuts, or keep going here?

Categories: Tigase Forums

Installation and maintenance: RE: HTTP API help and broken link in the documentation

Tigase XMPP Server Board - Tue, 10/10/2017 - 12:22

The "/" should be there. The JAVA_HOME variable points to location where Java is installed on your machine and it should be a full path to the Java installation. Maybe, Java on your VM is located in a different directory. I suggest you to find it out and correct the JAVA_HOME variable. The easiest way to find location of your Java installation is:
$ whereis java java: /usr/bin/java /usr/share/java
But, the location returned is not real Java location, these are links to the binaries. So another command would show you the full path:
$ ls -l /usr/bin/java lrwxrwxrwx 1 root root 25 Mar 20 2014 /usr/bin/java -> /usr/lib/jvm/jdk/bin/java*
So in this case, the Java is installed in /usr/lib/jvm/jdk and JAVA_HOME should be set to this location:
JAVA_HOME=/usr/lib/jvm/jdk
Check this out on your system and correct settings.

Also, if you say you got tons of errors in your log files, please provide some. A few first errors are probably most important as all subsequent are probably consequence of the first problem.

Categories: Tigase Forums

Installation and maintenance: RE: HTTP API help and broken link in the documentation

Tigase XMPP Server Board - Tue, 10/10/2017 - 12:03

Okay... In the "tigase.conf" file there was one single "/" at the start of the JAVA_HOME path. It wasn't supposed to be there. I didn't put it there because I never edited that file.

When I removed the "/" so my JAVA_HOME = "usr/lib/jvm/java-8-oracle" the Tigase Server started up, created a ton of logs, lots of errors, and then shut down. But this is much better than nothing.

I still cannot connect via HTTP because the server crashes, but I'm going to call this issue closed. I'll start other threads about specific errors as they come up.

Thanks again for your responses!

Categories: Tigase Forums

Installation and maintenance: RE: HTTP API help and broken link in the documentation

Tigase XMPP Server Board - Tue, 10/10/2017 - 11:41

I have it installed in /home/[myUsername]/TigaseServer/Tigase-7.1.1-b4457/

Your information helps me. When I echo $JAVA_HOME as my user, I get the correct response. When I echo it as root, I get a blank response.

When I try to sudo start the server from the command line, I get a message that JAVA_HOME is not set. I guess Tigase is trying to run using global settings, not user settings, and that's the problem.

I'll try to get it sorted out later and will update this thread when resolved.

Thanks for all your help. Coming from Openfire, actually having someone respond to me is refreshing.

Categories: Tigase Forums

Installation and maintenance: RE: HTTP API help and broken link in the documentation

Tigase XMPP Server Board - Tue, 10/10/2017 - 10:10

You're certainly right, something is preventing the program from doing --really anything. If console.log has nothing but startup and shutdown listings, nothing is happening. Have you tried running the server with sudo privileges? You mentioned it was installed in your home directory, is it like home/tigase or directly into the home dir?

Categories: Tigase Forums

Installation and maintenance: RE: HTTP API help and broken link in the documentation

Tigase XMPP Server Board - Tue, 10/10/2017 - 08:17

The only log I see is "tigase-console.log" which is in the /logs folder.

When Tigase Server is running, the /logs folder contains:
tigase.pid
tigase-console.log

When Tigase Server is not running, the /logs folder only contains:
tigase-console.log

The information I provided above is from "tigase-console.log", which only seems to log when the server is started or stopped. There is no debug information.

Question: In what directory did you install Tigase Server? During installation, I accepted the default setting, which placed it in my home directory.

Categories: Tigase Forums

Installation and maintenance: RE: HTTP API help and broken link in the documentation

Tigase XMPP Server Board - Tue, 10/10/2017 - 04:16

All your logs file should be stored in logs directory within you Tigase XMPP Server installation directory.

As for you init.properties file, it looks ok. I've deployed Tigase on my machine using the same installer as you did and all is working fine.

This log which you provided, where it is from? A file? Is it a console output? If so, then what command you used?

Categories: Tigase Forums

Installation and maintenance: RE: HTTP API help and broken link in the documentation

Tigase XMPP Server Board - Mon, 10/09/2017 - 19:55

I'm not seeing any "tigase.log" files anywhere.

Can you look at my init.properties file (posted above) and let me know if you see anything wrong. I don't think the web server is running at all. That might be the issue.

Categories: Tigase Forums

Installation and maintenance: RE: HTTP API help and broken link in the documentation

Tigase XMPP Server Board - Mon, 10/09/2017 - 19:51

There is some updated documentation here: http://docs.tigase.org/tigase-server/stable-snapshot/Administration_Guide/html/ although most of the updates are for the later versions. The server seems to have some issues staying active, this could be a configuration error. Can you attach console-log the tigase.log.0?

Categories: Tigase Forums

Pages

Get in touch

We provide software products, consulting and custom development services

Tigase, Inc.
100 Pine Street, Suite 1250
San Francisco, CA 94111, USA
Phone: (415) 315 9771

Follow us on:

Twitter

  • Tigase XMPP Server v7.1.2 Has been Released! This is a maintenance release for v7.1 and derivatives. Details here: https://t.co/oczXeZeYFH 6 days 18 hours ago
  • Are you using Tigase XMPP Server? Use to let the world know. Want to be featured user? PM us! 1 week 4 days ago
Back to Top