Tigase XMPP Server Board

Installation and maintenance: RE: Tigase HTTP REST API set up API key issue

Mon, 08/24/2015 - 10:56

Hi

I have a problem around this with Tigase 7.0.2

First, my registrated admin name, password and the SHA1 data is not the same, as I try to authenticate in http.

In the Tigase DB: dca349b5cd2bc3e29cb2c09674bbcc9270XXXXXX [valid password]

When I send auth datas with cURL, the sended data: (curl_setopt($res, CURLOPT_USERPWD, ":[valid password]"); )
the result:

GET /rest/adhoc/ HTTP/1.1

Authorization: Basic YWRtaW5AY2hhdC5tZWR2ZWtsdWIuY29tOjExOTXXXXXX
Host: chat.medveklub.com:8080

My password is right, I can login to the web interface with my account, or with any client.

I don't know, that is a problem or not, but every API call I try to call, result as forbidden

< HTTP/1.1 403 Forbidden
< Content-length: 77
< Date: Mon, 24 Aug 2015 17:48:54 GMT
<
  • Connection #41 to host chat.medveklub.com left intact

Do I need any other setup than the usual? Shoud I give an api-key?

The second problem is if I call
http://chat.medveklub.com:8080/rest/users
- without slash - there is no any error, only waiting - you can try out :).

Categories: Tigase Forums

API and development: RE: Bosh Disconnecting After 10 Minutes

Mon, 08/24/2015 - 08:02

You need to enforce connection to the exact same Tigase machine and this should be configured in your HTTP proxy.

Categories: Tigase Forums

API and development: RE: Bosh Disconnecting After 10 Minutes

Mon, 08/24/2015 - 04:59

Artur Hefczyc wrote:

Are you using a HTTP keep-alive mode for the Bosh connections? If you do not then on each request from a Bosh client there is a new TCP/IP connection (Bosh IO) established between the server and the client. If you use keep-alive then, a possible explanation could be HTTP proxy if you use one.

HI Artur in case of using HTTP proxy is there anyway to keep the connection alive ?

Categories: Tigase Forums

API and development: RE: Bosh Disconnecting After 10 Minutes

Mon, 08/24/2015 - 04:58

Artur Hefczyc wrote:

Are you using a HTTP keep-alive mode for the Bosh connections? If you do not then on each request from a Bosh client there is a new TCP/IP connection (Bosh IO) established between the server and the client. If you use keep-alive then, a possible explanation could be HTTP proxy if you use one.

HI Artur in case of using HTTP proxy is there anyway to keep the connection alive ?

Categories: Tigase Forums

Installation and maintenance: RE: CPU Hight-loads around midnights

Mon, 08/24/2015 - 03:03

Ehsan Mozaffari wrote:

Thank you for replying.

We don't have any custom component or special configuration. ( Kindly check the attached configuration file)
The traffic usage has been normal.

Just as a side-note - assuming you're on one of the latest versions this can be removed

--cluster-nodes =x3.lopl.net,x2.lopl.net --cluster-connect-all=true

Wojciech Kapcia wrote:

While there is a mechanism that allows performing some actions at a given interval it shouldn't cause such spikes in usage.

I'm a little suspicious to our Database for null entries. Regarding the mechanism you mentioned above; Are these actions related to database?

Actually, we have had these CPU-loads issue since some months ago.

Anything particular that may have happened at that time or it "just started on it's own"?

Some times Tigase consumes up to 80 percent in our servers.

Can you try to capture the situation with the Tigase Monitor (including bottom part) and post screenshots of whole overview window while it's happening?

The following is a post for CPU Highloads that we had posted before.
[[https://projects.tigase.org/boards/15/topics/5479?r=5542#message-5542]]

That post indicated more towards problems with deadlocks, however it may be related.

Categories: Tigase Forums

Installation and maintenance: RE: CPU Hight-loads around midnights

Sat, 08/22/2015 - 04:53

Thank you for replying.

We don't have any custom component or special configuration. ( Kindly check the attached configuration file)
The traffic usage has been normal.

Wojciech Kapcia wrote:

While there is a mechanism that allows performing some actions at a given interval it shouldn't cause such spikes in usage.

I'm a little suspicious to our Database for null entries. Regarding the mechanism you mentioned above; Are these actions related to database?

Actually, we have had these CPU-loads issue since some months ago.
Some times Tigase consumes up to 80 percent in our servers.
The following is a post for CPU Highloads that we had posted before.
[[https://projects.tigase.org/boards/15/topics/5479?r=5542#message-5542]]

Categories: Tigase Forums

API and development: RE: Tigase-message-archive development with Eclipse

Fri, 08/21/2015 - 04:38

You use development version of the component, reference development version of the server (SNAPSHOT) and then try to use it with stable version. You should try latest nightly from http://build.tigase.org/nightlies/dists/

Categories: Tigase Forums

API and development: RE: Tigase-message-archive development with Eclipse

Thu, 08/20/2015 - 18:10

I use tigase-server-7.0.2-b3821-dist.tar.gz.
and use the latest sources of component.
The part of pom.xml in component is here:
<dependency>
<groupId>tigase</groupId>
<artifactId>tigase-server</artifactId>
<version>7.1.0-SNAPSHOT<ersion>
<scope>provided</scope>
</dependency>
but where is tigase-server 7.1.0 ?

Categories: Tigase Forums

Installation and maintenance: RE: Customizing the tigase web interface

Thu, 08/20/2015 - 11:34

Which Tigase web interface are you referring to?

Categories: Tigase Forums

Tigase server development: RE: Tigase-message-archive development with Eclipse

Thu, 08/20/2015 - 08:46

Under which Tigase version do you try to use this binary? By the rule of thumb if you are building latest sources of component you should run them under latest version of Tigase server.

Categories: Tigase Forums

Tigase server administration: RE: CPU Hight-loads around midnights

Thu, 08/20/2015 - 08:39

Ehsan Mozaffari wrote:

As those cpu high loads occurs in these intervals that the users' activities are minimal I am wondering if this is related to any auto schedule in tigase server functions.

While there is a mechanism that allows performing some actions at a given interval it shouldn't cause such spikes in usage.

Do you have any custom components or special configuration? Are there any entries in the logs or entries in the statistics indicating more traffic?

Categories: Tigase Forums

Tigase server development: Anyone know what‘s happened this error? And how to fix it? Please

Thu, 08/20/2015 - 00:35

ThreadExceptionHandler.uncaughtException() SEVERE: Uncaught thread: "main" exception
java.lang.NoSuchMethodError: tigase.vhosts.VHostItem$DataType.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Object;[Ljava/lang/Object;)V
at tigase.archive.VHostItemHelper.<clinit>(VHostItemHelper.java:52)
at tigase.archive.MessageArchivePlugin.init(MessageArchivePlugin.java:142)

Categories: Tigase Forums

Tigase server administration: RE: CPU Hight-loads around midnights

Wed, 08/19/2015 - 03:25

Just to add, during the last week I have been observing Threads and processes that causes CPU High loads by jstack, top ,jhat ,jmap and etc
I have been trying to analyze the behavior of threads that may help to conclude some meaningful overview for CPU High loads (please check the attached snapshot)

Thank you for the support.

Categories: Tigase Forums

Tigase server development: RE: Tigase-message-archive development with Eclipse

Wed, 08/19/2015 - 01:59

Did I do something wrong?

Categories: Tigase Forums

Tigase server development: RE: Tigase-message-archive development with Eclipse

Wed, 08/19/2015 - 01:58

Select the project, then select Run as from the Run menu and then Maven build. In the configuration dialog for the "base directory" select workspace directory (for example using browse workspace..."), in the goals enter "clean install". Click Apply and then Run.
I use this way have a tigase-message-archive-1.2.0-SNAPSHOT.jar and I rename it to tigase-message-archive.jar

I copy it jar to tigase server, but tigase-console.log has an error as follow:

ThreadExceptionHandler.uncaughtException() SEVERE: Uncaught thread: "main" exception
java.lang.NoSuchMethodError: tigase.vhosts.VHostItem$DataType.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Object;[Ljava/lang/Object;)V
at tigase.archive.VHostItemHelper.<clinit>(VHostItemHelper.java:52)
at tigase.archive.MessageArchivePlugin.init(MessageArchivePlugin.java:142)
at tigase.server.xmppsession.SessionManager.setProperties(SessionManager.java:953)
at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
at tigase.conf.Configurator.componentAdded(Configurator.java:50)
at tigase.conf.Configurator.componentAdded(Configurator.java:33)
at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
at tigase.server.MessageRouter.addComponent(MessageRouter.java:108)
at tigase.server.MessageRouter.addRouter(MessageRouter.java:145)
at tigase.server.MessageRouter.setProperties(MessageRouter.java:704)
at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
at tigase.conf.Configurator.componentAdded(Configurator.java:50)
at tigase.conf.Configurator.componentAdded(Configurator.java:33)
at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
at tigase.server.MessageRouter.setConfig(MessageRouter.java:603)
at tigase.server.XMPPServer.start(XMPPServer.java:142)
at tigase.server.XMPPServer.main(XMPPServer.java:112)

Categories: Tigase Forums

Tigase server development: Tigase-message-archive development with Eclipse

Wed, 08/19/2015 - 00:31

hello,
I have downloaded the tigase-message-archive source code, deployment in eclipse, there is a mistake:
Plugin execution not covered by lifecycle configuration: org.codehaus.gmaven:gmaven-plugin:1.5:execute (execution: gitver, phase: validate)
I see this https://projects.tigase.org/boards/4/topics/1280 and ignore it.
How do I put he packaged into a jar?(I want to modify tigase-message-archive source to define my own message format)
I use mvn package -Dmaven.test.skip=true and no jar generate.

Categories: Tigase Forums

Tigase server development: RE: Hack Tigase through Eclipse

Tue, 08/18/2015 - 08:42

I have created an issue ticket and will update the documentation for this.

Categories: Tigase Forums

Tigase server administration: Customizing the tigase web interface

Mon, 08/17/2015 - 06:24

Dear All,

Customizing the tigase web interface. I have the source which is in GWT unreadable. Can someone tell or suggest on how to obtain the original source of tigase web interface and then convert it into GWT.

Thanks for the support.

Regards,
Gopal Kk

Categories: Tigase Forums

Tigase server development: RE: Messages to Smack clients are duplicated with Stream Management

Mon, 08/17/2015 - 05:25

Hi Wojciech,
I could then fix this issue acking immediately received stanza by Smack API
http://igniterealtime.org/builds/smack/docs/latest/javadoc/org/jivesoftware/smack/tcp/XMPPTCPConnection.html#sendSmAcknowledgement()

thus Tigase knows soon that Message is arrived and if connection drops out
while standard SM timeouts don't trigger, the server doesn't send messages
anytime.

I had also to manage stanza acking immediately after stream management
resumption

Thanks

Sent from my Mobile, sorry if any typo.

Natale

Categories: Tigase Forums

Tigase server administration: CPU Hight-loads around midnights

Mon, 08/17/2015 - 05:16

Hi
I've been monitoring my tigase server for a while using Tigase Monitor and I've noticed there are cpu high loads around mid-night (around 11:00PM - 1:00AM local time).
As those cpu high loads occurs in these intervals that the users' activities are minimal I am wondering if this is related to any auto schedule in tigase server functions.

Thank you in advance.

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

Back to Top