Feed aggregator

Tigase server administration: RE: Tigase server automatically shuts down after several hours

Tigase XMPP Server Board - Thu, 01/29/2015 - 13:13

I see, thanks for the explanation. We are using the ACS with evaluation license, Right now Option 1 is not viable for us b/c we cannot unblock communication from our internal servers due to our security regulation. Option 2 will take some time since it has to go through several departments. Right now the severs automatically shuts down after about 2 hours. Is it possible to change this in the configuration so it stays open longer, say 10-12 hours before shutting down? Is there a time limit?

Categories: Tigase Forums

Tigase server development: RE: Multiple Logins and processing the packet

Tigase XMPP Server Board - Thu, 01/29/2015 - 09:46

Luca,

Your use-case is valid but whether you use a cluster mode or non-clustered mode is irrelevant. From the client point of view it is all the same and messages are delivered using the same logic (described in RFC). Regardless you use cluster or single server, messages addressed to BareJID will be/should be delivered to all user's connections/resources. A message addresses to FullJID will be/should be delivered to one resource only.

So one of the options, in your case would be to modify Message plugin to send message addressed to BareJID only to one resource/connection based on your custom logic. We used to have logic which sent message to the highest priority resource or to a resource which was active most recently.

Categories: Tigase Forums

Tigase server development: RE: Multiple Logins and processing the packet

Tigase XMPP Server Board - Thu, 01/29/2015 - 06:50

Hi Artur,
sorry if I jump into a "closed" discussion, but having more than an active connection is the aspect I am investigating now... and this post seems to describe exactly my need :)

What happens if the same user is connected on different resources on different nodes of a cluster ? Let me make an example, where the user
wizard@oz.consulting
is connected to the first node as
wizard@oz.consulting/office wizard@oz.consulting/mobile
and to the second node as
wizard@oz.consulting/jacuzzi
Imagine that I am sending a message to the bareJid. It will be delivered to all the connected clients. Once the packet will be sent to all the clients, all of them will independently process it, right ?
If I want that only one of my client will process it, either I send to the fullJid or somehow I let the clients coordinate to process the packet only once, correct ?

I hope I was clear enough to descrive the scenario !
Thanks in advance,
Luca

Categories: Tigase Forums

Tigase server development: RE: Logging for custom plugin

Tigase XMPP Server Board - Thu, 01/29/2015 - 00:17

Thanks Wojciech,
I followed your suggestions, as always the easy way is the best way to follow !

All the best,
Luca

Categories: Tigase Forums

Tigase server administration: RE: Change hostname of tigase server

Tigase XMPP Server Board - Wed, 01/28/2015 - 21:47

Hi Wojciech,

Thanks for the reply I have now edited my linux machines to pick up the appropriate hostnames. I have configured nginx to load balance connections to these nodes to avoid supporting see-other-host. But I still do not see nodes communicating across the cluster.

Do you think configuring nginx creates the issue ?

I have just enabled clustering using --cluster-mode=true

I also verified that the hostnames can connect to each other on port 5277 using telnet. I also did not observe any errors in the tigase log.

Regards,
Prashanth

Categories: Tigase Forums

Tigase server administration: RE: Tigase server automatically shuts down after several hours

Tigase XMPP Server Board - Wed, 01/28/2015 - 16:11
Everything is correct. The ACS can be used with evaluation license but as the licensing information states, terms of running it in this development/testing mode, require that the ACS component sends some statistical information to our servers. If it cannot connect to our servers it will shutdown the server after a few attempts.
So, there are 2 solutions for you to get it working:
  1. Unblock communication between your installation and our servers (HTTP connection to our server)
  2. Purchase a full, commercial license
Categories: Tigase Forums

Tigase server administration: Tigase server automatically shuts down after several hours

Tigase XMPP Server Board - Wed, 01/28/2015 - 15:57

We are runnin a Tigase server configuration in a cluster of 2 machines. We have noticed that the cluster manager is shutting servers down after several hours (the servers were restarted around 10 am this morning and they shut down automatically around 4 pm). Is there a reason for this? Is there a configuration setting that can prevent automatic shutdown? Before we started using the cluster configuration, the server was running all day and only shut down when we restarted it.

Here is our init.properties file:

--comp-class-1 = tigase.muc.MUCComponent
--virt-hosts = xmpp_domain_name.com
--user-db-uri = jdbc:mysql://hostname1.com/tigasedb?user=tigase_user&password=tigase_pw
--user-db = mysql
--admins = admin@xmpp_domain_name.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,-jabber:iq:register
--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
--api-keys=open_access
--sm-cluster-strategy-class=tigase.server.cluster.strategy.OnlineUsersCachingStrategy
--monitoring=jmx:9050,http:9080

I have attached a portion of the log that suggests shutdown occurred because we using the ACS component without a license (as I unsrestand it can be used for testing and evaluation purposes).

Categories: Tigase Forums

Tigase server administration: RE: Web interface to Tigase server

Tigase XMPP Server Board - Wed, 01/28/2015 - 11:46

Thanks! I have installed the lastest build - 3772, I had to specify the Bosh url under 'Advanced' to log in:
ws://localhost:5290/bosh

Without it, I get the following error:
WebSocket connection to 'ws://peters-macbook-pro.local:5290/bosh' failed: Error in connection establishment: net::ERR_TUNNEL_CONNECTION_FAILED

I have the Tigase server installed on my machine (localhost).

I can now see the server components under "Management', but accessing 'Statistics' tab gives the following error:

adding values [0] with label
site-0.js:2345 exception adding data TypeError: Cannot read property 'e' of undefined {stack: (...), message: "Cannot read property 'e' of undefined"}message: "Cannot read property 'e' of undefined"stack: (...)get stack: function () { [native code] }set stack: function () { [native code] }__proto__: Error
site-0.js:1847 Uncaught com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) : Cannot read property 'e' of undefined

Categories: Tigase Forums

Tigase server development: RE: Logging for custom plugin

Tigase XMPP Server Board - Wed, 01/28/2015 - 04:12

This is simply a Java Logger and you can configure it to your own liking, adding custom Handlers and so forth, v. Logger

Categories: Tigase Forums

Tigase server development: Logging for custom plugin

Tigase XMPP Server Board - Wed, 01/28/2015 - 03:51

Hi there,

I am trying to understand if it's possible and how to separate log rows generated by all the custom components or plugins that I developed.

Now if I have a set of instruction like the ones below

... Logger log = Logger.getLogger(MyComponent.class.getName()); log.severe("Interesting information to be logged"); ...

I find my log in the tigase-console.log and that is not a bad thing.

But to better monitor the behavior of my custom written code, I would like to write a different log file, for example custom-components-and-plugins.log.

That could not be achieved (I think) just by adding

--debug-packages = com.mycomponent

because I'd have this log in the tigase.log, right ? I'd want a brand new file to store the information logged by my components.

Is there a way to implement that ?

Thanks in advance,
Luca

Categories: Tigase Forums

Tigase server development: RE: cluster Server A,B,C ,same message twice

Tigase XMPP Server Board - Wed, 01/28/2015 - 03:38

No, it's fixed in current development version and will be available in 7.0.0 release.

Categories: Tigase Forums

Tigase server development: RE: cluster Server A,B,C ,same message twice

Tigase XMPP Server Board - Wed, 01/28/2015 - 03:29

it means I used the version (5.2.3) has no problem?

Categories: Tigase Forums

Tigase server development: cluster Server A,B,C ,same message twice

Tigase XMPP Server Board - Wed, 01/28/2015 - 02:40

hi **
I have three im servers A,B,C and when users login with the diffrent server, then one use will recivie the same message twice
tigase 5.2.3

**

--virt-hosts = xcloud,uxcloud,axcloud
--admins = admin@xcloud
--user-db=mysql
--user-db-uri=jdbc:mysql://192.168.1.212:3306/tigase?user=tigase&password=jixiang&useUnicode=true&characterEncoding=UTF-8&autoCreateUser=true
--comp-name-4 = message-archive
--comp-name-3 = proxy

config-type = --gen-config-def
--cluster-mode = true

--comp-name-2 = pubsub
--comp-name-1 = muc
--cluster-mode = true
--sm-plugins = +message-archive-xep-0136
--debug = server,xmpp
--comp-class-4 = tigase.archive.MessageArchiveComponent
--comp-class-3 = tigase.socks5.Socks5ProxyComponent
--comp-class-2 = tigase.pubsub.PubSubComponent
--comp-class-1 = tigase.muc.MUCComponent
--comp-class-5 = tigase.http.rest.RestMessageReceiver
--comp-name-5=rest
rest/use-local-server[B]=true
rest/port[I]=8086
--comp-name-4 = ws2s
--comp-class-4 = tigase.server.websocket.WebSocketClientConnectionManager
--monitoring=jmx:9050,http:9080,snmp:9060
#ws2s/connections/ports[i]=5290,5291
#ws2s/connections/5291/socket=ssl
#ws2s/connections/5291/type=accept
#amp/store-limit[L]=20

Categories: Tigase Forums

Tigase server administration: RE: Issue with connection between server and MUC external component

Tigase XMPP Server Board - Wed, 01/28/2015 - 02:35

Here is the full MUC log immediately after ligase-server went down:

2015-01-28 09:43:46.340 [socketReadThread-3] SocketThread.run() FINEST: Selector AWAKE: sun.nio.ch.EPollSelectorImpl@507ca72d 2015-01-28 09:43:46.340 [socketReadThread-3] SocketThread.run() FINEST: AWAKEN: 182.30.0.175_44301_182.30.0.125_5271, ready for READING, readyOps() = 1 2015-01-28 09:43:46.340 [socketReadThread-3] SocketThread.addAllWaiting() FINEST: waiting.size(): 0 2015-01-28 09:43:46.340 [pool-6-thread-1] IOService.isConnected() FINEST: Socket: nullSocket[addr=cluster-test-1/182.30.0.125,port=5271,localport=44301], Connected: true, id: null 2015-01-28 09:43:46.340 [pool-6-thread-1] IOUtil$BufferCache.get() FINEST: allocating buffer with size = 65,536 2015-01-28 09:43:46.340 [pool-6-thread-1] IOService.isConnected() FINEST: Socket: nullSocket[unconnected], Connected: false, id: null 2015-01-28 09:43:46.340 [ResultsListener-socketWriteThread-3] IOService.isConnected() FINEST: Socket: nullSocket[unconnected], Connected: false, id: null 2015-01-28 09:43:46.340 [ResultsListener-socketWriteThread-3] SocketThread$ResultsListener.run() FINEST: REMOVED: 182.30.0.175_44301_182.30.0.125_5271
Categories: Tigase Forums

Tigase server administration: RE: Web interface to Tigase server

Tigase XMPP Server Board - Wed, 01/28/2015 - 01:40

Peter Rajcani wrote:

I see the web interface but I am unable to log in as an admin user. When I click on 'Authenticate' the application does not proceed.

Do you provide full admin credentials (FullJID)? Can you login with those credentials using any other XMPP Client? Can you check the logs in the DeveloperConsole in your browser?

What else is required in the configuration to run the web interface other than the .war file and HTTP component?

That all required components.

Will the updated version be available tomorrow?

Yes, it is be available now.

Categories: Tigase Forums

Tigase server administration: RE: Tigase Auto scaling external components

Tigase XMPP Server Board - Wed, 01/28/2015 - 00:46

Thanks Artur,

ComponentProtocol sounds great, will check it

Categories: Tigase Forums

Tigase server administration: RE: Tigase Auto scaling external components

Tigase XMPP Server Board - Tue, 01/27/2015 - 22:01

Actually, there are positive answers to all questions here. The whole external component logic and framework was designed with dynamic load balancing, scalability and at run-time reconfiguration in mind.

  1. In theory (it was not extensively tested), once you have configuration on the server side applied you can connect, disconnect the external component instances at any time without a need to restart the main server. I mean, let's say you want to scale this way MUC component. Your main Tigase server is: example.com and MUC component is: muc.example.com. Then, if you have the external component configured as muc.example.com, you can connect multiple instances of external MUC with this name and Tigase should distribute load correctly. Also, when you connect a new instance it would be included in the pool automatically. However, the MUC component example is not a good one, because the code does not take care about existing rooms in case of connecting/disconnecting component instances. However, we can imagine many other external components (message archive) which would work in such setup very well.
  2. The second question - reconfiguration without rebooting also have a positive answer. You can make the ComponentProtocol component to store it's configuration in database, where it can be updated at runtime (through admin ad-hoc commands) and there is no need to restart the server to apply changes. Again, in theory, as the feature is not commonly used and it was well tested at the time of implementation and not too much afterwards. I suggest to check it out and let us know of any problems.
Categories: Tigase Forums

Tigase server administration: RE: Remote server monitoring using JConsole

Tigase XMPP Server Board - Tue, 01/27/2015 - 16:02

I got the JConsole and Tigase monitor working. What was missing was the setting in the tigase.conf file to set the JMX IP address:

JMX_REMOTE_IP="-Djava.rmi.server.hostname=ip_address”

I also needed to add the admin user to jmx.access and jmx.password files with read-write privileges and use admin credentials to log into JConsole.

Categories: Tigase Forums

Tigase server administration: RE: Web interface to Tigase server

Tigase XMPP Server Board - Tue, 01/27/2015 - 15:58

I see the web interface but I am unable to log in as an admin user. When I click on 'Authenticate' the application does not proceed. What else is required in the configuration to run the web interface other than the .war file and HTTP component? Will the updated version be available tomorrow?

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 Okay so you’re the fucking best on Network and RTC but you suck at SSL certificates Management on your own website… 4 days 12 hours ago
  • @tigase Is Desktop Sharing with Tigase XMPP Server possible? 1 month 3 weeks ago
Back to Top